Game Development Reference
In-Depth Information
Figure 11-2 . Create private void createSceneEventHandling() method for OnKeyReleased and OnKeyPressed event
handling structures
Now that the event handling for the game play is where it needs to be, before we
can write the rest of the method structures for adding Image, Actor, and CastingDirect-
or objects, we'll need to declare these objects for use at the top of our InvinciBa-
gel.java class. Let's do this work that sets up the rest of the methods we'll need to code
next.
Adding InvinciBagel: Declare Image, Bagel, and Cast-
ingDirector
Since we are going to start to get our InvinciBagel character on the game play screen
during this chapter, and bring together all of the code we wrote during previous
 
Search WWH ::




Custom Search