Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.enter image description here

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.