An Accessible, Modular Style of Game Building—Easily Start Making Games with Unity 3D
C# Game Programming Cookbook for Unity 3D presents a highly flexible core framework to create just about any type of game by plugging in different script components. Most scripts function within the game framework or in your own structures. The techniques and concepts discussed in the book give you a solid foundation in game development.
The first ten chapters set up the flexible, reusable framework based in C# and suitable for all game types. The book also explains scripting of generic, reusable, and common functionality.
The remainder of the text adds game-specific code to the framework to create four example games: a top-down arena shooter, a futuristic racing combat game, a tank arena deathmatch game, and a classic arcade-style vertical scrolling shoot ’em up. The games encompass artificial intelligence (path following, target chasing, and line-of-sight patrolling behaviors), game state control, wheel colliders, and weapon inventory management. The example files are available for download on the book’s CRC Press web page.
Reducing your recoding, repurposing, or adaptation time, this book provides script-based components that you can use to jump start your own projects. The book’s modular components can be mixed and matched to build various kinds of video games for the Unity game engine.
Table of Contents
Chapter 1: Making Games the Modular Way
Chapter 2: Building the Core Game Framework
Chapter 3: Player Structure
Chapter 4: Recipes: Common Components
Chapter 5: Building Player Movement Controllers
Chapter 6: Weapon Systems
Chapter 7: Recipe: Waypoints Manager
Chapter 8: Recipe: Sound Manager
Chapter 9: AI Manager
Chapter 10: Menus and User Interface
Chapter 11: Dish: Lazer Blast Survival
Chapter 12: Dish: Metal Vehicle Doom
Chapter 13: Dish: Making the Game Tank Battle
Chapter 14: Dish: Making the Game Interstellar Paranoids