Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //nynalib.h
- #include <stdlib.h>
- #include <stdio.h>
- #ifndef _STDIO_H_INCLUDED_
- #ifndef _STDLIB_H_INCLUDED_
- #define _STDLIB_H_INCLUDED_
- #define _STDIO_H_INCLUDED_
- static unsigned int _nyan_frame =0;
- static unsigned long long _nyan_taco =0;
- void print_nyan(){
- system("clear");
- _nyan_frame++;
- _nyan_taco++;
- if(_nyan_frame>9)_nyan_frame=0;
- printf("You've been NYANing for %lld frames and notes\n",_nyan_taco);
- /* Switch that piture, change the print up */
- switch (_nyan_frame){
- case 1:
- printf("+ 0 + o \n");
- printf(" * + + + \n");
- printf("o + \n");
- printf(" o + o * \n");
- printf("+ o o + o \n");
- printf(".~~~.___.~~~ ,-------. o \n");
- printf("~~.___.~~~.__| /\\_/\\ \n");
- printf(".~~~.___.~~~ |___( ^ .^) + + \n");
- printf("~~.___.~~~.___ \"\" \"\" \n");
- printf("+ o o + o \n");
- printf(" + + \n");
- printf("o o o o + \n");
- printf(" o * \n");
- printf("+ + o o + \n");
- break;
- case 2:
- printf(" o * o +\n");
- printf("+ o + * \n");
- printf(" + \n");
- printf("o + + + \n");
- printf(" o o * O \n");
- printf(".~~~.___.~~~ ,-------. o \n");
- printf("~~.___.~~~.__| /\\_/\\ \n");
- printf(".~~~.___.~~~ |___( ^ .^) + + \n");
- printf("~~.___.~~~.___ \"\" \"\" o\n");
- printf(" o o + o \n");
- printf("+ * \n");
- printf(" o o o + \n");
- printf("o + \n");
- printf(" + 0 o * o\n");
- break;
- case 3:
- printf("o + O + \n");
- printf(" o + + o \n");
- printf(" + \n");
- printf("+ + + + \n");
- printf(" o o + o \n");
- printf("~~~.___.~~~. ,-------. o \n");
- printf("~.___.~~~.___| /\\_/\\ + \n");
- printf("~~~.___.~~~. |___( ^ .^) + o\n");
- printf("~.___.~~~.___. \"\" `` o \n");
- printf("o o + o \n");
- printf(" + \n");
- printf(" O o o + * \n");
- printf(" + \n");
- printf("+ o o + O \n");
- break;
- case 4:
- printf("o + o + \n");
- printf(" o + + o \n");
- printf(" + \n");
- printf("+ + + + \n");
- printf(" o o + o \n");
- printf("~~.___.~~~._ ,-------. o \n");
- printf(".___.~~~.___.| /\\_/\\ \n");
- printf("~~.___.~~~._ |___( ^ .^) + o \n");
- printf(".___.~~~.___.~ \"\" `` \n");
- printf("o o + o \n");
- printf(" + \n");
- printf(" o o o + + \n");
- printf(" + \n");
- printf("+ o o + o \n");
- break;
- case 5:
- printf(" + o + \n");
- printf(" o + + o \n");
- printf(" + + \n");
- printf(" + + + \n");
- printf(" o + o \n");
- printf("~.___.~~~.__ ,-------. o \n");
- printf("___.~~~.___.~| /\\_/\\ \n");
- printf("~.___.~~~.__ |___( ^ .^) o +\n");
- printf("___.~~~.___.~~ \"\" `` \n");
- printf(" o + o \n");
- printf(" + \n");
- printf(" o o + + \n");
- printf(" + \n");
- printf(" o o + o \n");
- break;
- case 6:
- printf(" + o + \n");
- printf(" o + + o \n");
- printf(" + + \n");
- printf(" + + + \n");
- printf(" o + o \n");
- printf("~.___.~~~.__ ,-------.o \n");
- printf("__.~~~.___.~~| /\\_/\\ \n");
- printf(".___.~~~.___ |___( ^ .^) + + \n");
- printf("__.~~~.___.~~~ `` `` \n");
- printf(" o + o \n");
- printf(" + \n");
- printf(" o o + + \n");
- printf(" + \n");
- printf(" o o + o \n");
- break;
- case 7:
- printf("+ o + o \n");
- printf(" o + + o + \n");
- printf(" +\n");
- printf(" + + + \n");
- printf(" o + o \n");
- printf("___.~~~.___. ,-------. o \n");
- printf("_.~~~.___.~~~| /\\_/\\ \n");
- printf("___.~~~.___. |___( ^ .^) + + \n");
- printf("_.~~~.___.~~~. \"\" \"\" \n");
- printf(" o + o \n");
- printf(" + \n");
- printf(" o o + + \n");
- printf(" + \n");
- printf(" o o + o \n");
- break;
- case 8:
- printf(" + o + o \n");
- printf(" + o + \n");
- printf(" o + \n");
- printf(" o + + + \n");
- printf(" + o o + \n");
- printf("__.~~~.___.~ ,-------. o \n");
- printf(".~~~.___.~~~.| /\\_/\\ \n");
- printf("__.~~~.___.~ |___( ^ .^) o + \n");
- printf(".~~~.___.~~~._ \"\" `` \n");
- printf(" o o + o \n");
- printf(" + \n");
- printf(" o o o + \n");
- printf(" + \n");
- printf(" + o o + o\n");
- break;
- case 9:
- printf("+ o + o \n");
- printf(" + o + + \n");
- printf("o + \n");
- printf(" o + + + \n");
- printf("+ o o + o \n");
- printf("_.~~~.___.~~ ,-------. o \n");
- printf("~~~.___.~~~._| /\\_/\\ \n");
- printf("_.~~~.___.~~ |___( ^ .^) + + \n");
- printf("~~~.___.~~~.__ `` \"\" o\n");
- printf("o o + o \n");
- printf(" + \n");
- printf(" o o o + + \n");
- printf(" + \n");
- printf("+ o o + o \n");
- break;
- default:
- printf("+ o + o \n");
- printf(" + o + + \n");
- printf("o + \n");
- printf(" o + + + \n");
- printf("+ o o + o \n");
- printf("_.~~~.___.~~ ,-------. o \n");
- printf("~~~.___.~~~._| /\\_/\\ \n");
- printf("_.~~~.___.~~ |___( ^ .^) + + \n");
- printf("~~~.___.~~~.__ `` \"\" o\n");
- printf("o o + o \n");
- printf(" + \n");
- printf(" o o o + + \n");
- printf(" + \n");
- printf("+ o o + o \n");
- }
- }
- #endif
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement