Greenfoot Pong


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



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

  • Paddle
  • Ball
  • Paddle2

5. Put following Code into the "Paddle."



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





7. Put following Code into the "Paddle2."



8. Save and Test by Clicking run button.

Email Mr.Michaud

Copyright ©2011 Mr. Michaud.