Game of Life simulation leveraging HTML 5 Web Workers and Canvas tags
Sample Game Area
If your browser is too old or doesn't support the required HTML 5 features, the box above will remain blank. Reload this page to restart the animation with new random life points.
Dependencies
JSpec is required to run tests
An up to date browser: Firefox 3.5+, Safari 5+, Chrome 5+, Opera 10.6+, etc. Other browsers may work (especially those built on the same Gecko/WebKit engines) but have not been tested.
Technical Description
HTML 5 Web Workers, Canvas tags, JSpec Javascript testing, ...
To Do / Future Features
- Finish rewriting/testing worker and canvas logic
- Start/Stop/Reset actions
- Save/Load patterns (universally known patters and custom user created; save to local storage)
- Add/Remove life with mouse clicks on canvas
- Mouse/Keyboard panning of larger matricies, limited viewing area
- User defined matrix size
- Variable animation speed
- Browser testing and verification / IE support ;-)
Author
Benjamin P Lee
Download
You can download this project in either
zip or
tar formats.
You can also clone the project with Git
by running:
$ git clone git://github.com/benjaminplee/HTLM5-GoL