Limit search to available items
Book Cover
E-book
Author Hardman, Casey

Title Game programming with Unity and C# : a complete beginner's guide / Casey Hardman
Published Berkeley, CA : Apress, 2020

Copies

Description 1 online resource (573 pages)
Contents Intro -- Table of Contents -- About the Author -- About the Technical Reviewer -- Introduction -- Chapter 1: Installation and Setup -- Installing Unity -- Installing Our Code Editor -- Creating a Project -- Summary -- Chapter 2: Unity Basics -- Windows -- Project Window -- Scene Window -- Hierarchy Window -- Inspector Window -- Components -- Adding GameObjects -- Summary -- Chapter 3: Manipulating the Scene -- Transform Tools -- Positions and Axes -- Making a Floor -- Scale and Unit Measurements -- Summary -- Chapter 4: Parents and Their Children -- Child GameObjects
World vs. Local Coordinates -- A Simple Building -- Pivot Points -- Summary -- Chapter 5: Prefabs -- Making and Placing Prefabs -- Editing Prefabs -- Overriding Values -- Nested Prefabs -- Prefab Variants -- Summary -- Chapter 6: Programming Primer -- Programming Languages and Syntax -- What Code Does -- Strong vs. Weak Typing -- File-Type Extensions -- Scripts -- Summary -- Chapter 7: Code Blocks and Methods -- Statements and Semicolons -- Code Blocks -- Comments -- Methods -- Calling Methods -- Basic Data Types -- Returning Values with Methods -- Declaring Methods -- Operators -- Summary
Chapter 8: Conditions -- The "if" Block -- Overloads -- Enums -- The "else" Block -- The "else if" Block -- Operators for Conditions -- Equality Operators -- Greater Than and Less Than -- Or -- And -- Summary -- Chapter 9: Working with Objects -- Classes -- Variables -- Accessing Class Members -- Instance Methods -- Declaring Constructors -- Using the Constructor -- Static Members -- Summary -- Chapter 10: Working with Scripts -- Usings and Namespaces -- Script Class -- Rotating a Transform -- Frames and Seconds -- Attributes -- Summary -- Chapter 11: Inheritance
Inheritance in Action: RPG Items -- Declaring Our Classes -- Constructor Chaining -- Subtypes and Casting -- Number Value Types -- Type Checking -- Virtual Methods -- Summary -- Chapter 12: Debugging -- Setting Up the Debugger -- Breakpoints -- Using Unity's Documentation -- Summary -- Part I: Obstacle Course -- Chapter 13: Obstacle Course Design and Outline -- Gameplay Overview -- Technical Overview -- Player Controls -- Death and Respawn -- Levels -- Level Selection -- Obstacles -- Project Setup -- Summary -- Chapter 14: Player Movement -- Player Setup -- Materials and Colors
Declaring Our Variables -- Properties -- Tracking the Velocity -- Applying the Movement -- Summary -- Chapter 15: Death and Respawning -- Enabling and Disabling -- Death Method -- Respawn Method -- Summary -- Chapter 16: Basic Hazards -- Collision Detection -- Hazard Script -- Projectile Script -- Shooting Script -- Summary -- Chapter 17: Walls and Goals -- Walls -- Goals -- Build Settings for Scenes -- Summary -- Chapter 18: Patrolling Hazards -- Resembling a Patrol Point -- Arrays -- Setting Up Patrol Points -- Detecting Patrol Points -- The "for" Loop -- Sorting Patrol Points
Summary 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 Unitys 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 its 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. You will: 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 typ es 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
Notes Moving the Patroller
Includes index
Print version record
SUBJECT Unity (Electronic resource) http://id.loc.gov/authorities/names/n2011038776
Unity (Electronic resource) fast
Subject C# (Computer program language)
Video games -- Programming.
Three-dimensional display systems.
three-dimensional.
Software Engineering.
Games development & programming.
Computers -- Software Development & Engineering -- General.
Computers -- Programming -- Games.
C# (Computer program language)
Video games -- Programming
Three-dimensional display systems
Form Electronic book
ISBN 9781484256565
1484256565