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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.