General Moving
Ox
Oy
Ox+1
Oy
Ox
Oy+1
Ox+1
Oy+1
Nx
Ny
Nx+1
Ny
Nx
Ny+1
Nx+1
Ny+1
O: Old or original position
N: New Position
D: Direction of move
Moving:
Nx = Ox + Dx
Ny = Oy + Dy
Shown example:
Dx = 1
Dy = 1
Ox
Oy
Ox+1
Oy
Ox
Oy+1
Ox+1
Oy+1
Nx
Ny
Nx+1
Ny
Nx
Ny+1
Nx+1
Ny+1
D
D
x
y
Shown example:
Dx = -1
Dy = 0
Ox
Oy
Ox+1
Oy
Ox
Oy+1
Ox+1
Oy+1
Nx
Ny
Nx+1
Ny
Nx
Ny+1
Nx+1
Ny+1
D
The x,y grid shown below represents one level in the 3-dimensional map (battlescape)
You can safely ignore in what direction the x and y axes point because in the game itself it depends on the point of view where they really are. I'll try to describe all things with that in mind. All movements are calculated for a distance of 1 field.
General moving information