Building should animate only why doing something #117

Closed
opened 2026-08-23 12:47:22 +00:00 by metaheavens · 1 comment
Owner

The ship crafter and the ship lab should only animate when something is being crafted in them

The ship crafter and the ship lab should only animate when something is being crafted in them
Author
Owner

Done in 39ad050.

The CLOCK stops rather than the drawing - every moving element is a NeonPiece positioned from that clock, so a frozen clock leaves the cranes parked, where stopping the animation call would leave them wherever the last frame put them.

Worth recording: reading GameState by the bare identifier fails to COMPILE these scripts. They are reached through a BuildingDefinition's visual_scene, which is preloaded while the catalog is still loading - before the autoload is in the global class table. They use a tree lookup instead.

Done in 39ad050. The CLOCK stops rather than the drawing - every moving element is a NeonPiece positioned from that clock, so a frozen clock leaves the cranes parked, where stopping the animation call would leave them wherever the last frame put them. Worth recording: reading GameState by the bare identifier fails to COMPILE these scripts. They are reached through a BuildingDefinition's visual_scene, which is preloaded while the catalog is still loading - before the autoload is in the global class table. They use a tree lookup instead.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
metaheavens/spaceship#117
No description provided.