Shooting bullets using Phaser groups.
This is a nice detailed tutorial from the Code Captain site: "Groups are one of the most powerful features of PhaserJS, let’s take a look at how they work, by creating a small spaceship shooter example."
What we’ll cover
- How to set up a Phaser Group
- Create an Arcade physics body for movement
- Detect when lasers are out of bound
- Object Pooling using Phaser Groups for improving performance
- Phaser mouse or touch input
- Phaser keyboard input events