{"schema_version":1,"id":"koua29-bruce-snake","name":{"en":"Bruce Snake"},"summary":{"en":"Arcade Snake for Bruce firmware (LilyGO T-Embed CC1101): rotary control, color/speed levels, obstacles, persistent high scores. JS.","zh":"LilyGO T-Embed CC1101 上的贪吃蛇，代码是一段 JavaScript，交给 Bruce 固件的解释器执行。"},"purpose":"Snake arcade game","tier":"community","author":"koua29","repository":"https://github.com/koua29/bruce-snake","license":"MIT","shape":"square","scenes":["games"],"boards":[{"name":"LilyGo T-Embed","page":"https://esp32gallery.com/boards/lilygo-t-embed/"}],"native_board":{"en":"LilyGO T-Embed","page":"https://esp32gallery.com/boards/lilygo-t-embed/"},"motion":false,"hardware":{"en":"Supported hardware: LilyGo T-Embed. Confirm the exact board revision and pin map in the upstream repository.","zh":"支持硬件：LilyGo T-Embed。烧录前请在上游仓库核对板卡版本与引脚定义。"},"notes":{"en":"Snake written as a JavaScript script for the Bruce firmware's JS interpreter, sized for the LilyGO T-Embed CC1101 and its rotary encoder. Turning the knob steers left or right relative to the snake's heading, so it can never reverse into itself, clicking pauses, and ESC opens the menu. Every few apples the snake levels up, changing colour from an eight-colour palette and speeding up from 180 ms to 60 ms per step, with a LEVEL flash; walls start appearing at level 3. The top five scores persist in /snake_scores.json on the SD card, arcade style, asking for three initials on a new record. Installation is copying Snake.js to the card and picking it from JS Interpreter; no build step is involved, since the firmware itself comes from Bruce.","zh":"LilyGO T-Embed CC1101 上的贪吃蛇，代码是一段 JavaScript，交给 Bruce 固件的解释器执行。旋钮按蛇头朝向左右打方向，所以掉头撞自己这件事不会发生；按下就是暂停，ESC 回到菜单。吃够几个苹果升一级，蛇身从八色调色板换成另一种颜色，每步间隔由 180 毫秒缩到 60 毫秒，屏幕闪出 LEVEL n；墙从第 3 级开始出现。成绩取前五名，落盘到 SD 卡根目录的 /snake_scores.json，破纪录时照街机规矩敲三个字母。玩之前把 Snake.js 拷进卡里，从解释器菜单挑中即可，本体固件并不在里面。"},"evidence":{"en":"Reviewed from public README media at commit 3282c3259527 under MIT. Firmware was not executed.","zh":"项目画面来自提交 3282c3259527 的公开 README 媒体，许可证为 MIT；预览未执行固件。"},"readme_excerpts":[{"label":"Input","quote":"The rotary encoder does everything"},{"label":"Feature","quote":"the snake changes color (8-color palette) and gets faster (180 ms → 60 ms)"},{"label":"Feature","quote":"walls start appearing from level 3"},{"label":"Firmware","quote":"persistent top-5 saved to /snake_scores.json"},{"label":"Build","quote":"Copy Snake.js onto the SD card"}],"images":{"type":"gallery","primary":"https://esp32gallery.com/previews/koua29-bruce-snake/poster.jpg","poster":"https://esp32gallery.com/previews/koua29-bruce-snake/poster.jpg","sources":["https://esp32gallery.com/previews/koua29-bruce-snake/frames/view-001.jpg","https://esp32gallery.com/previews/koua29-bruce-snake/frames/view-002.jpg","https://esp32gallery.com/previews/koua29-bruce-snake/frames/view-003.jpg"]},"media_credit":{"status":"upstream-project-media","creator":"koua29","source":"https://github.com/koua29/bruce-snake/tree/3282c3259527e91fd19af9f76e4752f3a6cf5b97","note":{"en":"Screenshots decoded from the upstream README at a pinned commit. Repository code and firmware were not executed; the license texts are included in the preview package.","zh":"画面来自固定提交中的上游 README 截图。未执行仓库代码或固件；预览包内保留了许可证文本。"},"reviewed":"2026-10-20"},"preview":{"browser_playable":false,"kind":"media_gallery","label":{"en":"Project screenshots","zh":"项目截图"},"width":960,"height":720,"shape":"square","source_commit":"3282c3259527e91fd19af9f76e4752f3a6cf5b97"},"stars":1,"pushed_at":"2026-11-20T12:44:52Z","added_at":"2026-10-20T16:49:38+08:00","urls":{"html":"https://esp32gallery.com/projects/koua29-bruce-snake/","html_zh":"https://esp32gallery.com/zh/projects/koua29-bruce-snake/","json":"https://esp32gallery.com/data/catalog/projects/koua29-bruce-snake.json","markdown":"https://esp32gallery.com/data/catalog/projects/koua29-bruce-snake.md"}}
