How to make a Simple Batch File Game Console


By: PantherGames
February 17, 2017

By The Way This Is Copyrighted from Me.
@ECHO OFF   
TITLE TEST GAME CONSOLE   
COLOR 9B   
:INFO   
CLS   
ECHO GAME CONSOLE MADE BY: PANTHER GAMES: DATE MADE: @2015   
PAUSE>NUL   
ECHO THE GAME SEARCH ENGINE MADE BY: DIZK   
PAUSE>NUL   
ECHO THE DATABASE FOR THE MEMORY CARD MADE BY: ARTECH PRODUCTIONS
CALL :WELCOME   
   
:WELCOME   
PAUSE>NUL   
CLS   
TITLE TGC: WELCOME   
PAUSE>NUL   
ECHO WHAT WOULD YOU LIKE TO DO FIRST?   
ECHO 0) EXIT   
ECHO 1) CREATE A USERNAME   
ECHO 2) LOGIN   
ECHO 3) GUEST   
SET HI=NOACTION   
SET /P HI=   
IF %HI%==0 EXIT   
IF %HI%==1 CALL :CAU   
IF %HI%==2 CALL :LOGIN   
IF %HI%==3 CALL :GUEST   
IF NOT %HI%==0 CALL :WELCOME   
IF NOT %HI%==1 CALL :WELCOME   
IF NOT %HI%==2 CALL :WELCOME   
IF NOT %HI%==3 CALL :WELCOME   
   
:CAU   
PAUSE>NUL   
CLS   
TITLE TGC: CREATE A USERNAME   
PAUSE>NUL   
ECHO WHAT IS YOUR EMAIL ADDRESS?   
SET /P EMAIL1=">> "   
(   
ECHO SET EMAIL1=%EMAIL1%   
)>%USERPROFILE%\DESKTOP\%EMAIL1%.BAT   
PAUSE>NUL   
CALL :LOGIN   
   
:LOGIN   
PAUSE>NUL   
CLS   
TITLE TGC: LOGIN   
SET /P EMAIL1=EMAIL:   
CALL "%USERPROFILE%\DESKTOP\%EMAIL1%.BAT"   
IF NOT EXIST "%USERPROFILE%\DESKTOP\%EMAIL1%.BAT" (   
ECHO EMAIL ADDRESS DOES NOT EXIST?   
PAUSE>NUL   
CALL :LOGIN   
)   
IF NOT %EMAIL1% EQU %EMAIL1% (   
ECHO INVALID EMAIL ADDRESS!   
PAUSE>NUL   
CALL :LOGIN   
)   
CALL :MENU   
   
:MENU   
PAUSE>NUL   
CLS   
TITLE TGC: MENU   
ECHO THIS GAME CONSOLE BELONGS TO %EMAIL1%   
PAUSE>NUL   
ECHO WELCOME TO THE GAME CONSOLE %EMAIL1%   
PAUSE>NUL   
ECHO WHAT WOULD YOU LIKE TO DO?   
ECHO 0) EXIT   
ECHO 1) START A GAME   
ECHO 2) MEMORY CARD   
SET HI=NOACTION   
SET /P HI=   
IF %HI%==0 EXIT   
IF %HI%==1 CALL :SAG   
IF %HI%==2 CALL :MC   
IF NOT %HI%==0 CALL :MENU   
IF NOT %HI%==1 CALL :MENU   
IF NOT %HI%==2 CALL :MENU   
   
:SAG   
PAUSE>NUL   
CLS   
TITLE TGC: GAME STARTER   
FOR /R %%G IN (*INK) DO ECHO %%~NG   
ECHO ______________   
ECHO TYPE THE NAME AND HIT ENTER TO LAUNCH GAME   
ECHO ______________   
SET NUMBER=   
SET /P NUMBER=   
IF NOT DEFINED NUMBER (   
CLS   
CALL :SAG   
)   
START "" "GAMES\%NUMBER%"   
IF %NUMBER%==GAMES START GAMES   
CALL :MENU   
   
:MC   
PAUSE>NUL   
CLS   
TITLE TGC: MEMORY   
SET ID=0   
SET INAME1=0   
SET INAME2=0   
SET INAME3=0   
SET INAME4=0   
SET INAME5=0   
SET ANAME1=0   
SET ANAME2=0   
SET ANAME3=0   
SET ANAME4=0   
SET ANAME5=0   
ECHO WELCOME TO THE MENU %EMAIL1%   
PAUSE>NUL   
ECHO WHAT WOULD YOU LIKE TO CHOOSE?   
ECHO 0) EXIT   
ECHO 1) VIEW YOUR MEMORY   
ECHO 2) SEARCH YOUR MEMORY   
ECHO 3) DELETE YOUR MEMORY   
ECHO 4) GO BACK TO MENU   
SET /P HI=   
IF %HI%==0 EXIT   
IF %HI%==1 CALL :VYM   
IF %HI%==2 CALL :SYM   
IF %HI%==3 CALL :DYM   
IF %HI%==4 CALL :MENU   
CALL :MC   
   
:VYM   
CLS   
TITLE TGC: VIEW YOUR MEMORY   
ECHO.   
ECHO ID / GAME NAME / WHAT THE GAME IS ABOUT   
ECHO.   
ECHO 1 %EMAIL1% - %INAME1% - %ANAME1%   
ECHO 2 %EMAIL1% - %INAME2% - %ANAME2%   
ECHO 3 %EMAIL1% - %INAME3% - %ANAME3%   
ECHO 4 %EMAIL1% - %INAME4% - %ANAME4%   
ECHO 5 %EMAIL1% - %INAME5% - %ANAME5%   
ECHO.   
PAUSE>NUL   
CALL :MC   
   
:SYM   
CLS   
TITLE TGC: SEARCH YOUR MEMORY   
ECHO.   
SET /P ISEARCH=INPUT GAME NAME:   
ECHO.   
   
IF %ISEARCH% == %INAME1% ECHO %ANAME1%   
IF %ISEARCH% == %INAME2% ECHO %ANAME2%   
IF %ISEARCH% == %INAME3% ECHO %ANAME3%   
IF %ISEARCH% == %INAME4% ECHO %ANAME4%   
IF %ISEARCH% == %INAME5% ECHO %ANAME5%   
ECHO.   
PAUSE>NUL   
CALL :MC   
   
:DYM   
CLS   
ECHO ARE YOU SURE YOU WANT TO DELETE YOUR MEMORY?   
PAUSE>NUL   
SET INAME%ID%=0   
SET ANAME%ID%=0   
DEL INAME%ID%.BAT   
PAUSE>NUL   
CALL :MC


Need more help?
Describe your Problem
Example: Hard Drive Not Detected on My PC

Ask Question