Skip to content

johannes-el/Classics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

videos/spikes.gif

videos/SpaceInvaders.gif

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

About

Classic games written in Raylib

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published