Skip to content

Synyproxy/Space_Invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Invaders

Context

As part of my education at Isart Digital Montreal, we studied the C programming language for one month. By the end, we were required to reproduce the famous 1978 Space Invaders. The deadline was 4 days.

Specifications

  • Use C programming language
  • Use the SDL2 library for display.
  • The player should able to move his ship withing the screen limits.
  • The player should be able to shoot projectiles.
  • The player may only have one projectile at a time.
  • If a player projectile hits an enemy, that enemy dies.
  • Enemies bounce on screen edges and then go dowwn.
  • If an enemy reaches the bottom, the player loses.
  • Enemies may shoot at random if there is no enemy in front of them.
  • If the player is hit 3 times, the game ends

How to run the game

The main project was initialy developed on Linux (since we spent the first month on Linux only). I have proted this project over to windows using Visual Studio. To run the game:

  • Download the project.
  • Open the SpaceInvaders.sln file.
  • Change architecture from x64 to x32.
  • Run and enjoy.

Key take aways

  • Having to work with a new librarby under the preasure of a tight deadline.
  • Implementation of simple collision detection.
  • Triggering random events.
  • Applying previous notions of the C programming language I have learned into a game is really cool.

What could be improved:

Since the project was constrained with a tight deadline, I have adopted an agile incremental software methodology prioritazing core gameplay features. However, the game could use some improuvements:

  • Menu Screen.
  • Text Displaying score.
  • Enemies only shift down a row if a top alive enemy hit the wall.
  • Obstacles like the original Space Invaders.
  • Shiled power up for the player.

Contact

If you have any questions please feel free to contact me on [email protected]

About

Space Invaders style game in C using SDL2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages