Conway's Game of Life - Jakt
This is an implementation of Conway's Game of Life in jakt using SDL2 to draw to the screen.
Compile and run
- Clone and build jakt
- Install SDL2 for your platform (out of scope for this readme).
jakt main.jakt -l SDL2 -I /usr/local/Cellar/sdl2/2.28.1/include/SDL2 -L /usr/local/Cellar/sdl2/2.28.1/lib -O -o life
build/life
Usage
Tab
starts and stops the simulation.
Spacebar
stops the simulation and puts you into "Selection Mode".
In "Selection Mode", you can move the selection with the arrow keys and toggle a cell with Enter
.
Config
In config.jakt
there are some things you can change based on your liking.
If there is not a predefined color you like, you can use Color::custom(r, g, b, a)
.
Acknowledgements
The SDL2 jakt implementation was heavily inspired (read taken from) JT's jaktnesmonster