Guest User

Untitled

a guest
Jul 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1.  
  2. //ANIMACJA
  3. if(animacja==1)
  4. {
  5. clearScreen();
  6.  
  7. int a=0;
  8. for(a=0 ; a<=20 ; a++)
  9. {
  10. clearScreen();
  11. for(int i=0 ; i<10 ; i++)
  12. {
  13. gotoXY(20,i+20-a);
  14.  
  15.  
  16. for(int j=0 ; j<40 ; j++)
  17. {
  18. if(tab[i][j]!=' ')
  19. {
  20. kolor();
  21. }
  22. printf("%c",tab[i][j]);
  23. }
  24. printf("\n");
  25. }
  26. Sleep(50);
  27. }
  28. animacja=0;
  29.  
  30. //CHWOANIE SIE TABLICY ZA GARNA KRWEDZIA/////////
  31. for(int b=0 ; b<=10 ; b++)
  32. {
  33. clearScreen();
  34. for(int i=b, k=0; i<10 ; i++,k++)
  35. {
  36. gotoXY(20,k);
  37.  
  38. for(int j=0 ; j<40 ; j++)
  39. {
  40. if(tab[i][j]!=' ')
  41. {
  42. kolor();
  43. }
  44. printf("%c",tab[i][j]);
  45. }
  46. printf("\n");
  47. }
  48. Sleep(50);
  49. }
  50. //WTLANIANIE SIE TABLICY Z DOLU
  51. //wyłanianie się z dołu :)
  52.  
  53. for(int b=0 ; b<10 ; b++)
  54. {
  55. clearScreen();
  56. for(int i=b, k=0; i>=0 ; i--,k++)
  57. {
  58. gotoXY(20,48-k);
  59.  
  60. for(int j=0 ; j<40 ; j++)
  61. {
  62. if(tab[i][j]!=' ')
  63. {
  64. kolor();
  65. }
  66. printf("%c",tab[i][j]);
  67. }
  68. printf("\n");
  69. }
  70. Sleep(50);
  71. }
  72. }
Add Comment
Please, Sign In to add comment