We have implemented a lot of functions for the buildings and environments of the virtual world. It will now load the terrain map, buildings, and portals to the world. When these basic features are finished, we often begin to input content and shape in the virtual world. We will enhance the map editor for using it to design the whole virtual world. Creating a map editor can highly boost the speed of designing the virtual world because it is — "What you see is what you get" — and prevents inputting boring raw data.
The editor now groups brushes, buildings, and movements into different panels. The following graph shows how we compose the Building Panel. The background is static graphic. There is a ScrollPane component whose source is pointing to the Buildings MovieClip. The Buildings MovieClip is controlled by a class which reads the building definition XML file to show the building movie clips.
We will cover key implementations here. The full code of the map...