From 285cc5b057ef9a3ade9aea83b1cd097ea2d81dfe Mon Sep 17 00:00:00 2001 From: Atsutane Date: Wed, 6 May 2009 17:27:22 +0200 Subject: game(): Made some small changes to improve playability. --- src/pong.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pong.c b/src/pong.c index c185d85..297dfcf 100644 --- a/src/pong.c +++ b/src/pong.c @@ -372,9 +372,8 @@ int game(void) { p=0; clocks = clock(); - interval = CLOCKS_PER_SEC/4; - - while (getch() != ' '); + interval = CLOCKS_PER_SEC/12; + gd->ball->mv_right = TRUE; ball_movement(gd); @@ -385,7 +384,7 @@ int game(void) { while ((gd->p1->score != 21) && (gd->p2->score != 21)) { if (clock() > clocks + interval) { - if (p == 3) { + if (p == 4) { /* Input Handling for P1 goes here. * I don't have the knowledge for -- cgit v1.2.3-70-g09d2