X and Y are the person's coordinates on-screen, and Z and [theta] are the coordinates of the top-left corner of where I'm displaying the map from.
..MOVING
If getKey(2)
If X>1
X--
Else
If Z>0
Z--
Else
X-(X!=0)->X
End
End
ElseIf getKey(3)
If X<10
X++
Else
If Z<(W-12
Z++
Else
X+(X!=11)->X
End
End
ElseIf getKey(1)
If Y<6
Y++
Else
If [theta]<(H-8
[theta]++
Else
Y+(Y!=7)->Y
End
End
ElseIf getKey(4)
If Y>0
Y--
Else
If [theta]>0
[theta]--
Else
Y-(Y!=0)->Y
End
End
End