Game Development Reference
In-Depth Information
and moving challenges. We created the basic constructor method that sets the variables
from the Actor superclass, this time to define a motion sprites imagery, initial position,
and collision boundaries. Then we added some additional variables, which we will be
needing for future game design aspects, and again saw how NetBeans will write our
.get() and .set() methods for us, which is always fun to watch!
Finally, we took a look at an updated invincibagel package, class and object struc-
ture diagram, to see just how much progress we have made so far during the first eight
chapters of this topic. This is getting pretty exciting!
In the next chapter, we are going to take a look at how to control the game sprites
that we will create using this Actor engine that we have created during this chapter.
This next Chapter 9 will cover Java 8 and JavaFX event handling, which will allow our
game player to manipulate (control) these actor sprites using event handling.
Search WWH ::




Custom Search