Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TanTanDev/rusty_demon_attack
https://github.com/TanTanDev/rusty_demon_attack
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/TanTanDev/rusty_demon_attack
- Owner: TanTanDev
- License: apache-2.0
- Created: 2021-03-09T13:58:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-14T12:40:24.000Z (almost 3 years ago)
- Last Synced: 2024-05-15T14:20:38.279Z (6 months ago)
- Language: Rust
- Size: 482 KB
- Stars: 63
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-quads - Rusty Demon Attack - game inspired by the classic atari game: demon attack. (Games / Games: On top of macroquad)
README
# rusty_demon_attack
A game inspired by the classic atari game: demon attackYou can play the game in the web!
https://tantandev.itch.io/rusty-demons-attack![](about/game_preview.gif)
Written using Rust and a game framework called macroquad: https://github.com/not-fl3/macroquad
I documented the creation of this game on my Youtube channel: https://youtu.be/Ymq35SIv9Gg
# Building to WebAssembly
Add build target for webassembly
```bash
rustup target add wasm32-unknown-unknown
```
There is a script in utils/wasm/build.sh.
```bash
./build.sh
```
This script compiles the program with cargo, takes the generated rusty_demon_attack.wasm file, and the files in utils/wasm/ and
moves them into a new folder called static/.
To run it in the browser I'm, using [basic-http-server](https://crates.io/crates/basic-http-server).
```bash
cargo install basic-http-server
```
start the server by using the correct path
```bash
basic-http-server . # starts server based on current directory
basic-http-server static # start server in the folder /static
```### External assets with license
in this project I'm using Kenny assets fonts which is using:
License: (Creative Commons Zero, CC0)