Creating a testbed

Before we create our rewinding system, we'll need a demo game to build off. For this one, we'll create a simple first person shooter (there is a pre-made first person controller asset included with Unity). Players can click to shoot, which will deal with 10 damages to the target. After receiving 100 or more damages, the player is disconnected from the match.

First, we'll start on an empty project. Import the Character Controller package (Assets | Import Package | Character Controller). This includes a first person character controller prefab (Standard Assets | Character Controllers | First Person Controller).

Creating a testbed

Drag this prefab into ...

Get Unity Multiplayer Games 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.