A Snake-Game programmed in vanilla JS and styled in vanilla CSS.
- Added basic logic for snake movement.
- Added logic for Game over.
- Added swipe controls for mobile browsers.
- Added highscore feature.
- Stored the highscore in the local memory of the running device.
Bugs and suggestions.
- Highscore doesn’t save in the local memory. -> FIXED.
- Swipe controls don’t work in mobile browsers. -> FIXED.
- Address bar scrolls along with snake movement in chrome mobile. -> FIXED.
- Error in snake mechanics when length >= 20 or when length exceeds the row or column size.
- Apple spawns on the body of the snake.
- Gridlines should be made for better navigation while moving.