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 ...

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.