Space Shooter
A space shooter game.
You are controlling a spaceship that can shoot bullets by pressing the space bar.
Each time you destroy an enemy, you get 1 score point.
You have a total of 3 lives, and each time the spaceship hits one of the incoming asteroids you lose one life.
There are also two types of power-ups in the form of crystals and stars. When the player picks up a crystal power-up, two additional bullets shoot out of the spaceship, one on each side. When the player picks up a star power-up, enemies grant 2 score points when destroyed.
There are also waves, a new wave starts when you gain 10 scores in the previous wave. Each new wave results in the enemies moving faster.
You need to score a total of 100 points in order to beat the game.
Videos:
Video 1: Learned how to add a player and sprite to the game. Also learned how to move the player.
Video 2: Added an enemy, changed scale of enemy and made the enemy move lower on the scale on its own.
Video 3: Added collision system so that when the player touches an enemy, both get destroyed. Moved player and enemy code into Player and Enemy Classes. Added bullets that destroy both the enemy and itself upon impact.
Video 4: Made the bullets appear when the space bar is pressed, and out of the player. Made the enemy and bullet destroy themselves once they moved off the screen. Added a spawner that spawns a new enemy after a timer has run out.
Video 5: Randomized enemy starting positions in the x-axis. Added a score system that increases each time an enemy is destroyed by a bullet.
Video 6: Added a background image. Printed the score on the game screen and not on the console.
Video 7: Added a power up that can be picked up by the player. The power up makes the player shoot an extra bullet to the left of the original bullet, and one to the left. The power up runs out after about 5.
Video 8: Made the power up spawn in a random interval between 2 to 10 secs. Added a game over screen that shows up when the player is destroyed. If the space bar is pressed in the game over screen, the game starts again.
Video 9: Added a background for the game over screen. Added the total score achieved on the game over screen. Added sound effects for when the player gets destroyed, when the enemy gets destroyed, when a bullet is shot, when a power up is picked up and when the power up timer runs out.
Extensions:
Added boundaries: When the player tries to move off the edge of the screen, its x or y values change to limits set.
Added a life system: each time the player gets hit its life value decreases by 1, and when the lives reach 0 or lower, the player gets destroyed.
Added another power up: A power up that changes score gained from destroying an enemy from 1 to 2. However, picking up a x2 score power up will cancel a normal power up, and vice versa.
Added an end screen: When the player achieves a score of 100 the player is taken to the end screen.
You are controlling a spaceship that can shoot bullets by pressing the space bar.
Each time you destroy an enemy, you get 1 score point.
You have a total of 3 lives, and each time the spaceship hits one of the incoming asteroids you lose one life.
There are also two types of power-ups in the form of crystals and stars. When the player picks up a crystal power-up, two additional bullets shoot out of the spaceship, one on each side. When the player picks up a star power-up, enemies grant 2 score points when destroyed.
There are also waves, a new wave starts when you gain 10 scores in the previous wave. Each new wave results in the enemies moving faster.
You need to score a total of 100 points in order to beat the game.
Videos:
Video 1: Learned how to add a player and sprite to the game. Also learned how to move the player.
Video 2: Added an enemy, changed scale of enemy and made the enemy move lower on the scale on its own.
Video 3: Added collision system so that when the player touches an enemy, both get destroyed. Moved player and enemy code into Player and Enemy Classes. Added bullets that destroy both the enemy and itself upon impact.
Video 4: Made the bullets appear when the space bar is pressed, and out of the player. Made the enemy and bullet destroy themselves once they moved off the screen. Added a spawner that spawns a new enemy after a timer has run out.
Video 5: Randomized enemy starting positions in the x-axis. Added a score system that increases each time an enemy is destroyed by a bullet.
Video 6: Added a background image. Printed the score on the game screen and not on the console.
Video 7: Added a power up that can be picked up by the player. The power up makes the player shoot an extra bullet to the left of the original bullet, and one to the left. The power up runs out after about 5.
Video 8: Made the power up spawn in a random interval between 2 to 10 secs. Added a game over screen that shows up when the player is destroyed. If the space bar is pressed in the game over screen, the game starts again.
Video 9: Added a background for the game over screen. Added the total score achieved on the game over screen. Added sound effects for when the player gets destroyed, when the enemy gets destroyed, when a bullet is shot, when a power up is picked up and when the power up timer runs out.
Extensions:
Added boundaries: When the player tries to move off the edge of the screen, its x or y values change to limits set.
Added a life system: each time the player gets hit its life value decreases by 1, and when the lives reach 0 or lower, the player gets destroyed.
Added another power up: A power up that changes score gained from destroying an enemy from 1 to 2. However, picking up a x2 score power up will cancel a normal power up, and vice versa.
Added an end screen: When the player achieves a score of 100 the player is taken to the end screen.