HOW TO MAKE A GAME USING NOTEPAD
@echo off
color 0a
title haydens game
:menu
cls
echo Do you want to play haydens game?
echo.
echo .....
echo 1 yes
echo 2 no
echo 4 instructions
echo .....
set /p choice=run:
if %choice%==1 goto game
if %choice%==2 goto incorrect
if %choice%==3 goto win
if %choice%==4 goto instructions
:instructions
cls
echo welcome to the trivia game!
echo rules
echo to answer q's pres 12or3
echo (MAY VARY)
pause
goto menu
:Game
cls
echo what color is the sky
echo .........................
echo blue
echo purple
echo green
echo .........................
set /p sky=choice1~3
if %sky%==1 goto correct
if %sky%==2 goto incorrect
if %sky%==3 goto incorrect
:Correct
cls
echo you got it right
pause
goto continued
:Incorrect
cls
echo you got it wrong
pause
goto menu
:continued
cls
echo what does 3+3 equal
echo ...
OR YOU CAN TRY THIS CODE:
1.
@echo off
:loop
COlor 0A
Title (MATRIX)
echo %random% %random% %random% %random% %random% %random%
echo %random% %random% %random% %random% %random% %random%
echo %random% %random% %random% %random% %random% %random%
Goto :loop and save as .bat
2.
@echo off
title matrix
color 0a
:top
echo
%random% %random% %random% %random% %random% %random% %random% %random%
%random% %random% %random% %random% %random% %random% %random% %random%
%random% %random% %random% %random% %random% %random%
goto top
3.
@echo off
color 2
:start
echo
%random% %random% %random% %random% %random% %random% %random% %random%
%random% %random% %random% %random% %random% %random%
goto start
NB Always save as .bat
No comments:
Post a Comment