Before you can design your first level, you will need to create a few more Prefabs that will be used on your Grid in place of the empty Tile.
The mini-lecture below provides a high level overview of what you'll learn in this section. Watch the video and take notes. Then, complete the lesson below to apply the concepts from the video.
Warning: It is not recommended to work along side the video as the content is not identical to the lesson.
Start by changing the Mesh
of a Tile in your scene to use the tile-dirt
mesh.
Mesh
property of the selected tile to tile-dirt
This Game Object will be the basis for a **Path Tile Prefab.
Practice unpacking and creating a few more prefabs
tile-tree
meshtile-rock
meshtile-crystal
meshWhen you have finished, you should have 5 Tile Prefabs that look similar to the ones picture in the image below.
It is possible to swap out a Prefab for another quickly in the Hierarchy by right clicking on Prefab and selecting Prefab > Replace.
You can also replace a Prefab from the Inspector.
Changing a Prefab from the Inspector is particularly useful if you would like to change several Game Objects at the same time.
With everything you've learned so far, it is now time to design a map for your first level!
When you're finished, your map might look something like the image below:
With a tile grid designed for your game, you are ready to set up the player's view. In the next section, you will configure your editor's Play Mode to optimize your design experience.