Making Missiles in Phaser

In this video, we look at how to make and shoot missiles in Phaser with only 23 lines of code!

The basic idea is to create a sprite, the missile, inside of a group. We place the sprite at the x position of the mouse and the y position below the height of the game. Then during the update function, we simply loop through the group and subtract from the y position from each missile.

This video uses the Phaser Snippets

Leave a Reply