A* pathfinder (bmx)

Miscellaneous Forums/Blitz Showcase/A* pathfinder (bmx)

Current and Diagonal space flags wouldn't fit in one byte anymore so the pathmap would be instantly twice the size and FindPath() would return Chr(0)...Chr(17). So i'ts possible that i'll do it :P

I'll add diagonal-space-support parameter to CreatePathmap() and rest of the engine would remain the same, except there are 12 more flags.

[EDIT]

Hmmm, 12 more flags wouldn't fit to even 2 bytes :(

I don't know how exactly bites shiftings works to use it with 3 bytes. There is no 3 byte variable type, so i'd need to poke the 3 ones with 3 different PokeByte()s.

Does the FLAG256 fit into 1 byte?
...
Const FLAG64:Int = $40
Const FLAG128:Int = $80

Const FLAG256:Int = $100
Const FLAG512:Int = $200
...