توسعه بازی اندروید با یونیتی: از مبتدی تا حرفهای
Beginning Unity Android Game Development : From Beginner to Pro
معرفی کتاب «توسعه بازی اندروید با یونیتی: از مبتدی تا حرفهای» (با عنوان لاتین Beginning Unity Android Game Development : From Beginner to Pro) نوشتهٔ Chatterjee.;Kishan Takoordyal، منتشرشده توسط نشر Apress : Imprint: Apress در سال 2020. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.
Master the art of programming games for Android using the Unity3D game engine. This book will help you understand basic concepts of game development in Unity. By the end of Beginning Unity Android Game Development , you will have the knowledge to confidently build an Android game. The book starts by explaining simple programming concepts to make beginners comfortable with the jargon. You will then learn to navigate around the Unity interface and use basic tools (hand, move, rotate, scale, and rect). You will also be acquainted with the creation of basic 3D objects in the game while understanding the purpose of several of Unitys windows. In the last chapters, you will learn to create a simple game for Android using the concepts studied in the previous chapters. Scripts will be written to handle the behaviors of the player and enemies as well as to handle other aspects of the game. The author shares tips along the way to help improve in-game performance, such as switching to the universal rendering pipeline when targeting mobile platforms. At the end of the book, you will have a solid knowledge in making basic Android games that can be upgraded later to make more complex games. What You Will Learn Explore basic Unity and C# programming concepts and scripting for Android games Navigate around the Unity interface and use its basic tools Make the most of popular components and features of Unity Write an Android game with optimizations Who This Book Is For Absolute beginners learning to program games for the Android platform using Unity3D. Basic knowledge of programming would be beneficial for the reader but is not required. Table of Contents 5 About the Author 10 About the Technical Reviewer 11 Introduction 12 Chapter 1: Programming Concepts 13 1.1 Variables, Constants, and Types 16 1.1.1 Integer Data Type 16 1.1.2 Float Data Type 16 1.1.3 Boolean Data Type 16 1.1.4 String Data Type 17 1.1.5 Variables 17 1.1.6 Constants 18 1.1.7 Comments 18 1.2 Arrays 19 1.2.1 Declaring and Creating an Array 19 1.2.2 Setting, Fetching, and Modifying Values in an Array 20 1.3 Arithmetic Operators 21 1.3.1 Addition, Subtraction, Multiplication, and Division 21 1.3.2 Variables and Constants 22 1.3.3 Modulus 22 1.3.4 Compound Assignment Operators 23 1.3.5 Quick Increment and Decrement 23 1.3.6 Unary Operations 23 1.3.7 Casting 24 1.4 Logical Operators 24 1.4.1 Simple Boolean Expressions 25 1.4.2 AND (&&) 26 1.4.3 OR (||) 26 1.4.4 NOT (!) 26 1.5 Selection 26 1.5.1 if then else Control Structure 27 1.5.2 Case Control Structure 29 1.6 Iteration 30 1.6.1 while Loop 31 1.6.2 for Loop 31 1.6.3 foreach Loop 32 1.6.4 Continue and Break 33 1.7 Functions 34 1.7.1 Basics 35 1.7.2 Parameters 35 1.7.3 Returning a Value 36 1.7.4 global and local 37 1.8 Coroutines 38 1.8.1 Defining and Calling Coroutines 38 1.8.2 Using Seconds Instead of Frames 39 Chapter 2: Introduction to Unity 41 2.1 Creating a Unity Account 41 2.2 Downloading Unity and Add-ons 42 2.2.1 Unity Hub 43 2.2.2 Creating an Empty Project 45 2.3 Essential Windows 47 2.3.1 The Project Window 48 2.3.2 The Hierarchy Window 49 2.3.3 The Scene Window 50 2.3.4 Game View 58 2.3.5 The Inspector Window 62 2.3.6 The Unity Asset Store 64 2.3.7 The Console Window 67 2.3.8 Build Settings 70 Chapter 3: GameObjects, Prefabs, Materials, and Components 71 3.1 GameObjects and Prefabs 71 3.2 Components 74 3.2.1 Transform 77 3.2.2 Camera 79 3.2.3 Lighting 84 3.2.4 Renderer 88 3.2.5 Collider 89 3.2.6 Rigidbody 93 3.2.7 Audio Source and Listener 94 3.2.8 Particle System 96 3.2.9 Trail Renderer 105 3.3 Materials 108 3.4 Tags and Layers 110 3.5 Scripts 112 Chapter 4: User Interface 116 4.1 Canvas 117 4.1.1 Canvas Component 118 4.1.2 Canvas Scaler 120 4.1.3 Graphic Raycaster 122 4.2 Rect Transform 123 4.3 Text 125 4.4 Image 127 4.5 Raw Image 129 4.6 Slider 130 4.7 Button 133 4.8 Input Field 135 4.9 Toggle 137 4.10 Drop-down 139 4.11 Scrollbar 141 4.12 Scrollview 143 4.13 Panel 145 4.14 EventSystem 145 4.15 Introduction to Input Axes 147 Chapter 5: Building Our First Android Game: Sphere Shooter 149 5.1 Render Pipelines 149 5.1.1 Universal Render Pipeline (URP) 150 5.2 The Environment 155 5.3 Our Player (Tank) 161 5.3.1 Making the Tank 161 5.3.2 Setting Up Our Scene 167 5.3.3 Player Movement 173 5.3.4 Camera Positioning 180 5.3.5 Making the Player Shoot Bullets 181 5.4 Enemies 189 5.4.1 Making an Enemy 189 5.4.2 Importing Another Asset from the Store 193 5.4.3 Making Our Enemy Move and Explode 193 Chapter 6: Improving and Building Sphere Shooter 202 6.1 Spawning Enemies 202 6.2 Scoring 205 6.3 Making Menus 211 6.3.1 Coding Utilities Required 211 6.3.2 Start Menu 214 6.3.3 Pause Menu 220 6.3.4 Game Over Menu 225 6.4 Adding Health 230 6.5 A New Enemy 237 6.6 HealthBoxes 242 6.6.1 Making the healthBox 242 6.6.2 Adding Health 243 6.6.3 Spawning healthBoxes Along the Map 244 6.7 Exporting the Game as an .apk file 248 Index 258
دانلود کتاب توسعه بازی اندروید با یونیتی: از مبتدی تا حرفهای