Game Development Reference
In-Depth Information
Figure 7-8
.
NetBeans creates a public void handle(long now) bootstrap method with UnsupportedOperationExcep-
tion
Creating a GamePlayLoop Object: Ad-
ding Pulse Control
Next, you need to declare, name, and instantiate a GamePlayLoop object named
gamePlayLoop
, using the new class you have created, in conjunction with the Java
new
keyword. Click the InvinciBagel.java tab, shown in
Figure 7-9
, and add a line of
code below the Insets object declaration declaring the GamePlayLoop object, and name
it gamePlayLoop, as follows:
GamePlayLoop
gamePlayLoop
;