Skip to content

Files

Latest commit

fec3a13 · Oct 28, 2023

History

History
33 lines (26 loc) · 1.27 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.27 KB

Game-Of-Life

Another one of my first few projects in C++, lots of improvements to be done.

My version of Conway's well-known Game of Life made in C++ and SDL.

Keybinds: Left click to add living cells, right click to remove them. Space to start/pause and C to clear the screen and reset generations.

Sample video

gameOfLifeClip.mp4

How to run the game

On windows

start bin/release/main

On Linux, or WSL

./bin/release/mainLinux

How to re-compile the game

On windows with mingw

g++ -c src/*.cpp -std=c++14 -O3 -Wall -m64 -I include -I /bin/release && g++ *.o -o bin/release/main -s -L /bin/release -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer

On Linux, or WSL

g++ -c src/*.cpp -std=c++14 -O3 -Wall -m64 -I include -I /bin/release && g++ *.o -o bin/release/mainLinux -s -L /bin/release -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer

Note: Necessary Libraries are included in bin/release. If this doesn't work for you, you may need to Download and install SDL and/or mingw