Hi,
I’m wondering how do you use time when you want to move for example a tetris one place down?
I currently use this:
for(int i=0;i<MOVE_DELAY;i++) {
piece.move(piece.down);
}
I’ve seen on this site
this game loop
float t = 0.0f;
float currentTime = time();
while (!quit)
{
float newTime = time();
float dt = newTime - currentTime;
currentTime = newTime;
integrate(state, t, dt);
t += dt;
render(state);
}
from http://www.gaffer.org/game-physics/fix-your-timestep/
and I don’t understand this line: render(state);
how would you use that state?
