An open API service indexing awesome lists of open source software.

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.

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/).

![alt tag](https://raw.githubusercontent.com/tentone/retris/master/readme/video.gif)

## 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.