O'Reilly logo

Unity 2D Game Development by Dave Calabrese

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

Let's get dangerous

Let's add one more additional feature to our jumping, walking, dying player—the ability to fire a weapon. Yup! It's time to make the player dangerous. If you feel the need to apply a lead apron and a hard hat to your person, now would be the time to do it. This is an obscure reference:

  1. Dig up your downloaded assets (available at http://www.PacktPub.com/support; register to have the files e-mailed directly to you) again and import the image map titled PlayerBullet.png, which should look like the following screenshot. Use the same image import settings you've been using for all the sprites:
    Let's get dangerous
  2. Drag-and-drop the PlayerBullet sprite just ...

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