This is an attempt to mimic Nokia Snake game while learning Rust, so suggestions are more than welcome! It's using Salvo as backend which sends game state data via websocket, so yes it's designed to be multiplayer. Front-end is mainly done with wasm.
docker-compose build && docker-compose up
Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install wasm-bindgen-cli
cargo install wasm-bindgen-cli
rustup target add wasm32-unknown-unknown
./build.sh
cargo run -p snake-web
Press q
to quit
cargo run -p snake-termion
- Trace backend and front-end calls with Open Telemetry
- Experiment WebRTC in order to reduce latency
- Add unit and integration tests
- Run it on a embedded system with restricted memory and processing power
- Large world where the snake can navigate to stress test chosen data structures
- Other game elements such as walls and wormholes
- Graceful shutdown