COMP 121 Project 3
Winter 2010
Sanderson and Stucki
Due: 9 March 2010
Space Invaders Lite
Implement a VB.NET application to play a simple variation of space invaders.
Start the program with a number of picture boxes at the top of the screen. Have them move down the screen, returning one to the top only when the user clicks on it. If a picture box makes it to the bottom it is lost and no longer responds to clicks. The
program should keep track of the number of hits and misses, and the number of lost picture boxes. When more than a predetermined number of picture boxes are lost the game is over.
- The requirements below are minimal to get a simple game working. Feel free to add more features and sophistication to your game.
- Most of all, have fun!
Requirements:
- Give the application and all its components appropriate names. Do not keep any of the default names.
- Make appropriate use of functions and subs to separate the 'model' from the 'view'.
- Design a graphical user interface that incorporates appropriate controls to facilitate the required functionality. You may use either a menu bar
or buttons (or both). The design and layout is up to you, although we suggest having the picture boxes within a frame
rather than on the form itself. Plan ahead by making hand-drawn sketches and simulating some usage scenarios.
- Each picture box should have an image associated with it. It's up to you whether they are all the same, or different.
- Create a timer object. Each time the timer event is triggered you should add a constant to the Top property of all the picture boxes to move them down the screen. [Hint: put the picture boxes in an array to make this easy.]
- Use the click events on the picture boxes to reset the Top property to the initial value.
- Display game statistics in the user-interface.
- Allow the user to reset the game.
For extra credit, add a key-stroke shortcut to pause/unpause the game.
For extra extra credit, add code that makes the picture boxes move at different speeds, and increase the speeds the longer the game plays.