https://github.com/tentone/retris
Tetris game written in rust w/ macroquad.
https://github.com/tentone/retris
tetris wasm
Last synced: about 2 months ago
JSON representation
Tetris game written in rust w/ macroquad.
- Host: GitHub
- URL: https://github.com/tentone/retris
- Owner: tentone
- License: mit
- Created: 2023-02-21T09:44:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-18T10:31:39.000Z (almost 3 years ago)
- Last Synced: 2025-03-01T04:44:27.972Z (11 months ago)
- Topics: tetris, wasm
- Language: Rust
- Homepage: https://tentone.github.io/retris/
- Size: 1.58 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Retris
- Tetris game written in rust with WASM support.
- Small project to experiment with rust programing language.
- Uses [macroquad](https://github.com/not-fl3/macroquad/) for input, graphics and sound.
- [Play the game from the browser](https://tentone.github.io/retris/build/).

## Install
- Install [Rust](https://www.rust-lang.org/tools/install) development tools.
- Clone the git repository and run `cargo run`
## Build WASM
- For WASM install target `rustup target install wasm32-unknown-unknown`
- Install the WASM server runner `cargo install wasm-server-runner`
- To launch code run `cargo run --target wasm32-unknown-unknown`
- Build WAS binary using `cargo build --release --target wasm32-unknown-unknown && wasm-bindgen --out-dir ./out/ --target web ./target/ `
## License
- Project distributed under MIT license available on the project repository.