Advertisement
HelloDearSir

Kirby not working fucking fat fuck

Dec 29th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. void animationK(void)
  2. {
  3. int x = 1, y = 1;
  4. DWORD t1, t2;
  5.  
  6.  
  7. t1 = GetTickCount(); // Checks the PC time
  8. do { // Next, set up a while loop that only ends when key_pressed is ESC
  9. t2 = GetTickCount(); // Checks the PC time
  10. if (t2 - t1 > 50)
  11. { // If t2 take t1 are less than onehundred...
  12. t1 = t2; // ... make T1 the same as T2 and continue
  13. if (KEY_DOWN(VK_UP))
  14. { // If the key down is vk_up...
  15. y--; // ... incriment down y
  16. }
  17.  
  18. if (KEY_DOWN(VK_DOWN))
  19. { // If the key down is vk_down...
  20. y++; // ... incriment up y
  21. }
  22.  
  23. if (KEY_DOWN(VK_LEFT))
  24. { // If the key down is vk_left...
  25. x--; // ... incriment down x
  26. }
  27.  
  28. if (KEY_DOWN(VK_RIGHT))
  29. { // If the key down is vk_right...
  30. x++; // ... incriment up x
  31. }
  32.  
  33. if (x > 80)
  34. { // if x is greater than 110...
  35. x = 80; // ... set x to 110
  36. }
  37.  
  38. if (y > 25)
  39. { // if y is greater than 15...
  40. y = 25; // ... set y to 15
  41. }
  42.  
  43. if (x < 1)
  44. { // if x is less than 1...
  45. x = 1; // ... set x to 1
  46. }
  47.  
  48. if (y < 1)
  49. { // if y is less than 1...
  50. y = 1; // ... set y to 1
  51. }
  52. clrscr();
  53. Kiby(x, y);
  54. }
  55. } while (!KEY_DOWN(VK_ESCAPE)); clrscr();
  56. }
  57.  
  58. void Kiby(int,int )
  59. {
  60. //outline
  61. hline(10, 3, 10, 10);
  62. hline(20, 4, 10, 1);
  63. hline(21, 5, 10, 1);
  64. hline(22, 6, 10, 2);//hunle
  65. vline(24, 7, 10, 2); //hubble
  66. hline(22, 9, 10, 2);//hubble
  67.  
  68. //inside the hat thing
  69. hline(10, 4, 12, 10);
  70. hline(10, 5, 12, 11);
  71. hline(9, 5, 12, 12);
  72. hline(9, 6, 12, 13);
  73. //hline(17, 6, 15, 3);
  74. hline(11, 7, 15, 7);
  75. hline(18, 7, 12, 4);
  76. hline(18, 8, 12, 2);
  77. hline(17, 8, 15, 1);
  78.  
  79. //pinkish bosy
  80. hline(8, 7, 13, 3);
  81. hline(6, 8, 13, 11);
  82. hline(7, 9, 13, 1);
  83. hline(9, 9, 13, 6);
  84. hline(16, 9, 13, 4);
  85. hline(7, 10, 13, 6);
  86. hline(7, 11, 13, 6);
  87. hline(7, 12, 13, 4);
  88. hline(7, 13, 13, 7);
  89. hline(15, 13, 13, 6);
  90. hline(16, 11, 13, 4);
  91. hline(16, 10, 13, 3);
  92. hline(18, 12, 13, 4);
  93. hline(15, 14, 13, 6);
  94. hline(8, 14, 13, 6);
  95. vline(14, 10, 13, 2);
  96. hline(13, 12, 13, 3);
  97. //eys
  98. vline(13, 9, 10, 3);
  99. vline(15, 9, 10, 3);
  100. // bottom half
  101. hline(7, 15, 13, 11);
  102. hline(7, 16, 13, 10);
  103. hline(8, 17, 13, 9);
  104. hline(9, 18, 13, 8);
  105. hline(11, 19, 13, 4);
  106. //mouths
  107. vline(14, 13, 10, 2);
  108. //cheeks
  109. hline(11, 12, 12, 2);
  110. hline(16, 12, 12, 2);
  111.  
  112. // right foot
  113. hline(20, 8, 10, 2);
  114. vline(19, 9, 10, 2);
  115. hline(20, 11, 10, 1);
  116. vline(21, 12, 10, 7);
  117. hline(18, 15, 10, 4);
  118. hline(17, 16, 10, 1);
  119. vline(16, 17, 10, 5);
  120. hline(15, 19, 10, 1);
  121. hline(17, 21, 10, 2);
  122. hline(20, 19, 10, 1);
  123. hline(19, 20, 10, 1);
  124. hline(12, 20, 10, 4);
  125. //inside the foot
  126. hline(18, 16, 13, 3);
  127. hline(17, 17, 13, 4);
  128. hline(17, 18, 13, 4);
  129. hline(17, 19, 13, 3);
  130. hline(17, 20, 13, 2);
  131.  
  132. /// inside of the foot
  133. hline(8, 19, 13, 2);
  134. hline(7, 20, 13, 5);
  135.  
  136.  
  137. // left foot
  138. hline(10, 19, 10, 2);
  139. hline(8, 17, 10, 1);
  140. hline(8, 18, 10, 2);
  141. hline(7, 19, 10, 1);
  142. hline(6, 20, 10, 1);
  143. hline(7, 21, 10, 5);
  144. //system("color c6");
  145.  
  146.  
  147. //left side
  148. vline(7, 14, 10, 3);
  149. vline(6, 8, 10, 6);
  150. hline(7, 7, 10, 2);
  151. hline(8, 9, 10, 1);
  152. vline(9, 4, 10, 3);
  153.  
  154.  
  155. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement