O'Reilly logo

Beginning HTML5 Games with CreateJS by Brad Manderscheid

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8

image

Extending EaselJS Display Objects

So far, you’ve used EaselJS display objects to add graphical game elements to the stage. You’ve seen situations where you have needed to add some custom properties and methods to these display objects to help program the game logic around them. So far, the process of dynamic injection has been used to accomplish this. With this approach, you are essentially extending the functionality of these objects, but when doing this on-the-fly approach, your game can quickly become messy and hard to manage. In this chapter, you’ll learn how to build and organize new, custom objects that inherit from EaselJS display ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required