Game Programming with Unity and C#: A Complete Beginner's Guide
- 9h 2m
- Casey Hardman
- Apress
- 2020
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.
About the Author
Casey Hardman is a hobbyist game developer, who found inspiration in the capacity for immersion and interactivity provided by games. His area of focus is the Unity game engine. He has nurtured a passion for video games since he was a child. In his early teens, this interest led him on a journey into the world of game design and programming. He is self-taught through a variety of personal projects, some small and some lofty. He has been regular contributor on various online game development platforms and spends far too much time in front of a keyboard.
In this Book
-
Installation and Setup
-
Unity Basics
-
Manipulating the Scene
-
Parents and Their Children
-
Prefabs
-
Programming Primer
-
Code Blocks and Methods
-
Conditions
-
Working with Objects
-
Working with Scripts
-
Inheritance
-
Debugging
-
Obstacle Course Design and Outline
-
Player Movement
-
Death and Respawning
-
Basic Hazards
-
Walls and Goals
-
Patrolling Hazards
-
Wandering Hazards
-
Dashing
-
Designing Levels
-
Menus and UI
-
In-Game Pause Menu
-
Spike Traps
-
Obstacle Course Conclusion
-
Tower Defense Design and Outline
-
Camera Movement
-
Enemies, Towers, and Projectiles
-
Build Mode
-
Play Mode
-
More Tower Types
-
Tower Defense Conclusion
-
Physics Playground Design and Outline
-
Mouse-Aimed Camera
-
Advanced 3D Movement
-
Wall Jumping
-
Pulling and Pushing
-
Moving Platforms
-
Joints and Swings
-
Force Fields and Jump Pads
-
Conclusion