O'Reilly logo

Mastering UDK Game Development Hotsht by John P. Doran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Avoiding obstacles

So now, we have a player who looks pretty awesome and can move around, but there is not much point to the game yet. Thankfully, we will fix that in a moment as we add asteroids to our game, which our player needs to avoid.

Engage Thrusters

Now, let's add in some obstacles!

  1. Import all four files from the Asteroid folder in the assets we provided. Right-click in the same Content Browser window and select New Material. Inside the menu that pops up, confirm that the name Hotshot02 is in the Package section and under the Name section put in AsteroidMaterial.
  2. Drag-and-drop the android_diffuse, asteroid_normal, and asteroid_specular textures and connect them to the appropriate slot as shown in the following screenshot. Click on the green ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required