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

https://github.com/osoco/15years-retro-game

A simple 2D web game built with Rust and WebAssembly to celebrate the OSOCO's 15th anniversary.
https://github.com/osoco/15years-retro-game

game rust webassembly

Last synced: about 2 months ago
JSON representation

A simple 2D web game built with Rust and WebAssembly to celebrate the OSOCO's 15th anniversary.

Awesome Lists containing this project

README

          

# OSOCO Xmas 2018 Game

A simple 2D game to celebrate the OSOCO's 15th anniversary.

The game is built in Rust and compiled to WebAssembly.

It's a forked version of the SergiusIW's [chirperjax game](https://github.com/SergiusIW/chirperjax) using the
[Gate](https://crates.io/crates/gate) and [Collider](https://crates.io/crates/collider) crates.

## Play Online

You can play online to this game at the following URL: https://osoco.github.io/15years-retro-game.

## Building

To be able to build the game it's required a Rust environment, so you should install Rust:

```
curl https://sh.rustup.rs -sSf | sh
```

Once you have Rust installed you can proceed to build the project with the following script:

```
$ ./build.sh
```

The previous script will add the `wasm32-unknown-unknown` Rust compiler target and build the game. Also
it will generate an `html` directory with an `index.html` file and other assets.

Finally, try to open the `html/index.html` file in your web browser.

## License

This game is licensed by OSOCO under the
[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html).

The assets, found in the `src_assets/` directory, are licensed under the
[Creative Commons Attribution-NonCommercial-ShareAlike 4.0 License](https://creativecommons.org/licenses/by-nc-sa/4.0/).

The background music is "Boss Fight" by Patric de Arteaga (https://patrickdearteaga.com/chiptune-8-bit-retro/).