The NEW Build Your Own Arcade Controls

Main => Everything Else => Topic started by: Veinman on August 14, 2006, 09:33:43 pm

Title: I made a text adventure
Post by: Veinman on August 14, 2006, 09:33:43 pm
Just to see if I could.... I made a simple (and short) text adventure that you can just play in your browser.

Check it out...it's got zombies. :) Drunk & Dismembered (http://www.hotseatgames.com/games/zombie/)
Title: Re: I made a text adventure
Post by: crashwg on August 15, 2006, 07:11:37 am
Not too shabby.  How cliche getting the cuffs of the brother though...  :P
Title: Re: I made a text adventure
Post by: shardian on August 15, 2006, 08:57:19 am
Hey I liked that one! It kind of felt like I was playing Resident Evil.
I used to make choose your own adventure games in BASIC programming when I was a kid.
Title: Re: I made a text adventure
Post by: MYX on August 15, 2006, 09:55:12 am
Hey I liked that one! It kind of felt like I was playing Resident Evil.
I used to make choose your own adventure games in BASIC programming when I was a kid.
Me too, on a C64.
Did you ever read the D&D Choose your own adventure books. I read so many of those it was sick.
Title: Re: I made a text adventure
Post by: shardian on August 15, 2006, 10:20:48 am
The only choose your adventure book I had was a Batman one. It was actually pretty good. I never did the D&D thing.
Title: Re: I made a text adventure
Post by: thebrownshow on August 15, 2006, 03:00:33 pm
I never did the D&D thing.

You don't have to lie about it, you're among fellow nerds here.  Nobody's going to give you a wedgie for talking about saving throws.
Title: Re: I made a text adventure
Post by: Veinman on August 15, 2006, 10:06:08 pm
Thanks for checking it out guys!

I used to read the fantasy choose your own adventure books too, and played lots of pen and paper RPGs... D & D, Chill, Call of Cthulhu... those were the main ones. :)
Title: Re: I made a text adventure
Post by: jbox on August 15, 2006, 11:48:43 pm
Kind of "retro-cute". :)

But... did you literally write that many different php pages?  :dizzy:  It is possible to make all those pages just sym-links to a main php engine and then have a basic function pull out the right content for the current page, which I hope you already knew.  :cheers:
Title: Re: I made a text adventure
Post by: shardian on August 16, 2006, 07:38:21 am
I never did the D&D thing.

You don't have to lie about it, you're among fellow nerds here.  Nobody's going to give you a wedgie for talking about saving throws.

No, seriously I never did D&D...I was a Star Wars nerd. ;D
Title: Re: I made a text adventure
Post by: Daniel270 on August 16, 2006, 12:11:14 pm
I never did the D&D thing.

You don't have to lie about it, you're among fellow nerds here.  Nobody's going to give you a wedgie for talking about saving throws.

No, seriously I never did D&D...I was a Star Wars nerd. ;D


Whatchoo talkin bout, Willis??  I'm STILL doing the D&D thing ;) even have a game going now with one of my neighbors
Title: Re: I made a text adventure
Post by: Veinman on August 16, 2006, 08:44:05 pm
Kind of "retro-cute". :)

But... did you literally write that many different php pages?  :dizzy:  It is possible to make all those pages just sym-links to a main php engine and then have a basic function pull out the right content for the current page, which I hope you already knew.  :cheers:

While I'm an expert at asp and asp.net (that's my job), I'm a noob to PHP. I did use includes, but really didn't spend much time coming up with an "engine" so to speak. There is no db behind it. What's a sym-link? :P
Title: Re: I made a text adventure
Post by: arcadefever on August 16, 2006, 09:56:21 pm
that cool ... i'm going to play tonight  :cheers:

i use to love the books "fighting fantasy" i've all of them...

this one is the best one for :)

(http://upload.wikimedia.org/wikipedia/en/thumb/6/61/Houseofhell.jpg/150px-Houseofhell.jpg)

 :notworthy:
Title: Re: I made a text adventure
Post by: jbox on August 17, 2006, 02:43:01 am
While I'm an expert at asp and asp.net (that's my job), I'm a noob to PHP. I did use includes, but really didn't spend much time coming up with an "engine" so to speak. There is no db behind it. What's a sym-link? :P

sym-link:
Ever work on a Unix filesystem much? Every file comes in two parts - the actual data, and the reference to that data (which is itself data in a special file called a directory right?). In Unix it is possible to "link" to the *same* data multiple times so that you can access/edit it from different places but it is always just the same data no matter which handle you use. Now, a "hard link" is for when it is on the same file system, it points straight to the data itself, while a sym link is like a windows shortcut (except it works) which means you can link to any file name, but when that directory entry moves all your sym-links break. What you tend to find is that you always do sym-links for minor mucking around stuff, since hard links occassionaly fail due to file system permissions and such.

db:
Since you are an asp worker, and asp is from Redmond, and Redmond is evil, I'll forgive you this once. ;) But db != Oracle, db != dBase, db != SQL Server 5. A database is just an organised collection. I don't know about anyone else, but way, way, wayyyyyyy ago when I first started writing games, the first program is always a big bunch of custom code for each room. That's ok, it's not scalable though. So the next step is to "convert" all of your rooms into entries in an array, like:
("The Dining Room", "You see a .........", 12, -1, -1, -1, 14, 8)
and then the "engine" just takes which room you are in and renders all of the page by cutting and pasting that room's entries.

The first attachment is a php script I have so that me and my friends can set up games and ftp transfers quickly without needing to log into our routers to find out our fricking IP numbers. The script is auto-refreshing, because I actually leave my server on that page so I can ftp into it no matter where I am, even though the ip may change at any time. By sym-linking this one script to different names, I can have each person who wants to share a different server show up in the index, without having to write actual code for each person.

The second attachment is a very scrappy php file I just threw together to show you what I mean. You probably are doing something along these lines anyway, so this is what it might look like in php.  :cheers:

(the .txt was added to the file names to make them postable to this forum)
Title: Re: I made a text adventure
Post by: jbox on August 17, 2006, 02:46:13 am
Also, Daala was a pretty lame-ass baddie, but the final "We didn't rip this off from Stephen King's IT" circle confrontation of Exar Kuhn made up for it. :)

Of course, Kyp then goes on to be one of the most inconsistantly written characters in the Star Wars universe, but that's not really Anderson's fault, even if he is a hack writer.  :hissy:
Title: Re: I made a text adventure
Post by: shardian on August 17, 2006, 08:07:51 am
Also, Daala was a pretty lame-ass baddie, but the final "We didn't rip this off from Stephen King's IT" circle confrontation of Exar Kuhn made up for it. :)

Of course, Kyp then goes on to be one of the most inconsistantly written characters in the Star Wars universe, but that's not really Anderson's fault, even if he is a hack writer.  :hissy:

Kevin J. Anderson...why would anyone let him touch their material??? His Star Wars were horrible, but I felt obligated to read them for completion's sake...just like every other Star Wars fan. I eventually lost interest in Star Wars and gained interest in my future( and current) wife.  ;)

Recently, I was told by a friend that still reads them that they killed of Chewbacca...THOSE ---daisies---!!!
Title: Re: I made a text adventure
Post by: jbox on August 17, 2006, 09:28:38 am
Dude, you are way, way, wayyyyyyyy behind. Nobody is safe anymore in the SW:EU, as several characters meet their ends in the Y.V. series. The bug series was pretty lame, but at least they got a chance to shake up the dynamics a little and get old Lukey boy out of the closet for a bit of a brawl. I haven't started the new series yet (I only buy paper-backs), but it sounds interesting if the author is competant enough...

Title: Re: I made a text adventure
Post by: shardian on August 17, 2006, 09:43:47 am
Hey...it looks like I might have found a buyer for some of my star wars stuff... ;D
Title: Re: I made a text adventure
Post by: AtomSmasher on August 17, 2006, 10:50:42 am
I hope you have plenty of bandwidth, your game was posted on www.bluesnews.com   (in the out of the blue section about 1/2 down the page)
Title: Re: I made a text adventure
Post by: Veinman on August 17, 2006, 06:54:39 pm
Yeah, I saw that they linked to it. It's still up... so I guess I'm okay. ;D

Thanks for the info, jbox. And no, as you suspected, I don't have much unix experience either. I've been trained as a Microsoft coder from the start, and started exploring PHP to get away from that a bit and branch out.
Title: Re: I made a text adventure
Post by: Zakk on August 19, 2006, 10:47:41 pm
Aha!  I got ye flask!