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

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