Phil Hassey - game dev blog
Phil Hassey as Rambo
".. I've been there,
I know what it's like,
and I'll do it again if I have to."

Time rewinding fire effect

Part of the trick of time rewinding is to have as little state as possible.  This fire effect is generated from just this:

fire_draw(GAME.t,0,100,100,12,234)
To get this to work, I’ve pre-calculated how the flames will move.  Since the state is so small, fast-forward and rewind only depends on changing the GAME.t .
-Phil

Comments are closed.