Update READMEs (#42)

This commit is contained in:
Jay Oster 2019-11-06 22:37:16 -08:00 committed by GitHub
parent efa57289cb
commit d56625577d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 7 deletions

View file

@ -19,13 +19,8 @@ Rapidly prototype a simple 2D game, pixel-based animations, software renderers,
## Examples ## Examples
To demonstrate `pixels`, I've written a Space Invaders clone. The game logic can be found in the `simple-invaders` crate. The included example uses `simple-invaders` to rasterize the image, and `pixels` to display it. `winit` provides the windowing and event handling. - [Pixel Invaders](./examples/invaders)
- [Conway's Game of Life](./examples/conway)
```bash
cargo run --release --example invaders
```
See the [example's README](./examples/invaders) for more information.
## Comparison with `minifb` ## Comparison with `minifb`

View file

@ -2,6 +2,11 @@
![Conway's Game of Life](../../img/conway.png) ![Conway's Game of Life](../../img/conway.png)
## Running
```bash
cargo run --release --example conway
```
## Controls ## Controls

View file

@ -4,6 +4,12 @@
The pixels have invaded! The pixels have invaded!
## Running
```bash
cargo run --release --example invaders
```
## Controls ## Controls
<kbd>Left</kbd> <kbd>Right</kbd> Move tank <kbd>Left</kbd> <kbd>Right</kbd> Move tank