ABSTRACT

This chapter builds an infinite runner type game. To do this, the chapter explores using an Object-Oriented Programming (OOP) technique called inheritance and looks at how character controllers work in Unity before getting into the code. A parent class can be also be called a superclass or a base class. A child class can be also be called a subclass or derived class. All these terms are interchangeable. The process of providing a more specialized version of an inherited method is called overriding. The character controller class is a set of convenient methods, functionality, and shortcuts that allow artists to move characters around. The character controller has its own special kind of physics built in. The chapter discusses the simple object pooling, which is a way to make artists games more efficient. Project setup has a number of different small steps, so the artists need to be sure to read through this carefully.