Currently I am setting things up in GameLogic and StageMap classes so I can have the tiles entity shows up according to the specified XML file.
It brings me to the design issues with the data structure storing the tiles. There are several possibilities I can think of currently:
- Using array: use an array, and each tile keep track of it's position.
- Using double array: use a double array to represent the position of each tile.
- Using "Link": each tile has a pointer to the tile next to it.
No comments:
Post a Comment