Archived

This topic is now archived and is closed to further replies.

Recommended Posts

I don''t get it. How did you gods create text based games before c++? (Or OOP at that). It seems so tedious to write the string of the room desc EVERY time, create arrays that reference other arrays and so on. Heck, HOW DID YOU FARE in doing so without ->? You guys are gods if you can explain how you didn''t go crazy from writing these.

Share on other sites
Kneelz    122
You get yourself a computer with DOS 3.3 and start GWBASIC.

Kneelz

Share on other sites
Martee    476
quote:
Original post by Andrew Nguyen
HOW DID YOU FARE in doing so without ->?

-> isn''t exclusive to C++, or OOP.

Share on other sites
Anozireth    122
quote:
Original post by Andrew Nguyen
I don''t get it. How did you gods create text based games before c++? (Or OOP at that). It seems so tedious to write the string of the room desc EVERY time, create arrays that reference other arrays and so on. Heck, HOW DID YOU FARE in doing so without ->?
You guys are gods if you can explain how you didn''t go crazy from writing these.

I for one, didn''t know there was a better way.

Share on other sites
GBGames    217
Text based games can be made easily without C++ and data structures that you specifically described. Being creative with what you have to work with is part of the job.

Share on other sites
gah!! gah!! heheheheheheh :-))))
not crazy!! huh?? :-))) hehehehehe :-))) hahahahaha
AAAHHHHHH!!!!!!! oh..my!!!!
hehe:-)

;-)

I actually never completed my text adventure.
I tried to program it in commodore basic v2.0, on a C64.
But the c64 was already 10 years old then, and suddenly died.
I got an *old* pc then, but never started to program a text adventure again...

Share on other sites
Tok    262
quote:
Original post by UnshavenBastard
I actually never completed my text adventure.
I tried to program it in commodore basic v2.0, on a C64.
But the c64 was already 10 years old then, and suddenly died.
I got an *old* pc then, but never started to program a text adventure again...

10 print "You find yourself standing on a beach, standing next to a tree."20 print "There is no one around.  What shall you do?"30 print "N S E"40 input c41 if c = "n" goto 10042 if c = "s" goto 20043 if c = "e" goto 30045 print "Not an option.  Try again."46 goto 10100 print "You walk to the north."101 goto 110110 print "There, you find a man sitting on a towel"...

heh heh... I started doing that when I was 8.

---email--- Tok ----surf----
~The Feature Creep of the Family~

here

Share on other sites
bit of assembly, and lots of C code. It is actually very easy.

Beer - the love catalyst
good ol'' homepage

Share on other sites
Promit    13246
For a much more slick and simple console game written in nice C++, go to
www.geocities.com/promitr/DrugWars.zip

Anywayz, i was doing that QBASIC type stuff long ago. Real neat when you''re only 7 or 8, but i tell ya, DX and OGL sure that stuff.

-----------------------------
The sad thing about artificial intelligence is that it lacks artifice and therefore intelligence.

Share on other sites
black_mage_s    103
I DID IT IN BATCH BABY!
BOOYAH!

Share on other sites
black_mage_s    103
that has to be the first thing i have ever said that merits a "whoa"

Share on other sites
Kylotan    10011
Before I had structs, I used parallel arrays.
PRINT roomname(currentroom)
PRINT roomdescription(currentroom)

Share on other sites
Goblin    122
That''s weird, because that''s what my friend and I did for programming everything. Ah, the days before we knew about data structures (or linked lists, though the two go hand in hand), we''d have like 10 parallel arrays for everything...

int monster_strength[max_monsters];int monster_health[max_monsters];etc.

Ah, the painful days of yore. Compliments to the guy that did it in a batch file, though, that''s gotta take the cake...

-----------------
-----------------
"Before critisizing somebody, walk a mile in their shoes. That way, when you do critisize them, not only will you be a mile away, but you''ll also have their shoes!"

Share on other sites
BATCh hmm...

a:
echo Hi

if...

Batch really is a watered down version of QB. I swear it is

Share on other sites
Lammoth    122
Thats right, there are more dos commands than there should be hehe. You can create games in batch, i also did that. But only text ^^. Dos is basic but i think dos has less functions.

Share on other sites
Guest Anonymous Poster
Infocom used a custom scripting language called Inform to write their text adventures in. It looks quite clean and is OOP but it can be quite complex.

Search for it and you should find some tutorials about how to program in it and maybe even some compilers/interpreters.

Share on other sites
llyod    122

Well, no, they didn''t use Inform. Inform is a compiler written
by "reverse-engineers". Anyway, it''s THE language of choice
for text-adventures, since the games can be played on all
platforms. I wouldn''t be surprised if you can play Zork
on your neighbour''s VCR, and his dog.

Here it is:

http://www.gnelson.demon.co.uk/inform/index.html

(OT: how do you insert proper link tags here ?)

Live jolly,
llyod

Share on other sites
Phillk6751    122
its all about the evil GOTO command from basic.