Mark Andrade

Replay System

I started writing a replay system.

As soon as a game ends I want it to replay that last game. The idea is to keep track of user input and game entity events.

A simple prop array should do the trick.

I reset the frame counter at endgame. Now instead of tracking user input or having an algorithm run the entity events I trigger the events only at the frame it was fired.

If it works out correctly the replay will automatically loop itself.