![]() You can do this using a method from the rocket’s object menu. Play again (with at least two asteroids) to try it out.įrom Introduction to Programming with Greenfoot by Michael Kölling Used with permission Exercise 1.11 Once you have managed to remove all asteroids (or at any other point in the game), stop the execution (press Pause) and find out how many shots you have fired. (This should make getting the asteroids a bit easier!) Place a rocket into the world, and then invoke its setGunReloadTime method (through the object menu), and set the reload time to 5. Let us tweak our spaceship firing software a bit so that we can shoot a bit quicker.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |