Bonus Points
The sky’s not the limit—you’re already in space! There’s plenty more you can do with this game. First, death shouldn’t be permanent. Add a restart functionality (but don’t forget to prevent restart if the player’s still alive). You could also add in a point system—how many space pirates can the player take out before the player’s eventual demise? Perhaps the space pirates have more in store for our adventurous player—new weapons, new ships, new powerups. These new ships could use the easing patterns from the animation section to create more challenging flight paths. If you’re feeling particularly energized after finishing this chapter, you might want to look into server-side RxJS and build a multiplayer game for all your friends ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access