https://github.com/raoulluque/typing-defense
A typing defense game written in rust using the bevy game engine
https://github.com/raoulluque/typing-defense
bevy game rust rust-lang wasm
Last synced: 6 months ago
JSON representation
A typing defense game written in rust using the bevy game engine
- Host: GitHub
- URL: https://github.com/raoulluque/typing-defense
- Owner: RaoulLuque
- Created: 2024-02-16T15:10:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-03T22:13:36.000Z (about 1 year ago)
- Last Synced: 2024-05-16T04:19:06.454Z (about 1 year ago)
- Topics: bevy, game, rust, rust-lang, wasm
- Language: Rust
- Homepage: https://raoulluque.github.io/typing-defense/
- Size: 17.9 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Typing-Defense

Is a tower defense game in which one has to type in order to defeat monsters that try to breach the castle. The game is written using the [bevy game engine](https://bevyengine.org/) in the [Rust Programming Language](https://www.rust-lang.org/). It is more of a fun project in order to get an insight into game development, the bevy game engine, WASM and further understanding Rust.
## Gameplay
The game is played using the keyboard. Enemies (in form of animals) approach a castle at the center of the screen and the player's task is to type the words above those animals in order to prevent them from reaching said castle.
## Starting the game
To start the game check the bevy setup [page](https://bevyengine.org/learn/quick-start/getting-started/setup/) for dependencies needed for compiling bevy projects locally. Then it's just running``` cargo run ```
In the project directory. Also the game can be played on the [webpage](https://raoulluque.github.io/typing-defense/).
## Score
The score is increased by ``` current wpm * ((streak counter / 50) + 1) * ((round number / 10) + 1) * difficulty multiplier ``` every time a word is finished. Here the difficulty multiplier is 1 for easy, 2 for medium and 3 for hard. Decimals are just rounded down since the score is an integer number.## Credits
The main framework that's used is of course [Bevy](https://bevyengine.org/) which is written in the [Rust Programming Language](https://www.rust-lang.org/). The assets are from asset packs provided by [Pixel Frog on Itch.io](https://pixelfrog-assets.itch.io/). Specifically the [Tiny Swords](https://pixelfrog-assets.itch.io/tiny-swords) and [Pixel Adventures](https://pixelfrog-assets.itch.io/pixel-adventure-1) asset packs.