How ashwath-0007/esp32-snake-game works
This is an ESP32 handheld Snake game. The documented user flow is button input through a menu/play/game-over state machine, with gameplay shown on an OLED and controls available to retry or return to the menu. Supporting capabilities include debounced input, a non-blocking millis()-based loop, score-driven difficulty, buzzer feedback, and persistent high scores. Only the README is available, so implementation paths and source-level call relationships cannot be verified; links below reflect documented behavior.
Components 14
Controls
- Debounced Input
Game Runtime
- Game Loop
- Menu / Play / Over
- Snake Gameplay
- Score Difficulty
- High Score Logic
Display, Sound & Storage
- Screen Output
- Sound Feedback
- Flash Persistence
Other components
- Player
- Physical Buttons
- SSD1306 OLED
- Buzzer
- Preferences / NVS
Connections 13
- Player → Physical Buttons: presses
README.md - Physical Buttons → Debounced Input: provides input
README.md - Debounced Input → Menu / Play / Over: controls
README.md - Game Loop → Menu / Play / Over: runs
README.md - Menu / Play / Over → Snake Gameplay: enters play
README.md - Menu / Play / Over → Screen Output: shows screens
README.md - Snake Gameplay → Score Difficulty: score increases
README.md - Snake Gameplay → Sound Feedback: triggers cues
README.md - High Score Logic → Sound Feedback: signals records
README.md - High Score Logic → Flash Persistence: saves new records
README.md - Screen Output → SSD1306 OLED: renders on
README.md - Sound Feedback → Buzzer: plays on
README.md - Flash Persistence → Preferences / NVS: stores in
README.md