Unity Games by Tutorials (1st Edition) - 2017

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Author(s): Berg M., Duffy S., Moakley B.
Year: 0

Language: English
Pages: 650

Table of Contents : Extended......Page 9
Introduction......Page 17
Why Unity?......Page 18
Unity vs. Apple Game Frameworks......Page 19
Who this book is for......Page 20
Book source code and forums......Page 21
License......Page 22
Acknowledgments......Page 23
Section I: Getting Started......Page 24
Chapter 1: Hello Unity......Page 25
Installing and running Unity......Page 28
Learning the interface......Page 32
Organizing your assets......Page 36
Importing Assets......Page 38
Add models to the Scene view......Page 42
Adding the hero......Page 46
Where to go from here?......Page 49
Introducing GameObjects......Page 50
Creating a prefab......Page 56
Creating spawn points......Page 68
Where to go from here?......Page 71
Chapter 3: Components......Page 72
Getting started......Page 73
Introducing scripting......Page 77
Creating your first script......Page 79
Managing Input......Page 80
Camera movement......Page 86
Adding gunplay......Page 89
Where to go from here?......Page 95
Getting started......Page 96
Destroying old objects......Page 107
Collisions and layers......Page 109
Joints......Page 112
Raycasting......Page 121
Where to go from here?......Page 124
Introducing the GameManager......Page 126
Pathfinding in Unity......Page 136
Final touches......Page 149
Where to go from here?......Page 152
Chapter 6: Animation......Page 153
The animation window......Page 154
Introducing keyframe animations......Page 155
Your first animation......Page 156
Animation states......Page 160
Animation state transitions......Page 165
Animation state transition conditions......Page 167
Triggering animations in code......Page 170
Animating models......Page 172
Imported animations......Page 175
Animating the space marine......Page 179
Where to go from here?......Page 182
Getting started......Page 183
Playing background music......Page 185
Building a sound manager......Page 188
Playing sounds......Page 192
Adding power-ups......Page 193
A power-up pick-up......Page 196
Introducing the Audio Mixer......Page 200
Isolating sounds......Page 205
Adding audio effects......Page 207
Where to go from here?......Page 209
Chapter 8: Finishing Touches......Page 210
Fixing the game manager......Page 211
Killing the hero......Page 214
Removing the bobblehead......Page 217
Decapitating the alien......Page 220
Adding particles......Page 224
Activating particles in code......Page 228
Winning the game......Page 231
Animation events......Page 233
Where to go from here?......Page 238
Section II: First-Person Shooters......Page 239
Chapter 9: The Player and Environment......Page 240
Getting started......Page 241
Adding the player......Page 243
Creating weapons......Page 246
Adding the reticle......Page 257
Managing ammunition......Page 261
Where to go from here?......Page 267
Creating the robots......Page 268
Animating robots......Page 272
Firing robot missiles......Page 274
Adding damage effects......Page 277
Creating pickups......Page 281
More spawning logic......Page 285
Robot spawning......Page 289
Adding sound......Page 293
Where to go from here?......Page 294
Getting started......Page 295
Adding UI elements......Page 298
Coding the UI......Page 303
Adding a Main Menu......Page 311
Music......Page 316
Game over......Page 317
Where to go from here?......Page 323
Section III: 2D Platformers......Page 324
Chapter 12: Beginning Unity 2D......Page 325
Sprites: building blocks of 2D games......Page 326
The 2D Orthographic camera......Page 331
Scripting: Smooth camera follow......Page 333
Adding 2D Physics......Page 335
2D Animation......Page 339
Layers and sorting......Page 342
Prefabs and Resources......Page 345
Scripting basic controls......Page 346
Where to go from here?......Page 351
Getting started......Page 352
Setting up Physics 2D layers......Page 353
Completing the 2D character controller......Page 354
Hooking up character animations......Page 362
Building game hazards......Page 367
Adding sound to the game......Page 371
Creating a game manager......Page 373
Adding a simple level timer......Page 376
Building your own game level......Page 377
Where to go from here?......Page 378
Three ways to work with saved data......Page 380
Storing the playerʼs name with PlayerPrefs......Page 381
Storing best times with binary serialization......Page 383
Basic unity JSON serialization usage......Page 389
Creating a level editor & saving levels......Page 391
A menu scene to load levels......Page 398
Tidying up loose ends......Page 406
Where to go from here?......Page 408
Section IV: Blender......Page 409
Chapter 15: Modeling in Blender......Page 410
Getting started......Page 411
Creating your first model......Page 412
Making the axles......Page 417
Applying transformations......Page 418
Adding the base......Page 419
Modeling the body......Page 421
Modeling the head......Page 424
Making the claws......Page 426
Modeling the wrecking ball......Page 432
Where to go from here?......Page 434
Chapter 16: Texturing with Blender......Page 436
Getting started......Page 437
Creating a texture......Page 438
Creating the Material in Blender......Page 441
Configuring lighting in your scene......Page 442
UV Mapping your model......Page 444
Rendering your model......Page 454
Exporting a rendered image......Page 455
Where to go from here?......Page 458
Getting started......Page 460
Creating the rig......Page 461
Animation......Page 471
Where to go from here?......Page 489
Section V: Tower Defense Games......Page 491
Chapter 18: Making A Tower Defense Game......Page 492
Getting started......Page 493
Preparing the Game scene......Page 494
Making a path......Page 495
Enemies......Page 500
Adding some utility......Page 502
Waves of enemies......Page 506
The Game Manager......Page 516
Where to go from here?......Page 521
Chapter 19: Making Towers......Page 522
Creating your first tower......Page 523
Projectiles......Page 529
Tower Manager......Page 532
Linking the UI......Page 535
UI Manager......Page 537
Tower Info Window and upgrading......Page 539
Win and lose windows......Page 543
Enemy health bars......Page 544
Center Window......Page 547
Damage Canvas......Page 548
Fire Tower......Page 549
Ice Tower......Page 552
Tweaks......Page 556
Where to go from here?......Page 557
Chapter 20: Virtual Reality......Page 558
Getting started with the Oculus Rift......Page 559
Setting up Unity for the Oculus Rift......Page 561
Getting started with the HTC Vive......Page 572
Setting up Unity for the HTC Vive......Page 574
Interacting with the world......Page 576
Automatically positioning and scaling world UI......Page 583
Where to go from here?......Page 586
Chapter 21: Publishing Your Game......Page 587
Getting started......Page 588
Standalone......Page 589
WebGL......Page 592
Android......Page 596
iOS......Page 599
Where to go from here?......Page 602
Section VI: Appendices......Page 603
Chapter 22: C# Crash Course......Page 604
Getting started......Page 605
The basics......Page 606
Classes and structures......Page 611
Where to go from here?......Page 617
Vector3......Page 618
Transform......Page 623
Quaternions......Page 625
GameObjects......Page 626
MonoBehaviour......Page 627
Unity attributes......Page 629
Special folders......Page 630
Where to go from here?......Page 631
MonoDevelop vs Visual Studio......Page 632
Getting started with MonoDevelop......Page 635
Getting started with Visual Studio......Page 641
Where to go from here?......Page 648
Conclusion......Page 650