LP2-4GamePlay

=Game Play =

=4. Game Play=

 4.1. The first version of the game started out with the ship at the center of the screen. I wanted to set the structure for a main screen to be displayed so the game opens up with one start option (F5). I kept the test functionality of part one I and added the new object classes that track the laser objects, rock objects, and the element objects. All of these objects are populated in their data structures but are not displayed on the screen. After the player hits the F5 key the program loops through all of the collections and displays the items in the current quadrant. Here is a screen shot of the start-up message.



4.2. The game starts with the ship in the center of the screen. It displays the current amount of laser fuel, population fuel, and the amount of ore you have collected. Below that it shows you what quadrant you are in. In the right corner of the screen there is a miniature graphic of the ship with the number of lives you have left.



4.3. You can mover the ship around and fire the laser (correctly) at any point. You can fire up to 10 shots. It’s hard to see but as you move the ship there are flames that animate from the rear of the ship. While the ship is in motion this animation continues. When you stop, the animation stops as well. Also as you move your propulsion fuel start to count down.



4.4. When you fire a laser and hit a rock the rock image is replaced with an explosion animation. The animation cycles once and then is gone.



4.5. The ship when it is at a stand-still. At this point it has collected to ore elements. If you notice from the previous screen shot one of the ore elements was right next to the destroyed asteroid.



4.6. When the ship hits an asteroid it destroys the asteroid and the hit counter goes down by one. The ship has also left quadrant five and moved up to quadrant 2.



4.7. The ship has moved to quadrant 1 and has hit another asteroid, collected more ore.



4.8. The ship moved down to quadrant 4 and then ran into another asteroid, which put its hit counter down to zero. The ship has been destroyed. You can see the two explosions and the game over notice.



4.9. The ship moves to quadrant 6 and then fly’s down to quadrant 9.



4.10. In quadrant 9 the ship tries to go through the corner and is unable to. It then tries to go through the bottom of the screen. You can see that the ship is prevented from going beyond the boundary because the flames for the engine are still going and the ship hasn’t transitioned to a different part of the screen.



Project Home Next Section