Background
Snake began as a focused way to explore Rust game-state design and browser delivery without moving the game engine into JavaScript.
Architecture
The project keeps game rules and state in a reusable Rust engine. A WebAssembly frontend connects that engine to browser rendering and input, while Trunk produces a self-contained static release.
Build And Integration
The release workflow compiles the wasm32-unknown-unknown target and emits optimized assets plus a manifest recording the exact source commit, repository URL, and build time. That manifest makes the version embedded in this portfolio traceable to its independent source repository.
Controls
Choose Easy, Medium, Hard, or a custom arena to begin. The game supports Arrow keys and WASD on a keyboard, plus an on-screen directional pad for pointer and touch input. Pause and Restart controls remain available while playing.