Saturday, October 10, 2009

Representing Maps

I'm considering how best to represent and store maps. At the moment, a simple text file with distinct rows and columns seems to be the obvious choice. Each 'element' in the text file will be an integer that represents a 'tile' in the game. Every tile must either be 'wall' or 'tunnel', where the latter can hold pacman, ghost, fruit etc.

To be updated.

No comments:

Post a Comment