Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <windows.h>
- #define ANZ_ZEILEN 20
- #define ANZ_SPALTEN 40
- #define LEN_BAR 10
- int main()
- {
- int ball_x = 5;
- int ball_y = 5;
- int new_ball_x;
- int dx = 1;
- int dy = -1;
- int bar_x = 4;
- char screen[ANZ_ZEILEN][ANZ_SPALTEN];
- init_screen(screen);
- while (1) {
- printf("000000000000000000000000000000000000000");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("0 0");
- printf("000000000000000000000000000000000000000");
- }
- getchar()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement