CHAPTER 4

image

Making Games

I’ve covered all the basics of working with Pixi, so we can now start making some fun stuff! Games are a great place to start, because they give you a chance to practice all the skills you’ve learned so far, and games are a great model for interactive applications of all kinds. Making a game will also give you a chance to learn an essential new skill: how to check if two sprites are touching, and what to do when they are.

In this chapter, you’re going to learn how to make a basic game prototype called Treasure Hunter. It’s the most basic complete game you can make but contains all the essentials you need to know to make ...

Get Learn Pixi.js: Create Great Interactive Graphics for Games and the Web 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.