Advertisement
Guest User

Text-Based Game

a guest
Apr 29th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.93 KB | None | 0 0
  1. a = '''
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. __________________________________________________________________________________________________
  15. | |
  16. | |
  17. | |
  18. | |
  19. | |
  20. | |
  21. | |
  22. | |
  23. | |
  24. | |
  25. | |
  26. | |
  27. | |
  28. | |
  29. | Please resize your screen to fit this |
  30. | monitor panel. |
  31. | Type "Y" when you are finished resizing, and |
  32. | press enter. |
  33. | |
  34. | |
  35. | |
  36. | |
  37. | |
  38. | |
  39. | |
  40. | |
  41. | |
  42. | |
  43. | |
  44. --------------------------------------------------------------------------------------------------
  45. '''
  46.  
  47. b = '''
  48. __________________________________________________________________________________________________
  49. | |
  50. | |
  51. | |
  52. | |
  53. | |
  54. | |
  55. | |
  56. | |
  57. | |
  58. | |
  59. | |
  60. | |
  61. | |
  62. | |
  63. | Thank you. The game will initialize shortly. |
  64. | |
  65. | |
  66. | |
  67. | |
  68. | |
  69. | |
  70. | |
  71. | |
  72. | |
  73. | |
  74. | |
  75. | |
  76. | |
  77. | |
  78. --------------------------------------------------------------------------------------------------
  79. '''
  80.  
  81. c = '''
  82. __________________________________________________________________________________________________
  83. | |
  84. | |
  85. | |
  86. | |
  87. | |
  88. | |
  89. | |
  90. | |
  91. | |
  92. | |
  93. | |
  94. | |
  95. | |
  96. | |
  97. | Loading.. |
  98. | |
  99. | |
  100. | |
  101. | |
  102. | |
  103. | |
  104. | |
  105. | |
  106. | |
  107. | |
  108. | |
  109. | |
  110. | |
  111. | |
  112. --------------------------------------------------------------------------------------------------
  113. '''
  114.  
  115.  
  116. d = '''
  117. __________________________________________________________________________________________________
  118. | |
  119. | |
  120. | |
  121. | |
  122. | |
  123. | |
  124. | |
  125. | |
  126. | |
  127. | |
  128. | |
  129. | |
  130. | |
  131. | |
  132. | Loading... |
  133. | |
  134. | |
  135. | |
  136. | |
  137. | |
  138. | |
  139. | |
  140. | |
  141. | |
  142. | |
  143. | |
  144. | |
  145. | |
  146. | |
  147. --------------------------------------------------------------------------------------------------
  148. '''
  149.  
  150. e = '''
  151. __________________________________________________________________________________________________
  152. | |
  153. | |
  154. | |
  155. | |
  156. | |
  157. | |
  158. | |
  159. | |
  160. | |
  161. | |
  162. | |
  163. | |
  164. | Initialized! |
  165. | |
  166. | |
  167. | A NEW WINDOW WILL INITIALIZE. DRAG IT TO THE CORNER OF |
  168. | THE SCREEN. |
  169. | |
  170. | |
  171. | |
  172. | |
  173. | |
  174. | |
  175. | |
  176. | |
  177. | |
  178. | |
  179. | |
  180. | |
  181. --------------------------------------------------------------------------------------------------
  182. '''
  183.  
  184. aa = '-\o/-'
  185. ab = ' '
  186. y = ' '
  187.  
  188. m = '''
  189. __________________________________________________________________________________________________
  190. |''' + aa + ''' ''' + ab + ''' |
  191. | |
  192. | |
  193. | |
  194. | |
  195. | |
  196. | |
  197. | |
  198. | |
  199. | |
  200. | |
  201. | |
  202. | |
  203. | |
  204. | ''' + y + ''' |
  205. | |
  206. | |
  207. | |
  208. | |
  209. | |
  210. | |
  211. | |
  212. | |
  213. | |
  214. | |
  215. | |
  216. | |
  217. | |
  218. | |
  219. --------------------------------------------------------------------------------------------------
  220. '''
  221.  
  222. def doAkey():
  223. if ab == "-\o/-":
  224. ab = " "
  225. aa = "-\o/-"
  226. else:
  227. print(m)
  228.  
  229. def doDkey():
  230. if aa == "-\o/-":
  231. aa = " "
  232. ab = "-\o/-"
  233. else:
  234. print(m)
  235.  
  236. import time
  237.  
  238. s = input(a)
  239.  
  240. aa = "-\o/-"
  241. ab = " "
  242. y = " "
  243.  
  244. if s == "Y":
  245. print(b)
  246. time.sleep(4)
  247. print(c)
  248. time.sleep(1)
  249. print(d)
  250. time.sleep(1)
  251. print(c)
  252. time.sleep(1)
  253. print(d)
  254. time.sleep(1)
  255. print(c)
  256. time.sleep(1)
  257. print(d)
  258. time.sleep(1)
  259. print(e)
  260. time.sleep(8)
  261. elif s == "skip":
  262. print(m)
  263.  
  264. print(m)
  265.  
  266. import pygame
  267. pygame.init()
  268. pygame.display.set_mode()
  269.  
  270. while True:
  271. for event in pygame.event.get():
  272. if event.type == pygame.QUIT:
  273. pygame.quit(); #sys.exit() if sys is imported
  274. if event.type == pygame.KEYDOWN:
  275. if event.key == pygame.K_s:
  276. doSkey()
  277. print(m)
  278. if event.key == pygame.K_w:
  279. doWkey()
  280. print(m)
  281. if event.key == pygame.K_d:
  282. doDkey()
  283. print(m)
  284. if event.key == pygame.K_a:
  285. doAkey()
  286. print(m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement