jadijadi / riverraidrust

A text based river raid clone in Rust; streamed
GNU General Public License v3.0
94 stars 28 forks source link

(Suggestion) Movement acceleration #80

Open ghahramani opened 7 months ago

ghahramani commented 7 months ago

Currently, moving the player quickly is challenging.

To achieve this, you must either rapidly press the arrow keys to move the player in a particular direction, or if you hold the arrow keys down, the player starts moving with occasional lags, advancing pixel by pixel, which renders the game unplayable.

My suggestion is to introduce acceleration to the player's movement. When holding down an arrow key, the player's speed should increase gradually, depending on the duration of the key press. Releasing the key should reset the acceleration to zero.

This adjustment would allow players to evade enemies and navigate around obstacles more smoothly