Ive been working on this game for a while now and i would like to get some feedback. Tell me whats good, and whats bad and how to make it better
Thank you
Code: Select all
@echo off
title cPoker 5.9
mode con:cols=35 lines=15
color 5f
if exist gamesaves goto aut
if not exist gamesaves goto not
:not
set /a idraw=%random%
md gamesaves
: :needed
echo %idraw% > gamesaves\id1a.txt
echo %idraw% > gamesaves\id1aa.txt
echo 30 > gamesaves\score.txt
echo 30 > gamesaves\scoreac.txt
echo 30 > gamesaves\var2score.txt
echo 30 > gamesaves\var2scoreac.txt
echo 1 > gamesaves\multi.txt
echo 1 > gamesaves\multiac.txt
: :junk
echo 30 > gamesaves\score1a.txt
echo 30 > gamesaves\score1aa.txt
echo 31 > gamesaves\score1b.txt
echo 31 > gamesaves\score1bb.txt
echo 32 > gamesaves\score1c.txt
echo 32 > gamesaves\score1cc.txt
echo 33 > gamesaves\score1d.txt
echo 33 > gamesaves\score1dd.txt
echo 34 > gamesaves\score1e.txt
echo 34 > gamesaves\score1ee.txt
echo 35 > gamesaves\score1f.txt
echo 35 > gamesaves\score1ff.txt
: :attrib +h gamesaves
cls
echo ------------ cPoker ---------------
echo Goal: To achive the highest score
echo -----------------------------------
echo Good luck ;)
echo.
pause >nul
goto menu
:aut
: :attrib +h gamesaves
: :needed
set /p id=<gamesaves\id1a.txt || goto error
set /p id2=<gamesaves\id1aa.txt || goto error
set /p m=<gamesaves\multi.txt || goto error
set /p mac=<gamesaves\multiac.txt || goto error
set /p x=<gamesaves\score.txt || goto error
set /p xac=<gamesaves\scoreac.txt || goto error
set /p x2=<gamesaves\var2score.txt || goto error
set /p x2ac=<gamesaves\var2scoreac.txt || goto error
: :junk
set /p junka=<gamesaves\score1a.txt
set /p junkaa=<gamesaves\score1aa.txt
set /p junkb=<gamesaves\score1b.txt
set /p junkbb=<gamesaves\score1bb.txt
set /p junkc=<gamesaves\score1c.txt
set /p junkcc=<gamesaves\score1cc.txt
set /p junkd=<gamesaves\score1d.txt
set /p junkdd=<gamesaves\score1dd.txt
set /p junke=<gamesaves\score1e.txt
set /p junkee=<gamesaves\score1ee.txt
set /p junkf=<gamesaves\score1f.txt
set /p junkff=<gamesaves\score1ff.txt
color 64
cls
echo ---------- Anti-cheat -------------
echo Checking files 0/20
ping 127.0.0.1 -n 1 -w 500> nul
cls
echo ---------- Anti-cheat -------------
echo Checking files 2/20
ping localhost -n 0.05 >nul
if %x% == %xac% goto aut2
goto ban
:aut2
cls
echo ---------- Anti-cheat -------------
echo Checking files 4/20
ping localhost -n 0.05 >nul
if %m% == %mac% goto aut3
goto ban
:aut3
cls
echo ---------- Anti-cheat -------------
echo Checking files 6/20
ping localhost -n 0.05 >nul
if %x2% == %x2ac% goto aut4
goto ban
:aut4
cls
echo ---------- Anti-cheat -------------
echo Checking files 8/20
ping localhost -n 0.05 >nul
if %junka% == %junkaa% goto aut5
goto ban
:aut5
cls
echo ---------- Anti-cheat -------------
echo Checking files 10/20
ping localhost -n 0.05 >nul
if %junkb% == %junkbb% goto aut6
goto ban
:aut6
cls
echo ---------- Anti-cheat -------------
echo Checking files 12/20
ping localhost -n 0.05 >nul
if %junkc% == %junkcc% goto aut7
goto ban
:aut7
cls
echo ---------- Anti-cheat -------------
echo Checking files 14/20
ping localhost -n 0.05 >nul
if %junkd% == %junkdd% goto aut8
goto ban
:aut8
cls
echo ---------- Anti-cheat -------------
echo Checking files 16/20
ping localhost -n 0.05 >nul
if %junke% == %junkee% goto aut9
goto ban
:aut9
cls
echo ---------- Anti-cheat -------------
echo Checking files 18/20
ping localhost -n 0.05 >nul
if %junkf% == %junkff% goto aut10
goto ban
:aut10
cls
echo ---------- Anti-cheat -------------
echo Checking files 20/20
ping 127.0.0.1 -n 1 -w 500> nul
if %id% == %id2% goto filesok
goto ban
:filesok
cls
echo ---------- Anti-cheat -------------
echo Checking files 20/20
timeout 1 >nul
cls
echo ---------- Anti-cheat -------------
echo Files ok!
echo -----------------------------------
timeout 1 >nul
goto menu
:error
color 4f
cls
echo ------------ cPoker ---------------
echo The files coundnt be verifyed
echo They will be repaired.
timeout 3 >nul
goto repair
:menu
color 5f
: :attrib +h gamesaves
set /p m=<gamesaves\multi.txt
set /p mac=<gamesaves\multiac.txt
set /p x=<gamesaves\score.txt
set /p xac=<gamesaves\scoreac.txt
set /p x2=<gamesaves\var2score.txt
set /p x2ac=<gamesaves\var2scoreac.txt
set /p id=<gamesaves\id1a.txt
cls
echo ------------ cPoker ---------------
echo 1. Start the game
echo 2. Game info
echo 3. Repair files
echo 4. Exit
echo -----------------------------------
echo - - - - -
echo - - - - - -
echo - - - - - -
echo - - - - - -
echo - - - - - -
echo - - - - - -
echo - - - - -
echo -----------------------------------
choice /c 4321 >nul
if errorlevel 4 goto game
if errorlevel 3 goto gameinfo
if errorlevel 2 goto confrepair
if errorlevel 1 goto leave
goto menu
:menubanned
color 5f
: :attrib +h gamesaves
set /p m=<gamesaves\multi.txt
set /p mac=<gamesaves\multiac.txt
set /p x=<gamesaves\score.txt
set /p xac=<gamesaves\scoreac.txt
set /p x2=<gamesaves\var2score.txt
set /p x2ac=<gamesaves\var2scoreac.txt
cls
echo ------------ cPoker ---------------
echo 1. Start the game (Banned)
echo 2. Repair files
echo 3. Exit
echo -----------------------------------
echo - - - - -
echo - - - - - -
echo - - - - - -
echo - - - - - -
echo - - - - - -
echo - - - - - -
echo - - - - -
echo -----------------------------------
choice /c 321 >nul
if errorlevel 3 goto :menubanned
if errorlevel 2 goto :confrepairbanned
if errorlevel 1 goto :leavebanned
goto menu
:gameinfo
cls
echo ------------ cPoker ---------------
echo The goal with this game is to hit
echo $2.000.000.000 without cheating.
echo -----------------------------------
echo If you cheat, modify or anything
echo similar, you WILL be banned and
echo all you progress will be lost.
echo -----------------------------------
echo Game id: %id%
pause >nul
goto menu
:leave
cls
color 4f
echo ------------ cPoker ---------------
echo Are you sure you want to leave? :(
echo.
echo 1. Yes
echo 2. No
choice /c 12 >nul
if ERRORLEVEL 2 goto menu
if ERRORLEVEL 1 goto exit
:leavebanned
cls
color 4f
echo ------------ cPoker ---------------
echo Are you sure you want to leave? :(
echo.
echo 1. Yes
echo 2. No
choice /c 12 >nul
if ERRORLEVEL 2 goto menubanned
if ERRORLEVEL 1 goto exit
:game
cls
echo ------------ cPoker ---------------
echo Hold C to earn money
echo Press S to go to the shop
echo Press E to go back to the menu
echo -----------------------------------
echo Bank:
echo %x% dollars!
echo -----------------------------------
echo Multiplier: %m%
echo -----------------------------------
del gamesaves\multi.txt
del gamesaves\multiac.txt
del gamesaves\score.txt
del gamesaves\scoreac.txt
del gamesaves\var2score.txt
del gamesaves\var2scoreac.txt
echo %x%> gamesaves\score.txt
echo %x%> gamesaves\scoreac.txt
echo %m%> gamesaves\multi.txt
echo %m%> gamesaves\multiac.txt
echo %x2%> gamesaves\var2score.txt
echo %x2%> gamesaves\var2scoreac.txt
choice /c cse >nul
if ERRORLEVEL 3 goto :menu
if ERRORLEVEL 2 goto :shop
if ERRORLEVEL 1 goto :counter
:counter
if %x% lss 2000000000 (
set /a x+=%m%
set /a xac+=%m%
goto game
)
cls
echo ------------ cPoker ---------------
echo You did it :p
echo Was it too easy?
echo You hit $2.000.000.000
echo I know you cheated :)
echo -----------------------------------
echo :S
set m=1
set x=1
timeout 5 >nul
goto game
:shop
cls
echo ------------ The Shop ------------
echo Bank: %x%
echo Current multiplier: %m%
echo ----------------------------------
echo 1. Buy +2X Multiplier ($5K)
echo 2. Buy +5X Multiplier ($10k)
echo 3. Buy +20X Multiplier ($35k)
echo 4. Buy +100X Multiplier ($100k)
echo 5. Buy +10000X Multiplier ($1mil)
echo 6. Buy +100000X Multiplier ($10mil)
echo ----------------------------------
echo Press E to go back!
echo ----------------------------------
choice /c 123456e >nul
if ERRORLEVEL 7 goto game
if ERRORLEVEL 6 goto :100000x
if ERRORLEVEL 5 goto :10000x
if ERRORLEVEL 4 goto :100x
if ERRORLEVEL 3 goto :20x
if ERRORLEVEL 2 goto :5x
if ERRORLEVEL 1 goto :2x
goto game
:2x
cls
if %x% lss 5000 goto :broke
echo You bought 2X multiplier!
set /a m+=2
set /a mac+=2
set /a x=%x%-5000
set /a xac=%xac%-5000
del gamesaves\multi.txt
del gamesaves\multiac.txt
del gamesaves\score.txt
del gamesaves\scoreac.txt
del gamesaves\var2score.txt
del gamesaves\var2scoreac.txt
echo %x%> gamesaves\score.txt
echo %x%> gamesaves\scoreac.txt
echo %m%> gamesaves\multi.txt
echo %m%> gamesaves\multiac.txt
echo %x2%> gamesaves\var2score.txt
echo %x2%> gamesaves\var2scoreac.txt
timeout 2 >nul
goto game
:5x
cls
if %x% lss 10000 goto :broke
echo You bought 5X multiplier!
set /a m+=5
set /a mac+=5
set /a x=%x%-10000
set /a xac=%xac%-10000
del gamesaves\multi.txt
del gamesaves\multiac.txt
del gamesaves\score.txt
del gamesaves\scoreac.txt
del gamesaves\var2score.txt
del gamesaves\var2scoreac.txt
echo %x%> gamesaves\score.txt
echo %x%> gamesaves\scoreac.txt
echo %m%> gamesaves\multi.txt
echo %m%> gamesaves\multiac.txt
echo %x2%> gamesaves\var2score.txt
echo %x2%> gamesaves\var2scoreac.txt
timeout 2 >nul
goto game
:20x
cls
if %x% lss 35000 goto :broke
echo You bought 20X multiplier!
set /a m+=20
set /a mac+=20
set /a x=%x%-35000
set /a xac=%xac%-35000
del gamesaves\multi.txt
del gamesaves\multiac.txt
del gamesaves\score.txt
del gamesaves\scoreac.txt
del gamesaves\var2score.txt
del gamesaves\var2scoreac.txt
echo %x%> gamesaves\score.txt
echo %x%> gamesaves\scoreac.txt
echo %m%> gamesaves\multi.txt
echo %m%> gamesaves\multiac.txt
echo %x2%> gamesaves\var2score.txt
echo %x2%> gamesaves\var2scoreac.txt
timeout 2 >nul
goto game
:100x
cls
if %x% lss 100000 goto :broke
echo You bought 100X multiplier!
set /a m+=100
set /a mac+=100
set /a x=%x%-100000
set /a xac=%xac%-100000
del gamesaves\multi.txt
del gamesaves\multiac.txt
del gamesaves\score.txt
del gamesaves\scoreac.txt
del gamesaves\var2score.txt
del gamesaves\var2scoreac.txt
echo %x%> gamesaves\score.txt
echo %x%> gamesaves\scoreac.txt
echo %m%> gamesaves\multi.txt
echo %m%> gamesaves\multiac.txt
echo %x2%> gamesaves\var2score.txt
echo %x2%> gamesaves\var2scoreac.txt
timeout 2 >nul
goto game
:10000x
cls
if %x% lss 1000000 goto :broke
echo You bought 10000X multiplier!
set /a m+=10000
set /a mac+=10000
set /a x=%x%-1000000
set /a xac=%xac%-1000000
del gamesaves\multi.txt
del gamesaves\multiac.txt
del gamesaves\score.txt
del gamesaves\scoreac.txt
del gamesaves\var2score.txt
del gamesaves\var2scoreac.txt
echo %x%> gamesaves\score.txt
echo %x%> gamesaves\scoreac.txt
echo %m%> gamesaves\multi.txt
echo %m%> gamesaves\multiac.txt
echo %x2%> gamesaves\var2score.txt
echo %x2%> gamesaves\var2scoreac.txt
timeout 2 >nul
goto game
:100000x
cls
if %x% lss 10000000 goto :broke
echo You bought 100000X multiplier!
set /a m+=100000
set /a mac+=100000
set /a x=%x%-10000000
set /a xac=%xac%-10000000
del gamesaves\multi.txt
del gamesaves\multiac.txt
del gamesaves\score.txt
del gamesaves\scoreac.txt
del gamesaves\var2score.txt
del gamesaves\var2scoreac.txt
echo %x%> gamesaves\score.txt
echo %x%> gamesaves\scoreac.txt
echo %m%> gamesaves\multi.txt
echo %m%> gamesaves\multiac.txt
echo %x2%> gamesaves\var2score.txt
echo %x2%> gamesaves\var2scoreac.txt
timeout 2 >nul
goto game
:broke
cls
echo ------------ cPoker ---------------
echo You are broke!
echo.
echo You don't have enough money
echo to buy this item!
timeout 2 >nul
goto shop
:ban
cls
echo ---------- Anti-cheat -------------
echo Receiving data from Anti-cheat.
PING localhost -n 2 >NUL
cls
echo ---------- Anti-cheat -------------
echo Receiving data from Anti-cheat..
PING localhost -n 2 >NUL
cls
echo ---------- Anti-cheat -------------
echo Receiving data from Anti-cheat...
PING localhost -n 2 >NUL
color 4f
cls
echo ------------ cPoker ---------------
echo You are banned for cheating
echo Reason: files changed.
echo.
echo Press any button
pause >nul
goto menubanned
:confrepair
cls
echo ------------ cPoker ---------------
echo Are you sure you want to repair
echo your files? This will reset all
echo you data! (If youre banned this is
echo your only option to be able to play
echo again.)
echo.
echo 1. Yes
echo 2. No
choice /c 12 >nul
if ERRORLEVEL 2 goto menu
if ERRORLEVEL 1 goto repair
:confrepairbanned
cls
echo ------------ cPoker ---------------
echo Are you sure you want to repair
echo your files? This will reset all
echo you data! (If youre banned this is
echo your only option to be able to play
echo again.)
echo.
echo 1. Yes
echo 2. No
choice /c 12 >nul
if ERRORLEVEL 2 goto menubanned
if ERRORLEVEL 1 goto repair
:repair
color 64
cls
echo ---------- Anti-cheat -------------
echo Repairing files.
PING localhost -n 1 >NUL
cls
echo ---------- Anti-cheat -------------
echo Repairing files..
PING localhost -n 1 >NUL
cls
echo ---------- Anti-cheat -------------
echo Repairing files...
PING localhost -n 1 >NUL
set /a idraw=%random%
rd /s /q gamesaves
md gamesaves
: :needed
echo %idraw% > gamesaves\id1a.txt
echo %idraw% > gamesaves\id1aa.txt
echo 30 > gamesaves\score.txt
echo 30 > gamesaves\scoreac.txt
echo 30 > gamesaves\var2score.txt
echo 30 > gamesaves\var2scoreac.txt
echo 1 > gamesaves\multi.txt
echo 1 > gamesaves\multiac.txt
: :junk
echo 30 > gamesaves\score1a.txt
echo 30 > gamesaves\score1aa.txt
echo 31 > gamesaves\score1b.txt
echo 31 > gamesaves\score1bb.txt
echo 32 > gamesaves\score1c.txt
echo 32 > gamesaves\score1cc.txt
echo 33 > gamesaves\score1d.txt
echo 33 > gamesaves\score1dd.txt
echo 34 > gamesaves\score1e.txt
echo 34 > gamesaves\score1ee.txt
echo 35 > gamesaves\score1f.txt
echo 35 > gamesaves\score1ff.txt
: :attrib +h gamesaves
goto aut