0%

Book Description

​Designed for beginners with no knowledge or experience in game development or programming, this book teaches the essentials of the Unity game engine, the C# programming language, and the art of object-oriented programming. New concepts are not only explained, but thoroughly demonstrated.

Starting with an introduction to Unity, you'll learn about scenes, GameObjects, prefabs, components, and how to use the various windows to interact with the engine. You'll then dive into the fundamentals of programming by reviewing syntax rules, formatting, methods, variables, objects and types, classes, and inheritance, all while getting your hands dirty writing and testing code yourself. Later, the book explains how to expose script data in the Inspector and the basics of Unity’s serialization system. 

This carefully crafted work guides you through the planning and development of bare bones, simple game projects designed to exercise programming concepts while keeping less relevant interruptions out of the way, allowing you to focus on the implementation of game mechanics first and foremost. Through these example projects, the book teaches input handling, rigidbodies, colliders, cameras, prefab instantiation, scene loading, user interface design and coding, and more.

By the end, you'll have built a solid foundation in programming that will pave your way forward in understanding core C# syntax and fundamentals of object-oriented programming—not just what to type but why it's typed and what it’s really doing. Game Programming with Unity and C# will send you on your way to becoming comfortable with the Unity game engine and its documentation and how to independently seek further information on yet-untouched concepts and challenges.

What You'll Learn
  • Understand the fundamentals of object-oriented computer programming, including topics specifically relevant for games.
  • Leverage beginner-to-intermediate-level skills of the C# programming language and its syntax.
  • Review all major component types of the Unity game engine: colliders and rigidbodies, lights, cameras, scripts, etc.
  • Use essential knowledge of the Unity game engine and its features to balance gameplay mechanics for making interesting experiences. 
Who This Book Is For

Beginners who have no prior experience in programming or game development who would like to learn with a solid foundation that prepares them to further develop their skills.

Table of Contents

  1. Cover
  2. Front Matter
  3. 1. Installation and Setup
  4. 2. Unity Basics
  5. 3. Manipulating the Scene
  6. 4. Parents and Their Children
  7. 5. Prefabs
  8. 6. Programming Primer
  9. 7. Code Blocks and Methods
  10. 8. Conditions
  11. 9. Working with Objects
  12. 10. Working with Scripts
  13. 11. Inheritance
  14. 12. Debugging
  15. Part I. Obstacle Course
    1. 13. Obstacle Course Design and Outline
    2. 14. Player Movement
    3. 15. Death and Respawning
    4. 16. Basic Hazards
    5. 17. Walls and Goals
    6. 18. Patrolling Hazards
    7. 19. Wandering Hazards
    8. 20. Dashing
    9. 21. Designing Levels
    10. 22. Menus and UI
    11. 23. In-Game Pause Menu
    12. 24. Spike Traps
    13. 25. Obstacle Course Conclusion
  16. Part II. Tower Defense
    1. 26. Tower Defense Design and Outline
    2. 27. Camera Movement
    3. 28. Enemies, Towers, and Projectiles
    4. 29. Build Mode
    5. 30. Play Mode
    6. 31. More Tower Types
    7. 32. Tower Defense Conclusion
  17. Part III. Physics Playground
    1. 33. Physics Playground Design and Outline
    2. 34. Mouse-Aimed Camera
    3. 35. Advanced 3D Movement
    4. 36. Wall Jumping
    5. 37. Pulling and Pushing
    6. 38. Moving Platforms
    7. 39. Joints and Swings
    8. 40. Force Fields and Jump Pads
    9. 41. Conclusion
  18. Back Matter
13.59.218.147