Now let's modify the map a little.
It is recommended to switch the scene camera in Unity to orthographic and the view to top. Right click on the menu in the scene editor. Also make sure to be in the move tool in Unity before painting(W) -> see screenshot
You'll need to assign new tiles to a preset to build a map.
Now that you have your first map ready we should merge it to reduce drawcalls.
Default is set to 5. Set it to 10.
A mask layer can help you with masking specific cells from your layer. A mask layer uses masks behaviours which describes how the layer should be masked. You can of course modify / paint a mask layer like any other layer by selecting the mask layer. TileWorldCreator comes with 4 default mask behaviours (border, inner, circle, random) You can also add your own mask behaviours by creating a new class file in unity and inherit from TileWorldCreator. Check out a mask class inside the MaskBehaviours folder to see how a simple mask behaviour is created.
Now let's see how we can add an additional preset and mix it with our map by using a mask. In this example we will use a second layer to apply a different tileset only for the border of our map. This is great if you want to add an additional tileset with ramps for example.
TileWorldCreator can help you bring more life to your maps by instantiating additional objects. This is great for trees, stones, decals... Let's start adding a nice palmtree to our map.
You can also merge objects into clusters, it's the same functionality as the merge function for tiles. All objects are parented inside of the TWC_Objects gameobject. It will use the same cluster size from the settings tab in the TileWorldCreator script.
If you have multiple layers created for your world, make sure to select the correct layer where you want to instantiate your objects.
Setup the runtime editor:
If you use Random Seed values to generate maps in a specific pattern. You theoretically only need to save the seed value. See Random.seed for more informations about random seed.
For each preset you can assign an edge tile, corner, inverted corner, block and floor tile.
TileWorldCreator does all the optimization for you. You don't have to worry anymore about the cells and how they should be painted. :)
TileWorldCreator only needs 5 tiles for creating maps. This helps to reduce production time and keeps the whole system very simple to use.Although there are some important informations to know when creating maps with TileWorldCreator.
A cell should have at least two neighbouring cells. This is because of the fact that it only uses 5 different tiles to build a map. So a cell row with each only one neighbouring cell would result in a not enclosed row. Whereas a row with two neighbouring cells creates a nice enclosed row.
See screenshot for a better understanding.
Copyright © doorfortyfour 2015