Please make sure you have the following programs installed:
- Rust: A language that gives everyone the power to build reliable and efficient software.
- Tetra: A simple 2D game framework written in Rust.
- Under all systems:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo yum install SDL2-devel
sudo yum install alsa-lib-devel
git clone [email protected]:17cupsofcoffee/tetra.git
cd tetra
cargo run --example hello_world
To ensure that the installation works properly after these commands, a blue page should open.
Create a working folder and get the resources provided with the workshop.
cargo init
cargo add tetra
If you get an error when running
cargo add tetra
, then runcargo install cargo-edit
and re-runcargo add tetra
💡 We recommend you to follow the Tour of Rust for this workshop.