Commit Graph

4 Commits

Author SHA1 Message Date
ikework
2860414a0c replay:
* interpolation between sampled frames
* restart game works with replay

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1254 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-09-21 19:17:48 +00:00
ikework
0a44bf57d5 replay ghost works very basic.
* no interpolation of ghosts position between sampled frames
* no transparency or something else to distinguish

to see it:
* run a game, rename file replay/test.rph to replay/test1.rph - this file is shown in replay

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-09-21 18:02:53 +00:00
ikework
76dc339f38 change ReplayPlayer -allocation/deallocation in worls, world crashed in dtor, if replay-file was not found
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1249 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-09-19 18:28:48 +00:00
ikework
77bdd4a4fc the start of my replay-implementation
all code related to it must be activated with compiler-switch HAVE_GHOST_REPLAY
folder "replay" added to store the replay-files

there are 2 main classes. ReplayRecorder & ReplayPlayer. both are members of class World. the first is for recording/saving a replay and the latter one for showing the replay/loading/ghost-replay

*recording* a game works already very basic, only karts position-struct is stored and some data about the game (track,karts,player...)

the replay file currently is written to replay-folder in world's destructor to replay/test.rph
and it is loaded into ReplayPlayer in World's constructor

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1243 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-09-19 09:23:02 +00:00