Game Development Reference
In-Depth Information
invinciBagel. iBeagel .update();
}
Figure 17-34 . Add a call to the invinciBagel.iBeagle.update() method inside of the GamePlayLoop .handle() method
Use the Run Project work process to test your first round (level) of Enemy
auto-attack Java code. As you can see in Figure 17-35 , the InvinciBeagle appears on
both sides of the screen, in random locations along the Y axis , and alternates between
the left side of the screen and the right side of the screen. I left the Bullet and Cream
Cheese Ball Projectile Actor objects visible on the screen for now, in the upper-left
corner. We will eventually place these off-screen, and will shoot them at the InvinciBa-
gel every few seconds using the InvinciBeagle's powerful bazooka.
 
 
 
Search WWH ::




Custom Search