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

Spawning enemies

Now that the player has asteroids to avoid, let's increase the difficulty by adding in enemies that can shoot at the player.

Engage Thrusters

Now let's start adding in enemies that can shoot at the player!

  1. Import all of the files for the enemies located in the Assets/Enemy folder. Right-click in the same Content Browser window and select New Material. Inside the menu that pops up, confirm that the name Hotshot03 is in the Package section and put in EnemyMaterial as the name of the file in the Name field.
  2. Drag-and-drop the enemy_diffuse, enemy_normal, and enemy_specular textures and connect them to the appropriate slot as shown in the following screenshot. Click on the green checkmark and exit out of the Material Editor.
  3. Back in the ...

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