RaoulLuque / typing-defense

A typing defense game written in rust using the bevy game engine
https://raoulluque.github.io/typing-defense/
3 stars 1 forks source link
bevy game rust rust-lang wasm

Typing-Defense

Gameplay Screenshot

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 in the Rust Programming Language. 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 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.

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 which is written in the Rust Programming Language. The assets are from asset packs provided by Pixel Frog on Itch.io. Specifically the Tiny Swords and Pixel Adventures asset packs.