⚠ So far, only for desktop gameplay (⚆_⚆)
You can play here: https://buninman.github.io/Snake/
Code analysis with detailed explanations here: https://blog.buninman.ru/snake (ru)
- New design of the playing field
- New high score counter
- Added the ability to change the speed of the snake. PgUp, PgDwn and 1-8 keys
- Created the GodMode, the snake can't eat itself. G button
- Snake Control Hint
- Now you can't turn 180° and bite yourself. The snake doesn't die from accidental pressing
⚠ To work, you need an http-server. I used Live Server Extension in Visual Studio Code