owlman

Dodgems AD | Batch File

Dec 2nd, 2015
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. title Dodgems AD
  3. :menu
  4. cls
  5. color 0a
  6. echo Welcome to Dodgems AD
  7. echo ***************************************
  8. echo.
  9. echo From here you can:
  10. echo.
  11. echo 1. Start the Game
  12. echo 2. Info
  13. echo 3. Exit
  14. echo 4. Full Screen
  15. echo 5. Nothing
  16.  
  17. set /p menuchoie=">"
  18.  
  19. if %menuchoie% == 1 goto startgame
  20. if %menuchoie% == 2 goto info
  21. if %menuchoie% == 3 goto exit
  22. if %menuchoie% == 4 goto full
  23. if %menuchoie% == 5 goto ann
  24. goto menu
  25.  
  26. :info
  27. cls
  28. title Information on the Game
  29. color 0b
  30. echo How to play:
  31. echo You play as the at sign ("@")
  32. echo To move right press "A" to move left press "D"
  33. echo Try and not hit the stars ("*") if you do hit
  34. echo Them then you will die
  35. echo Good luck ;-)
  36. echo.
  37. echo ***************************************
  38. echo This game was made by Gwalin on Instructables.com
  39. echo instructables.com/id/Batch-Game-Dodgems/
  40. echo.
  41. echo 1. Start the Game
  42. echo 2. Exit
  43.  
  44.  
  45. set /p menuchoie=">"
  46.  
  47. if %menuchoie% == 1 goto startgame
  48. if %menuchoie% == 2 goto exit
  49.  
  50.  
  51. :startgame
  52. title Dodgems AD
  53. setlocal enabledelayedexpansion
  54. set loop=1
  55. set background=
  56. set pPos=85
  57. goto reset
  58. :reset
  59. title Dodgems AD
  60. color 0f
  61. set icon1=1
  62. set icon2=52
  63. set icon3=23
  64. set icon4=74
  65. set icon5=55
  66. set icon6=26
  67. set icon7=47
  68. set icon8=8
  69. set icon9=49
  70. set icon10=60
  71. set v%loop%=%background%
  72. if %loop% == 9 echo 10
  73. if %loop% == 18 echo 20
  74. if %loop% == 27 echo 30
  75. if %loop% == 36 echo 40
  76. if %loop% == 45 echo 50
  77. if %loop% == 54 echo 60
  78. if %loop% == 63 echo 70
  79. if %loop% == 72 echo 80
  80. if %loop% == 81 echo 90
  81. if %loop% == 90 echo 100
  82. if %loop% == 90 goto display
  83. set /a loop=%loop%+1
  84. goto reset
  85. :die
  86. color 0c
  87. cls
  88. echo Hahahaha you died
  89. echo.
  90. echo 1. Play Again
  91. echo 2. Menu
  92. echo 3. Exit
  93. echo.
  94. set /p menuchoie=">"
  95. if %menuchoie% == 1 goto reset
  96. if %menuchoie% == 3 goto exit
  97. if %menuchoie% == 2 goto menu
  98.  
  99. goto die
  100. :display
  101. if %pPos% == %icon1% goto die
  102. if %pPos% == %icon2% goto die
  103. if %pPos% == %icon3% goto die
  104. if %pPos% == %icon4% goto die
  105. if %pPos% == %icon5% goto die
  106. if %pPos% == %icon6% goto die
  107. if %pPos% == %icon7% goto die
  108. if %pPos% == %icon8% goto die
  109. if %pPos% == %icon9% goto die
  110. if %pPos% == %icon10% goto die
  111. set v%pPos%=@
  112. set v%icon1%=*
  113. set v%icon2%=*
  114. set v%icon3%=*
  115. set v%icon4%=*
  116. set v%icon5%=*
  117. set v%icon6%=*
  118. set v%icon7%=*
  119. set v%icon8%=*
  120. set v%icon9%=*
  121. set v%icon10%=*
  122. cls
  123. echo ############
  124. echo #%v1%%v2%%v3%%v4%%v5%%v6%%v7%%v8%%v9%%v10%#
  125. echo #%v11%%v12%%v13%%v14%%v15%%v16%%v17%%v18%%v19%%v20%#
  126. echo #%v21%%v22%%v23%%v24%%v25%%v26%%v27%%v28%%v29%%v30%#
  127. echo #%v31%%v32%%v33%%v34%%v35%%v36%%v37%%v38%%v39%%v40%#
  128. echo #%v41%%v42%%v43%%v44%%v45%%v46%%v47%%v48%%v49%%v50%#
  129. echo #%v51%%v52%%v53%%v54%%v55%%v56%%v57%%v58%%v59%%v60%#
  130. echo #%v61%%v62%%v63%%v64%%v65%%v66%%v67%%v68%%v69%%v70%#
  131. echo #%v71%%v72%%v73%%v74%%v75%%v76%%v77%%v78%%v79%%v80%#
  132. echo #%v81%%v82%%v83%%v84%%v85%%v86%%v87%%v88%%v89%%v90%#
  133. echo ############
  134. choice /c adr /t 1 /d r /n
  135. if %errorlevel% == 1 goto left
  136. if %errorlevel% == 2 goto right
  137. if %errorlevel% == 3 goto drop
  138. :left
  139. if %pPos% == 81 goto display
  140. set v%pPos%=%background%
  141. set /a pPos=%pPos% - 1
  142. goto drop
  143. :right
  144. if %pPos% == 90 goto display
  145. set v%pPos%=%background%
  146. set /a pPos=%pPos% + 1
  147. goto drop
  148. :drop
  149. set v%icon1%=%background%
  150. set v%icon2%=%background%
  151. set v%icon3%=%background%
  152. set v%icon4%=%background%
  153. set v%icon5%=%background%
  154. set v%icon6%=%background%
  155. set v%icon7%=%background%
  156. set v%icon8%=%background%
  157. set v%icon9%=%background%
  158. set v%icon10%=%background%
  159. set /a icon1=%icon1%+10
  160. set /a icon2=%icon2%+10
  161. set /a icon3=%icon3%+10
  162. set /a icon4=%icon4%+10
  163. set /a icon5=%icon5%+10
  164. set /a icon6=%icon6%+10
  165. set /a icon7=%icon7%+10
  166. set /a icon8=%icon8%+10
  167. set /a icon9=%icon9%+10
  168. set /a icon10=%icon10%+10
  169. if %icon1% == 91 set icon1=1
  170. if %icon2% == 92 set icon2=2
  171. if %icon3% == 93 set icon3=3
  172. if %icon4% == 94 set icon4=4
  173. if %icon5% == 95 set icon5=5
  174. if %icon6% == 96 set icon6=6
  175. if %icon7% == 97 set icon7=7
  176. if %icon8% == 98 set icon8=8
  177. if %icon9% == 99 set icon9=9
  178. if %icon10% == 100 set icon10=10
  179. goto display
  180.  
  181.  
  182.  
  183.  
  184. :exit
  185. title Thanks for playing!
  186. cls
  187. color 0d
  188. echo Thank you for playing Dodgems AD
  189. echo ***************************************
  190. echo.
  191. pause
  192. goto hell
  193.  
  194. :ann
  195. cls
  196. echo I SAID NOTHING WOULD HAPPEN!!!
  197. echo YOU WILL PAY FOR THIS!!1
  198. pause
  199. :spam
  200. title %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%
  201. echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%
  202. goto spam
  203.  
  204.  
  205.  
  206. :full
  207. mode 1000
  208. cls
  209. color 0a
  210. echo Welcome to Dodgems AD
  211. echo ***************************************
  212. echo.
  213. echo From here you can:
  214. echo.
  215. echo 1. Start the Game
  216. echo 2. Info
  217. echo 3. Exit
  218. echo 4. Nothing
  219.  
  220. set /p menuchoie=">"
  221.  
  222. if %menuchoie% == 1 goto startgame
  223. if %menuchoie% == 2 goto info
  224. if %menuchoie% == 3 goto exit
  225. if %menuchoie% == 4 goto ann
  226. goto full
RAW Paste Data