Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: I made a text adventure  (Read 2248 times)

0 Members and 1 Guest are viewing this topic.

Veinman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 537
  • Last login:June 11, 2014, 02:40:27 pm
  • "Done" with The Legend of Mame
    • The Gelatinous Cube
I made a text adventure
« 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

crashwg

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3076
  • Last login:May 24, 2019, 11:01:05 am
Re: I made a text adventure
« Reply #1 on: August 15, 2006, 07:11:37 am »
Not too shabby.  How cliche getting the cuffs of the brother though...  :P
If there's bees in the trap I'm catching em
By the thorax and abdomen
And sanding the stingers down to a rough quill
Then I dip em in ink, and I scribble a bit
But if it they wriggle then I tickle em until they hold still
Lemme say it again
In my land of pretend
I use bees as a mf'n pen

shardian

  • Saint is the evil mastermind
  • Trade Count: (+23)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9218
  • Last login:August 21, 2015, 03:11:31 pm
  • Friends don't let friends build frankenpanels...
Re: I made a text adventure
« Reply #2 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.

MYX

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1527
  • Last login:September 18, 2020, 05:00:22 pm
  • Even Jesus loves Donkey Kong!
    • MYX Digital Blog
Re: I made a text adventure
« Reply #3 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.
M    Y    X

BLACKOUT  - Finally rewritten - http://blog.myxdigital.com/
Original BLACKOUT thread - http://forum.arcadecontrols.com/index.php?topic=48239.0

shardian

  • Saint is the evil mastermind
  • Trade Count: (+23)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9218
  • Last login:August 21, 2015, 03:11:31 pm
  • Friends don't let friends build frankenpanels...
Re: I made a text adventure
« Reply #4 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.

thebrownshow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 546
  • Last login:December 14, 2010, 03:14:32 pm
Re: I made a text adventure
« Reply #5 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.

Veinman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 537
  • Last login:June 11, 2014, 02:40:27 pm
  • "Done" with The Legend of Mame
    • The Gelatinous Cube
Re: I made a text adventure
« Reply #6 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. :)

jbox

  • BYOAC Poet Laureate
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1032
  • Last login:November 30, 2007, 08:00:54 am
Re: I made a text adventure
« Reply #7 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:
Done. SLATFATF.

shardian

  • Saint is the evil mastermind
  • Trade Count: (+23)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9218
  • Last login:August 21, 2015, 03:11:31 pm
  • Friends don't let friends build frankenpanels...
Re: I made a text adventure
« Reply #8 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

Daniel270

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 753
  • Last login:April 10, 2011, 12:34:14 pm
  • Older Than PONG!!!
Re: I made a text adventure
« Reply #9 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
I Haven't Lost My Mind, It's Backed Up On Disk Somewhere.

Veinman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 537
  • Last login:June 11, 2014, 02:40:27 pm
  • "Done" with The Legend of Mame
    • The Gelatinous Cube
Re: I made a text adventure
« Reply #10 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

arcadefever

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 795
  • Last login:June 03, 2009, 09:45:05 pm
  • Miami Beach Florida
Re: I made a text adventure
« Reply #11 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 :)



 :notworthy:

jbox

  • BYOAC Poet Laureate
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1032
  • Last login:November 30, 2007, 08:00:54 am
Re: I made a text adventure
« Reply #12 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)
Done. SLATFATF.

jbox

  • BYOAC Poet Laureate
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1032
  • Last login:November 30, 2007, 08:00:54 am
Re: I made a text adventure
« Reply #13 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:
Done. SLATFATF.

shardian

  • Saint is the evil mastermind
  • Trade Count: (+23)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9218
  • Last login:August 21, 2015, 03:11:31 pm
  • Friends don't let friends build frankenpanels...
Re: I made a text adventure
« Reply #14 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---!!!

jbox

  • BYOAC Poet Laureate
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1032
  • Last login:November 30, 2007, 08:00:54 am
Re: I made a text adventure
« Reply #15 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...

Done. SLATFATF.

shardian

  • Saint is the evil mastermind
  • Trade Count: (+23)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9218
  • Last login:August 21, 2015, 03:11:31 pm
  • Friends don't let friends build frankenpanels...
Re: I made a text adventure
« Reply #16 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

AtomSmasher

  • I'm happy to fly below Saint's radar
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3884
  • Last login:September 02, 2022, 03:50:10 am
  • I'd rather be rich than stupid.
    • Atomic-Train
Re: I made a text adventure
« Reply #17 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)

Veinman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 537
  • Last login:June 11, 2014, 02:40:27 pm
  • "Done" with The Legend of Mame
    • The Gelatinous Cube
Re: I made a text adventure
« Reply #18 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.

Zakk

  • Gosh, that's a real nice... ooh look, a penny! -- That Zakk is Just Mean
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2472
  • Last login:Today at 11:22:35 am
Re: I made a text adventure
« Reply #19 on: August 19, 2006, 10:47:41 pm »
Aha!  I got ye flask!

Back for nostalgia, based on nostalgia.