04-30-2012, 09:19 PM
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.
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.