html5-snake
html5-snake copied to clipboard
fix input input conflict
this was shown in a course i'm taking as an example, noticed a bug where if two inputs were done on the same frame it would take the latest and potentially step over the safeguard to stop the snake from eating itself.
no idea if this will ever be seen by another living person but i managed to make a bandaid fix