A collection of examples using the Piston game engine
Switch branches/tags
Nothing to show
Clone or download
bvssvni Merge pull request #417 from bvssvni/master
Updated "user_input" example
Latest commit fe936b1 May 27, 2018

README.md

piston-examples Build Status

A collection of examples using the Piston game engine

How to contribute

How to build & run examples

To build the examples, you need Rust and Cargo installed.

  1. Install Rust
  2. In the Terminal window, navigate to the project directory of the example you want to build.
  3. Type cargo build
  4. Type cargo run --bin hello_world

Troubleshooting

  • I get ld: library not found for -lSDL2 error on OSX

  • 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.