Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. // The "AndrewEdwardWaynePocketmans" class.
  2. // December 7th, 2017
  3. // Pokemon game
  4.  
  5. import java.awt.*;
  6. import hsa.Console;
  7.  
  8. public class AndrewEdwardWaynePocketmans
  9. {
  10. static Console c; // The output console
  11.  
  12. public static void main (String[] args)
  13. {
  14. c = new Console (30, 125); //sets the dimensions to 1000x600
  15.  
  16. //Declares the fonts needed
  17. Font battle = new Font ("Agency FB", Font.BOLD, 22);
  18. Font dialog = new Font ("Agency FB", Font.BOLD, 30);
  19. Font button = new Font ("Agency FB", Font.BOLD, 40);
  20.  
  21. //Declares the colors needed
  22.  
  23. int savepoint = 0;
  24.  
  25. //The code of the game
  26. while (true)
  27. {
  28. int x = 470, y = 244, area = 1, movement = 0, life = 1, sprint = 0;
  29. //game variables
  30. if (savepoint == 0)
  31. area = 1;
  32. //if (savepoint = 1)
  33. //area = 5
  34. while (life == 1)
  35. {
  36. //The HUD on the side
  37. c.fillRect (900, 0, 100, 600);
  38. c.setFont (button);
  39. c.drawString ("SPD", 910, 20);
  40.  
  41. if (area == 1)
  42. {
  43. c.setColor (Color.green);
  44. c.fillOval (x, y, 19, 30);
  45. c.fillOval (x + 19, y - 10, 20, 40);
  46. c.fillOval (x + 39, y, 19, 30);
  47. c.setColor (Color.blue);
  48. c.fillOval (x - 2, y + 10, 60, 50);
  49. c.fillOval (x - 2, y + 50, 20, 15);
  50. c.fillOval (x + 38, y + 50, 20, 15);
  51. c.setColor (Color.pink);
  52. c.fillOval (x + 15, y + 26, 11, 8);
  53. c.fillOval (x + 35, y + 26, 11, 8);
  54. c.fillArc (x + 20, y + 29, 18, 24, 0, -180);
  55. }
  56. if (area == 2)
  57. {
  58. }
  59. if (area == 3)
  60. {
  61. }
  62. if (area == 4)
  63. {
  64. }
  65. if (area == 5)
  66. {
  67. }
  68. if (area == 6)
  69. {
  70. }
  71. if (area == 7)
  72. {
  73. }
  74. if (area == 8)
  75. {
  76. }
  77. if (area == 9)
  78. {
  79. }
  80. if (area == 10)
  81. {
  82. }
  83. if (area == 11)
  84. {
  85. }
  86. if (area == 12)
  87. {
  88. }
  89. if (area == 13)
  90. {
  91. }
  92. if (area == 14)
  93. {
  94. }
  95. if (area == 15)
  96. {
  97. }
  98. if (area == 16)
  99. {
  100. }
  101. if (area == 17)
  102. {
  103. }
  104. if (area == 18)
  105. {
  106. }
  107. if (area == 19)
  108. {
  109. }
  110. if (area == 20)
  111. {
  112. }
  113.  
  114. //movement
  115. if (life == 1)
  116. movement = c.getChar ();
  117.  
  118. if (movement == 'k')
  119. sprint += 1;
  120.  
  121. //Changes the x or y position according to which key was pressed.
  122. if (sprint % 2 == 0)
  123. {
  124. if (movement == 'a')
  125. x = x - 6;
  126. if (movement == 'd')
  127. x = x + 6;
  128. if (movement == 'w')
  129. y = y - 6;
  130. if (movement == 's')
  131. y = y + 6;
  132. }
  133. if (sprint % 2 == 1)
  134. {
  135. if (movement == 'a')
  136. x = x - 12;
  137. if (movement == 'd')
  138. x = x + 12;
  139. if (movement == 'w')
  140. y = y - 12;
  141. if (movement == 's')
  142. y = y + 12;
  143. }
  144.  
  145. //Interactions
  146. if (area == 1)
  147. {
  148. }
  149. if (area == 2)
  150. {
  151. }
  152. if (area == 3)
  153. {
  154. }
  155. if (area == 4)
  156. {
  157. }
  158. if (area == 5)
  159. {
  160. }
  161. if (area == 6)
  162. {
  163. }
  164. if (area == 7)
  165. {
  166. }
  167. if (area == 8)
  168. {
  169. }
  170. if (area == 9)
  171. {
  172. }
  173. if (area == 10)
  174. {
  175. }
  176. if (area == 11)
  177. {
  178. }
  179. if (area == 12)
  180. {
  181. }
  182. if (area == 13)
  183. {
  184. }
  185. if (area == 14)
  186. {
  187. }
  188. if (area == 15)
  189. {
  190. }
  191. if (area == 16)
  192. {
  193. }
  194. if (area == 17)
  195. {
  196. }
  197. if (area == 18)
  198. {
  199. }
  200. if (area == 19)
  201. {
  202. }
  203. if (area == 20)
  204. {
  205. }
  206. }
  207. }
  208. } // main method
  209. } // AndrewEdwardWaynePokemon class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement