i am trying to make a pacman game in c# using GDI+, i have done some basic work and i have previously replicated games like copter-it and minesweeper. but i am confused about how do i implement the map in pacman, i mean which datastructure to use, so i can use it for moving AI controlled objects and check collisions with walls. i thought of a 2d array of ints but that didnt make sense to me. looking for some help. thanks.
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
|
Why not use a simple 2d array of chars, and use some text editor as your level editor? Something like this:
|
|||||
|
|
Perhaps a graph can be used. I imagine the vertices would represent intersections or corners in the maze and the edges would be the connections between the intersections. |
|||
|
|

