Ideas for Improvements
I’m sure you already have some ideas for making the game even more exciting, but let me propose some improvements that will make the game better and sharpen your RxJS skills at the same time:
-
Add a second (or third!) star field that moves at a different speed to create a parallax effect. This could be done in several different ways. Try to reuse existing code and to do it as declaratively as you can.
-
Make more unpredictable enemies by making them fire at random intervals instead of the fixed one specified in ENEMY_SHOOTING_FREQ. Extra points if you can make them fire more quickly as the player’s score gets higher!
-
Allow the player to get more points by hitting several enemies in a short amount of time.
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