
GYRO SNAKE 陀螺仪贪吃蛇 - reTerminal Sticky - Atul-8 - CodeCraft Hub
Maker application on CodeCraft Hub. 陀螺仪贪吃蛇:支持持机校准、实时倾斜球、按键点按直接归零、最高分掉电保存。 Gyro Snake: Support holding machine calibration, real-time tilt ball, press the key to return to zero directly, and save the highest score by power failure.
Documentation
GYRO SNAKE is a snake game you steer by tilting the board. It runs entirely on the reTerminal Sticky: the 480x800 e-paper shows the board, the built-in IMU reads your tilt, and the buzzer plays the sounds. The high score is saved on the device.
GYRO SNAKE 是一个靠倾斜机身来控制方向的贪吃蛇游戏,完整运行在 reTerminal Sticky 上:480×800 电子墨水屏显示棋盘,内置 IMU 读取倾斜,蜂鸣器播放音效,最高分保存在设备上。
The live tilt ball in the bottom-right corner shows your current tilt against an 8-degree deadzone, and the heavy tick marks the direction the game currently steers. Tilting within plus/minus 45 degrees of any side turns the snake - diagonals follow the dominant side, and you never need to re-center between turns.
右下角的实时倾斜球显示当前倾斜(内圈为 8° 死区),粗刻度指向当前判定方向。与任意方向偏差 ±45° 以内即判定为该方向,斜倾取主方向,转向之间无需回中。
Deploy steps
- Flash the firmware 刷入固件
Connect the reTerminal Sticky over USB-C and click Flash below. The image is the full flash (bootloader, partition table and game), so the board reboots straight into the title screen.
用 USB-C 连接 reTerminal Sticky,点击下方 Flash。镜像为完整刷写(bootloader + 分区表 + 游戏),完成后自动重启进入标题界面。
Flash firmware to your device (in-app tool on CodeCraft Hub).
- Calibrate and steer 校准并开始
Hold the board the way you want to play and tap the screen (or press the AI/OK key). Every start runs a 4-second calibration - keep still during KEEP YOUR PLAY POSE - then you get a 3-second ready window before the snake moves. Tilt the board to steer; eat apples to grow; walls and your own tail end the run.
按你想玩的握姿持机,点击屏幕(或按 AI/OK 键)开始。每次开局有 4 秒校准(KEEP YOUR PLAY POSE 期间保持静止),随后 3 秒准备期蛇不动,可以先预倾方向。倾斜机身控制方向;吃苹果变长;撞墙或撞到自己结束。
Changed your grip mid-game? Tap the tilt ball in the bottom-right corner (or press the DOWN side key) to make the current pose the new zero point. Tap the screen or press OK to pause and resume; press UP while paused to recalibrate from scratch.
中途换了握姿?点击右下角倾斜球(或按 DOWN 键)把当前姿态设为新零点。点屏幕或按 OK 暂停/继续;暂停时按 UP 重新校准。