- ホーム
- > 洋書
- > 英文書
- > Computer / General
Full Description
The Unity Engine Tutorial for Any Game Creator?Unity is now the world's #1 game engine, thanks to its affordability, continuous improvements, and amazing global community. With Unity, you can design, code, and author your game once, and then deploy it to multiple platforms, reaching huge audiences and earning maximum returns. Learning 2D Game Development with Unity (R) will help you master Unity and build powerful skills for success in today's game industry. It also includes a bonus rundown of the new GUI tools introduced in Unity's version 4.6 beta.?With this indispensable guide, you'll gain a solid, practical understanding of the Unity engine as you build a complete, 2D platform-style game, hands-on. The step-by-step project will get you started fast, whether you're moving to Unity from other engines or are new to game development.?This tutorial covers the entire development process, from initial concept, plans, and designs to the final steps of building and deploying your game. It illuminates Unity's newly integrated 2D toolset, covering sprites, 2D physics, game scripts, audio, and animations. Throughout, it focuses on the simplest and lowest-cost approaches to game development, relying on free software and assets. Everything you'll need is provided.?Register your book at informit.com/title/9780321957726 to access assets, code listings, and video tutorials on the companion website.?Learn How ToSet up your Unity development environment and navigate its tools Create and import assets and packages you can add to your game Set up game sprites and create atlas sheets using the new Unity 2D tools Animate sprites using keyframes, animation controllers, and scripting Build a 2D game world from beginning to end Establish player control Construct movements that "feel right" Set up player physics and colliders Create and apply classic gameplay systems Implement hazards and tune difficulty Apply audio and particle effects to the game Create intuitive game menus and interface elements Debug code and provide smooth error handling Organize game resources and optimize game performance Publish your game to the web for others to see and play ?
Contents
Preface xixAcknowledgments xxvAbout the Authors xxviiIntroduction 1Introduction to Unity 1Project Wizard 4Setting Our Project 6Chapter 1: Setting Up the Unity Development Environment 9Welcome Screen 9The Unity Interface 10Summary 25Exercises 25Chapter 2: Understanding Asset Creation 27File Formats 27Importing Our Assets 28Importing Packages 31GameObjects 33Components 36Summary 39Exercises 39Chapter 3: Creating 2D Sprites 41Working in 2D 41Building Our Sprites 43Sprite Packing 48Summary 50Exercises 50Chapter 4: Building the Game World 53Level Design 101 53Getting around Our Scene 56Manipulating Objects in Unity 59Our First Level 64Continuing On 69Summary 69Exercises 70Chapter 5: The Basics of Movement and Player Control 71Coding in Unity3D 71Making the Player Go 72Setting Up a Basic Follow-Cam 83Introducing the Input Manager 83Error Handling and Debugging 85Summary 93Exercises 94Chapter 6: Adding Animations to Our Scene 95Some Rules for Animation 95Creating Animations 99Animation States 108Working with the State Machine 115Summary 116Exercises 117Chapter 7: Setting Up Player Physics and Colliders 119Understanding Physics 1192D versus 3D 120Physics 2D Settings 122Rigidbodies 124Colliders 125Physics Materials 128Constraints 129Summary 134Exercise 134Chapter 8: Creating and Applying Gameplay Systems 135Trigger Volumes in Unity 135Creating Checkpoints 136Using Checkpoints with Respawn 140Creating Collectibles 144Tracking the Player's Stats 155Summary 157Exercises 158Chapter 9: Creating Hazards and Crafting Difficulty 159Creating Your First Enemy 159Dealing Damage 167Handling Player Death 177Expanding on Platforming 178Creating Your Second Enemy 182Maintaining Your Enemy Arrangements 187A Few Words on Challenge 190Summary 191Exercises 191Chapter 10: Creating the Menus and Interface Elements 193UI Design 193Unity Native GUI 194Creating a Splash Screen 198Title Screen 200Game Over Screen 201Game Win Screen 202HUD 204Summary 212Exercise 213Chapter 11: Applying Effects to the GameObjects 215Introducing the Shuriken Particle System 215Modules and Properties of a Particle System 217Adding Particle Effects to the Game 220Unity's Audio System 227Adding Sound to the Player 231Adding Sound to the Collectible System 236Applying Some Extra Polish 238Summary 246Exercises 246Chapter 12: Organization and Optimization 247Organizing Assets 247Organizing Scripts and Code 253Optimizations 261Summary 267Exercises 268Chapter 13: Bringing It All Together 269Tying the Levels Together 269Hooking Up the Intro Screens 275Win or Lose: Getting Back into the Action 277Building and Deploying the Game 281Moving Forward 286Final Words 290Chapter 14: UGUI 291UGUI Components 291Creating Our Example Interface 293Summary 300Appendix: JavaScript Code Samples 301Player Scripts 301Collectible Scripts 307Enemy Scripts 309Game System Scripts 310GUI Scripts 314Hazard Scripts 320System Scripts 322Index 323