gol

Crates.iogol
lib.rsgol
version0.1.14
sourcesrc
created_at2017-06-13 17:55:28.127718
updated_at2023-11-17 11:47:37.139122
descriptionConway's game of life in OpenGL.
homepagehttps://github.com/lloydmeta/gol-rs
repositoryhttps://github.com/lloydmeta/gol-rs
max_upload_size
id18859
size3,025,668
Lloyd (lloydmeta)

documentation

https://docs.rs/gol

README

Game of Life CI

Conway's Game of Life implemented in Rust and OpenGL via gfx-rs.

Done as an exercise to practise Rust and get my feet with with OpenGL.

Areas explored:

  • General rendering
  • Vertex, fragment shaders
  • Pipeline state objects
  • Rayon for parallel processing
  • Building and deploying cross-platform binaries via GH Actions

gol running

Usage

You can run the executable by downloading one of the binaries in releases, or via cargo install gol, then running gol, or if you've cloned the repo,cargo run.

OPTIONS:
    -h, --grid-height <grid-height>        Height of the grid [default: 80]
    -w, --grid-width <grid-width>          Width of the grid [default: 100]
    -u, --update-rate <update-rate>        Number of updates to the game board per second [default: 30]
        --window-height <window-height>    Height of the window [default: 768]
        --window-width <window-width>      Width of the window [default: 1024]

If running via cargo, options need to be passed by appending --, i.e. cargo run -- -h 10 -w 10.

Todo

  • Optimise!
Commit count: 28

cargo fmt