Sunday, June 17, 2007

Map Maker






I love tiling game in flash, because it's smooth scrolling however i use some big bitmap. The main problem is how to develop the array for the tiling game. i still remember when i build the sim taxi game, i write all the code in notepad, and it take more than 2 days, only for build the map.




it's very difficult to build the map. So that why i need to create some tool that make me easie to generate the code. Then i build map maker.




It simple to you, just decide what size of the map will be. then you will see some property panel that shown everything that you need like a preview of walkable tile, unwalkable tile, veiw code, map coordinate and save map. Just click the screen and it will change the map. After finish editing click the view code button and you will get the code. Copy the code and paste it at flash as an map array. Powerfull and simple.


This program will generate 3 dimensional array that compatible with the tonypa tiling game tutorial or any tiling game engine. The array will shhown like this myMap =[[1,"t001"],[0,"t003"......]] 1 mean unwalkable tile (and 0 for walkable tile) and "t001"is the label of the movieclip "tile". Check the tonypa tutorial at http://www.tonypa.pri.ee/tbw/



No comments: