CHAPTER 2

image

Making and Animating Graphics

As you start building your games, you’ll be loading in several graphical assets prepared externally in other graphics and drawing applications. However, EaselJS comes bundled with a Graphics class that is built up of a drawing API that you can use to create on-the-fly graphics.

In this chapter, we’ll be taking a close look at how you can accomplish these graphics and the kinds of things you can do with them when building your games. But before you start drawing, you need to get a bit more acquainted with what you are drawing them to. In the previous chapter, you saw the use of a stage object in many situations, ...

Get Beginning HTML5 Games with CreateJS 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.