Daniel Lock
Map Editor
I wanted to created a simple map editor that would integrate easily with Unity. The application allows the user to create maps quickly and with ease.
The application works by checking what the user has input using the buttons or keyboard for keywords. These keywords are then colour coded so that the user is able to easily visualize the finished map. For example, !GN! is the keyword for grass and will change to a green colour. After the user has created their map they can export it to a text file so that is can be read, edited and used independently of the application. Finally the user imports the file into their Unity project and, using a pre-made C# script attached to an empty game object, type in the name of the map so that the script knows where to collect the data from. All the user has to do now is press the play button in Unity and watch their map build itself.
How does it work?
How did I do it?
I created the application using C# in the Visual Studio 2015 development environment. The application consists of a number of buttons surrounding a text box. I then wrote a script that would constantly check the characters in the text box to see if they matched predefined keywords. If a matching keyword was found then it would be recoloured. Along with this it checked for syntax and would highlight an unknown word in Yellow. I chose yellow for this as the colour would be very noticeable next to the other colours of the keyboards and it is also a colour I am unlikely to use for a tile type.
Further improvements
I plan to further improve this application in order to make it a very useful tool. As can be seen in the image above there is room for improvement and there is a number of improvements I already plan to make:
-
Add different types of tiles (shallow water, sea water, long grass)
-
And more tile choices, as can be seen by the buttons marked with a '?'
-
Allow the user more customization with the look of the application.
-
Add the ability to create a map with building or other objects on the tiles (loaded by the map and not need to be placed in Unity