|
@ -1,6 +1,7 @@ |
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
#include <termios.h> |
|
|
#include <termios.h> |
|
|
#include <stdlib.h> |
|
|
#include <stdlib.h> |
|
|
|
|
|
#include <unistd.h> |
|
|
|
|
|
|
|
|
#define WIDTH 40 //Breite Spielfeld |
|
|
#define WIDTH 40 //Breite Spielfeld |
|
|
#define HEIGHT 20 //Höhe Spielfeld |
|
|
#define HEIGHT 20 //Höhe Spielfeld |
|
@ -92,6 +93,8 @@ int main(){ |
|
|
|
|
|
|
|
|
draw Field(paddle1PositionY, paddle2PositionY); |
|
|
draw Field(paddle1PositionY, paddle2PositionY); |
|
|
|
|
|
|
|
|
|
|
|
usleep(100000); //Verlangsamen Schleife/Spiel |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|