Simple implementation of the classic arcarde game Asteroids in pure C using Minilibx as a side project during my 42 school cursus.
- Minilibx linux
- libbsd
- XShm extension
sudo apt-get install gcc make xorg libxext-dev libbsd-dev
- gnu make, gcc
if you satisfy dependencies just type :
make
the binary should be named asteroid, just type to launch :
./asteroid
- the engine uses Bresenham's line algorithm to draw line.
- the collision detection is using a standard is in circle detection.
i ll publish soon a code walkthrough to explain my implementation.