What is happening?
In the Snake game, selecting Easy, Medium, or Hard changes the score multiplier, but the snake movement speed does not really change.
Why is this a problem?
Users expect Hard mode to move faster and Easy mode to move slower. Right now, difficulty mostly affects points, so the gameplay feels almost the same.
How to fix it:
Use the speed value inside the game loop. The snake should move only after enough time has passed based on the selected difficulty.
Steps to Reproduce:
- Open the Snake game.
- Select Easy and start the game.
- Restart and select Hard.
- Notice that the snake speed does not meaningfully change.
Files affected:
web-app/js/projects/snake.js
What is happening?
In the Snake game, selecting Easy, Medium, or Hard changes the score multiplier, but the snake movement speed does not really change.
Why is this a problem?
Users expect Hard mode to move faster and Easy mode to move slower. Right now, difficulty mostly affects points, so the gameplay feels almost the same.
How to fix it:
Use the
speedvalue inside the game loop. The snake should move only after enough time has passed based on the selected difficulty.Steps to Reproduce:
Files affected:
web-app/js/projects/snake.js