万本电子书0元读

万本电子书0元读

顶部广告

Unity 3.x Game Development by Example Beginner's Guide电子书

售       价:¥

0人正在读 | 0人评论 9.8

作       者:Ryan Henson Creighton

出  版  社:Packt Publishing

出版时间:2011-09-23

字       数:87.6万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
The book takes a clear, step-by-step approach to building small, simple game projects. It focuses on short, attainable goals so that the reader can finish something, instead of trying to create a complex RPG or open-world game that never sees the light of day. This book encourages readers hungry for knowledge. It does not go into gory detail about how every little knob and dial functions – that's what the software manual is for! Rather, this book is the fastest path from zero to finished game using the Unity game engine. If you've ever wanted to develop games, but have never felt "smart" enough to deal with complex programming, this book is for you. It's also a great kick-start for developers coming from other tools like Flash, Unreal Engine, and Game Maker Pro.
目录展开

Unity 3.x Game Development by Example

Table of Contents

Unity 3.x Game Development by Example

Credits

About the Author

About the Reviewer

www.PacktPub.com

Support files, eBooks, discount offers and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Time for action – heading

What just happened?

Pop quiz – heading

Have a go hero – heading

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. That's One Fancy Hammer!

Introducing Unity 3D

Unity takes over the world

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 promise

Maybe we should build Off-Road Velociraptor Safari?

I bent my Wooglie

Big Fun Racing

Diceworks

Walk before you can run (or double jump)

There's no such thing as "finished"

Stop! Hammer time

Explore Bootcamp

The wonders of technology!

The Scene window

The Game window

The Hierarchy

The Project panel

The Inspector

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

Heads up!

Artillery Live!

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 – Creating the ball

What just happened – that's all there is to it?

A ball by any other name

Time for action – Renaming the ball

Origin story

XYZ/RGB

Time for action – Moving the ball Into the "sky"

Time for action – Shrinking the ball

Time for action – Saving your scene

Time for action – Adding the paddle

What is a mesh?

Poly wanna crack your game performance?

Keeping yourself in the dark

Time for action – Adding a light

Time for action – Moving and rotating the light

Have a go hero – Let there be (additional) light

Extra credit

Are you a luminary?

Who turned out the lights?

Darkness reigns

Time for action – Camera mania

Time for action – Test your game

Let's get physical

Time for action – Adding 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 – DIY physic materials

Summary

Following the script

4. Code Comfort

What is code?

Time for action – Writing 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 – Creating a new MouseFollow script

What just happened?

A capital idea

Animating with code

Time for action – Animating the paddle

What just happened - what witchcraft is this?

What just happened – 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 – Listening to the paddle

A tiny bit o' math

Tracking the numbers

Futzing with the numbers

Time for action – Logging the new number

She's A-Work!

Somebody get me a bucket

Time for action – Declaring a variable to store the screen midpoint

What just happened – we've gone too Var

Using all three dees

Time for action – Following the Y position of the mouse

A keep-up game for robots

Once more into the breach

Time for action – Re-visiting the Unity Language Reference

Our work here is done

Time for action – Adding 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

5. Game #2: Robot Repair

You'll totally flip

A blank slate

You're making a scene

Time for action – Setting up two scenes

No right answer

Time for action – Preparing the GUI

The beat of your own drum

Time for action – Creating and linking a custom GUI skin

What just happened?

Time for action – Creating a button UI control

What just happened?

Have a go hero – No sense sitting around on your button

Want font?

Cover your assets

Time for action – Nix the mip-mapping

Front and center

Time for action – Centering the button

What just happened – investigating the code

To the game!

Time for action – Adding both scenes to the Build List

Set the stage for robots

Time for action – Preparing the game scene

The game plan

Have some class!

Time for action – Storing the essentials

Start me up

Going loopy

The anatomy of a loop

To nest is best

Seeing is believing

Time for action – Creating an area to store the grid

Have a go hero – Don't take my word for it!

Build that grid

What just happened – grokking the code

Now you're playing with power!

6. Game #2: Robot Repair Part 2

From zero to game in one chapter

Finding your center

Time for action – Centering the game grid vertically

What just happened?

Time for action – Centering the game grid horizontally

What just happened – coding like a ninja

Down to the nitty griddy

Do the random card shuffle

Time for action – Preparing to build the deck

Let's break some robots

Time for action – Building the deck

What just happened – dissecting the bits

Time for action – Modifying the img argument

What just happened?

What exactly is "this"?

Have a go hero - Grokketh-thou Random.Range()?

Random reigns supreme

Second dragon down

Time to totally flip

Time for action – Making the cards two-sided

Time for action – Building the card-flipping function

Time for action – Building the card-flipping function

What just happened – dissecting the flip

Pumpkin eater

What just happened?

Stabby McDragonpoker rides again

Game and match

Time for action – ID the cards

What just happened?

Time for action – Comparing the IDs

What just happened?

On to the final boss

Endgame

Time for action – Checking for victory

What just happened?

Have a go hero – Extra credit

Endgame

Bring. It. On.

7. Don't Be a Clock Blocker

Apply pressure

Time for action – Preparing the clock script

Time for more action – Preparing the clock text

Still time for action – Changing the clock text color

Time for action rides again – Creating a font texture and material

Time for action – What's with the tiny font?

What just happened - was that seriously magic?

Time for action – Preparing the clock code

What just happened – that's a whole lotta nothing

Time for action – Creating the countdown logic

Time for action – Displaying the time onscreen

What just happened – what about that terrifying code?

Picture it

Time for action – Grabbing the picture clock graphics

What just happened – you can do that?

Time for action – Flexing those GUI muscles

What just happened – how does it work?

The incredible shrinking clock

Keep your fork—there's pie!

Pop quiz – How do we build it?

How they did it

Time for action – Rigging up the textures

Time for action – Writing the pie chart script

What just happened?

Time for action – Commencing operation pie clock

What just happened – explaining away the loose ends

Time for action – Positioning and scaling the clock

Have a go hero – Rock out with your clock out

Unfinished business

8. Ticker Taker

Welcome to Snoozeville

Model behavior

Time for action – Exploring the models

Time for action – Hands up!

What just happened – size matters

Time for action – Changing the FBX import scale settings

Time for action – Making the mesh colliders convex

Time for action – Making the hands and tray follow the mouse

What just happened – monkey see, monkey do

Time for action – Get your heart on

Time for action – Ditch the ball and paddle

What just happened – bypass the aorta

Time for action – Material witness

What just happened – understanding Materials

Have a go hero – Adding Materials to the other models

This just in: this game blows

Time for action – Multiple erections

Time for action – Creating a font texture

Time for action – Creating the HeartBounce script

What just happened – charting a collision course

Time for action – Tagging the tray

Time for action –Tweak the bounce

What just happened – storing velocity

Time for action – Keeping track of the bounces

Time for action – Adding the lose condition

What just happened – understanding the code

Time for action – Adding the Play Again button

What just happened?

Ticker taken

9. Game #3: The Break-Up

Time for action – Bombs away!

Time for action – Poke those particles

Time for action – Creating a spark material

Have a go hero – Time to ignite your creative spark

Time for action – Prefabulous

What just happened – what's a Prefab?

Time for action – Lights, camera, apartment

Time for action – Adding the character

Time for action – Registering the animations

Time for action – Scripting the character

What just happened – stepping through the "step" code

Time for action – Opening the pod bay door, Hal

Time for action – Collision-enable the character

Time for action – Re-prefab the prefab

Time for action – Apocalypse now?

Time for action – Go boom

Time for action – The point of impact

Time for action – Hook up the explosion

Summary

10. Game #3: The Break-Up Part 2

Time for action – Amass some glass

Time for action – Creating a Particle System

What just happened – getting smashed

Time for action – Making it edgier!

What just happened – I fall to pieces

Time for action – Containing the explosion

What just happened – duped?

Time for action – Let's get lazy

What just happened – FallingObject: The PuppetMaster

Very variable?

Terminal velocity is a myth—bombs fall faster

What just happened – when Game Objects collide?

Time for action – Tagging the objects

Time for action – Writing the collision detection code

Time for action – Animation interrupts

What just happened – the impenetrable stare

Time for action – Adding facial explosions

What just happened – raindrops keep 'sploding on my head

Time for action – Making some noise

Time for action – Adding sounds to the FallingObjectScript

What's the catch?

Have a go hero – Sound off

Time for action – Mixing it up a bit

Have a go hero – Filling in the gaps

Summary

11. Game #4: Shoot the Moon

Time for action – Duplicating your game project

Time for action – Spacing this sucker up a bit

Time for action – Enter the hero

Time for action – It's a hit!

Time for action – Bring on the bad guys

Time for action – Do some housekeeping

Time for action – Fixing the fall

Time for action – Tweak the hero

What just happened – hooray for lazy!

Time for action – Give up the func

Time for action – Itchy trigger finger

Time for action – Futurize the bullet

Time for action – Building Halo

Time for action – Fire!

Time for action – Code do-si-do

What just happened – eat lead

Time for action – The maaagic of aaaarguments

Time for action – Adding the most important part of any space shooter

Last year's model

Have a go hero – Filling in the empty space

Summary

More hospitality

12. Action!

Open heart surgery

Time for action – Haul in the hallway

Time for action – Meet me at camera two

Time for action – Adjusting the Main Camera

Time for action – Deck the halls

Time for action – Turn on the lights

Time for action – Setting up the camera rig

Time for action – Animating the bouncer

What just happened – red and raging

Time for action – I like to move it, move it

Have a go hero – Bounce your brains out

Time for action – Animating the runner

What just happened – holy hospital rampage, Batman!

Time for action – How to "handle" Nurse Slipperfoot

Time for action – You spin me right round

Have a go hero – Give Robo-Nurse a soul

Have a go hero – Use your new-found powers for good

Time for action – Deploying your game

Time to grow

Beyond the book

A. References

Online resources

Offline resources

Free development tools

Graphics

Sound

Content sites

Game portals

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部