1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

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

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 )
{