CHAPTER 14

image

Setting Up the Game Environment: Creating Fixed Sprite Classes Using the Actor Superclass

Now that we made a significant amount of progress creating your primary InvinciBagel character, using a number of key methods in the Bagel.java class, as well as the Actor and Hero superclasses, all of which we put into place along with the GamePlayLoop class and CastingDirector class in Chapters 7 through 13, it is time to add fixed sprite objects, which I will call “Props,” into the Scene and on the Stage (on the screen). These fixed objects are almost as important to the game as the main character himself, as they can be used to provide obstacles, ...

Get Beginning Java 8 Games Development 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.