A collection of examples using the Piston game engine
How to build & run examples
To build the examples, you need Rust and Cargo installed.
- Install Rustlang for example through rustup
cargo run --example <NAME>where the
NAMEare a file names from
examplesdirectory 2.1. Optionally navigate to
cargo runfor more complex examples
I get "GL context creation failed" when running an example.
It's likely your hardware or driver doesn't support PistonWindow's default OpenGl spec. Just change it to something you can support at the beginning of the example. See hello_world.rs for an example.