/Classics

Classic games written in Raylib

Primary LanguageCGNU General Public License v3.0GPL-3.0

Classic games written in C/C++ using the raylib library (WIP)

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.

Prerequisites

  • Ensure you have a C/C++ compiler (gcc), and make installed on your system.

Game List

GameDescription
ArkanoidA classic brick-breaking game.
AsteroidsA space-themed game where you destroy asteroids.
Space InvadersA version of the classic shooter game.
SpikesA game where you avoid obstacles and collect items.

Game Folders Structure

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.
  • Makefile or CMakeLists.txt: Build instructions for compiling the game.

Dependencies

The Raylib library is included in the deps/ folder:

  • deps/include/raylib.h
  • deps/lib/linux/libraylib.a

To build any game, navigate to its folder and run:

make

For games using CMake, use:

mkdir build && cd build
cmake ..
make