How To Make A Simple Text Game| NotePad

Subscribers:
85
Published on ● Video Link: https://www.youtube.com/watch?v=jRmfAt9w0XI



Duration: 12:09
28 views
5


The Code_________________________________________________________________
@echo off
title
color 0A The Test Game
if "%1" neq "" ( goto %1)
:Menu
cls
echo 1. Start Your Adventure!!
echo 2. Credits to the developement team!!
echo 3. Exit!
set /p answer=Type the number of your option and press enter :
if %answer%==1 goto Start_1
if %answer%==2 goto Credits
if %answer%==3 goto Exit
:Exit
cls
echo Thanks for playing!Like Sub to my youtube channel Basicslee101!
pause
exit /b
:Credits
cls
echo Credits
echo
echo THANKS TO THE DEVELOPEMENT TEAM OF Basicslee101 ONLY!
pause
goto Menu
:Start_1
cls
echo You are surrounded by Monsters.

set /p answer=Would you like to fight,run or spare?
if %answer%==fight goto Fight_1
if %answer%==run goto Run_1
if %answer%==spare goto Spare_1
pause
:Run_1
cls
echo oops the enemies caught u while you were running .
pause
goto Start_1
:Fight_1
echo Prepare to fight.
echo The enemies suddenly rush you all at once.
set /p answer= Type 1 and press Enter to continue.
if %answer%==1 goto Fight_1_Loop
:Fight_1_Loop
set /a num=%random%
if %num% gtr 4 goto Fight_1_Loop
if %num% lss 1 goto Fight_1_Loop
if %num%==1 goto Lose_Fight_1
if %num%==2 goto Win_Fight_1
if %num%==3 goto Win_Fight_1
if %num%==4 goto Win_Fight_1
:Lose_Fight_1
cls
echo You were defeated. Play again?
pause
goto Menu
:Win_Fight_1
cls
echo You are victorious!
set /p answer=Would you like to save? [y/n]
if %answer%=='y' goto 'Save'
if %answer%=='n' goto 'Start_2'
:Save
goto Start_2
:Spare_1
echo You spared the Enemies! You Earned
set /a num=%random%
gold!
-------------------------------------------------------------------------------------------------------------------------Join My Discord Server = https://discord.gg/bkwBWU
Like Sub And Share
See ya guys in da next vid!