Architecting a Game

Now let’s move beyond simple animations and start adding interactivity. In this section, you’ll put together an entire game using RxJS. I’ve already built out just enough for you to start plugging things together with observables. Don’t hesitate to read through these prebuilt sections, but understanding them is not required for the neat, new RxJS tricks you’ll learn through the rest of the chapter.

Before anything else, let’s talk about why you’d want to use RxJS in such a game. The skeleton of this project has been created for you in rxfighter, with the complete project available to read in rxfighter-complete. As always, I recommend that you build your own project before you peek into the code for the completed one. We can ...

Get Build Reactive Websites with RxJS 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.