Skip to content

bitexploder/SDLlife

Repository files navigation

sdllife - by Jeremy Allen

Background
==
The algorithm used is from Michael Abrash' Graphics Programming Black Book. This project was primarily to prototype code that will ultimately be used on an Arduino 16x16 Matrix display. However, I enjoyed hacking on this and figured I would release a modern version of Abrash's algorithm. This is probably one of the speediest implementations you will find with no fancy data structures. (Caveat: this is a very clear implementation. Game of Life has been studied extensively and there are a lot of great and fast implementations, I like this algorithm for its simplicity and ability to run at > 60 fps on rather large boards on my machine with no real optimization)

Requirements
==
You will need SDL >1.2.0, SDL_gfx, SDL_ttf. These are available on Ubuntu as standard packages. Both of these build under windows using MinGW and the makefile and code runs properly on both Linux and Windows. 

Usage
==
When the game is running the following commands can be issued via keypress or mouse click

r - Clear the current cells and create a new board
c - Clear the current cells
p - Pause the game
- - Speed the game up
+ - Slow the game down
q - Quit

About

Conway's Game of Life implemented using SDL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages