A lesson from phasergames.com on how missiles can be made in shot using Phaser.

Article by Richard Davey. Posted on 14th Nov 2017.   @photonstorm

image

William of PhaserGames.com posted a tutorial:

"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 of each missile..."

Read more