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

9. Bonus! Refactoring & Asteroids

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

For the diehards in us who want to learn to add another complex feature, this one is for you! In the upcoming chapter we shall learn to refactor our functionality for reusability while implementing comets on the server side. We shall also render the comets on the client side and update the player class to implement its own explode method.

Adding More Features

Let’s add a new feature that adds a new level of threat to our galaxy in the form of giant asteroids. We shall be keeping our implementation fairly simple, considering complexity ...

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.