Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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 4.x Game Development by Example: Beginner's Guide

You're reading from   Unity 4.x Game Development by Example: Beginner's Guide A seat-of-your-pants manual for building fun, groovy little games quickly with Unity 4.x

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781849695268
Length 572 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ryan Henson Creighton Ryan Henson Creighton
Author Profile Icon Ryan Henson Creighton
Ryan Henson Creighton
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Unity 4.x Game Development by Example Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. That's One Fancy Hammer! FREE CHAPTER 2. Let's Start with the Sky 3. Game #1 – Ticker Taker 4. Code Comfort 5. Game #2 – Robot Repair 6. Game #2 – Robot Repair Part 2 7. Don't Be a Clock Blocker 8. Hearty Har Har 9. Game #3 – The Break-Up 10. Game #3 – The Break-Up Part 2 11. Game #4 – Shoot the Moon 12. Game #5 – Kisses 'n' Hugs 13. AI Programming and World Domination 14. Action! Appendix Index

Stop! Hammer time


Now that you've seen some of what Unity can do, it's time to download the program and kick the tires! The free version of Unity is available for a low price of... well, free (at the time of this writing) from the Unity 3D website.

  1. Go to http://unity3D.com.

  2. Click on the Download button.

  3. Download the latest version of the Unity 3D authoring tool for your platform—Mac or PC. If you are given the option, make sure to download the sample project along with the program.

  4. Follow all the onscreen prompts until the Unity authoring tool has finished installing.

  5. Launch Unity!

Fight Some Angry Bots

After a quick registration process, Unity is ready to go. With any luck, the AngryBots Demo will automatically open. If it doesn't, and you're faced with a dialogue asking you to open a project, you can find the AngryBots Demo in the following location by default:

  • Max OS: /Users/Shared/Unity/4-0_AngryBots

  • Windows XP: C:\Documents and Settings\All Users\Documents\Unity Projects\4-0_AngryBots

    or

  • C:\Documents and Settings\All Users\Shared Documents\Unity Projects\4-0_AngryBots

  • Windows 7/ 8/ Vista: C:\Users\Public\Public Documents\Unity Projects\4-0_AngryBots

If you thought you'd be a rebel and you unchecked the sample projects box when you downloaded Unity, you may find yourself re-downloading Unity to get the AngryBots Demo. You can pull down other sample learning projects, such as the AngryBots Demo from the Unity website:

http://unity3d.com/support/resources/example-projects/

Note

These paths may change depending on which version of Unity you've downloaded. As the Unity Technologies team improves the software, they launch new and more impressive demos to show off what Unity can do. If you're reading this book, and your copy of Unity 3D launches a different demo project, or if the Angry Bots Demo is no longer available by the time you begin reading this book, don't freak out! Everything we're about to discuss can be generally applied to most demos.

When the Angry Bots Demo first opens, you may see a splash screen referring you to different tutorial resources and language guides. How helpful! Now close it (don't worry, it'll be there next time, unless you uncheck the Show at Startup box). If you checked the box but you'd really like to see that welcome screen again, look in the menus under Help | Welcome Screen. In the menus, click on Window | Layouts | 2 by 3 to see the different panels that we're about to tour.

After the panels have repositioned themselves, look for the Project panel. It should be one of the three vertically oriented panels on the right half of your screen. At the top right of the Project panel is a very small button that looks like a downward-facing triangle next to three horizontal lines. Click there, and choose One Column Layout from the resulting context menu. This will get an annoying split view out of your way:

If you don't see all the fancy highfalutin' 3D jazz going on in the Scene and Game windows, you may just need to load the main game scene. To do this, find the Scene called AngryBots at the top of the Project panel (it has a black-and-white Unity icon next to it), and double-click it.

To try out the demo, click on the Play button at the top center of the screen:

You can walk around the Angry Bots Demo using the WASD keys on your keyboard. Hold down the left-mouse button to fire your boomstick at the aggravated automatons. When you're finished exploring, press the Esc key to pause the game and regain mouse control. Then click on the Play button again to end the demo:

You have been reading a chapter from
Unity 4.x Game Development by Example: Beginner's Guide - Third Edition
Published in: Dec 2013
Publisher: Packt
ISBN-13: 9781849695268
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
Banner background image