Search the Community
Showing results for tags 'explosion'.
-
A Space shooter game build with Phaser 3. Download it for Android: https://play.google.com/store/apps/details?id=com.kpagan.RebelWings The player controls the ship, shooting laser to enemies, launching homing missiles and fighting bosses. Each level the enemies differ, more difficult enemies are added and more difficult bosses. Each boss moves on its own unique pattern. Collect power ups like health, missiles, and bomb that kills every visible enemy to clear the stage. Fight through 16 ready levels. Collect the parts from the exploded enemy ships. Use the collected scrap as a currency to upgrade your own ship. Upgrades can be done 4 basic areas: 1. The Laser: rate of fire, damage and multiple shots 2. The missile: damage, accuracy and how many missiles your ship can carry 3. Engines: how fast can you move 4. Ship: how many hit points the ship has Check the teaser video here:
-
- explosion
- sidescroller
-
(and 5 more)
Tagged with:
-
I am trying to create a bomb that only goes off after the player has collides with it but delays for a number of seconds. Currently it goes off immediately I have my collision as below game.physics.arcade.collide(this.player, this.tnts, this.tntCollision, null, this); and the collison handler as below tntCollision: function (player, tnt) { if (player.body.touching.right){ player.body.velocity.x = -200; } else if (player.body.touching.down) { tnt.kill(); var explosionGroup = "explosionSmallGroup"; var explosion = this[explosionGroup].getFirstExists(false); explosion.reset(tnt.x, tnt.y); explosion.animations.play('explode', 30, false, true); } else if (player.body.touching.left) { player.body.velocity.x = 200; } }
-
I have explosion spritesheet which is 2048x128 size. As you can see it is POT(power of two) for width and height, but still I get error when loading my game: phaser.min.js:6, Uncaught Error: Texture Error: frame does not fit inside the base Texture dimensions [object Object] Did I miss to set up some setting in Phaser or just the texture is too large in width? I cleared my cache btw and still get the same error. The spritesheet has 16 frames so i could possibly create an atlas 4x4 but still, should i bother?
- 1 reply
-
- power of two
- size
-
(and 4 more)
Tagged with: