I am trying to develope a game similar to Pacman. I have drawn the maze using an arry and a single image of a brick. Now the problem is how do i move the pacman in the maze while preventing it from passing through the brick wall.
People help me out.