I would like to know one (of the probably many) ways to code a (sort of) Prison-Architect
-ish electricity cable building system.
Here's a picture of what I mean:
- How can I detect that cables are connected?
- How can I detect if the block it's connected to is a power source?
And these 2 (above) will all be placed inside a dictionary when they are placed.
That dictionary does not yet have a key type, but the second type is a sprite
.
How should I do this?