As you can see in the image, the grid and the tiles are misaligned (by exactly one pixel). The camera's X and Y position is exactly at (0, 0) when the screenshot was taken - the same place at which the first tile is drawn, so that makes sense. However, also the lines of the grid are coded to start at that (0, 0) location, but they seem to be starting at (1, 1). At first I just thought I did some little mistake when drawing the grid, however, the quarter circle that you can see in the top left corner in the picture is drawn at (-1, -1), so something is wrong... The view x and y coordinate is constantly clamped to 0 when the picture was taken, so it must be the right (0, 0) point (which makes sense since the tiles agree). But in a different script, executed just after drawing the tiles, I literally just say draw_circle(0, 0, 1, false) and it is one pixel misaligned! It is as if both codes have a different (0, 0) point... Can someone help?