* Move all examples to individual crates * CI: Add libsdl2 * Use Ubuntu bionic for updated libsdl; 2.0.8 * Clippy * libudev-dev is a dependency of libsdl2-dev * Clippy * Remove unnecessary dev-dependency * `winit` is actually used in unit tests * Fix a typo * Move `simple-invaders` crate
17 lines
356 B
Markdown
17 lines
356 B
Markdown
# Conway's Game of Life
|
|
|
|

|
|
|
|
## Running
|
|
|
|
```bash
|
|
cargo run --release --package conway
|
|
```
|
|
|
|
## Controls
|
|
|
|
- Mouse: Left click toggles cells, dragging draws lines.
|
|
- <kbd>P</kbd>: Toggle pause.
|
|
- <kbd>space</kbd>: Frame step (enables pause if not already paused)
|
|
- <kbd>R</kbd>: Randomize
|
|
- <kbd>escape</kbd>: Quit
|