Ubuntu install guide
October 19, 2024 ยท View on GitHub
Install Nerd Font
curl -sS https://webi.sh/nerdfont | sh
Terminal: Preferences > Profiles > Text > Custom font > DroidSansMono Nerd Font
Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env" # For sh/bash/zsh/ash/dash/pdksh
Install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Install some dependent libraries and software
sudo apt-get install ffmpeg # Used to convert gif to ssf sequence frame files(.ssf)
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-image-dev
sudo apt-get install libsdl2-gfx-dev
Download RustPixel and deploy cargo-pixel
Starting from version 0.5.3, you can deploy cargo-pixel directly from crates.io using cargo install.
cargo install rust_pixel # use crates.io rust_pixel crate deploy cargo-pixel
cargo pixel # first run cargo-pixel will clone rust_pixel to <homedir>/rust_pixel_work automatic
cd ~/rust_pixel_work # cd to workspace
cargo pixel r petview s # run demo game...
To use the newest code, you should clone RustPixel and deploy cargo-pixel tool:
git clone https://github.com/zipxing/rust_pixel
cd rust_pixel
cargo install --path . --force