This repository contains multiple classic games developed using the raylib library. The games are written in either C or C++. Each game has its own directory with source code, assets, and build scripts.
- Ensure you have a C/C++ compiler (gcc), and make installed on your system.
| Game | Description |
|---|---|
| Arkanoid | A classic brick-breaking game. |
| Asteroids | A space-themed game where you destroy asteroids. |
| Space Invaders | A version of the classic shooter game. |
| Spikes | A game where you avoid obstacles and collect items. |
Each game folder has the following structure:
src/: Contains the game’s source code (C/C++).Assets/: Contains sprites, textures, and audio assets used in the game.MakefileorCMakeLists.txt: Build instructions for compiling the game.
The Raylib library is included in the deps/ folder:
deps/include/raylib.hdeps/lib/linux/libraylib.a
To build any game, navigate to its folder and run:
makeFor games using CMake, use:
mkdir build && cd build
cmake ..
make