What's a good way to store a series of interconnected pipe and tank objects?
- by mars
I am working on a puzzle game with a 6 by 6 grid of storage tanks that are connected to up to 4 tanks adjacent to them via pipes. The gameplay is concerned with combining what's in a tank with an adjacent tank via the pipe than interconnects them.
Right now I store the tanks in a 6x6 array, vertical pipes in a 5x6 array, and horizontal pipes in a…