DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


LOL programming question.

 
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation
Author Message
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 230

PostPosted: Sat Apr 21, 2007 4:20 pm     Post subject: LOL programming question. Reply with quote

Is it true you can make games out of MS-DOS Batch???

If so,how?


Last edited by tinman47 on Mon Sep 24, 2007 9:54 pm; edited 1 time in total
Back to top
dosraider
Admin
Admin


Offline
Joined: 15 Mar 2005
Posts: 9259
Location: ROTFLMAO in Belgium.

PostPosted: Sun Apr 22, 2007 5:03 am     Post subject: Reply with quote

How ?
For starters, BUY A NEW KEYBOARD, one without caps or shift key , especially for you.
A topic title as PROGRAMMING QUESTION!!! is shouting at people, so if you want answers learn typing.

And I don't care that you're a 13 year young puber with acne, if you shout in my face you can solve your problems by yourself.
Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 230

PostPosted: Sun Apr 22, 2007 11:09 am     Post subject: Reply with quote

Meh ................K.
Back to top
486 player
Gaming Demi-god
Gaming Demi-god


Offline
Joined: 18 Sep 2002
Posts: 1145

PostPosted: Sun Apr 22, 2007 12:35 pm     Post subject: Reply with quote

By command 'choice', but without savin'.
Back to top
Dogbreath
Admin
Admin


Offline
Joined: 14 Sep 2002
Posts: 4625
Location: In the back of a jacked-up Ford.

PostPosted: Sun Apr 22, 2007 1:04 pm     Post subject: Reply with quote

It's theoretically possible, but it'd be a pretty sucky game. Not very efficient, either. If you're looking for an easy "starter" language, you're better off going with Q-BASIC. (Heh heh)

You might want to try a Game Creation System instead, so you can focus on honing your actual programming and game design skills without having to build your own game engine.
Back to top
Swiftcutter
Experienced Member
Experienced Member


Offline
Joined: 23 Jun 2005
Posts: 81

PostPosted: Sun Apr 22, 2007 10:49 pm     Post subject: Reply with quote

When I was in high school, I wrote a simple "game" in batch using the aforementioned CHOICE command. It was basically a "choose your own adventure" story. I believe the current version of batch code in XP's console has more commands available, so you may be able to do something more complex with it.
Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 230

PostPosted: Sat May 05, 2007 12:18 pm     Post subject: Reply with quote

Problem though,XP has 5.1 MS-DOS,it doesn't have choice.
Back to top
dosraider
Admin
Admin


Offline
Joined: 15 Mar 2005
Posts: 9259
Location: ROTFLMAO in Belgium.

PostPosted: Sat May 05, 2007 12:45 pm     Post subject: Reply with quote

Dosbox has the CHOICE command.

Try once to input help or even better help /all at the dosbox prompt. ;)
Back to top
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3750
Location: Ontario Canada

PostPosted: Sat May 05, 2007 2:03 pm     Post subject: Reply with quote

tinman47 wrote:
Problem though,XP has 5.1 MS-DOS,it doesn't have choice.


There are ways around it... here's how I did it in my batch script:

Code:
set choice=
set /p choice=Pick a number.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto LUCIDA
if '%choice%'=='2' goto LINEDRAW
if '%choice%'=='3' goto OTHER
ECHO "%choice%" is not valid please try again
Back to top
franpa
Way too much free time
Way too much free time


Offline
Joined: 02 Jan 2006
Posts: 846
Location: australia, qld

PostPosted: Sat May 05, 2007 8:25 pm     Post subject: Reply with quote

uh, XP doesnt have DOS 5.1 because that is the version of winXP, you are not running the DOS included with winXP, you are running the shitty command prompt they include alongside the DOS that comes with winXP.

go to run and type each and after typing one push enter.

CMD
COMMAND

Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 230

PostPosted: Thu Jun 07, 2007 3:14 pm     Post subject: Reply with quote

Hey...Franpa and Wardrich game me an Idea!

HEHEHE...

Perfect... Malevolent
Back to top
abyss
Moloral Compass
Moloral Compass


Offline
Joined: 06 Nov 2006
Posts: 754

PostPosted: Sat Jun 16, 2007 3:42 pm     Post subject: Reply with quote

Why do people say command prompt is lousy. It's just as good as real dos. msdos and command prompt don't emulate hardware their just dos command line perimeters. command prompt is great. The easiest to use language is gw basic.
Back to top
486 player
Gaming Demi-god
Gaming Demi-god


Offline
Joined: 18 Sep 2002
Posts: 1145

PostPosted: Sun Jun 17, 2007 9:08 am     Post subject: Reply with quote

It doesn't have all DOS commands.
Back to top
redshock
Newbie
Newbie


Offline
Joined: 22 Aug 2007
Posts: 5

PostPosted: Wed Aug 22, 2007 8:00 pm     Post subject: Reply with quote

I'm going after a computer science major, so I figured I would share some light on this subject. Since we're at a DOS games site, I'll talk about DOS game programming. First, you need to know the programming language C. Not C++, it's way too overhead for DOS and was barely used. You can program straight in DOSBox using Turbo C (the compiler). Next I would suggest picking up Tricks of the Game Programming Gurus by Andre' LaMothe. You will be making games in no time. But take your time and don't skip over any of these steps.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation All times are GMT - 5 Hours
Page 1 of 1

 
Free Windows games


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)