A retro snake game styled like an old brick-game phone on mobile, with a larger desktop command deck.
- HTML, CSS, and JavaScript are split into separate files.
- Mobile-first handheld brick-game console UI.
- Larger desktop layout with live score, best score, status, length, and food counters.
- Dark and light theme toggle with saved preference.
- Retro sound effects with a saved mute toggle.
- Keyboard controls plus on-screen direction buttons.
- Difficulty and snake color selectors.
| Action | Keyboard | On-screen |
|---|---|---|
| Move up | W or Arrow Up |
Up button |
| Move down | S or Arrow Down |
Down button |
| Move left | A or Arrow Left |
Left button |
| Move right | D or Arrow Right |
Right button |
snake-game/
├── index.html
├── styles.css
├── script.js
└── README.md
Open index.html in a modern browser to play.