Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. #include <conio.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <windows.h>
  5.  
  6. #define ANZ_ZEILEN 20
  7. #define ANZ_SPALTEN 40
  8. #define LEN_BAR 10
  9.  
  10.  
  11. int main()
  12. {
  13. int ball_x = 5;
  14. int ball_y = 5;
  15. int new_ball_x;
  16. int dx = 1;
  17. int dy = -1;
  18. int bar_x = 4;
  19. char screen[ANZ_ZEILEN][ANZ_SPALTEN];
  20. init_screen(screen);
  21. while (1) {
  22.  
  23. printf("000000000000000000000000000000000000000");
  24. printf("0 0");
  25. printf("0 0");
  26. printf("0 0");
  27. printf("0 0");
  28. printf("0 0");
  29. printf("0 0");
  30. printf("0 0");
  31. printf("0 0");
  32. printf("0 0");
  33. printf("0 0");
  34. printf("0 0");
  35. printf("0 0");
  36. printf("0 0");
  37. printf("0 0");
  38. printf("0 0");
  39. printf("0 0");
  40. printf("0 0");
  41. printf("0 0");
  42. printf("000000000000000000000000000000000000000");
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. }
  51. getchar()
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement