asteroid-logistics v0.8
MouseManager and multi-selection
Created a MouseManager to centralize all mouse handling - selection, panning, zooming, and clicking are now in one place. Moved path interaction into it as well. Right-click on an asteroid now moves selected ships there.
Did a bunch of renaming for clarity: SavedPairsManager became SavedRoutes, GameViewport became GameManager. Replaced all hardcoded colors with the open-color palette for consistency.
Fixed several bugs: multi-ship movement on right-click, ship snap-back at end of path, and clamped zoom/pan to world bounds so you can’t scroll into the void.
Refactored Asteroid into its own directory, extracted path animation and geometry helpers, and added jscpd for detecting duplicate code. Made ship pathfinding async with a cached graph for better performance.
More asteroid-logistics
A procedually generated asteroid mining and logistics simulation game built with PixiJS · play asteroid-logistics · devlog