Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unity 3.x Game Development Essentials

You're reading from   Unity 3.x Game Development Essentials If you have an idea for a game but lack the skills to create it, this book is the perfect introduction. There‚Äôs lots of handholding through all the essentials, culminating in the building of a full 3D game.

Arrow left icon
Product type Paperback
Published in Dec 2011
Publisher Packt
ISBN-13 9781849691444
Length 488 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Will Goldstone Will Goldstone
Author Profile Icon Will Goldstone
Will Goldstone
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Unity 3.x Game Development Essentials
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Enter the Third Dimension FREE CHAPTER 2. Prototyping and Scripting Basics 3. Creating the Environment 4. Player Characters and Further Scripting 5. Interactions 6. Collection, Inventory, and HUD 7. Instantiation and Rigidbodies 8. Particle Systems 9. Designing Menus 10. Animation Basics 11. Performance Tweaks and Finishing Touches 12. Building and Sharing 13. Testing and Further Study Index

Chapter 6. Collection, Inventory, and HUD

Working with a similar approach to the previous chapter, in this chapter we will be continuing our use of trigger collision detection, this time using it to pick up objects. We will then move on to look at creating parts of a 2D Heads Up Display (HUD) and how we can control these, as well as the environment, through code.

A HUD in video games varies between differing genres; in a racing game for example, the HUD would be elements such as your speed, position, remaining laps, and so on.

(Wipeout Pure © SCEE 2005)

In a first person shooter your HUD is more likely to be made up of elements such as health, ammunition, and inventory items.

(Half-Life 2: Episode Two © Valve Software 2007)

As we have already set up an outpost with an opening door, we will now restrict player access by making them find objects in order to open the door. By showing on-screen instructions when the player enters the outpost door's trigger zone, we will inform them that the door...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime