Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ANIMACJA
- if(animacja==1)
- {
- clearScreen();
- int a=0;
- for(a=0 ; a<=20 ; a++)
- {
- clearScreen();
- for(int i=0 ; i<10 ; i++)
- {
- gotoXY(20,i+20-a);
- for(int j=0 ; j<40 ; j++)
- {
- if(tab[i][j]!=' ')
- {
- kolor();
- }
- printf("%c",tab[i][j]);
- }
- printf("\n");
- }
- Sleep(50);
- }
- animacja=0;
- //CHWOANIE SIE TABLICY ZA GARNA KRWEDZIA/////////
- for(int b=0 ; b<=10 ; b++)
- {
- clearScreen();
- for(int i=b, k=0; i<10 ; i++,k++)
- {
- gotoXY(20,k);
- for(int j=0 ; j<40 ; j++)
- {
- if(tab[i][j]!=' ')
- {
- kolor();
- }
- printf("%c",tab[i][j]);
- }
- printf("\n");
- }
- Sleep(50);
- }
- //WTLANIANIE SIE TABLICY Z DOLU
- //wyłanianie się z dołu :)
- for(int b=0 ; b<10 ; b++)
- {
- clearScreen();
- for(int i=b, k=0; i>=0 ; i--,k++)
- {
- gotoXY(20,48-k);
- for(int j=0 ; j<40 ; j++)
- {
- if(tab[i][j]!=' ')
- {
- kolor();
- }
- printf("%c",tab[i][j]);
- }
- printf("\n");
- }
- Sleep(50);
- }
- }
Add Comment
Please, Sign In to add comment