Josh_Is_Trying

Game Code

Oct 1st, 2024
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. TITLE Game
  4. FOR /F %%A in ('"PROMPT $H&FOR %%B in (1) DO REM"') DO SET "BS=%%A"
  5. goto main_menu
  6. -------------------------------------------------------------------------------------------------------------
  7. :: Main Menu
  8. :main_menu
  9. cls
  10. set playerinput=0
  11. :: Game Screen
  12. echo ----------------------------------------------------------------
  13. echo GAME
  14. echo ----------------------------------------------------------------
  15. echo.
  16. echo.
  17. echo 1) New Game
  18. echo 2) Load Game
  19. echo 3) How To Play
  20. echo 4) Settings
  21. echo 5) Credits
  22. echo 6) Quit Game
  23. echo.
  24. echo ----------------------------------------------------------------
  25. echo.
  26. echo.
  27. echo ----------------------------------------------------------------
  28. set /p playerinput=">"
  29. :: If statements for script above
  30. if %playerinput%==1 goto new_game
  31. if %playerinput%==2 goto load_game
  32. if %playerinput%==3 goto help_screen
  33. if %playerinput%==4 goto settings
  34. if %playerinput%==5 goto credits
  35. if %playerinput%==6 exit
  36. goto main_menu
  37. -------------------------------------------------------------------------------------------------------------
  38. :: New Game Screen
  39. :new_game
  40. cls
  41. set playerinput=0
  42. :: Game Screen
  43. echo ----------------------------------------------------------------
  44. echo NEW GAME
  45. echo ----------------------------------------------------------------
  46. echo.
  47. echo.
  48. timeout /t 3 /nobreak >nul
  49. CALL :Narrator " A figure stands upon the parapets..."
  50. echo.
  51. echo.
  52. timeout /t 2 /nobreak >nul
  53. CALL :Narrator " The battle has ended..."
  54. echo.
  55. echo.
  56. timeout /t 2 /nobreak >nul
  57. CALL :Narrator " The war begins."
  58. echo.
  59. echo.
  60. timeout /t 3 /nobreak >nul
  61. CALL :Brother " You have cursed this world, sister."
  62. echo.
  63. echo.
  64. timeout /t 2 /nobreak >nul
  65. CALL :Brother " Your webs lay thick."
  66. echo.
  67. echo.
  68. timeout /t 2 /nobreak >nul
  69. CALL :Brother " Soon, "
  70. timeout /t 2 /nobreak >nul
  71. CALL :Brother "they will unravel."
  72. echo.
  73. echo.
  74. timeout /t 2 /nobreak >nul
  75. echo.
  76. echo.
  77. pause >nul
  78. goto new_game
  79.  
  80.  
  81. -------------------------------------------------------------------------------------------------------------
  82. :Narrator
  83. SET "d[text]=%~1"
  84. CALL :NarratorLoop
  85. GOTO :EOF
  86. :NarratorLoop
  87. IF "%d[text]:~0,1%" == "#" (
  88. <NUL SET /P "=^!"
  89. ) else (
  90. <NUL SET /P "=d!BS!%d[text]:~0,1%"
  91. )
  92. SET "d[text]=%d[text]:~1%"
  93. IF "%d[text]%" == "" (
  94. GOTO :EOF
  95. ) else (
  96. FOR /L %%J in (1, 4, 1000000) DO REM
  97. GOTO :NarratorLoop
  98. )
  99. -------------------------------------------------------------------------------------------------------------
  100. :Brother
  101. SET "d[text]=%~1"
  102. CALL :BrotherLOOP
  103. GOTO :EOF
  104. :BrotherLOOP
  105. IF "%d[text]:~0,1%" == "#" (
  106. <NUL SET /P "=^!"
  107. ) else (
  108. <NUL SET /P "=d!BS!%d[text]:~0,1%"
  109. )
  110. SET "d[text]=%d[text]:~1%"
  111. IF "%d[text]%" == "" (
  112. GOTO :EOF
  113. ) else (
  114. FOR /L %%J in (1, 4, 1000000) DO REM
  115. GOTO :BrotherLOOP
  116. )
  117. -------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment