Home > Store

Unity 2018 Game Development in 24 Hours, Sams Teach Yourself,Rough Cuts, 3rd Edition

Rough Cuts

  • Available to Safari Subscribers
  • About Rough Cuts
  • Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.

Not for Sale

Also available in other formats.

Description

  • Copyright 2018
  • Edition: 3rd
  • Rough Cuts
  • ISBN-10: 0-13-499892-8
  • ISBN-13: 978-0-13-499892-3

This is the Rough Cut version of the printed book.

In just 24 lessons of one hour or less, Sams Teach Yourself Unity Game Development in 24 Hours will help you master the Unity 2018 game engine at the heart of Ori and the Blind Forest, Firewatch, Monument Valley, and many other sizzling-hot games! This book’s straightforward, step-by-step approach teaches you everything from the absolute basics through sophisticated game physics, animation, and mobile device deployment
techniques. Every lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success.


Step-by-step instructions carefully walk you through the most common Unity game development tasks.
Practical, hands-on examples show you how to apply what you learn.
Quizzes and exercises help you test your knowledge and stretch your skills.
Notes and Tips point out shortcuts and solutions


Learn how to…

  • Get up and running fast with the Unity 2018 game engine and editor
  • Work efficiently with Unity’s graphical asset pipeline
  • Make the most of lights and cameras
  • Sculpt stunning worlds with Unity’s terrain and environmental tools
  • Script tasks ranging from capturing input to building complex behaviors
  • Quickly create repeatable, reusable game objects with prefabs
  • Implement easy, intuitive game user interfaces
  • Control players through built-in and custom character controllers
  • Build realistic physical and trigger collisions
  • Leverage the full power of Unity’s Animation and new Timeline systems
  • Integrate complex audio into your games
  • Use mobile device accelerometers and multi-touch displays
  • Build engaging 2D games with Unity’s 2D tools and Tilemap
  • Apply the “finishing touches” and deploy your games


Sample Content

Table of Contents

HOUR 1: Introduction to Unity 1
    Installing Unity . . . . . . . . . . . . . . . . . . . . . . . 1
    Getting to Know the Unity Editor . . . . . . . . . . . . . . . . . 4
    Navigating the Unity Scene View . . . . . . . . . . . . . . . . 16
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 19
    QA. . . . . . . . . . . . . . . . . . . . . . . . . . . 20
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 20
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 21
HOUR 2: Game Objects 23
    Dimensions and Coordinate Systems . . . . . . . . . . . . . . . 23
    Game Objects . . . . . . . . . . . . . . . . . . . . . . . 26
    Transforms . . . . . . . . . . . . . . . . . . . . . . . . 28
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 36
    QA. . . . . . . . . . . . . . . . . . . . . . . . . . . 36
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 36
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 37
HOUR 3: Models, Materials, and Textures 39
    The Basics of Models . . . . . . . . . . . . . . . . . . . . 39
    Textures, Shaders, and Materials . . . . . . . . . . . . . . . . 45
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 50
    QA. . . . . . . . . . . . . . . . . . . . . . . . . . . 50
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 51
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 51
HOUR 4: Terrain and Environments 53
    Terrain Generation . . . . . . . . . . . . . . . . . . . . . 53
    Terrain Textures . . . . . . . . . . . . . . . . . . . . . . 61
    Generating Trees and Grass . . . . . . . . . . . . . . . . . . 66
    Character Controllers . . . . . . . . . . . . . . . . . . . . 72
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 74
    QA. . . . . . . . . . . . . . . . . . . . . . . . . . . 74
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 74
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 75
HOUR 5: Lights and Cameras 77
    Lights . . . . . . . . . . . . . . . . . . . . . . . . . . 77
    Cameras . . . . . . . . . . . . . . . . . . . . . . . . . 86
    Layers . . . . . . . . . . . . . . . . . . . . . . . . . . 90
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 95
    QA. . . . . . . . . . . . . . . . . . . . . . . . . . . 95
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 96
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 96
HOUR 6: Game 1: Amazing Racer 99
    Design . . . . . . . . . . . . . . . . . . . . . . . . . 99
    Creating the Game World . . . . . . . . . . . . . . . . . . 102
    Gamification . . . . . . . . . . . . . . . . . . . . . . . 106
    Playtesting . . . . . . . . . . . . . . . . . . . . . . . 111
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 113
    QA. . . . . . . . . . . . . . . . . . . . . . . . . . 113
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 113
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 114
HOUR 7: Scripting, Part 1 115
    Scripts . . . . . . . . . . . . . . . . . . . . . . . . . 116
    Variables . . . . . . . . . . . . . . . . . . . . . . . . 123
    Operators . . . . . . . . . . . . . . . . . . . . . . . . 125
    Conditionals . . . . . . . . . . . . . . . . . . . . . . . 128
    Iteration . . . . . . . . . . . . . . . . . . . . . . . . 132
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 133
    QA. . . . . . . . . . . . . . . . . . . . . . . . . . 134
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 134
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 135
HOUR 8: Scripting, Part 2 137
    Methods . . . . . . . . . . . . . . . . . . . . . . . . 137
    Input . . . . . . . . . . . . . . . . . . . . . . . . . 143
    Accessing Local Components . . . . . . . . . . . . . . . . . 148
    Accessing Other Objects . . . . . . . . . . . . . . . . . . . 149
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 153
    QA. . . . . . . . . . . . . . . . . . . . . . . . . . 153
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 153
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 154
HOUR 9: Collision 155
    Rigidbodies . . . . . . . . . . . . . . . . . . . . . . . 155
    Enabling Collision . . . . . . . . . . . . . . . . . . . . . 157
    Triggers . . . . . . . . . . . . . . . . . . . . . . . . . 160
    Raycasting. . . . . . . . . . . . . . . . . . . . . . . . 163
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 164
    QA. . . . . . . . . . . . . . . . . . . . . . . . . . 165
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 165
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 165
HOUR 10: Game 2: Chaos Ball 167
    Design . . . . . . . . . . . . . . . . . . . . . . . . . 167
    The Arena . . . . . . . . . . . . . . . . . . . . . . . . 168
    Game Entities . . . . . . . . . . . . . . . . . . . . . . 172
    The Control Objects . . . . . . . . . . . . . . . . . . . . 176
    Improving the Game . . . . . . . . . . . . . . . . . . . . 179
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 180
    QA. . . . . . . . . . . . . . . . . . . . . . . . . . 180
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 180
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 181
HOUR 11: Prefabs 183
    Prefab Basics . . . . . . . . . . . . . . . . . . . . . . . 183
    Working with Prefabs . . . . . . . . . . . . . . . . . . . . 186
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 193
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 193
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 194
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 194
HOUR 12: 2D Game Tools 197
    The Basics of 2D Games. . . . . . . . . . . . . . . . . . . 197
    Orthographic Cameras . . . . . . . . . . . . . . . . . . . 200
    Adding Sprites . . . . . . . . . . . . . . . . . . . . . . 201
    Draw Order . . . . . . . . . . . . . . . . . . . . . . . 205
    2D Physics . . . . . . . . . . . . . . . . . . . . . . . . 208
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 210
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 210
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 210
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 211
HOUR 13: 2D Tilemap 213
    The Basics of Tilemaps . . . . . . . . . . . . . . . . . . . 213
    Palettes . . . . . . . . . . . . . . . . . . . . . . . . . 216
    Tiles . . . . . . . . . . . . . . . . . . . . . . . . . . 219
    Tilemaps and Physics . . . . . . . . . . . . . . . . . . . . 225
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 228
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 228
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 229
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 229
HOUR 14: User Interfaces 231
    Basic UI Principles . . . . . . . . . . . . . . . . . . . . . 231
    The Canvas . . . . . . . . . . . . . . . . . . . . . . . 232
    UI Elements . . . . . . . . . . . . . . . . . . . . . . . 237
    Canvas Render Modes . . . . . . . . . . . . . . . . . . . 245
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 248
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 248
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 248
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 249
HOUR 15: Game 3: Captain Blaster 251
    Design . . . . . . . . . . . . . . . . . . . . . . . . . 251
    The World . . . . . . . . . . . . . . . . . . . . . . . . 252
    Controls . . . . . . . . . . . . . . . . . . . . . . . . 261
    Improvements . . . . . . . . . . . . . . . . . . . . . . 268
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 269
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 269
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 269
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 269
HOUR 16: Particle Systems 271
    Particle Systems . . . . . . . . . . . . . . . . . . . . . . 271
    Particle System Modules . . . . . . . . . . . . . . . . . . . 273
    The Curves Editor . . . . . . . . . . . . . . . . . . . . . 286
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 288
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 288
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 289
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 289
HOUR 17: Animations 291
    Animation Basics . . . . . . . . . . . . . . . . . . . . . 291
    Animation Types. . . . . . . . . . . . . . . . . . . . . 293
    Animation Tools . . . . . . . . . . . . . . . . . . . . . 297
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 305
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 305
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 306
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 306
HOUR 18: Animators 307
    Animator Basics . . . . . . . . . . . . . . . . . . . . . . 307
    Configuring Your Assets . . . . . . . . . . . . . . . . . . . 310
    Creating an Animator . . . . . . . . . . . . . . . . . . . 319
    Scripting Animators . . . . . . . . . . . . . . . . . . . . 327
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 329
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 329
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 329
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 330
HOUR 19: Timeline 331
    Timeline Basics . . . . . . . . . . . . . . . . . . . . . . 331
    Working with Timelines . . . . . . . . . . . . . . . . . . . 334
    Going Beyond Simple Control . . . . . . . . . . . . . . . . . 340
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 343
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 344
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 344
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 344
HOUR 20: Game 4: Gauntlet Runner 345
    Design . . . . . . . . . . . . . . . . . . . . . . . . . 345
    The World . . . . . . . . . . . . . . . . . . . . . . . . 346
    The Entities. . . . . . . . . . . . . . . . . . . . . . . 349
    The Controls . . . . . . . . . . . . . . . . . . . . . . . 354
    Room for Improvement . . . . . . . . . . . . . . . . . . . 361
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 362
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 362
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 362
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 363
HOUR 21: Audio 365
    Audio Basics . . . . . . . . . . . . . . . . . . . . . . . 365
    Audio Sources . . . . . . . . . . . . . . . . . . . . . . 367
    Audio Scripting . . . . . . . . . . . . . . . . . . . . . . 372
    Audio Mixers . . . . . . . . . . . . . . . . . . . . . . . 375
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 378
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 378
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 378
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 379
HOUR 22: Mobile Development 381
    Preparing for Mobile . . . . . . . . . . . . . . . . . . . . 381
    Accelerometers . . . . . . . . . . . . . . . . . . . . . . 385
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 390
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 390
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 390
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 391
HOUR 23: Polish and Deploy 393
    Managing Scenes . . . . . . . . . . . . . . . . . . . . . 393
    Persisting Data and Objects . . . . . . . . . . . . . . . . . 396
    Unity Player Settings . . . . . . . . . . . . . . . . . . . . 400
    Building Your Game . . . . . . . . . . . . . . . . . . . . 402
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 405
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 406
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 406
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 407
HOUR 24: Wrap-up 409
    Accomplishments . . . . . . . . . . . . . . . . . . . . . 409
    Your 19 Hours of Learning . . . . . . . . . . . . . . . . . . 409
    Where to Go from Here . . . . . . . . . . . . . . . . . . . 411
    Resources Available to You . . . . . . . . . . . . . . . . . . 412
    Summary . . . . . . . . . . . . . . . . . . . . . . . . 413
    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . 413
    Workshop . . . . . . . . . . . . . . . . . . . . . . . . 413
    Exercise . . . . . . . . . . . . . . . . . . . . . . . . . 414
9780134998138, TOC, 4/16/2018

Updates

Submit Errata

More Information