pixels/examples/conway/README.md
Thom Chiovoloni e0225c145d Add a conways game of life example (#37)
* Add a conways game of life example

* Rustfmt conway example

* Respond to review feedback (p_width/p_height)

* Use line_drawing instead of manual bresenham

* Optimize count_neibs

* Remove inline(never) leftover from when profiling

* Bring back wrapping behavior (without regressing perf)

* Fix missing bounds check
2019-11-05 23:15:58 -08:00

295 B

Conway's Game of Life

Conway's Game of Life

Controls

  • Mouse: Left click toggles cells, dragging draws lines.
  • P: Toggle pause.
  • space: Frame step (enables pause if not already paused)
  • R: Randomize
  • escape: Quit