O'Reilly logo

Beginning Java 8 Games Development by Wallace Jackson

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

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