Chapter 9
Reactive Game Development

Frontend development doesn’t have to be dreary forms on repeat. It’s always good to take a step back from the day-to-day and stretch yourself, especially if you learn new techniques along the way. In this chapter, you’ll depart from typical webapp-based development and build a game using the <canvas> API defined by HTML5. As part of that, you’ll learn about new Rx techniques to handle the rapid-fire state changes a game brings. Games also involve many moving objects, and you’ll see how to use Rx’s to create animations of all kinds. You’ll also move beyond what the library provides and create your own operators. Long-time game developers and complete video game beginners will both learn something new from this chapter.

Using the Code Provided for this Section

images/aside-icons/note.png

The code for this final chapter is provided in the canvas directory. Before you proceed, you need to run npm install. Run npm install to spin up a server that will serve your assets at http://localhost:8081. The code for the complete game is found in rxfighter-complete.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.235.176