The first modification that we have made is second asteroid. At first, there have only one asteroid. We created the second asteroid that randomly appears from the right hand side of the screen and chases the spaceship. We also made the second astroid to move at a slightly different speed than the first asteroid because it will make the game more easier.
The second modification that we have made is when the user presses the up arrow button then speed of the spaceship will be increase. In contrast, when the user presses the down arrow button then the speed of the spaceship will be decrease. For the bonus point on this assignment, we added the spaceship's life bar on the right hand side of the game. The spaceship have 3 lives. After the spaceship touches any asteroid, the heart (Spaceship's life) on the life bar will decrease once. The game will be over after the user lose all three spaceship's lives. Reflection:
1 Comment
|
AuthoWrite something about yourself. No need to be fancy, just an overview. Archives
April 2016
Categories |