Replaces the old directional logic-circuit engine (wires, AND/OR/XOR gates, switches, detectors) with a simpler energy-node network. #3

Merged
geekiot merged 2 commits from feature/signal-strength into main 2026-06-21 05:30:16 +05:00
Owner
  • Removed CircuitSolver, PowerNetwork, wire/gate sprites and obsolete tests.
  • Added EnergySolver that builds connected networks from Sources and Nodes.
  • Energy from all Sources in a network is summed and shared.
  • Turrets and Factories are powered only if network production meets total demand; otherwise all consumers in the network shut down.
  • Updated energy costs: Turret 100, Factory 75.
  • Added hover tooltip showing network production, consumption and status.
  • Fixed enemy flow-field fallback when all Sources are destroyed so enemies can still reach the exit.
  • Removed old logic-gate sprites and updated tests.
- Removed `CircuitSolver`, `PowerNetwork`, wire/gate sprites and obsolete tests. - Added `EnergySolver` that builds connected networks from Sources and Nodes. - Energy from all Sources in a network is summed and shared. - Turrets and Factories are powered only if network production meets total demand; otherwise all consumers in the network shut down. - Updated energy costs: Turret 100, Factory 75. - Added hover tooltip showing network production, consumption and status. - Fixed enemy flow-field fallback when all Sources are destroyed so enemies can still reach the exit. - Removed old logic-gate sprites and updated tests.
feat(energy): switch to Mindustry-style network and add hover info
All checks were successful
CI / test (pull_request) Successful in 4m13s
CI / test (push) Successful in 2m42s
75a0353d93
Sign in to join this conversation.
No reviewers
No labels
Docs
Feat
UI
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
geekiot/brainfunc-game!3
No description provided.