feat(classic-games): 新增 Mini BurgerTime 小游戏#771
Conversation
Made-with: Cursor
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 29722b558b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| enemy.x += Math.sign(player.x - enemy.x) * enemy.speed * 0.65 * dt; | ||
| } | ||
| enemy.x = clamp(enemy.x, laneLeft, laneRight); | ||
| enemy.y = nearestPlatform(enemy.y); |
There was a problem hiding this comment.
Let enemies retain progress while climbing
When an enemy decides to climb, the vertical move is only a few pixels per frame because dt is capped at 0.04, and this line immediately snaps that partial progress back to the nearest platform. With 88px between platforms, the enemy never accumulates enough vertical movement to change lanes, so chasers cannot actually use ladders to pursue the player across platforms. Keep a climbing state or avoid snapping enemy.y while a climb is in progress.
Useful? React with 👍 / 👎.
Summary
project/classic-games/20260703-1944-burgertime.htmlproject/classic-games/文件名;BurgerTime 未与已使用玩法重复。Validation
resetGame、gameLoop、updateBurgerTime、updateIngredients、renderBurgerTime。INLINE_JS_PARSE=pass。git diff --check -- project/classic-games/20260703-1944-burgertime.html,无空白错误。Audit
OVERALL_EXIT=0AUDIT_DIR=/tmp/git-commit-audit-20260703-194708-67358Remote
mainSHA:f5ba84844397901a59c6cd2c18f930a09c807230codex/classic-game-20260703-1944-burgertime29722b558bd9309e5164bbebce8bd43376d32b04