/asteroids

Asteroids game in C++

Primary LanguageC++MIT LicenseMIT

Asteriods Game in C++

Dependencies

Tips on installing SDL2 & SDL2 Image

Mac

  • brew install sdl2
  • brew install sdl2_image

Linux

  • sudo apt-get install libsdl2-dev
  • sudo apt-get install libsdl2-image-dev

Basic Build Instructions

  1. Clone this repo. git clone https://github.com/jayahariv/asteroids.git
  2. Make a build directory in the top level directory: mkdir build && cd build
  3. Compile: cmake .. && make -j
  4. Run it: ./AsteroidsGame

How to play the game

  • top / down arrow keys to move forward and backward
  • left and right to rotate the ship
  • press a to fire

asteroids

Future

  • stars in the sky
  • break astroid to smaller pieces
  • sounds