A pretty optimized game of life made in C
- C 99.8%
- CMake 0.2%
| include | ||
| .gitignore | ||
| CMakeLists.txt | ||
| grid.c | ||
| main.c | ||
| mingw-toolchain.cmake | ||
| README.md | ||
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