We are ready with our XNA Tile Map Editor. Rather we would call it a Map Editor. Because in this updated edition you can also have tiles along with free images. So, double bonanza in single price.
And if you ask us the problems we have face while development, we would say they too many to count.
There were issues while making tiles and saving them but free images were fairly easy. There were a few problems in mouse handling, so we had to provide a complete keyboard control to set layer depth, rotation ,etc. (Which you can’t see in video).
Another crazy problem which came up was , whenever you try to move mouse to scroll window, coordination of mouse and images got messed up and they would fix their place anywhere in screen.
We have checked many videos on you tube and have gone through many tutorials and then came up with a detailed list of items to be added in the map editor. We have come up with our unique way of creating map editor which is useful for both Platformer games and RPG games.
The level editor is a major part of our game.
One of our programmers was working on the Level Editor for over a month. He went through the online tutorials about tile map and had a look at the videos of the Tile Map Editor on YouTube. The Level Editor was finally ready last week and with some more additions and changes it was complete this week.
The programmer realized that whole images of maps cannot be fully loaded at the same time and so the game will need a tile map editor. He initiated the work by reading tutorials from http://www.ziggyware.com which helped to decide as how the application will be built. The first and foremost problem he faced was of tackling windows application and XNA together in same screen.
There were two options for that:
1) Either generates buttons of windows form in XNA OR
2) Merge windows application in XNA.
He chose the 2nd option and started working with the help of this project and used those classes in the project itself.
Initially, there were difficulties in understanding the co-ordinate geometry of XNA screen but this problem was solved. The next task was to work on grid formation on screen and make the grid dynamic.
One issue which came up was of mouse click to save the entry from the user for drawing the tile map which didn’t work perfectly. This issue was solved in a few days.
Minor issues related to file I/O also arose and they were solved within 1-2 days and with all this ups and downs and finally a robust and reliable application are ready for tile map editor.
This Level Editor can be used for RPG games as well as platform games. It supports virtually infinite number of layers which is at present very much appropriate for our game.