Maxdamantus / recplay

Elasto Mania level/replay interpreter/renderer in JS/canvas; used on https://elma.online/
https://maxdamantus.github.io/recplay/
8 stars 4 forks source link

First turn frame glitch #3

Open RobinManoli opened 4 years ago

RobinManoli commented 4 years ago

Hi! Imo there is a bug in rendering the first frame of the turn animation. The frame before the turn animation starts rendered as already turned. Then the animation starts next frame.

I didn't look so much into the logic, but here is a quick fix:

https://github.com/Maxdamantus/recplay/blob/master/src/recRender.ts#L224 const lastTurnF = lastTurn(frame) - 1;