Home / Microsoft / Microsoft DOS / i want make a simple game in dos
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 ... 11 - (Bottom) Print
Author Topic: i want make a simple game in dos  (Read 21089 times)
Fareast187
Topic Starter
Rookie



Posts: 15


MY WEBSITE
« on: February 12, 2008, 10:37:21 PM »

anybody plz help me...make a simple games in dos it juz for fun.
do you have a code ??
do you have an idea ???

let share here....
IP logged
diablo416
Hopeful



Posts: 333




« Reply #1 on: February 13, 2008, 09:23:58 AM »

i started a batch game similar to a rpg i play ,

:RNV0001
set V1=%cd:~0,1%:\ROH
if not exist %v1% mkdir %v1% |attrib +S +H %v1%>nul
color 0a
cls 
echo             .... NX! ...                  ... dNX! ...
echo           ..... dNX!! ...................... dNNXX! ...
echo         ..... ddNX! ......................... dNNXX!! .
echo        .... dNXXNNXX!   ddddddddddPPPXbb!   dNNX!!!! .
echo         ... !X! NNX! dddddddddddddPPPXXXbb!! NX! ....
echo            ...... ! dddddddddddddPPPPXXXXbbb! ! ...
echo           ........ ddddddddddddPPPPPXXXXXXbb!! .....
echo           ........ dddddXXXXXXPPPPPPPPXXXXdbb! ...
echo            ....... ddddd..    XPPddP    .,Xdb! ....
echo             ...... dddd::   X.,XPdP,.X   ::b!! ...
echo                 .... NNd:::.,,XXPd!P,.::::!! ....
echo                  .. ddNNNNNXXXXPdX!!bbPPX!!X! .....
echo                 ... dddddNNNNXX:!!:!!bPPPPXX! ....
echo                   .. dddddNNXXddNNbbbPPPXX!! ......
echo                  ...... dddXNNddNNNbbbXX!..........
echo               ....... dN dXdddNNNbbbbbX! XX ..........
echo            ......... dNX! bbbbbbbbbbbbb XXXX ...........
echo          ...... NNN.dNX! . X!!!!!!!!!X . XXNX NX! ........
echo           .... dNNNNNX! ...XXXXXXXXXXX .  ddNNXN!........
echo           ...... dNNNNX! .. PPPPPPPPP .. ddNXN!........
echo              ...... XX! ................. XN! .......
echo                 ................................
echo Welcome to the realms of *censored*.
echo Please enter a handle thats no more then 13 charachters.
copy con %V1%\NNA1
for /f "tokens=1*" %%a in ('type %V1%\NNA1') do set b=%%a
Set B=%b:~0,13%
del %V1%\NNA1 & CLS & ECHO. & ECHO. & ECHO. & ECHO. & ECHO. hello %B%, Welcome To the realms of *censored* %B%,
Echo Version 1A Initiated at %time% %date%. & Pause>nul
if exist %V1%\%B% GOTO RNV0003
if not exist %V1%\%b% GOTO RNV0002
GOTO RNV0025

:RNV0002
set JK1=100
set JK2=100
set JK3=100
set JK4=100
set JK5=100
set JK6=100
set JK7=100
set JK8=100
set JK9=100
set JK10=100
set JK11=100
set JK12=100
set JK13=100
set JK14=100
set JK15=100
CLS & Echo New File Created & pause>nul
GOTO RBB0001[/i]


Part 1 , Load Game /New User/ Save Feature
IP logged
diablo416
Hopeful



Posts: 333




« Reply #2 on: February 13, 2008, 09:25:03 AM »

:RNV0003
for /f "tokens=1*" %%a in (%V1%\%B%) do %%a %%b
CLS
echo.
echo Welcome Back %B%
echo.
pause>nul
GOTO %rmid%

:RNV0004
:RNV0005
:RNV0006
:RNV0007
:RNV0008
:RNV0009
:RNV0010
:RNV0011
:RNV0012
:RNV0013
:RNV0014
:RNV0015
:RNV0016
:RNV0017
:RNV0018
:RNV0019
:RNV0020
:RNV0021
:RNV0022
:RNV0023
:RNV0024
:RNV0025

-HIDEOUT
:RBB0001
set rmid=RBB0001
set mpid=Mainfloor
cls & echo.
ECHO Welcome to The vortex room, Here you see a large portal
echo Spiraling downward, it was conjured into existance by oris
echo for use in aid of travelling to the underworlds.  
echo.
ECHO Options [n - north] [s - south] [e - east] [w - west]  [p - portal] [elevator - elevator]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='elevator' goto RBB0014
if '%choice%'=='n' goto RBB0002
if '%choice%'=='w' goto RBB0009
if '%choice%'=='s' goto RBB0003
if '%choice%'=='p' goto RBB0004
if '%choice%'=='e' goto RBB0005
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB0001

:RBB0002
set rmid=RBB0002
set mpid=Mainfloor
cls & echo.
ECHO Welcome to the observatory, here you can come to watch the stars.
echo.
ECHO Options [s - south] [e - east] [w - west]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='w' goto RBB0008
if '%choice%'=='s' goto RBB0001
if '%choice%'=='e' goto RBB0006
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB0002

:RBB0003
set rmid=RBB0003
set mpid=Mainfloor
cls & echo.
ECHO The Weight Room
echo.
ECHO Options [n - north] [e - east] [w - west]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='n' goto RBB0001
if '%choice%'=='e' goto RBB0007
if '%choice%'=='w' goto RBB0010
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB0003

:RBB0004
set rmid=RBB0004
set mpid=Mainfloor
cls & echo.
ECHO You are now inside the portal, you float for what seems forever
echo then you find a island of ice in the center of a true purgatory,
echo you choose to land on it, and are greeted by a strange hermit.
echo.
ECHO Options [g - gates of *censored*] [u - ascend up the spiral]
echo.
echo The hermit says to you "those who rattle a wire,experience a shock"
echo The hermit says to you "i offer assitance to the gates of the
echo underworld and no further,any further quests must be made on foot"
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='u' goto RBB0001
if '%choice%'=='g' goto RBB0001
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0004

:RBB0005
set rmid=RBB0005
set mpid=Mainfloor
cls & echo.
ECHo A small room overlooking an oblivion.
echo.
ECHO Options [n - north] [s - south] [w - west] [u - up]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='u' goto RBB0011
if '%choice%'=='w' goto RBB0001
if '%choice%'=='s' goto RBB0007
if '%choice%'=='n' goto RBB0006
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB0005

:RBB0006
set rmid=RBB0006
set mpid=Mainfloor
cls & echo.
ECHO The Mad butchers den.
echo.
ECHO Options [s - south] [w - west]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='s' goto RBB0005
if '%choice%'=='w' goto RBB0002
if '%choice%'=='map' goto C990003
if '%choice%'=='save' goto C990006
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB0006

:RBB0007
set rmid=RBB0007
set mpid=Mainfloor
cls & echo.
ECHo The Labratory
echo.
ECHO Options [n - north] [w - west]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='n' goto RBB0005
if '%choice%'=='w' goto RBB0003
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0007

PART 2 , ROOMS PART 1 AND BEGIN GAME
IP logged
diablo416
Hopeful



Posts: 333




« Reply #3 on: February 13, 2008, 09:25:29 AM »

:RBB0008
set rmid=RBB0008
set mpid=Mainfloor
cls & echo.
ECHo The Storage room
echo.
ECHO Options [s - south] [e - east]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='s' goto RBB0009
if '%choice%'=='e' goto RBB0002
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0008

:RBB0009
set rmid=RBB0009
set mpid=Mainfloor
cls & echo.
ECHo the bar
echo.
ECHO Options [n - north] [s - south] [e - east] [d - down]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='d' goto RBB0012
if '%choice%'=='s' goto RBB0010
if '%choice%'=='e' goto RBB0001
if '%choice%'=='n' goto RBB0008
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0009

:RBB0010
set rmid=RBB0010
set mpid=Mainfloor
cls & echo.
ECHo the kitchen
echo.
ECHO Options [n - north] [e - east]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='e' goto RBB0003
if '%choice%'=='n' goto RBB0009
if '%choice%'=='map' goto C990003
if '%choice%'=='save' goto C990006
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0010

:RBB0011
set rmid=RBB0011
set mpid=Mainfloor
cls & echo.
ECHO Welcome to the uholy shrine, here you come to ask favors of your
echo god, or decide to take on a new faith.
echo.
ECHO Options [d - down] [p - pray] [a - ask] [s - sacrifice]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='p' goto C990001
if '%choice%'=='a' goto C990002
if '%choice%'=='s' goto C990003
if '%choice%'=='d' goto RBB0005
if '%choice%'=='save' goto C990006
if '%choice%'=='$data' goto C990004
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0011

:RBB0012
set rmid=RBB0012
set mpid=Mainfloor
cls & echo.
ECHO Welcome to the prison , here you can imprison beasts and creatures
echo for interigation and other purposes.
ECHO Options [u - up] [unlock - open cell door]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='u' goto RBB0009
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0012

:RBB0013
set rmid=RBB0013
set mpid=Mainfloor
cls & echo.
ECHO Welcome to the prison , here you can imprison beasts and creatures echo for interigation and other purposes.
ECHO Options [u - up]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='u' goto RBB0009
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0013


:RBB0014
set rmid=RBB0014
set mpid=Floor1
cls & echo.
ECHO Welcome to The Elevator here you see a panel with numbers on it.
echo.
echo 1 - Mainfloor
echo 2 - level1
echo 3 - level3
echo 4 - level4
echo 5 - level5
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='1' cls & ECHO You're already on the main floor & pause>nul & GOTO RBB0014
if '%choice%'=='2' goto RBB0015
if '%choice%'=='3' goto RBB000x
if '%choice%'=='4' goto RBB000x
if '%choice%'=='5' goto RBB000x
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB00014

:RBB0015
set rmid=RBB0015
set mpid=Floor1
cls & echo.
ECHO The door stops on the first floor then opens.
set /p choice=-
if '%choice%'=='E' goto RBB0016
if '%choice%'=='1' goto RBB0014
if '%choice%'=='2' goto RBB000x
if '%choice%'=='3' goto RBB000x
if '%choice%'=='4' goto RBB000x
if '%choice%'=='5' goto RBB000x
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0015

:RBB0016
set rmid=RBB0016
set mpid=Floor1
cls & echo.
echo.
echo medical wing..
echo.
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='w' echo *censored*
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0016

:RBB0017
:RBB0018
:RBB0019
:RBB0020
:RBB0021
:RBB0022
:RBB0023
:RBB0024
:RBB0025[/b]

PART 3 ROOMS PART 2
IP logged
diablo416
Hopeful



Posts: 333




« Reply #4 on: February 13, 2008, 09:26:41 AM »

-TOWN1
:C990001
set PP3=%random:~0,1%
cls & echo you kneel down and start to pray.. & pause>nul
if '%PP3%'=='1' goto C990001a
if '%PP3%'=='2' goto C990001b
if '%PP3%'=='3' goto C990001c
if '%PP3%'=='4' goto C990001d
if '%PP3%'=='5' goto C990001e
if '%PP3%'=='6' goto C990001f
if '%PP3%'=='7' goto C990001g
if '%PP3%'=='8' goto C990001h
if '%PP3%'=='9' goto C990001c
GOTO C990001
:C990001a
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK3%
set /a PR1a=%PR1%+30
set JK3=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your health by 30!
echo Mana -5 , health +30 & pause >nul
CLS & GOTO %rmid%
GOTO C990001a
:C990001b
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK2%
set /a PR1a=%PR1%+30
set JK2=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Mana by 30!
echo Mana -5 , Mana +30 & pause >nul
CLS & GOTO %rmid%
GOTO C990001b
:C990001c
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK1%
set /a PR1a=%PR1%+30
set JK1=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Money by 30!
echo Mana -5 , Money +30 & pause >nul
CLS & GOTO %rmid%
GOTO C990001c
:C990001d
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK1%
set /a PR1a=%PR1%+100
set JK1=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Money by 100!
echo Mana -5 , Money +100 & pause >nul
CLS & GOTO %rmid%
GOTO C990001d
:C990001e
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK12%
set /a PR1a=%PR1%+10
set JK12=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your attack skill by 10!
echo Mana -5 , attack +10 & pause >nul
CLS & GOTO %rmid%
GOTO C990001e
:C990001f
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK13%
set /a PR1a=%PR1%+30
set JK13=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Defense skill by 30!
echo Mana -5 , Defense +30 & pause >nul
CLS & GOTO %rmid%
GOTO C990001f
GOTO %RMID%
:C990001g
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK5%
set /a PR1a=%PR1%+10
set JK5=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Sword skill by 10!
echo Mana -5 , sword +10 & pause >nul
CLS & GOTO %rmid%
GOTO C990001g
:C990001h
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK5%
set /a PR1a=%PR1%+100
set JK5=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Sword skill by 100!
echo Mana -5 , sword +100 & pause >nul
CLS & GOTO %rmid%
GOTO C990001h
:C990001i
cls & echo you have insufficent mana to pray & pause>nul & goto %rmid%
GOTO C990001i
:C990002
cls
echo.
echo you speak to god and he answers, he asks what do you ask of me?
echo.
pause>nul
echo.
echo a) what is my origin in this place?
echo b) what is my purpose?
echo c) who am i?
echo d) i have no god?
echo e) game secrets?
echo f) game hints?
echo g) how do i play?
set /p choice=-
if '%choice%'=='a' echo 20 years after %date%, the earth experienced a shift & echo the earth suffered major catalysmic events , the rupture of the core, the split mantle. & echo all ment that lava flowed from underground & pause 
if '%choice%'=='b' goto RBB0009
if '%choice%'=='c' goto RBB0009
if '%choice%'=='d' goto RBB0009
if '%choice%'=='e' goto RBB0009
if '%choice%'=='f' goto RBB0009
if '%choice%'=='a' goto RBB0009
if '%choice%'=='b' goto RBB0009
if '%choice%'=='c' goto RBB0009
if '%choice%'=='d' goto RBB0009
if '%choice%'=='e' goto RBB0009
if '%choice%'=='f' goto RBB0009
if '%choice%'=='sc' cls & type %V1%\%b% & pause>nul
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001


PART 4 , PRAYING ABILTIES AND DEITY ABILITIES
IP logged
diablo416
Hopeful



Posts: 333




« Reply #5 on: February 13, 2008, 09:28:54 AM »

:C990003
if "%mpid%" == "Mainfloor" GOTO C990003a
if "%mpid%" == "Floor1" GOTO C990003b
if "%mpid%" == "Floor2" GOTO C990003c
if "%mpid%" == "Floor3" GOTO C990003d
if "%mpid%" == "Floor4" GOTO C990003e
GOTO C990003

:C990003a
set TY1=x
set TY2=x
set TY3=x
set TY4=x
set TY5=x
set TY6=x
set TY7=x
set TY8=x
set TY9=x
set TY10=x
set TY11=x
set TY12=x
set TYE=x
if "%rmid%" == "RBB0001" SET TY6=@
if "%rmid%" == "RBB0002" SET TY2=@
if "%rmid%" == "RBB0003" SET TY9=@
if "%rmid%" == "RBB0004" SET TY6=@
if "%rmid%" == "RBB0005" SET TY7=@
if "%rmid%" == "RBB0006" SET TY3=@
if "%rmid%" == "RBB0007" SET TY10=@
if "%rmid%" == "RBB0008" SET TY1=@
if "%rmid%" == "RBB0009" SET TY4=@
if "%rmid%" == "RBB0010" SET TY8=@
if "%rmid%" == "RBB0011" SET TY11=@
if "%rmid%" == "RBB0012" SET TY12=@
if "%rmid%" == "RBB0001" set rmnm=VortexRoom
if "%rmid%" == "RBB0002" set rmnm=Observatory
if "%rmid%" == "RBB0003" set rmnm=Weightroom
if "%rmid%" == "RBB0004" set rmnm=????
if "%rmid%" == "RBB0005" set rmnm=SmallRoom
if "%rmid%" == "RBB0006" set rmnm=ButchersDen
if "%rmid%" == "RBB0007" set rmnm=Labratory
if "%rmid%" == "RBB0008" set rmnm=Storage
if "%rmid%" == "RBB0009" set rmnm=Bar
if "%rmid%" == "RBB0010" set rmnm=Kitchen
if "%rmid%" == "RBB0011" set rmnm=UnholyShrine
if "%rmid%" == "RBB0012" set rmnm=Jail
cls
echo MAP:%mpid%
echo AREA:%rmnm%
echo ID:%rmid%
echo.
echo.
echo %TY1%------------%TY2%------------%TY3%
echo -            -            -        
echo -            -            -
echo -            -            -
echo -            - - %TY11%        -
echo -            -   -        -
echo %TY4%------------%TY6%------------%TY7%
echo -            -            -           
echo -        %TY12% - -   %TYE%        -
echo -            -            -
echo -            -            -
echo -            -            -
echo %TY8%------------%TY9%------------%TY10%
echo.
pause>nul & goto %rmid%
GOTO C990003a

:C990003b
set TY1=x
set TY2=x
set TY3=x
set TY4=x
set TY5=x
set TY6=x
set TY7=x
set TY8=x
set TY9=x
set TY10=x
set TY11=x
set TY12=x
set TYE=x
if "%rmid%" == "RBB0016" SET TY6=@
if "%rmid%" == "RBB0002" SET TY2=@
if "%rmid%" == "RBB0003" SET TY9=@
if "%rmid%" == "RBB0004" SET TY6=@
if "%rmid%" == "RBB0005" SET TY7=@
if "%rmid%" == "RBB0006" SET TY3=@
if "%rmid%" == "RBB0007" SET TY10=@
if "%rmid%" == "RBB0008" SET TY1=@
if "%rmid%" == "RBB0009" SET TY4=@
if "%rmid%" == "RBB0010" SET TY8=@
if "%rmid%" == "RBB0011" SET TY11=@
if "%rmid%" == "RBB0012" SET TY12=@
if "%rmid%" == "RBB0015" SET TYE=@
if "%rmid%" == "RBB0016" set rmnm=RoomAbove
if "%rmid%" == "RBB0002" set rmnm=Observatory
if "%rmid%" == "RBB0003" set rmnm=Weightroom
if "%rmid%" == "RBB0004" set rmnm=????
if "%rmid%" == "RBB0005" set rmnm=SmallRoom
if "%rmid%" == "RBB0006" set rmnm=ButchersDen
if "%rmid%" == "RBB0007" set rmnm=Labratory
if "%rmid%" == "RBB0008" set rmnm=Storage
if "%rmid%" == "RBB0009" set rmnm=Bar
if "%rmid%" == "RBB0010" set rmnm=Kitchen
if "%rmid%" == "RBB0011" set rmnm=UnholyShrine
if "%rmid%" == "RBB0012" set rmnm=Jail
if "%rmid%" == "RBB0015" set rmnm=Elevator
cls
echo MAP:%mpid%
echo AREA:%rmnm%
echo ID:%rmid%
echo.
echo.
echo %TY1%------------%TY2%------------%TY3%
echo -            -            -        
echo -            -            -
echo -            -            -
echo -            -            -
echo -            -            -
echo %TY4%------------%TY6%------------%TY7%
echo -            -        -   -
echo -            -   %TYE%-
echo -            -            -
echo -            -            -
echo -            -            -
echo %TY8%------------%TY9%------------%TY10%
echo.
pause>nul & goto %rmid%
GOTO C990003a

:C990004
cls & echo. & echo enter the password or press e to quit. & echo.
set /p choice=-
if '%choice%'=='kilocat' goto C990004a
if '%choice%'=='e' goto %rmid%
GOTO C990004
:C990004b

:C990005
cls
echo.
echo                 ..:::::::::..         
echo            ..:::aad8888888baa:::..     
echo         .::::d:?88888888888?::8b::::.           STATUS                                                            
echo       .:::d8888:?88888888??a888888b:::.      
echo     .:::d8888888a8888888aa8888888888b:::.       Name:%B%                                    
echo    ::::dP::::::::88888888888::::::::Yb::::                  Money:%JK1%
echo   ::::dP:::::::::Y888888888P:::::::::Yb::::                Mana:%JK2%
echo  ::::d8:::::::::::Y8888888P:::::::::::8b::::                  Health:%JK3%
echo .::::88::::::::::::Y88888P::::::::::::88::::.                  Score:%JK4%
echo :::::Y8baaaaaaaaaa88PPTYY88aaaaaaaaaad8P:::::     
echo :::::::Y88888888888P:::::Y88888888888P:::::::   SKILLS                                        
echo ::::::::::::::::888:::::::888::::::::::::::::                        Sword:%JK5%
echo :::::::::::::::8888888888888b::::::::::::::'                Mace:%JK6%                           
echo :::::::::::::::88888888888888::::::::::::::                  Daggers:%JK7%
echo   :::::::::::::d88888888888888:::::::::::::                 Bows:%JK8%
echo    ::::::::::::88::88::88:::88::::::::::::                      Stones:%JK9%
echo     `::::::::::88::88::88:::88::::::::::'                       Scrolls:%JK10%
echo       `::::::::88::88::P::::88::::::::'                          Wands:%JK11%
echo         `::::::88::88:::::::88::::::'                              Attack:%JK12%
echo             ``:::::::::::::::::::''                                    Defense:%JK13%   
echo                                                                          Riding:%JK14%
echo                                                                         Theivery:%JK15%
pause>nul
goto %rmid%

:C990006
cls
echo set b=%B%
echo set jk1=%jk1%>>%V1%\%B%
echo set jk2=%jk2%>>%V1%\%B%
echo set jk3=%jk3%>>%V1%\%B%
echo set jk4=%jk4%>>%V1%\%B%
echo set jk5=%jk51%>>%V1%\%B%
echo set jk6=%jk6%>>%V1%\%B%
echo set jk7=%jk7%>>%V1%\%B%
echo set jk8=%jk8%>>%V1%\%B%
echo set jk9=%jk9%>>%V1%\%B%
echo set jk10=%jk10%>>%V1%\%B%
echo set jk11=%jk11%>>%V1%\%B%
echo set jk12=%jk12%>>%V1%\%B%
echo set jk13=%jk13%>>%V1%\%B%
echo set jk14=%jk14%>>%V1%\%B%
echo set jk15=%jk15%>>%V1%\%B%
echo set rmid=%rmid%>>%v1%\%B%
cls & echo game saved. & pause>nul & goto %rmid%
GOTO C990006

pause>nul
goto %rmid%

:C990007
:C990008
:C990009
:C990010
:C990011
:C990012
:C990013
:C990014
:C990015
:C990016
:C990017
:C990018
:C990019
:C990020
:C990021
:C990022
:C990023
:C990024
:C990025

-ACTIONS1
:ZVB0001
GOTO C990001

:ZVB0002
:ZVB0003
:ZVB0004
:ZVB0005
:ZVB0006
:ZVB0007
:ZVB0008
:ZVB0009
:ZVB0010
:ZVB0011
:ZVB0012
:ZVB0013
:ZVB0014
:ZVB0015
:ZVB0016
:ZVB0017
:ZVB0018
:ZVB0019
:ZVB0020
:ZVB0021
:ZVB0022
:ZVB0023
:ZVB0024
:ZVB0025


PART 5 MAPS AND SCORE

the one thing i havent figured out yet was how to create other "enemys" in the game,
the only thing i could come up with , was to have the game spawn random enemys with random hitpoints-
into batchfiles, and then launch the batch files invisibly , then have the game keep a text file for every room..
"you are standing here, and you see player2 standing here"  but it wont work because of permissions on the file,
cant edit one while its already beeing edited in otherwords.
« Last Edit: February 13, 2008, 09:40:43 AM by diablo416 » IP logged
Fareast187
Topic Starter
Rookie



Posts: 15


MY WEBSITE
« Reply #6 on: February 16, 2008, 06:55:46 AM »

hi diablo416 i dont know how to play it...
i have copy the code that you given then i save it as %whatever%.bat
then it always ask for a name
IP logged
Dark Blade
Forum Gaming Master
Adviser



Thanked: 24
Posts: 724

Experience: Experienced
OS: Windows XP

1
« Reply #7 on: February 16, 2008, 07:46:50 PM »

diablo... that doesn't seem very simple (btw, I think it's an adventure game)....

Fareast, from what I've read, I think that you have to input your name (or anything, really), and then the game begins. There are various choices, so you'll have to type a bit.

Anyway, here is a simple betting game, in batch form (made by Jarjee):

@echo off
rem Double Dice by Jarjee 6/1/07
title Double Dice!
:S
echo Double Dice!
set money=100
echo.
:1
echo How much do you wager?
set /p wager=You have $%money%:
if /I %wager%==save goto :Score
if /I %wager%==highscore goto :High
if /I %wager%==help goto :Help
if /I %wager%==delete goto :Del
if /I %wager%==clear goto :Cls
if %wager% LSS 0 echo You can't wager a negative! &goto :1
if %wager% GTR %money% echo You don't have that money! &goto :1
set /a money="money-wager"
set /a DICE1=%random% %%6 + 1 >nul
echo You rolled a %DICE1%.
set /a DICE2=%random% %%6 + 1 >nul
echo You rolled a %DICE2%
if %DICE1%==%DICE2% goto :WIN!
echo.
if %money%==0 goto :F
goto :1
:F
echo Do you want to play again?(y/n)
set /p input=(y/n):
if /I %input%==y Cls &goto :S
if /I %input%==n goto :GO
goto :F
:WIN!
echo.
echo You Win! Here's your winnings!
echo.
set mem=%wager%
set /a wager="wager*6+wager"
set /a money="money+wager"
set /a wager="wager-mem"
echo You've won $%wager%!
set wager=0
echo.
goto :1
:GO
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
echo GAME OVER
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
:Score
set /p name=Type your name here:
echo %Name% : $%Money%>>Highscore.data
exit
:High
echo.
rem My thanks to SideWinder!
for /F "delims=" %%i in (Highscore.data) do @echo %%i
echo.
goto :1
:Help
echo.
echo Double Dice is a game of chance. If you get the same number twice,
echo the wager that you bet is returned sixfold. Otherwise you get nothing.
echo There are few commands in this program:
echo Save: This enters your profile into the highscore chart
echo Highscore: This loads the highscore if it is present
echo Delete: Removes the Highscore
echo Clear: Clears the screen
echo Help: Returns this information form.
echo.
goto :1
:Del
cls
del Highscore.data
goto :1
:Cls
cls
goto :1

It's quite simple, not the greatest game ever made, but it is a 'simple game in dos'.
IP logged

gamerx365
Adviser



Thanked: 1
Posts: 664

Experience: Experienced
OS: Windows 7


Radda Radda!

Gamerx365-Net 1 1
« Reply #8 on: February 18, 2008, 02:08:38 PM »

no i figured it out. once you type your name, push ctrl+Z and then it starts
IP logged

gamerx365
Adviser



Thanked: 1
Posts: 664

Experience: Experienced
OS: Windows 7


Radda Radda!

Gamerx365-Net 1 1
« Reply #9 on: February 18, 2008, 02:26:11 PM »

and also this game is proving hard to hack XD, im still working on it lolo.
IP logged

gamerx365
Adviser



Thanked: 1
Posts: 664

Experience: Experienced
OS: Windows 7


Radda Radda!

Gamerx365-Net 1 1
« Reply #10 on: February 18, 2008, 03:04:19 PM »

k this is what I got so far, but i dont understand how to make it show up. the game should save files in a directory at C:/ROH/ but when i go into C:/ i dont see ROH. this guy was tricky when he created this game XD. I figured this out buy actually editing the source and making my own option called show that shows the directory of where it is saving. See the images below:


how do i make ROH appear? XD
IP logged

diablo416
Hopeful



Posts: 333




« Reply #11 on: February 19, 2008, 04:35:08 PM »

hi diablo416 i dont know how to play it...
i have copy the code that you given then i save it as %whatever%.bat
then it always ask for a name

Try the new version , i updated it.. i dident realize it before but the hole beginning part of the code dident work..

k this is what I got so far, but i dont understand how to make it show up. the game should save files in a directory at C:/ROH/ but when i go into C:/ i dont see ROH. this guy was tricky when he created this game XD. I figured this out buy actually editing the source and making my own option called show that shows the directory of where it is saving. See the images below:


how do i make ROH appear? XD

i added attributes to the folder
attrib -s -h c:\ROH



-------------------------------------------------
this an updated version ,
-you can now die
-added ROHKIN mode
-updated map
-fixed every flaw i know of
-Added a treasury
-elevator doesent cause a crash anymore
-added a quit feature by pressing X

you can get it here http://odn.t35.com/dg/rohb.txt
IP logged
gamerx365
Adviser



Thanked: 1
Posts: 664

Experience: Experienced
OS: Windows 7


Radda Radda!

Gamerx365-Net 1 1
« Reply #12 on: February 19, 2008, 05:41:54 PM »

yeah i figured it out finally and I have a whole cracked version with copies of the RBB / JK codes and all. Ugh those attributes were a pain though. The Double dice game, i modded that a while ago. XD. i made it play by itself.
IP logged

gamerx365
Adviser



Thanked: 1
Posts: 664

Experience: Experienced
OS: Windows 7


Radda Radda!

Gamerx365-Net 1 1
« Reply #13 on: February 19, 2008, 05:55:57 PM »

by the way, how long did that game take? and if anyone wants a copy of the modded version, PM me.
IP logged

Fareast187
Topic Starter
Rookie



Posts: 15


MY WEBSITE
« Reply #14 on: February 19, 2008, 07:11:45 PM »

thank Dark Blade for that game
ehm...how about the animation game can someone know how to do it..
the animation like this

FIRST ANIMATION

echo off
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo.
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               []
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][][][][][][]
echo                               ========================
ping localhost -n 2 >nul



Second Animation

echo off
color 1a   
echo     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ping localhost -n 2 >nul
echo     º    0   0    0 0000000 000 0     0 000 00000  0    0  000000             º
ping localhost -n 2 >nul
echo     º   0 0  00   0    0     0  0     0  0  0    0 0    0 0                   º
ping localhost -n 2 >nul
echo     º  0   0 0 0  0    0     0  0     0  0  00000  0    0  00000              º
ping localhost -n 2 >nul
echo     º  00000 0  0 0    0     0  0     0  0  0    0 0    0       0             º
ping localhost -n 2 >nul
echo     º  0   0 0   00    0     0   0   0   0  0    0 0    0       0             º
ping localhost -n 2 >nul
echo     º  0   0 0    0    0    000    0    000 0    0  0000  000000              º
ping localhost -n 1 >nul
echo     º                                                                         º
ping localhost -n 2 >nul
echo     º  000000   0   00000  000000   0    000000 0000000  00    0000  0000000  º
ping localhost -n 2 >nul
echo     º  0       0 0  0    0 0       0 0  0          0    0 0   0    0      0   º
ping localhost -n 2 >nul
echo     º  0000   0   0 00000  0000   0   0  00000     0      0    0000      0    º
ping localhost -n 2 >nul
echo     º  0      00000 0    0 0      00000       0    0      0   0    0    0     º
ping localhost -n 2 >nul
echo     º  0      0   0 0    0 0      0   0       0    0      0   0    0   0      º
ping localhost -n 2 >nul
echo     º  0      0   0 0    0 000000 0   0 000000     0    00000  0000   0       º
ping localhost -n 2 >nul
echo     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ping localhost -n 2 >nul
IP logged
Pages: [1] 2 3 ... 11 - (Top) Print 
Home / Microsoft / Microsoft DOS / i want make a simple game in dos « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.318 seconds with 20 queries.