(You may need to click once on the application above to get your browser to recognize the applet)
The application functions as follows:
- 'a' moves left
- 'd' moves right
- 'w' moves up
- 's' moves down
- LEFT mouse button rotates left
- RIGHT mouse button rotates right
- The stars must be randomly generated. There must be at least 100 stars
- You must create a Ship class for the spaceship
- Ship code must be encapsulated from the main program. I.e. only the object declaration, it's instantiation, the call to its drawObject method, and only one call each to the movement methods must appear in the main program. All other ship-related code belongs in the Ship class
- ----- Grading is as follows: -----
- Correct ship movement behavior: 3 points
- Correctly implemented Ship class (attributes, constructor, drawObject method, movement methods): 4 points
- All ship code encapsulated within the Ship class: 4 points
- Randomly generated stars: 3 points
- More-or-less-correct-looking spaceship: 1 point