Mapping a branching tile path
问题 I'm working on a game (and have asked a couple questions on it already), and now I have another question to ask of you guys. The level format in this game is set up as a tilemap of Uint16's (I'm using SDL) which are indices into an array of tilemapData structs. One of the bits of the tilemapData struct is the isConductive bit/boolean. The use of this bit is basically to create paths that connect various objects together into a single "powerNet." I've got some code below on the current method