A pretty optimized game of life made in C
  • C 99.8%
  • CMake 0.2%
Find a file
2026-04-27 21:20:23 +02:00
include added LOD 2026-04-27 21:08:53 +02:00
.gitignore added cross compilation to windows 2026-04-26 18:55:41 +02:00
CMakeLists.txt fixed cmake to cross compile to static binary 2026-04-26 19:14:16 +02:00
grid.c fixed LOD 2026-04-27 21:11:15 +02:00
main.c added LOD 2026-04-27 21:08:53 +02:00
mingw-toolchain.cmake added cross compilation to windows 2026-04-26 18:55:41 +02:00
README.md added more precise compilation instructions 2026-04-27 21:20:23 +02:00

Game of C

A pretty optimized game of life made in C

Downloading pre-compiled binaries

Latest version: here

Controls

-/=: speed down and up

0: super speed (skip frames)

g: Generate randomly the grid

c: Clear the grid

Enter: start and pause the simulation

Mouse wheel: zoom in and out targeting the mouse cursor

Arrows: move the camera in arrow direction

Platform support

Developed on Arch Linux

Tested and working platform(s) for compiling and running:

  • Arch Linux x64
  • Ubuntu 24.04 x64
  • Ubuntu 16.04 x64 (extarnally installed recent CMake required)

Running only platform(s):

  • Windows 11 x64

Compiling

The game was intended to be compiled from a GNU/Linux environment (with mingw to cross-compile to windows)

raylib 6.0 is mandatory, put the complete folder under name "raylib" in the repo

Compile to linux:

git clone https://git.clem.gleeze.com/bh3panzer/game-of-C.git
cd game-of-C
git checkout v0.1
git clone https://github.com/raysan5/raylib.git
cd raylib
git checkout 6.0
cd..
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make

Compile to windows:

git clone https://git.clem.gleeze.com/bh3panzer/game-of-C.git
cd game-of-C
git checkout v0.1
git clone https://github.com/raysan5/raylib.git
cd raylib
git checkout 6.0
cd..
mkdir build-win
cd build-win
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../mingw-toolchain.cmake
make