parkerqueen / asteroids

An asteroids clone using C++ & freeglut, developed as a project for my Computer Programming course.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asteroids


An asteroids clone using C++ & freeglut, developed as a project for my Computer Programming course. I was a very novice programmer at that point (a couple years ago) and consequently the code might not be as efficient.

A* Visualization

Instructions

The following instructions are for Ubuntu 16.04 and onwards. You may edit the install_dependencies.sh file to modify the installation command for your distro. You need make and g++ to compile the source code, both of which come preinstalled in Ubuntu.

git clone git@github.com:parkerqueen/asteroids.git
cd asteroids
chmod +x install_dependencies.sh
./install_dependencies.sh
make all

You'll have an executable named game generated. Use make clean to clean everything.

Notes

  • Use arrow keys (up, right & left) to steer the ship. If you press & hold the up key, the speed will keep increasing towards a certain threshold.
  • Use space to shoot and destroy the asteroids & saucers.
  • You have three lives. The number of As at the top left indicate the remaining lives.

Issues

  • Collisions are not as precise.
  • Speed is just an arbitrary unit and not really 'MPH'.
  • Using SDL2 only to play sounds.

About

An asteroids clone using C++ & freeglut, developed as a project for my Computer Programming course.

License:MIT License


Languages

Language:C++ 100.0%Language:Makefile 0.0%Language:Shell 0.0%