From 1636b53e131649af149ba398d43d5b1795e4d832 Mon Sep 17 00:00:00 2001 From: fdai8040 Date: Wed, 31 Jan 2024 14:55:36 +0000 Subject: [PATCH] Verlangsamen Schleife --- src/main/c/Pong/game.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/c/Pong/game.c b/src/main/c/Pong/game.c index 6453f7a..11a11b4 100644 --- a/src/main/c/Pong/game.c +++ b/src/main/c/Pong/game.c @@ -1,6 +1,7 @@ #include #include #include +#include #define WIDTH 40 //Breite Spielfeld #define HEIGHT 20 //Höhe Spielfeld @@ -92,6 +93,8 @@ int main(){ draw Field(paddle1PositionY, paddle2PositionY); + usleep(100000); //Verlangsamen Schleife/Spiel + } } return 0;