The first thing we need to decide is how big we want our game window. I've already decided that I don't want the window to be full screen. I want the window to be just big enough to hold the Pacman mazes with some extra room at the top and bottom for other information. In order to figure this out I break the window down into a grid. The image on the right should show you what I mean. I've divided the window into grid units. So the window on the right is 28 grids units wide and 36 grid units tall. This is the ratio that I want for my Pacman game. How big is each unit? That depends on how big we want the window. If each grid unit is 4x4 pixels, then the entire window would be 112x144 pixels. If each grid unit is 64x64 pixels, then the entire window would be 1792x2304 pixels. You can decide how big you want your grid units, but I'm going to make my grid units 16x16 pixels. That means my window has to be 448x512 pixels.
Tile Grid
