Game Development Reference
In-Depth Information
Adding places of interest
With the world that the player can travel to in place, we need to add the player to the map
and some places of interest.
Adding the player is simple; just create a new empty game object and call it player ,
then add the Rigidbody2D and BoxCollider2D components to it so that it will be
able to interact with other points on the map. (You could use location testing, but it's sim-
pler to use the physics system and it's not much overhead.)
Finally, it's best for the player to have something to see moving when traveling, so add a
Sprite Renderer to the player game object and use a sprite image that suits it. I used the
running hero sprite for effect but you could use whatever you wish.
You should end up with something like the following:
Search WWH ::




Custom Search