Pong no longer shakes as much the first few frames.

This commit is contained in:
Jonas 'Sortie' Termansen 2011-11-28 11:48:02 +01:00
parent 1686b2b903
commit 965f3e3dbf
1 changed files with 3 additions and 3 deletions

View File

@ -74,10 +74,10 @@ void Reset()
ballx = width/2;
bally = height/2;
oldballx = ballx;
oldbally = bally;
ballvelx = -1;
ballvely = -1;
oldballx = ballx - ballvelx;
oldbally = bally - ballvely;
p1y = (height-padsize) / 5;
p2y = (height-padsize) / 5;
p1vup = false;
@ -239,11 +239,11 @@ int main(int argc, char* argv[])
while (true)
{
Thread::USleep(sleepms * 1000);
ReadInput();
Update();
UpdateUI();
FlushVGA();
Thread::USleep(sleepms * 1000);
if ( soundleft < 0 ) { continue; }
if ( soundleft <= 50 )
{