Here is what Im having trouble at : 1) I'm trying to figure out how to let each object know its connected neighbors in this Network-like map (image below ) ,I don't know how to do it right and couldn't come up with an efficient way to do it since the map will be changing in each level, each object will be allowed to move to its connected neighbor's position only and obviously it will have to know its neighbors again after each new position, 2) the map you see isn't exactly computed, its just a background for testing until I solve my problem ( 1 ), I'm having trouble figuring out the algorithm to create a network-like map similar to the one below. any help will be greatly appreciated.
|
|
|||
|
|