Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 700 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 700 Bytes

ASTEROIDS

This is a recreation of the classic asteroids video game. Implemented in the C programming language, using SDL 2 library to display graphics on the screen.

To compile you need to have SDL 2 installed on your system and the header files available to you operating systems PATH environment variable

gcc -o app main.c vector.c player.c asteroids.c renderer.c -Wall -g -lm `sdl2-config --cflags --libs`

Controls

  • left arrow to rotate left
  • right arrow to rotate right
  • up arrow to apply thrust in the direction you are pointing
  • space to shoot a bullet
  • ESC to exit game

Images

animation

game play