PDA

View Full Version : Graphic Adventures Retro-Style!


dysfunctionGazz
10-26-2002, 10:37 AM
Is it possible to produce Graphic Adventures using Javascript or related technologies?

I think it is... I used to work on C64 with the "Graphic Adventure Creator" by incentive software and is was dead simple yet way effective. I know these games are old but they are real fun to use. Im sure I can get this creator emulated but I would like to do it in Javascript or something instead?

If anyone doesnt remember what Im talking about here's an example of dialogue in one of these games...

> You are in a small room. There is a big red door to the east and a wooden chest in the corner.
? OPEN CHEST
> You open the chest. It is empty. There is nothing of interest here.
? EAST
> The door is closed.

Remember? So what do you reckon...? From what I recall, its a case of relatively simple IF/THEN statements, arrays, and random functions.

I think this would be a really nice project for me to learn javascript with, it could potentially teach a lot of concepts yeah?

An example of the kind of logic these games employ can be found here... its the manual for the program i used.


http://www.softwolves.pp.se/idoc/read/advcreator_en

Could people please advise me if this has been done before, if its possible, and perhaps give some guidance how i can do it?

Gazz

HappyDude
10-27-2002, 02:52 AM
That type of thing wouldn't be difficult to do with javascript. Can't say I've seen it done before, but all you need to know is how to add text dynamically, as well as probably change a picture dynamically. The only thing you couldn't really do with javascript is save games... the closest thing would be to generate a 'password'-style save where it generates a number based on what the player has done so far, like they used in some of the old console games.

whammy
10-27-2002, 02:52 AM
I used to write a bunch of games like that in original BASIC when I was a kid (enter room, open chest, fight monster, etc.) - something like that might be interesting in ASP/VBScript since the syntax is very similar (especially since you could use images and stuff, and store things in relational databases).

But I don't have the time to work on it.

HappyDude
10-27-2002, 03:17 AM
I used to try programming games with javascript now and then a while ago when I was first learning... I was looking through some of the old html files, and found this:
http://happydude.virtualave.net/webgame/newindex.html
I'm not sure if it's the type of thing you're looking for, but it's the closest I have. I wrote it a couple years ago, and gave up on it for some reason I can't remember... I never got around to the text portion of the game, but text is really simple if you can do everything else... The most impressive thing about it is probably that I wasted the time to make it work in Netscape 4...