Skip to content

Keep LoopBot on its tile when a vent scorches it - #88

Merged
kevsaj merged 1 commit into
mainfrom
fix-scorch-bot-position
Nov 25, 2026
Merged

kevsaj merged 1 commit into
mainfrom
fix-scorch-bot-position

Conversation

@kevsaj

@kevsaj kevsaj commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Requested by Kevin · project thread

What was wrong

On Heatwave Floor 41 (Sun Deck), getting scorched by a vent drew LoopBot half sunk into the wall in front, beside the fire instead of in it. Rotating the view put it back.

It wasn't depth sorting. A scorch is a crash on arrival, so the crash rattle (x: to.sx + 3, yoyo) started at the same moment as the walk. Phaser took the rattle's start value from where the walk began and yoyoed back there, so LoopBot ended with the old tile's x and the new tile's y: off the grid. Rotating redraws the bot at its tile, which is why that fixed it.

Fix (2 lines in BoardScene.ts)

  • LoopBot's rattle now waits until it has landed (dur) when it moved, and always rattles from to.sx, so it ends on its tile whatever the timing.
  • Echo's rattle (Twin Spires) gets the same explicit from: to.sx.

Blocked forward/jump bumps (every other crash) behave exactly as before. Vents are the only crash where the bot moves and then fails, so this covers every tower, the daily, Overflow and maker floors that use vents.

Checked

  • Floor 41 scorch in all 4 view rotations, at 1x and 2x: bot ends inside the fire.
  • A normal wall bump: unchanged.
  • tsc -b clean, board/fx tests pass.

Generated by Claude Code

A crash on arrival (Heatwave vents) started the crash rattle at the same
moment as the move. The rattle tweened x from where the move began and
yoyoed back there, so LoopBot ended with the old tile's x and the new
tile's y: off the grid and half sunk behind the floor in front. Rotating
the view redrew it in the right place.

The rattle now waits until LoopBot has landed and always rattles round
the tile it is on. Echo's rattle gets the same explicit start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HnC1d26jJF4GbWuuLTxckq
@kevsaj kevsaj self-assigned this Nov 25, 2026
@kevsaj
kevsaj merged commit 863ef67 into main Nov 25, 2026
3 checks passed
@kevsaj
kevsaj deleted the fix-scorch-bot-position branch November 25, 2026 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants