CHAPTER 1

image

Making Sprites

The basic building block for making things with Pixi is an object called a sprite. Sprites are just images that you can control with code. You can control their position, size, and a host of other properties that are useful for making interactive and animated graphics. Learning to make and control sprites is really the most important thing about learning to use Pixi. If you know how to make and display sprites, you’re just a small step away from starting to make games or any other kind of interactive application.

In this chapter, you’re going to learn everything you need in order to display and position sprites on Pixi’s ...

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.