Maps make the world more fun
Saturday, January 26th, 2008Having noticed the many tasks that I still needed to implement, I quickly established a short term game plan for getting through these next set of obstacles. I knew that map map creation would need to be done at some point, and I also knew that it would help stimulate my artist to start cranking out some useful tiles. Hoping this would be a relatively simple process, I came up with a list of necessary variables for each tile, and started by creating a small script file that could be read into the game using a small scripting engine I wrote a while back. This is the same scripting engine I use to save and load game variables and the picture file. Using this very small script file, I talked my designer into creating a map without the aid of a fancy designer, making all changes to the raw data. While he came up with a small map, I created a Tile class and wrote a function to read in the tile data out of the newly created map file. The file loaded in beautifully, allowing me to see the tiles that he had arranged. After a few preliminary modifications to the Tile class that will later help with the path finding, I added a few script variables to the game file to auto load the default map file and called this task completed.