What is the best way to do an attract mode in a game?
The way I would do it is this:
I would set the randomizer to a specific seed value and then I would play the game and record the input with the emulator.
Then I would save the input as an array:
First byte: Pressed buttons
Second byte: Number of frames these buttons are held
Repeat.
Before the attract mode starts, I would save the current randomizer seed in a specific variable. Then I would set the specific value with which I recorded the play to the randomizer seed.
Then I would let the game play out normally, only that controller input is like this:
Controller = attractMode ? ReadNextAttractModeValue() : ReadController();
And in the end, I would set the randomizer seed back to the saved value.
Do you have any improvements to suggest?
The way I would do it is this:
I would set the randomizer to a specific seed value and then I would play the game and record the input with the emulator.
Then I would save the input as an array:
First byte: Pressed buttons
Second byte: Number of frames these buttons are held
Repeat.
Before the attract mode starts, I would save the current randomizer seed in a specific variable. Then I would set the specific value with which I recorded the play to the randomizer seed.
Then I would let the game play out normally, only that controller input is like this:
Controller = attractMode ? ReadNextAttractModeValue() : ReadController();
And in the end, I would set the randomizer seed back to the saved value.
Do you have any improvements to suggest?