- Home /
Efficient Electrical Grid in Tiled Game
Heya. I'm wondering what the best way to make an electrical grid in a tiled game would be? (Using c#)
Essentially it's pretty Rimworld-esque in that each tile can have electrical wiring, except there will be up to 6 separate wires in each tile.
Basically I need an efficient way for them to determine if they are powered and their source of power in a way that, if you were to destroy a wire in the middle, it would quickly cut power to any wiring not still on the grid or restore it when a wire is replaced.
I don't need entire code, basically just an overview of what might work without causing a slowdown when wires get destroyed.
Sorry but this question is way to unspecific to be asked here. If you want to discuss game concepts you should head over to the forums. UnityAnswers is for concrete and detailed questions.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Array not updating in inspector 0 Answers
MergeSort function acting strange 0 Answers
How to add an array to monobehaviour 1 Answer