Architecting a Game

Let's see the <canvas> element that helps create interactive experiences in the browser and the set of APIs exposed by canvas to programmatically draw on the page.

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. Let’s take a peek at what the finished project should look like, it’s important to know what you’re going for.

Get hands-on with 1400+ tech skills courses.