For my latest game, I needed to implement an electricity/power grid system, but searching online I didn’t find any basic implementation or guides to follow, so I decided to figure out a solution by myself, and found that it works well enough that I think it’s worth sharing with others.
Code is available over at this repository under MIT license for anybody that wants to take a peek and copy whatever they need for their own future games:
Sorry if this is the wrong forum to post this, I didn’t seem to find one to share mainly fully implemented code here.
