Creating a basic tile

We want our game to be endless, but in order to do so, we will need to have pieces that we can spawn to build our environment; let's do that now:

  1. To get started, we will first need to create a single piece for our runner game. To do that, let's first add some walls to the floor we already have. From the Hierarchy window, select the Floor object and duplicate it by pressing Ctrl D in Windows or command + D on Mac. Rename this new object as Left Wall.


  1. Change the Left Wall object's Transform component by adjusting the Scale to (1, 2, 10). From there, select the Move tool by clicking on the button with arrows on the toolbar or by pressing the W key.
For more information on Unity's built-in hotkeys, check out: ...

Get Unity 2017 Mobile Game Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.