Re-dispatches recorded events at their recorded frames.
constplayer = newPlayer(deserializeReplay(saved), (a) =>Input.onAction.dispatch(a), game.onFrame); // ...drive the loop by hand: game.step(1 / 60) per frame...
Events are dispatched on the frame signal whose count has reached their
stamp, before the player's own count advances - the same relative point a
live action held during recording. dispatch usually forwards into
Input.onAction, but tests pass a collector instead.
Re-dispatches recorded events at their recorded frames.
Events are dispatched on the frame signal whose count has reached their stamp, before the player's own count advances - the same relative point a live action held during recording.
dispatchusually forwards intoInput.onAction, but tests pass a collector instead.Example