|
HWJ12 Key Listener
All students must do 2 parts (recommend do 1 and 3?) , advanced all 4.
Create an applet called HWJ12_Keys
that will
1. Move a square around the board using the arrows.
2. Add the power that if the person TYPES the 1-5 it will adjust
the speed of the square.(1slow 5 fastest, )
3. Screen wrap (if it goes off the left screen, it will reappear
on the right side
4. If they type b,r,g it will change the square to blue, red or
green.
Advanced People:
Use runnable and have 3 large asteroids of random size drop from the top of the screen. The user needs to avoid hitting them. After they are off the screen, new ones will appear.
|