Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Suggestion) Movement acceleration #80

Open
ghahramani opened this issue Mar 30, 2024 · 0 comments
Open

(Suggestion) Movement acceleration #80

ghahramani opened this issue Mar 30, 2024 · 0 comments

Comments

@ghahramani
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant