Game Programming with Unity and C#
Год издания: 2024
Автор: Hardman C.
Издательство: Apress
ISBN: 978-1-4842-9720-9
Язык: Английский
Формат: PDF/ePub
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 428
Описание: Learn the essentials of the Unity game engine, the C# programming language, and the art of object-oriented programming. This book is aimed at beginners with no knowledge or experience in game development or programming.
Packed with examples, this Second Edition is up-to-date with the latest Unity standards and features as of 2023, and includes many adjustments to improve your experience. Starting with an introduction to Unity, you will learn the essentials of the engine: navigating the various windows, managing the objects that make up your game, and understanding the concepts that are fundamental to the engine. After that, you will gain a solid foundation in the concepts of object-oriented programming and the syntax of the C# language. Then the fun really begins, as you get hands-on experience building three playable example projects that drill you on the concepts you’ve learned until they stick.
Guided at each step by author Casey Hardman, you will outline and implement bare-bones, simple games designed to exercise your development skills: a top-down obstacle course, a tower defense game, and a 3D playground that demonstrates Unity's physics features. As you progress through the book, you'll put to use more and more of the features of C# and Unity, adding tools to your belt and strengthening you as a game developer. By the time you’ve completed the book, you will be empowered to strike out on your own and build the game mechanics of your choice.
What You Will Learn:
- Understand the fundamentals of object-oriented computer programming and the C# programming language
- Leverage the features of Unity to implement game mechanics with reusable, clean, and elegant code
- Design and implement your own mechanics and independently solve problems as they arise
Примеры страниц (скриншоты)
Оглавление
About the Author xvii
About the Technical Reviewer xix
Introduction xxi
Part I: Unity Fundamentals 1
Chapter 1: Installation and Setup 3
Chapter 2: Unity Basics 9
Chapter 3: Manipulating the Scene 17
Chapter 4: Parents and Their Children 23
Chapter 5: Prefabs 31
Part II: Programming Fundamentals 39
Chapter 6: Programming Primer 41
Chapter 7: Code Blocks and Methods 47
Chapter 8: Conditions 59
Chapter 9: Working with Objects 67
Chapter 10: Working with Scripts 77
Chapter 11: Inheritance 85
Chapter 12: Debugging 97
Part III: Obstacle Course 103
Chapter 13: Obstacle Course Design and Outline 105
Chapter 14: Player Movement 111
Chapter 15: Death and Respawning 129
Chapter 16: Basic Hazards 135
Chapter 17: Walls and Goals 147
Chapter 18: Patrolling Hazards 155
Chapter 19: Wandering Hazards 171
Chapter 20: Dashing 179
Chapter 21: Designing Levels 185
Chapter 22: Menus and UI 193
Chapter 23: In-Game Pause Menu 203
Chapter 24: Spike Traps 209
Chapter 25: Obstacle Course Conclusion 219
Part IV: Tower Defense 227
Chapter 26: Tower Defense Design and Outline 229
Chapter 27: Camera Movement 233
Chapter 28: Enemies and Projectiles 241
Chapter 29: Towers and Targeting 253
Chapter 30: Build Mode UI 267
Chapter 31: Building and Selling 279
Chapter 32: Play Mode Logic 297
Chapter 33: Enemy Logic 309
Chapter 34: More Tower Types 323
Chapter 35: Tower Defense Conclusion 335
Part V: Physics Playground 341
Chapter 36: Physics Playground Design and Outline 343
Chapter 37: Mouse-Aimed Camera 347
Chapter 38: Advanced 3D Movement 363
Chapter 39: Wall Jumping 377
Chapter 40: Pulling and Pushing 383
Chapter 41: Moving Platforms 393
Chapter 42: Joints and Swings 399
Chapter 43: Force Fields and Jump Pads 407
Chapter 44: Conclusion 413
Index 423