summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmaan Bhojwani <me@armaanb.net>2021-05-15 20:49:10 -0400
committerArmaan Bhojwani <me@armaanb.net>2021-05-15 20:49:10 -0400
commitc117414b4574890e3874c09ee8974dce691cd4b1 (patch)
tree5663a8070e6caeb8f1eaca50ea1789e711c7b99c
parent264c1e462100930af2912c4e46a70a547b49d2a2 (diff)
downloadpong-c117414b4574890e3874c09ee8974dce691cd4b1.tar.gz
Revert paddle speed reduction
-rw-r--r--pong.c8
1 files changed, 4 insertions, 4 deletions
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();