Game Development Reference
In-Depth Information
Adding the map
Start off by copying your
world
texture into your project
Assets
folder in
As-
sets\Sprites\Environment
, and use any image you wish to use or generate one
from
http://donjon.bin.sh/fantasy/world/
or
http://donjon.bin.sh/world/
like I have done.
Note
The following screenshot, which displays a map image, is included in the download asso-
ciated with this title (
Project\Assets\Worldmap.png
).
With that in place, create a new scene in
Assets\Scene
and call it
World
(this has to
be the same as the name used in your
NavigationManager
script). In your scene,
drag your
world
texture to the hierarchy and update your
MainCamera
script to show
the starting region for your world.
As the
world
texture I have used is rather large, I have set this to the top-left region of
the map as shown in the following screenshot: