A simple implementation of the classic arcade game Asteroids using C and raylib. This project was created as a way to keep busy and learn while having fun.
Clone the repository using the following command:
git clone https://github.com/hugo-russeil/asteroids.git
Once cloned, navigate into the repository directory and use the provided Makefile to compile the game:
cd asteroids
make
Ensure you have raylib installed on your system. If not, you can check out raylib's website.
If you don't want to compile the game yourself, you can download precompiled binaries from the releases page. There are versions available for both Windows and Linux.
The keys to control the game are as follows:
- the arrow keys to move your spaceship
- the space bar to shoot
- the grave key (`) to toggle debug mode.
This version of Asteroids is inspired by the original game but includes some differences as I did not aim to create a perfect replica.
While contributions are not expected, feel free to submit pull requests if you have any improvements or suggestions. My aim is to learn and i am open to any constructive feedback.
This project is licensed under the MIT License. See the LICENSE file for details.
- Idea inspired by a YouTube Video from Andrew Hamel Codes of which I followed the first part before doing my own thing.