Greenfoot Basic Target

Instructions
Target Game Sample
1. Download spriteWorld scenario and Save as TargetGame.
Download "spriteWorld" (in zip format)
2. Create a new subclass of World and call it: "targetWorld"
3. Add following code to targetWorld.



4. Create following subclasses of Sprite: (Choose Any image you would like)

  • Target
  • Bee
  • Ball

5. Put following Code into the "Bee."
(start at private void arrowKeyMove())



6. Put following Code into the "Ball."
(start at line #9)





7. Put following Code into the "Target."





8. Save and Test by Clicking run button.

Email Mr.Michaud

Copyright ©2011 Mr. Michaud.