Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Hey all, As I develop my games in html5, I often notice that browser games feel different than downloadable games. This is simply because of the nature of web browsers; they are not specifically meant to showcase games. Because of this, I often find even myself clicking on other tabs as I play my game; kinda going in and out of the gaming experience. I don't really want my game to be displayed in a normal browser window for these reasons. Is there any way that I can make my game downloadable and have a file that opens a window which only contains the canvas? Thanks!
  2. Yeah that is what I meant. Thanks for the tip. I will look into texture atlases!
  3. Hello All, Sorry if this is a duplicate post; I thought this would be a fairly popular topic but I have yet to find my answer. I was wondering if it is possible to easily change the frame width of a spritesheet. When I preload the spritesheet: this.game.load.spritesheet(ResKeys.playerSprite, 'assets/playersprites.png', 30, 30);I pass in 30 as the width. For one of my animations, however, I want the width to be 60. Thanks!
  4. Wow thanks! Any way to do this with tile maps?
  5. Hello all, I think the title pretty much sums up what I want to ask. Is it possible to have sprites that don't collide as if they were rectangles, but rather as the shape they actually are. I am fairly certain that this cannot be achieved as easily as I hope and I wonder if it is possible at all. Thanks
  6. Hello all, I was wondering if there was a way to make sure an animation plays until completion. In my code, I start one animation when a certain condition is met. I want the animation to play to completion even though the condition isn't met throughout. Is this possible using built in Phaser methods? Thanks!
  7. Hi all, Is there any way to set up a Phaser environment in a free ide so that the ide gives method parameters and descriptions? -Thanks
  8. Yeah. I think recycling is the only option; since every object is identical splicing it erases the whole array. Thanks!
  9. Quetzacotl, I am looping through a for loop...it is an array of bullets. Could that be the problem, that I am still using those objects after they were deleted?
  10. How would one go about destroying a specific entity in an array? I have tried destroy, I have tried setting the object equal to null, but nothing has helped. After about 400 enemy ships spawn the game just lags. Any advice?
  11. I am not... I have it "up" here: lionela.site90.com -- for some reason the background music won't work. Thanks for the feedback!
  12. Yesterday I coded up this space invaders like game. I am a beginner and I didn't follow any tutorials so I was just wondering if there was anything really bad -- something I shouldn't do or have in my code. Thanks. window.requestAnimFrame = (function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(/* function */ callback, /* DOMElement */ element){
  13. In my code, below, I have a bouncing circle animation. I would like to make an array called circles and push back new circles when needed. I want every circle in the array to be represented by the variable circle, but have separate x and y values. Any ideas as to how I could do this ? window.requestAnimFrame = (function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame ||
  14. Just was fooling around with a little bit of a pvp "shooter" and I couldn't really think of a good bullet function. Right now, you fire, and once the bullet leaves the screen, you can fire again. I would prefer a rapid firing system where you hold down the key and it fires over and over. I am a beginner and I have ordered some of those books The game is here: www.lionela.site90.com Controls: WASD and Q fire and Arrow Keys and Space fire
  • Create New...