Repository navigation
Keep LoopBot on its tile when a vent scorches it - #88
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)dur) when it moved, and always rattles fromto.sx, so it ends on its tile whatever the timing.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
tsc -bclean, board/fx tests pass.Generated by Claude Code