Skip to content

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

License

Notifications You must be signed in to change notification settings

achaval-tomas/Game-Of-Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages