Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TanTanDev/DigEscape
A game written in Rust, compilable to webbassembly
https://github.com/TanTanDev/DigEscape
Last synced: 3 months ago
JSON representation
A game written in Rust, compilable to webbassembly
- Host: GitHub
- URL: https://github.com/TanTanDev/DigEscape
- Owner: TanTanDev
- License: apache-2.0
- Created: 2020-05-06T09:01:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-01T16:52:58.000Z (over 3 years ago)
- Last Synced: 2024-05-15T14:38:43.013Z (6 months ago)
- Language: Rust
- Homepage:
- Size: 377 KB
- Stars: 89
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-quads - Dig Escape - simple puzzle game about digging. (Games / Games: On top of good-web-game)
README
# Dig Escape
Dig Escape is a simple puzzle game written in [Rust](https://www.rust-lang.org/)The game is playable here: https://tantandev.itch.io/digescape
### Background
What started out as a small project with the goal of learning [Rust](https://www.rust-lang.org/)
, ended up being released playable on the [web!](https://tantandev.itch.io/digescape)The progress was recorded on my [Youtube Channel](https://www.youtube.com/channel/UChl_NKOs1qqh_x7yJfaDpDw)
### Building
before you can run using cargo,
The game assets need to be zipped as a .tar and put into the src/ folderTo automatically zip the /resources there is a script in utils/wasm/zip_resources.sh you can run using git bash:
```
# first cd into the utils/wasm/ folder
./zip_resources.sh
```
Then we can use cargo to run the project on windows
```bash
cargo run
```
## WebAssembly
There is a script in utils/wasm/build.sh you can run using git bash.
```bash
./build.sh
```
This script compiles the program with cargo, takes the generated dig_escape.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)### Dependencies
Forked Game framework [Good-web-game](https://github.com/TanTanDev/good-web-game)
Note: I'm using the audio branch which is a work in progress