Skip to content

Repository files navigation

skifree-rs

Build Deploy Web

A SkiFree clone written in Rust with macroquad. The current version keeps the original downhill arcade feel while adding a longer mountain, NPC collisions, tricks, speed boosts, jumps, scoring, an abominable snowman chase, and a WASM build for GitHub Pages.

Start of the game v1.0.0

Play

Desktop:

cargo run --release

Guix development shell:

guix shell -m manifest.scm -- cargo run --release

Web build:

cargo build --release --target wasm32-unknown-unknown
mkdir -p dist
cp target/wasm32-unknown-unknown/release/skifree-rs.wasm dist/skifree_rs.wasm
cp web/index.html dist/index.html

Macroquad loads the generated .wasm directly through mq_js_bundle.js; there is no wasm-bindgen packaging step.

The GitHub Pages workflow publishes the web build at:

https://trevarj.github.io/skifree-rs/

Controls

Key Action
Left / Right Turn
Mouse hover or touch below skier Aim downhill
Click / tap Start or restart
Down Tuck for speed
F Speed boost
Z / X Tricks
C Flip
R Restart after a crash or snowman attack

Development

Useful checks:

cargo fmt -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test
cargo check --target wasm32-unknown-unknown

Debug hitboxes are available behind a feature flag:

cargo run --features debug-hitboxes

About

A SkiFree ⛷️ clone written in Rust using the ggez game engine

Topics

Resources

Stars

Watchers

Forks

Releases

Used by

Contributors

Languages