|
|
"Replaying user input using a collection of Types", by matt_sephton
|
23/24 June 2002, version 0.10, tracks user controlled element 26/27 June 2002, version 0.20, tracks multiple computer controlled elements
to do: enable early quit of replay to go back to game
*** feel free to use this method as long as you give me credit
this method can be used to replay user input. this simple demo records the player control of a dot. we choose to do the correct branch of the main loop (moving or drawing) depending on if we are recording (game) or replaying (watching). this could be extended to keep track of multiple items, such as computer/AI controlled characters.
:) matt |
| Code | | | |