CHAPTER 6

Player Mechanics

You have to learn the rules of the game. And then you have to play better than anyone else.

Albert Einstein

6.1 Introduction

We've already examined numerous ways for the player to interact with the game environment. One of the easiest methods is to let the physics engine do all the work for determining how the player's avatar collides and moves game objects. Before physics engines, this was probably one of the more difficult and laborious jobs in programming the player mechanics.

Players require feedback from the game in order to determine their status and progress. This could be in the form of a heads-up display (HUD) ...

Get Holistic Game Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.