Create 2D game map with images

dx and dy is the position of the person when he moves?