Skip to content

Keep SnakeMotionController.reset start cell and no-arg form - #8

Open
kvnloo wants to merge 1 commit into
xt4d:mainfrom
kvnloo:fix/snakemotion-reset-start
Open

Keep SnakeMotionController.reset start cell and no-arg form#8
kvnloo wants to merge 1 commit into
xt4d:mainfrom
kvnloo:fix/snakemotion-reset-start

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 2, 2026

Copy link
Copy Markdown

reset({ startCell }) never stored that cell on the controller, so a later reset() rebuilt from the constructor origin. reset() with no object also threw on destructuring.

Persist startCell / direction / length, and default the options bag.

Pin: node --experimental-default-type=module --test gameblocks/modules/actor-motion/SnakeMotionController.test.js

SHA: e8c9cea6dc8b9175f5e9e2de11979b91240bdaa8

No origin issue. Origin target: xt4d/GameBlocks (do not open until Linear HITL is Done).

reset({ startCell }) never stored that cell, so a later reset() rebuilt
from the constructor origin. Also default the options bag so reset()
does not throw.
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.

1 participant