Unity 4.x Game Development by Example Beginner's Guide
eBook - ePub

Unity 4.x Game Development by Example Beginner's Guide

Ryan Henson Creighton

Share book
  1. 572 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Unity 4.x Game Development by Example Beginner's Guide

Ryan Henson Creighton

Book details
Book preview
Table of contents
Citations

About This Book

This is a practical and light-hearted guide to get to grips with creating your first games, with easy-to-follow, step-by-step tutorials using the award winning Unity engine.If you've ever wanted to enter the world of independent game development but have no prior knowledge of programming or game development, then this is the book for you. Game developers transitioning from other tools like GameMaker and Flash will find this a useful tool to get them up to speed on the Unity engine, as will anyone who has never handled the Unity engine before.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on โ€œCancel Subscriptionโ€ - itโ€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youโ€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoโ€™s features. The only differences are the price and subscription period: With the annual plan youโ€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weโ€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Unity 4.x Game Development by Example Beginner's Guide an online PDF/ePUB?
Yes, you can access Unity 4.x Game Development by Example Beginner's Guide by Ryan Henson Creighton in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Games. We have over one million books available in our catalogue for you to explore.

Information

Year
2013
ISBN
9781849695275
Edition
1

Unity 4.x Game Development by Example Beginner's Guide


Table of Contents

Unity 4.x Game Development by Example Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
A word about the third edition
Your future as a game developer
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the color images of this book
Downloading the example code
Errata
Piracy
Questions
1. That's One Fancy Hammer!
Introducing Unity 3D
The engine, the tool, and the all-weather tires
Unity takes over the world
Why choose Unity?
Why burn this book and run away screaming?
Browser-based 3D โ€“ welcome to the future
Time for action โ€“ install the Unity Web Player
Welcome to Unity 3D!
What can I build with Unity?
FusionFall
Completely hammered
Should we try to build FusionFall?
Another option
Off-Road Velociraptor Safari
Fewer features, more promises
Maybe we should build Off-Road Velociraptor Safari?
I bent my Wooglie
Big Fun Racing
Diceworks
Lovers in a Dangerous Spacetime
Showcase Showdown
Unity Technologies โ€“ "Made with Unity" page
Kongregate
The iOS App Store
Walk before you can run (or double jump)
There's no such thing as "finished"
Stop! Hammer time
Fight Some Angry Bots
The wonders of technology!
The Scene window
The Game window
The Hierarchy panel
The Project panel
The Inspector panel
Heads Up?
Layers and layout dropdowns
Playback controls
Scene controls
Don't stop there โ€“ live a little!
Summary
Big ambition, tiny games
2. Let's Start with the Sky
That little lightbulb
The siren song of 3D
Features versus content
A game with no features
Mechanic versus skin
Trapped in your own skin
That singular piece of joy
One percent inspiration
Motherload
Possible additional features:
Heads up!
Artillery Live!
The skinny on multiplayer
Bang for your buck
Pong
The mechanic that launched a thousand games
Have a go hero โ€“ redesign your favorite games
Toy or story
Pop Quiz โ€“ finding that singular piece of joy
Redefining the sky
Summary
Let's begin
3. Game #1 โ€“ Ticker Taker
Kick up a new Unity project
Where did everything go?
'Tis volley
Keep the dream alive
Slash and burn!
The many faces of keep-up
Creating the ball and the hitter
Time for action โ€“ create the Ball
What just happened โ€“ that's all there is to it?
A ball by any other name
Time for action โ€“ rename the Ball
Origin story
XYZ/RGB
Time for action โ€“ move the Ball Into the "Sky"
Time for action โ€“ shrink the Ball
Time for action โ€“ save your scene
Time for action โ€“ add the Paddle
What's a Mesh?
Poly wants to crack your game performance?
Keeping yourself in the dark
Time for action โ€“ add a light
Time for action โ€“ move and rotate the light
Have a go hero
Extra credit
Are you a luminary?
Who turned out the lights?
Darkness reigns
Cameramania
Time for action โ€“ test your game
Let's get physical
Add physics to your game
Understanding the gravity of the situation
More bounce to the ounce
Time for action โ€“ make the Ball bouncy
Have a go hero
Summary
Following the script
4. Code Comfort
What is code?
Time for action โ€“ write your first Unity Script
A leap of faith
Lick it and stick it
Disappear me!
What just happened?
It's all Greek to me
You'll never go hungry again
With great sandwich comes great responsibility
Examining the code
Time for action โ€“ find the Mesh Renderer component
Time for action โ€“ make the ball re-appear
Ding!
Time for action โ€“ journey to the Unity Script Reference
The Renderer class
Have a go hero โ€“ pulling the wings off of flies
What's another word for "huh"?
It's been fun
Time for action โ€“ unstick the Script
Gone, but not forgotten
Why code?
Equip your baby bird
Time for action โ€“ create a new MouseFollow Script
What just happened?
A capital idea
Animating with code
Time for action โ€“ animate the Paddle
What just happened โ€“ what witchcraft is this?
Why didn't the Paddle animate before?
Pick a word โ€“ (almost) any word
Screen coordinates versus World coordinates
Move the Paddle
Worst. Game. Ever.
See the matrix
Time for action โ€“ listen to the paddle
A tiny bit o' math
Tracking the numbers
Futzing with the numbers
Time for action โ€“ Log the New Number
She's a-work!
Somebody get me a bucket
Time for action โ€“ declare a variable to store the Screen midpoint
What just happened โ€“ we've gone too var
Using all three dees
Time for action โ€“ follow the y position of the mouse
A keep-up game for robots
Once more into the breach
Time for action โ€“ re-visit the Unity Language Reference
Our work here is done
Time for action โ€“ add the sample code to your Script
One final tweak
What's a quaternion?
Wait, what's a quaternion?
WHAT THE HECK IS A QUATERNION??
Educated guesses
More on Slerp
Right on target
Have a go hero โ€“ time to break stuff
Keep it up
Beyond the game mechanic
C# Addendum
5. Game #2 ...

Table of contents