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.
gameOfLifeClip.mp4
On windows
start bin/release/main
On Linux, or WSL
./bin/release/mainLinux
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