Added frame invariant animation. A1getTimeDiff() returns the time passed since the last frame in seconds.