© Oscar Lodriguez 2019
Oscar LodriguezLet’s Build a Multiplayer Phaser Gamehttps://doi.org/10.1007/978-1-4842-4249-0_6

6. Projectiles!

Oscar Lodriguez1 
(1)
NIEUW-VENNEP, Noord-Holland, The Netherlands
 

We made it to Chapter 6! This is where we shall add the fun parts to the game. We shall be setting up the props and also assigning new features to our existing sprites! We shall also look at how we are allowing the user to fire her laser beams.

Code for this chapter is found on GitHub or by checking out the chapter/5 branch. Our spaceship is created and can move around the screen. Let’s add a new feature that allows our spaceship to shoot! Phaser comes with a handy ability to shoot/fire feature, as it has a built-in method that we can call to assist ...

Get Let’s Build a Multiplayer Phaser Game: With TypeScript, Socket.IO, and Phaser now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.