Advertisement
TheSuperBoyYT

Eidex the Lizard vs The Slimes COMMENTED

Feb 17th, 2020
1,577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<++.>>----.------------.---.<<.>+++++++.>++++.+++++++++++++++++.<+++++++++++++++++++++.>--------.<+++.<.>>++++.---.<<.>----------------.>-----------.---.<<.>-.>+++++++.---.++++.--------.++++++++++++++.<<.>++++++++.---------.-------------.++++++++.------------.++++++++++++++++++.+.---------------.+++++++++++++.-------------.-.>----------------------.[-]<[-]<[-]<[-]<++++++++++.[-]++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++.>---.+++.+.<<++.>>---.+++++++++++++++++++++++.<<.>+++++++.-.-----------------.+++++++++++++++++++++++.-----.--.---.>[-]<[-]<[-]<[-]<++++++++++..[-]++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>---.>+++++++++++.-.++++++.--.---.---.+++++++.<---------.<++.++++++++.>>++.--.--------------.<<--------.>+++++++++.--.+++++++++++++++.+++.<+++++++++.>>[-]<[-]<[-]<[-]<++++++++++.[-]++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-----.<++.+++++++++++++.-------------.>.>++++++++++++++++..-------------------.++.++++++++.<<.>++++++++++++++++++.>+.---.++++.--------.<<.>------------------.>[-]<[-]<[-]<[-]<++++++++++.[-]++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>----.<++.+++++++++++++.-------------.>-.>++++++++++++++++..-------------------.++.++++++++.<<.>++++++++++++++++++.>+.---.++++.--------.<<.>-----------------.>[-]<[-]<[-]<[-]<++++++++++.[-]++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>---.<++.+++++++++++++.-------------.>>---------------.++++++++++++++++++++++++++++++.--------------.<<.>+++++.>.----.+++++++++++.++++++++.------------.<<.>++++++++.>+++++++.------.+++++++++++.-----.-.[-]<[-]<[-]<[-]<++++++++++..[-]
  2. ## Beginning text
  3.  
  4. ->+>>>++++++++>>>++++>>>++++>>>++>++ ##preset vals (life and pots)
  5. +[-<+]-> ##goto game flag
  6.  
  7.  
  8. [##game loop
  9.  
  10. ####################################
  11. #     D I S P L A Y   I N F O      #
  12. ####################################
  13. ##Eidex HP
  14. >>>>> >>>>> >>>>> >>>>>
  15. ++++++++++.[-] ##CR
  16. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<+++++++++.>>-----.<<-------.>+++.++++++++.----------------------.<.>>[-]<[-]<[-]<[-] ##Eidex's HP:
  17. +[-<+]->>>>##goto Eidex HP
  18. >+++++ +++
  19. [-<+++++ +>]<. ##output AND conversion from number to ASCII
  20. >+++++ +++
  21. [-<----- ->] ##conv back to number
  22. ++++++++++.[-]
  23.  
  24. ##Slime A HP
  25. >>>>> >>>>> >>>>> >>>>>
  26. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++++++++.>++++++++.---.++++.--------.<<++.>------------------.<+++++++.>>++++++++++++++.<<-------.>+++++++.++++++++.----------------------.<.>>[-]<[-]<[-]<[-] ##Slime A's HP:
  27. +[-<+]->>>>>>>##goto Slime A HP
  28. >+++++ +++
  29. [-<+++++ +>]<. ##output AND conversion from number to ASCII
  30. >+++++ +++
  31. [-<----- ->] ##conv back to number
  32. ++++++++++.[-]
  33.  
  34. ##Slime B HP
  35. >>>>> >>>>> >>>>> >>>>>
  36. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++++++++.>++++++++.---.++++.--------.<<++.>-----------------.<+++++++.>>++++++++++++++.<<-------.>++++++.++++++++.----------------------.<.>>[-]<[-]<[-]<[-] ##Slime B's HP:
  37. +[-<+]->>>>>>>>>>##goto Slime B HP
  38. >+++++ +++
  39. [-<+++++ +>]<. ##output AND conversion from number to ASCII
  40. >+++++ +++
  41. [-<----- ->] ##conv back to number
  42. ++++++++++.[-]
  43.  
  44. ##Potion Count
  45. >>>>> >>>>> >>>>> >>>>>
  46. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>++.>+.----.+++++++++++.++++++++.------------.<<++.>++++++++.>+++++++.+++++.-----------.++++++.-.+++++.<----------------------.<.>>[-]<[-]<[-]<[-] ##Health Potions:
  47. +[-<+]->>>>>>>>>>>>>>
  48. >+++++ +++
  49. [-<+++++ +>]<. ##output AND conversion from number to ASCII
  50. >+++++ +++
  51. [-<----- ->] ##conv back to number
  52. ++++++++++.[-]
  53.  
  54.  
  55. ####################################
  56. #        U S E R   I N P U T       #
  57. ####################################
  58. +[-<+]->
  59. >,
  60. >>>>> >>>>> >>>>> >>>>>
  61. ++++++++++.[-]
  62. <<<<< <<<<< <<<<< <<<<<
  63. >++++++[-<----- ----- ->]<++
  64.  
  65. ##goto selected slot AND copy value to next cell
  66. ->+<[->+<[[-]>+<>>>]>>>]>>>>>
  67.  
  68. >[#pot_begin
  69. -<- ## decrement potions
  70. >>>>> >>>>> >>>>> >>>>> >>>>>
  71. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<++.>>---.--.--------------.++++++++++++++.<<.>>------------------.<<.>>+++++++++++++++.-.+++++.-----------.++++++.-.<<.>>-------------------.<<+++++++++++.++++++++.-------------------.>+++.++++++++.>++.[-]<[-]<[-]<[-]< ##use a potion
  72. ++++++++++.[-] ##CR
  73. <<<<< <<<<< <<<<< <<<<< <<<<<
  74. +[-<+]->>>>+++ ## add 3HP
  75. +[-<+]->>>>> >>>>> >>>>> [-]+ ##set flag to used potion
  76. <<< ##goto a zero cell
  77. ]#pot_end
  78.  
  79. ##goto pot flag
  80. +[-<+]->>>>> >>>>> >>>>>
  81. -[+##we didn't use a potion
  82. +[-<+]->>>##goto copy input
  83. -[->>>]>>>> ##goto selected Slime
  84. - ##remove 1HP
  85. >>>>> >>>>> >>>>> >>>>> ##goto a zero cell
  86. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<++.>>-----------------------.+++++++++++++++++++..-------------------.++.++++++++.++++++++.<<.>>------------------.<<.>++++++++++++++.>+++++++++++.---.++++.--------.<<+.-.>++++++++.--------.>+++++++.---.++++.--------.<<.+++++++++++++.++++.-----------------.>-----------.++++++++.>--------.[-]<[-]<[-]<[-]<##attack a slime
  87. ++++++++++.[-] ##CR
  88. ]##attack_end
  89.  
  90.  
  91. #######################################
  92. #        E N E M Y   T U R N          #
  93. #######################################
  94.  
  95. +[-<+]-
  96. >>>>>>>
  97. [##Slime A
  98. +[-<+]->>>>- #remove 1HP
  99. > ##goto zero cell
  100. >>>>> >>>>> >>>>> >>>>>
  101. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++++++++.>++++++++.---.++++.--------.<<++.>------------------.<.>>----.+++++++++++++++++++..-------------------.++.++++++++.++++++++.<<+.-.>>------------------------.<<+++++++++++++.++++.-----------------.>+++++++.++++++++.>++.[-]<[-]<[-]<[-]<##Slime A attack
  102. ++++++++++.[-] ##CR
  103. ]##slimeA_end
  104.  
  105. +[-<+]-
  106. >>>>>>>>>>
  107. [##Slime B
  108. +[-<+]->>>>- #remove 1HP
  109. > ##goto zero cell
  110. >>>>> >>>>> >>>>> >>>>>
  111. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++++++++.>++++++++.---.++++.--------.<<++.>-----------------.<.>>----.+++++++++++++++++++..-------------------.++.++++++++.++++++++.<<+.-.>>------------------------.<<+++++++++++++.++++.-----------------.>++++++.++++++++.>++.[-]<[-]<[-]<[-]<##Slime B attack
  112. ++++++++++.[-] ##CR
  113. ]##slimeB_end
  114.  
  115.  
  116. ###########################################
  117. #    C H E C K   G A M E   S T A T U S    #
  118. ###########################################
  119.  
  120. +[-<+]-
  121. >[-] ##set game flag to zero
  122. >>>>>>[<<<<<<+>]##check slime A
  123. +[-<+]->>>>>>>>>>[<<<<<<<<<+>]##check slime B
  124. +[-<+]->>>>[>+>]+[-<+]->>>>>-[+<<<<[-]]##check for Eidex
  125.  
  126. +[-<+]-> ##goto game flag
  127.  
  128. ]#game_end
  129.  
  130. ################################
  131. #     E N D   M E S S A G E    #
  132. ################################
  133. +[-<+]->>>>[>+>]<
  134. [##Eidex wins
  135. >>>>> >>>>> >>>>> >>>>>
  136. ++++++++++.[-] ##CR
  137. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<++.>>----------------.-------.++++++++++++++++++.<<.>>++++.--------.-.<<.>>++++++.------------.---.<<.>>---.-.+++++++++++++++++++..--------.-------.<<+.
  138. >>>>##goto a zero cell
  139. ]##winmsg_end
  140. +[-<+]->>>>>
  141. -[##Eidex loses
  142. >>>>> >>>>> >>>>> >>>>> >>>>>
  143. ++++++++++.[-] ##CR
  144. ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<++.>>----------------.-------.++++++++++++++++++.<<.>>-------.+++.++++.+.<<.>>.------------.---.<<.>>---.-.+++++++++++++++++++..--------.-------.<<.>-----------.<++++++++.
  145. >>>>##goto a zero cell
  146. ]##losemsg_end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement