From: Armaan Bhojwani Date: Sun, 16 May 2021 00:49:10 +0000 (-0400) Subject: Revert paddle speed reduction X-Git-Url: https://git.armaanb.net/?p=pong.git;a=commitdiff_plain;h=c117414b4574890e3874c09ee8974dce691cd4b1 Revert paddle speed reduction --- diff --git a/pong.c b/pong.c index 2f45467..eba648a 100644 --- a/pong.c +++ b/pong.c @@ -78,13 +78,13 @@ main(void) { if (key == 'q') { die(0); } else if (key == 'k') { - if (boff < max_y - pad_h) boff += 1; + if (boff < max_y - pad_h) boff += 2; } else if (key == 'i') { - if (boff > 0) boff -= 1; + if (boff > 0) boff -= 2; } else if (key == 's') { - if (aoff < max_y - pad_h) aoff += 1; + if (aoff < max_y - pad_h) aoff += 2; } else if (key == 'w') { - if (aoff > 0) aoff -= 1; + if (aoff > 0) aoff -= 2; } else if (key == 27) { while(1) { key = getch();