Game Development Reference
In-Depth Information
Figure 13-15 . Use the Source
Insert Code
Generate
Getter and Setter sequence and select aKey, dKey,
sKey, wKey
As you can see in Figure 13-16 , NetBeans has created all eight of our getter and
setter methods for the new KeyEvent processing variables that we have added to the
InvinciBagel.java class. The code is error-free, and we are ready to go back into the
Bagel.java class, and utilize some of these new method calls to implement jump and
evade .
 
 
Search WWH ::




Custom Search