Create a game for the Windows Phone market with a heavy emphasis placed on optimization and good design decisions. While doing so, you will be introduced to key Unity concepts and functionality, weigh the pros and cons of various possibilities, and gain a good working knowledge of scripting in the Unity environment using both JavaScript and C#. Learn Unity for Windows 10 Game Development starts by exploring the Unity editor and experimenting with staple game functionality. If you are new to scripting or just new to C#, you will be able to investigate syntax, commonly used functions, and communication required to bring your ideas to life. With the book's included art assets, you will learn the ins and outs of asset choices and management while making use of Unity's 2D physics, Shuriken particle systems and Mecanim's character and state management tools. Finally, you will bring it all together to create a multi-level game as you learn how to incorporate mobile specific functionality, test on a Windows Phone device, and others for Windows 10 and ultimately, publish your game to the Windows App Store. What You Will Learn Learn C# basics for Unity Work with the Unity Editor Manage assets Use the Mecanim animation system and 2D features and physics Who This Book Is For Game developers, hobbyists and game dev students who are new to Unity or Windows Mobile game development or both. JavaScript and C# experience are helpful, but C# experience is not required. Contents at a Glance......Page 5 Contents......Page 6 About the Authors......Page 12 About the Technical Reviewer......Page 13 Acknowledgments......Page 14 Introduction......Page 15 Creating a Unity User Account......Page 17 Performing the Installation......Page 19 Exploring the General Layout......Page 23 Working with Menus......Page 26 Loading Projects......Page 33 Navigating the Scene View......Page 35 Understanding the Scene Gizmo......Page 37 Hierarchy View......Page 41 Scene View......Page 43 Game View......Page 52 Project View......Page 54 Managing Layout......Page 58 File Structure......Page 60 Preparing for Windows Store......Page 62 The Universal Windows Platform......Page 63 Enabling Developer Mode......Page 65 Creating a Test App......Page 66 Installing the Windows 10 SDK......Page 71 Verifying Installations......Page 74 Continuing the Build......Page 78 Summary......Page 81 Working with Unity GameObjects......Page 82 Creating Primitives......Page 83 Using Transforms......Page 85 Duplicating GameObjects......Page 90 Arranging GameObjects......Page 91 Parenting......Page 93 Mesh Renderer......Page 96 Mesh Filter......Page 97 Colliders......Page 99 Camera......Page 101 Creating the Terrain GameObject......Page 103 Raise/Lower Terrain......Page 107 Paint Height......Page 109 Smooth Height......Page 110 Paint Texture......Page 111 Place Trees......Page 115 Paint Details......Page 122 Adding Water......Page 125 Using Skyboxes......Page 128 Introducing Fog......Page 134 Summary......Page 136 Creating a New Test Project......Page 137 Why C#?......Page 138 Exploring the Editing Environment......Page 139 Examining the Contents......Page 146 Building a Script......Page 147 Investigating Syntax......Page 148 Checking the Functionality......Page 149 Understanding Error Messages and the Console......Page 151 Working with Variables......Page 153 Variable Types......Page 154 Order of Evaluation......Page 156 Scope Within the Script......Page 159 Introducing Interaction......Page 163 Adding User Input......Page 164 Using the Conditional......Page 166 Adding More Functionality......Page 168 Looping......Page 169 Creating User-Defined Functions......Page 170 Working with Script Editors......Page 171 Summary......Page 177 Importing 3D Objects......Page 179 Importing the 3D Assets......Page 180 The Model: Setting the Basic Attributes......Page 186 The Rig Tab: Setting the Animation Type......Page 194 The Animations Tab: Setting Up the Animation Clips......Page 200 Setting the Texture Type......Page 206 Exploring Texture Dimensions......Page 210 Understanding Mapping and Vertex Count......Page 211 Managing Textures and Batching......Page 214 Working with Materials and Shaders......Page 219 Investigating the Standard Shader......Page 220 Using Normal Maps......Page 224 Summary......Page 228 Taking the First Steps......Page 230 Scripting User Interaction......Page 232 Creating Prefabs......Page 236 Working with Inheritance......Page 239 Creating a Death Zone......Page 242 Tweaking Physics......Page 246 Using Co-routines......Page 248 Suppressing Player Input......Page 251 Resetting the Board......Page 252 Summary......Page 254 Creating Portals......Page 256 Making Custom GameObject Icons......Page 266 Adding Randomization......Page 269 Adding a Jump......Page 271 Adding a Turbo Boost......Page 276 Mapping the Gamepad......Page 280 Testing Axes......Page 281 Tilting the Board......Page 283 Testing Buttons......Page 285 Summary......Page 286 Generating the Paths......Page 288 Introducing the Cells......Page 290 Preparing the Assets......Page 292 Making Paths......Page 296 Marking the Path Starting Tile......Page 304 Scripting the Undo......Page 306 Saving Your Paths......Page 307 Loading the Paths......Page 310 Changing the Tiles......Page 311 Setting Sequential Progress......Page 313 Working with External Influences......Page 314 Adding New Game Pieces......Page 316 Summary......Page 319 Merging Environment and Functionality......Page 320 Tracking Health......Page 322 Adjusting the Path Progress......Page 326 Game Elements......Page 330 Activating Mecanim Animations......Page 333 Shaking Things Up......Page 334 Drifting Spinners......Page 335 Poppers......Page 339 Boosters......Page 342 Completing the Path......Page 346 Summary......Page 350 Audio Clips......Page 351 Game Pieces......Page 355 The Spinner’s FX......Page 360 The Popper’s FX......Page 367 The Booster’s FX......Page 369 Updating the Marble......Page 372 Drawing from a Pool......Page 373 Using the Pool......Page 377 The Path End FX......Page 378 Summary......Page 382 Layout......Page 383 Processing Sprite Textures......Page 396 Background Management......Page 403 Game Level GUI......Page 409 Making the Game Timer......Page 412 Adding Health......Page 416 Pausing the Game......Page 419 Encouraging Another Game......Page 423 Loading the Board Level......Page 424 Retaining Data Between Levels......Page 425 Interacting with the GUI by Using a Gamepad......Page 429 Summary......Page 432 Chapter 11: Rewards and Monetization......Page 434 Managing the New Data......Page 435 Creating the Purchased Functionality......Page 438 Moving Bananas......Page 439 Adapting the Banana Peel Move for a Gamepad......Page 450 Neutralizing the Spinner......Page 459 Hiring Some Help......Page 461 Hiding the Guard......Page 469 Making the Store......Page 471 Finishing the Start Menu......Page 473 Hooking Up the Store......Page 478 Summary......Page 485 Chapter 12: Building for Windows Store......Page 486 Reviewing Requirements......Page 487 Enabling Developer Mode......Page 489 Installing the Windows 10 SDK......Page 491 Verifying Installations......Page 493 Setting Your Build Defaults......Page 498 Customizing the Player Settings......Page 499 Adding More Art Assets......Page 501 Building for Windows......Page 503 Exploring Screen Settings and Orientation......Page 509 Providing Icons and Logos......Page 510 Adding the Splash Screen......Page 520 Enabling the Gyroscope Functionality......Page 522 Adding the Gyroscope Code......Page 527 Saving Store and Game Data......Page 531 Testing Purchases......Page 534 Configuring In-App Purchase Names......Page 540 Simulating Purchases......Page 541 Obtaining a Developer Account......Page 543 Packaging UWP Apps......Page 545 Windows App Certification Kit......Page 552 Uploading to the Windows Store......Page 556 Monetization......Page 568 Suspended Apps......Page 569 Cleaning Up Unused Code......Page 571 Testing on Windows 10 Phone......Page 572 Extending the UWP......Page 574 HoloLens......Page 575 Summary......Page 576 Index......Page 578 This Book Will Take You Through The Process Of Creating A Game For The Windows Phone Market With A Heavy Emphasis Placed On Optimization And Good Design Decisions. On Your Way, You Will Be Introduced To Key Unity Concepts And Functionality, Weigh The Pros And Cons Of Various Possibilities, And Gain A Good Working Knowledge Of Scripting In The Unity Environment Using Both Javascript And C#. Learn Unity For Windows 10 Game Development Starts By Exploring The Unity Editor And Experimenting With Staple Game Functionality. If You Are New To Scripting Or Just New To C#, You Will Be Able To Investigate Syntax, Commonly Used Functions, And Communication Required To Bring Your Ideas To Life. With The Book's Included Art Assets, You Will Learn The Ins And Outs Of Asset Choices And Management While Making Use Of Unity's 2d Physics, Shuriken Particle Systems And Mecanim's Character And State Management Tools. Finally, You Will Bring It All Together To Create A Multi-level Game As You Learn How To Incorporate Mobile Specific Functionality, Test On A Windows Phone Device, And Others For Windows 10 And Ultimately, Publish Your Game To The Windows App Store. You'll Even Learn About Marketing And Monetization In The Mobile Game Market.