devsargam / SnakeGame

A simple snake game made with vanilla javascript.
https://snakeinjs.netlify.app/
MIT License
27 stars 21 forks source link

2 Direction input can be bufferend in the same frame #23

Closed ProtoxiDe22 closed 1 year ago

ProtoxiDe22 commented 1 year ago

As per title, during one move() and another, you can change the direction 2 times, this enables you to do a 180° and dying instantly. (example: you're going right, and during the same frame you press first up and then left, the snake will try to move left onto itself and die) this is expecially easy to see in easy mode