Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pathfinding
#3
oh yeah I fixed that just now,
I thought the screen coords went from 1 to 24 but they go from 0 to 23 and 0 to 31

its basically a* pathfinding, the squarestate array takes up a lot of RAM as do squareparentx and squareparenty, but they are necessary.

The path from start to destination is stored in pathtowalkx and pathtowalky

the C's and O's stand for open square and closed square which are A* jargon words, nothing anyone needs to worry about.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)