NodotProject / nodot

A video game node library for Godot 4
https://nodotproject.github.io/nodot/
MIT License
329 stars 11 forks source link

Fall damage #112

Closed krazyjakee closed 1 year ago

krazyjakee commented 1 year ago

Adds fall damage to the game. When the character falls from a certain height, they will take damage proportional to the velocity at which they hit the ground. This will add a new level of realism to the game and make it more challenging for players.

The fall damage is implemented as a new signal, "fall_damage", which is emitted when the character hits the ground at a high velocity. The amount of damage inflicted is determined by the character's velocity and a configurable fall damage multiplier. A minimum fall damage can be set as well to prevent players from taking damage when falling from small heights.

This change will improve the gameplay experience by making it more challenging and realistic. It will also add a new level of strategy to the game, as players will need to be careful when jumping from high places to avoid taking damage.

Closes #66