Zdroják Windows Vista - Windows 10
@echo off color 2 set /a "M = 0" :MENU cls echo. echo ---------- echo menu echo ---------- echo. echo 1-nova hra echo 2-vytvoreni hrace echo 3-konec echo 4-vlozit kod pro pokracovani echo. SET /P M=Napis 1, 2, 3, nebo 4 zmackni ENTER: IF %M%==1 GOTO RUN IF %M%==2 GOTO HRAC IF %M%==3 GOTO EOF IF %M%==4 GOTO Level GOTO MENU :EOF cls echo. echo. echo. echo. echo. echo 27.11. 2017 Tomas Bezanyi rem 16.11. 2017 pause exit :Level cls :Levell SET /P M=Napis kod levelu nebo exit zmackni ENTER: IF %M%==exit GOTO MENU IF %M%==BEZDOMOVEC GOTO BEZDOMOVEC2 IF %M%==KLIC GOTO KLIC2 IF %M%==LETADLO GOTO LETADLO2 cls echo Nespravny kod! GOTO Levell :BEZDOMOVEC2 SET /P Player=Napis jmeno hrace zmackni ENTER: GOTO BEZDOMOVEC :KLIC2 SET /P Player=Napis jmeno hrace zmackni ENTER: GOTO KLIC :LETADLO2 SET /P Player=Napis jmeno hrace zmackni ENTER: GOTO LETADLO :HRAC cls SET /P M=Napis jmeno hrace nebo exit zmackni ENTER: IF %M%==exit GOTO MENU @echo vymezena kreslici plocha. Tecky po domalovani smazte!>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo......................_........................_...............................>>%M%.txt @echo...................../0\....................../0\..............................>>%M%.txt @echo.....................\_/......................\_/..............................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo.................................................../...........................>>%M%.txt @echo..................________________________________/............................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt @echo...............................................................................>>%M%.txt echo Byl vytvoren soubor %M%.txt. echo Nyni muzete pomoci znaku namalovat hrace do souboru %M%.txt. pause GOTO MENU :RUN set /a "Player = 0" cls SET /P Player=Napis jmeno hrace nebo exit zmackni ENTER: IF %Player%==exit GOTO MENU set /a "navrat = 1" cls :READ set "textline=" for /F "skip=1 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=2 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=3 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=4 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=5 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=6 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=7 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=8 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=9 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=10 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=11 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=12 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=13 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=14 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=15 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=16 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=17 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=18 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=19 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=20 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=21 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=22 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" for /F "skip=23 delims=" %%i in (%Player%.txt) do if not defined textline set "textline=%%i" echo %textline% set "textline=" IF %navrat% == 2 GOTO NAVRAT2 IF %navrat% == 3 GOTO NAVRAT3 echo Seznamte se to je %Player%. pause >nul cls echo A tohle je vas domecek. echo * echo * * echo * * echo * * echo * * echo * * echo * * echo * * echo * * echo * * echo ^* ^| ^| ^* echo ^| _____ ^| echo ^| ^| ^| ^| ^| echo ^| ^|-^|-^| ^| echo ^| ^|_^|_^| ^| echo ^| ^| echo ^| ^| echo ^| ^| echo ^| ^| echo ^| ^| echo __^|_______________^|___ echo _________________/ \____________________________________ pause >nul cls echo A toto je les za vasim domem. echo /\ /\ //\\ /\ //\\ echo //\\ //\\ ///\\\ //\\ ///\\\ echo //\\ //\\ ////\\\\ //\\ ////\\\\ echo //\\ //\\ ///\\\ //\\ ///\\\ echo //\\ //\\ ////\\\\ //\\ ////\\\\ echo //\\ //\\ /////\\\\\ //\\ /////\\\\\ echo //\\ //\\ ///\\\ //\\ ///\\\ echo //\\ //\\ ////\\\\ //\\ ////\\\\ echo //\\ //\\ /////\\\\\ //\\ /////\\\\\ echo //\\ //\\ ///\\\ //\\ ///\\\ echo //\\ //\\ ////\\\\ //\\ ////\\\\ echo //\\ //\\ /////\\\\\ //\\ /////\\\\\ echo /^|^|\ /^|^|\ ///\\\ /^|^|\ ///\\\ echo ^|^| ^|^| ////\\\\ ^|^| ////\\\\ echo ^|^| ^|^| /////\\\\\ ^|^| /////\\\\\ echo ^|^| ^|^| ^| ^| ^|^| ^| ^| echo ^|^| ^|^| ^| ^| ^|^| ^| ^| echo ^|^| ^|^| ^| ^| ^|^| ^| ^| echo ^|^| ^|^| ^| ^| ^|^| ^| ^| echo ^|^| ^|^| ^| ^| ^|^| ^| ^| echo ^|^| ^|^| ^| ^| ^|^| ^| ^| echo /^|^|\____________/^|^|\_____________^|__^|______/^|^|\_______________^|__^|_____ pause >nul cls set /a num=%random% %%9 +1980 set /a num2=%random% %%4 +25 echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo Je rok %num%. echo %num2%.11 echo. pause >nul echo Kod pro vlozeni:BEZDOMOVEC. pause >nul :BEZDOMOVEC cls echo. echo. echo. echo. echo. echo. echo. echo Rozhodli jste se, ze jste moc lini na to, abyste kupovali vanocni stromecek, a proto jste vzali pilu a sli jste do lesa. pause >nul :skip cls echo /\ /\ //\\ //\\ echo //\\ //\\ ///\\\ ///\\\ echo //\\ //\\ ////\\\\ ////\\\\ echo //\\ //\\ ///\\\ ///\\\ echo //\\ //\\ ////\\\\ ////\\\\ echo //\\ //\\ /////\\\\\ /////\\\\\ echo //\\ //\\ ///\\\ ///\\\ echo //\\ //\\ ////\\\\ ////\\\\ echo //\\ //\\ /////\\\\\ /////\\\\\ echo //\\ //\\ ///\\\ ///\\\ echo //\\ //\\ ////\\\\ ////\\\\ echo //\\ //\\ /////\\\\\ /////\\\\\ echo /^|^|\ /^|^|\ ///\\\ ///\\\ echo ^|^| ^|^| ////\\\\ ////\\\\ echo ^|^| ^|^| /////\\\\\ /////\\\\\ echo ^|^| ^|^| ^| ^| ^| ^| echo ^|^| ^|^| ^| ^| ^| ^| echo ^|^| ^|^| ^| ^| ^| ^| echo ^|^| ^|^| ^| ^| ^| ^| echo ^|^| ^|^| ^| ^| __ ^| ^| echo ^|^| ^|^| ^| ^| ^|^| ^| ^| echo /^|^|\____________/^|^|\_____________^|__^|______/^|^|\_______________^|__^|_____ echo u prvniho stromu je casto bezdomovec. pause >nul echo u druheho stromu je dite, ktere se tvari jako citron pause >nul echo po tretim lezou veverky pause >nul echo a ctvrty je za statni hranici pause >nul set /a "strom = 0" SET /P strom=Jaky strom chces pokacet (1,2,3,4) zmackni ENTER: IF %strom%==0 GOTO skip IF %strom%==1 GOTO bezdomovec IF %strom%==2 GOTO dite IF %strom%==3 GOTO veverka IF %strom%==4 GOTO hranice GOTO BEZDOMOVEC :hranice echo nejaky vojak na tebe zacal rvat, tak jsi radsi zdrhnul pause >nul GOTO skip :veverka echo POZOR! Nejaka veverka si te vsimla a spustila alarm a s nim i palbu. pause >nul GOTO skip :dite echo kdys jsi prisel bliz, dite zacalo houkat ja chci citron, odesel jsi do mesta pro citron echo sice to neco stalo ale dite odcitronovalo pryc a tak mas strom pause >nul GOTO NEXT :bezdomovec echo aaa koho to tu mame, ze ty chces tenhle strom, nejsi dneska prvni, kdo sem prisel, ale mozna muzes byt prvni, kdo si ho odnese echo jiz za petset dvojkorun muze byt tvuj SET /P strom2=zaplatit(1) nebo ne(0) zmackni ENTER: IF %strom2%==0 GOTO BEZDOMOVEC :NEXT cls echo ukol splnen, mas strom pause >nul cls echo Ted musis jen splnit zbytek veci, co mas splnit: echo vyluxovat, vyprat, vynest kos, postavit vanocni stromecek, ozdobit vanocni stromecek... pause >nul :KLIC CLS echo Tak se jdeme do toho pustit, ne? pause >nul ECHO. ECHO Dalsi kod: KLIC pause >nul cls ECHO Vyluxovat ECHO. echo. echo. echo. echo. echo. echo. echo. echo. ECHO ^|^|^|^|^| ECHO ^| o^| echo ^|___^| echo _^|^|_ echo ^| ^| echo ^| ^|______^| echo ^| ^| ^| echo ^|__^| /^| echo ^| / ^| echo ^| ^|_^| echo ^| ^| echo ^|__ ^|__ echo _____^|__\_____^|__\__________________________________________________________ pause >nul cls echo vyprat echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo ______________ echo ^|_o_ooo__^|___^| echo ^| ^| echo ^| ^| echo ^| __ ^| echo ^| / \- ^| echo ^| ^| ^| ^| echo ^| \__/- ^| echo ^| ^| echo ____^|____________^|_________________________________________________________ pause >nul cls echo vynest kos echo * echo * * echo * * echo * * echo * * echo * * echo * * echo * * echo * * echo * * echo ^* ^| ^| ^* echo ^| _____ ^| echo ^| ^| ^| ^| ^| echo _____^| ^|-^|-^| ^| echo ^|_ ^| ^|_^|_^| ^| echo / \ ^| ^| echo \__/ ^| ^| echo _____ ^| ^| echo ^| ^| ^| ^| echo ^| ^| ^| ^| echo ^| ^| __^|_______________^|___ echo __^|___^|_/ \___________________________________________ pause >nul set /a "stromn = 1" cls echo Ted by to chtelo postavit vanocni stromecek. pause >nul :stromm cls echo /\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo /^|^|\ echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo /^|^|\ GOTO MENUstromm :stromm2 cls echo /\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo /^|^|\ echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo /^|^|\ GOTO MENUstromm :stromm3 cls echo /\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo /^|^|\ echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo /^|^|\ GOTO MENUstromm :stromm4 cls echo /\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo /^|^|\ echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo /^|^|\ GOTO MENUstromm :stromm5 cls echo /\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo //\\ echo /^|^|\ echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo ^|^| echo /^|^|\ GOTO MENUstromm :MENUstromm set /a "strom = 0" SET /P strom=doleva(1) nebo doprava(2) nebo uz je rovne(3)? ENTER: IF %strom%==1 set /a "stromn=stromn -1" IF %strom%==2 set /a "stromn=stromn +1" IF %stromn%==0 GOTO spad IF %stromn%==6 GOTO spad IF %strom%==3 IF NOT %stromn%==3 GOTO spad IF %strom%==3 IF %stromn%==3 GOTO NEXT2 IF %stromn%==1 GOTO stromm IF %stromn%==2 GOTO stromm2 IF %stromn%==3 GOTO stromm3 IF %stromn%==4 GOTO stromm4 IF %stromn%==5 GOTO stromm5 GOTO MENUstromm :spad echo spadlo ti to :'( pause >nul set /a "stromn = 1" GOTO stromm :NEXT2 :LETADLO cls echo Zvladnul jsi to! pause >nul echo Dalsi kod pro vlozeni: LETADLO. pause >nul cls echo A ted uz jen ozdobit vanocni stromecek... pause >nul echo Pockat pause >nul echo ne pause >nul echo Vzdyt nemame zadne vanocni ozdoby. pause >nul :obchod set /a "ozdoby = 0" cls echo Jdes do obchodu a musis vybrat, co vsechno koupis. pause >nul :obchod2 set /a "O=0" rem // generate a random number between 33 and 126 set /a "ascii = %random% %%94 +33" rem // set errorlevel to that number cmd /c exit /b %ascii% rem // get letter corresponding to that exit code :skip2 cls echo ^| echo ^%=ExitCodeAscii% zatim mas %ozdoby% ozdob SET /P O=beres(1) nebo ne(2) nebo uz staci(3)? ENTER: IF %O% ==0 GOTO skip2 IF %O% ==1 set /a "ozdoby = ozdoby +1" IF %O% ==3 IF %ozdoby% GTR 10 IF %ozdoby% LSS 30 GOTO NEXT3 IF %O% ==3 IF NOT %ozdoby% GTR 10 GOTO malo IF %O% ==3 IF NOT %ozdoby% LSS 30 GOTO moc GOTO obchod2 :malo cls echo S tim bys stromecek neozdobil ani nahodou. pause >nul GOTO obchod :moc cls echo Na tohle bohuzel nemas. pause >nul GOTO obchod :NEXT3 cls set /a "O=0" echo Jdes do mesta koupit detem neco pekneho. SET /P O=Chces Jit koupit mandarinku(1) nebo pujdes do lesa a vezmes prvni vec, co najdes na zemi (2)? ENTER: IF %O% ==0 GOTO NEXT3 IF %O% ==1 GOTO mandarinka IF %O% ==2 GOTO LES :mandarinka cls Echo Jdes do fronty a cekas... echo. echo. echo. echo \ echo \\ echo \\\ echo \\\\ echo \\\\\ echo \\\\\\ echo \\\\\\\ TY echo \\\\\\\\ ^|^| echo \\\\\\\\\ \/ echo ______ ^|\ _o_ ___ _0_ echo ^| ^|______ _____ /___\ __/___\ /___\ ^|^|^|^|^| echo ^| ^| ^| ^|o o^| ^|o o^| ^|o o^| ^|o o^| ^|o o^| echo ^| ^| otev-^| ^|___^| ^|___^| ^|___^| ^|___^| ^|___^| echo ^| ^| reno ^| __^|__ __^|__ __^|__ __^|__ __^|__ echo ^| ^| ^| ^|^| ^|^| ^|^| ^|^| ^|^| ^|^| ^|^| ^|^| ^|^| ^|^| echo ^| ^| pot- ^| ^|^| ^|^| ^|^| ^|^| ^|^| ^|^| ^|^| ^|^| ^|^| ^|^| echo ^| ^|raviny^| ^|^|___^|^| ^|^|___^|^| ^|^|___^|^| ^|^|___^|^| ^|^|___^|^| echo ______^| ^|______^| ^| ^| ^| ^| ^| ^| ^| ^| ^| ^| echo ^|_ ^| ^| ^| ^| ^| ^| ^| ^| ^| ^| echo ^|_____________^|_^|__________^|_^|_________^|_^|_________^|_^|______^|_^|___ pause >nul cls echo cekas a cekas az se nakonec dostanes na radu pause >nul cls Echo TY: Prosil bych jednu mandarinku. set /a "navrat" = 2 GOTO READ :NAVRAT2 pause >nul cls Echo PRODAVACKA: Omlouvame se, ale mandarinky uz nejsou pause >nul cls Echo Coze hodinu jsem ve fronte stal a voni uz nejsou?! set /a "navrat" = 3 GOTO READ :NAVRAT3 pause >nul cls GOTO NEXT3 :LES cls echo Rozhodl ses, ze pujdes do lesa a tam najdes neco dobreho. pause >nul cls set /a "O=0" Echo jsi v lese, na zemi tu neco lezi - co si z toho vyberes? pause >nul :LES2 cls SET /P O=Nejaky stary banan(1)taky casti vysavace(2) nebo stare a hnusne zehlici prkno(3)? ENTER: IF %O% ==0 GOTO LES2 IF %O% ==1 GOTO banan IF %O% ==2 GOTO vysavac IF %O% ==3 GOTO prkno GOTO LES2 :banan cls Echo sebral jsi ten banan a vypravil ses domu. pause >nul Echo Ale kdys jsi stal na kopci, tak se banan rozlozil totalne a ty jsi odjel na zbytku toho bananu z kopce. pause >nul cls echo Kdys jsi dojel, tak jsi srazil nekoho, kdo kradl nejaky pocitac. pause >nul echo Tomu cloveku jsi pocitac sebral a predal jsi ho VB, ktera za nim bezela. pause >nul cls echo Nevadi, ze jsi ztratil banan, ale mas pocitac. pause >nul GOTO NEXT4 :vysavac cls echo No, kdyz jsi do toho sahnul, tak na tebe vybehl nejakej policajt s pocitacem a ptal se te, proc tu delas cernou skladku pause >nul GOTO LES2 :prkno Echo Mas dve deti holcicku a chlapecka. Na co by jim sakra bylo zehlici prkno? pause >nul cls GOTO LES2 :NEXT4 cls set /a "O=0" Echo Zvladnul jsi to! Echo udelal jsi detem pekne vanoce SET /P O=Chces vytisknout diplom(1) nebo ne(2)? ENTER: IF %O% ==0 GOTO NEXT4 IF %O% ==1 GOTO tisk :skip3 GOTO MENU :tisk @echo Uspesne si udelal nekomu pekne vanoce.>>DIPLOM.txt @echo //\\ >>DIPLOM.txt @echo * ///\\\ >>DIPLOM.txt @echo * ////\\\\ * >>DIPLOM.txt @echo ///\\\ >>DIPLOM.txt @echo ////\\\\ >>DIPLOM.txt @echo /////\\\\\ >>DIPLOM.txt @echo * ///\\\ * * >>DIPLOM.txt @echo ////\\\\ >>DIPLOM.txt @echo /////\\\\\ >>DIPLOM.txt @echo ///\\\ >>DIPLOM.txt @echo ////\\\\ * >>DIPLOM.txt @echo * /////\\\\\ * * >>DIPLOM.txt @echo * ///\\\ >>DIPLOM.txt @echo ////\\\\ >>DIPLOM.txt @echo /////\\\\\ >>DIPLOM.txt @echo ^| ^| >>DIPLOM.txt @echo ^| ^| * >>DIPLOM.txt @echo * * ^| ^| >>DIPLOM.txt @echo ^| ^| >>DIPLOM.txt @echo ^| ^| >>DIPLOM.txt @echo * ^| ^| * >>DIPLOM.txt @echo _____^|___^|__ >>DIPLOM.txt echo Byl vytvoren soubor DIPLOM.txt potom si to muzete vytisknout. pause GOTO skip3