IF tx AND 1 AND ty AND 1 THEN k = 1 ' dang bit math
It’s not a complex bit to figure out. ;)
In this case, IF the first bit of tx is set, AND the first bit of ty is set, THEN k = 1.
In this case, it seems to me that it’s basically a case of:
IF tx is odd AND ty is odd THEN k = 1.
Maze(1,1) = 1
Maze(1,3) = 1
Maze(1,5) = 1
ect...