https://github.com/manevillef/tower_defense_tutorial
Source code for the bevy tower defense tutorial
https://github.com/manevillef/tower_defense_tutorial
Last synced: 3 months ago
JSON representation
Source code for the bevy tower defense tutorial
- Host: GitHub
- URL: https://github.com/manevillef/tower_defense_tutorial
- Owner: ManevilleF
- License: apache-2.0
- Created: 2023-05-16T12:10:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T15:21:31.000Z (over 2 years ago)
- Last Synced: 2025-07-05T23:06:15.224Z (3 months ago)
- Language: Rust
- Size: 6.67 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tower defense tutorial
[Read The tutorial][TutorialUrl]
[Live Demo][DemoUrl]
## Run
### Native run
use `cargo run --release` to launch the app in native. Use the `debug` feature for debug inspector.
### WASM build
* Native: `cargo serve --release` and open `http://127.0.0.1:1334`
* Browser: `./build_wasm.sh` and open `docs/wasm/index.html` in a browser> Some browser might prevent local files to be loaded, in firefox setting `security.fileuri.strict_origin_policy` might be needed
## Play
### Board interaction
Use the *left* mouse button to toggle tiles, and the *right* mouse button to place towers.
You can also regenerate the board by pressing `R`.
[DemoUrl]: https://manevillef.github.io/tower_defense_tutorial/wasm
[TutorialUrl]: https://manevillef.github.io/tower_defense_tutorial/book