Welcome, Guest. Please login or register.

Author Topic: creating a text adventure, but with what programming language?  (Read 7979 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: creating a text adventure, but with what programming language?
« Reply #14 on: January 03, 2011, 09:53:42 PM »
Quote from: ChaosLord;603440
True BASIC has the absolute best string handling of any language ever.


I would rank Perl and PHP as far above any BASIC dialect in terms of string processing capability ;)
int p; // A
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: creating a text adventure, but with what programming language?
« Reply #15 on: January 03, 2011, 10:01:48 PM »
Quote from: Karlos;603613
I would rank Perl and PHP as far above any BASIC dialect in terms of string processing capability ;)
But then you would be wrong. :)
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: creating a text adventure, but with what programming language?
« Reply #16 on: January 03, 2011, 10:04:39 PM »
Quote from: ChaosLord;603617
But then you would be wrong. :)

:roflmao:

Sure. BASIC is better at string manipulation than Perl/PHP.

Thanks, that made my day!
int p; // A
 

Offline nicholas

Re: creating a text adventure, but with what programming language?
« Reply #17 on: January 03, 2011, 10:13:44 PM »
How about PureBasic?

The full version is free for Amigas.

http://www.purebasic.com/
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline runequesterTopic starter

  • It\'s Amiga time!
  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 3695
    • Show only replies by runequester
Re: creating a text adventure, but with what programming language?
« Reply #18 on: January 03, 2011, 10:15:25 PM »
No fighting guys :)
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: creating a text adventure, but with what programming language?
« Reply #19 on: January 03, 2011, 10:44:02 PM »
Quote from: runequester;603622
No fighting guys :)


I'm not advocating the writing of text adventure games in languages like Perl (though I am sure it has been done), but the point has to be made that manipulation of text was one of the main motivations of Perl in the first place. It may be old and it may be a beast but every language has it's milieu and chewing on textual data is Perl's.
int p; // A
 

Offline EDanaII

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 579
    • Show only replies by EDanaII
    • http://www.EdwardGDanaII.info
Re: creating a text adventure, but with what programming language?
« Reply #20 on: January 03, 2011, 10:51:40 PM »
But let's not forget that manipulation of strings is only one small aspect of a text adventure. Modeling and interacting with the environment is the major aspect of any adventure game.


@ yakumo9275

Actually, Inform7 is out. I've been playing with it a little bit. It's an interesting approach for an (effectively) dead art form. :)
Ed.
 

Offline Holmes

  • Newbie
  • *
  • Join Date: Oct 2006
  • Posts: 47
    • Show only replies by Holmes
Re: creating a text adventure, but with what programming language?
« Reply #21 on: January 03, 2011, 10:57:53 PM »
Lisp !!!!!
Started with a zx81,
wanted a c64
Ended up with an Electron with plus 3
Traded up to an Amiga 500
Traded up with a Amiga 1200
now in a ICS tower(Amigo+ppc240 with blizz+128ram)
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: creating a text adventure, but with what programming language?
« Reply #22 on: January 03, 2011, 11:16:10 PM »
@Karlos
Ok go ahead.  Show me in Perl how to extract a 3 characters string from another string starting at the 5th character and then insert that extracted string into another string starting at the 20th character.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: creating a text adventure, but with what programming language?
« Reply #23 on: January 03, 2011, 11:36:00 PM »
Quote from: ChaosLord;603634
@Karlos
Ok go ahead.  Show me in Perl how to extract a 3 characters string from another string starting at the 5th character and then insert that extracted string into another string starting at the 20th character.

Well, I'm more of a C/C++ guy but I am at least aware that the substr() function in Perl can also be an lvalue, which allows all kinds of useful manipulation of the type you are asking for:

http://perldoc.perl.org/functions/substr.html

And that's not even using regular expressions, for which I'm sure the next PCRE expert will produce some 8 character expression to do your task. ;)

But of course, nobody would be using absolute string positions, right? Terribly bad form if you want to support minor things like alternative character sets and foreign languages.
int p; // A
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: creating a text adventure, but with what programming language?
« Reply #24 on: January 03, 2011, 11:44:46 PM »
Way back around 82 when I got my very first VIC 20 the only game I had for it in the first couple of weeks was a plain text adventure called Mission Impossible on a cartridge the store threw in for free... :)

I always remember switching it on and me and the brother in law sitting there with hugely disappointed faces and asking each other "is this it...":(

Boy were we wrong... within an hour we were both arguing should we go east, should we go west, open that door, no don't open that one...

Suffice to say from that moment on we were hooked... :)

Hopefully, when you've completed your game you'll release it for all us old adventurers to enjoy, best of luck... :)

(Strange... just writing this post I can still conjure up the images in my mind of all the locations described in that game... :))
« Last Edit: January 10, 2011, 12:23:44 AM by Franko »
 

Offline ErrethAkbe

  • Newbie
  • *
  • Join Date: Nov 2005
  • Posts: 36
    • Show only replies by ErrethAkbe
Re: creating a text adventure, but with what programming language?
« Reply #25 on: January 03, 2011, 11:53:45 PM »
Quote from: yakumo9275;603603
write it in inform6 and then use any infocom interpreter on the amiga... that would be pretty traidtional, you can do pics + music but I dont know the formats...


This is the best suggestion so far.  It's a proper programming environment that is designed specifically for the task, has compilers for lots of systems and the resulting code is 100% portable to other platforms.  You could run the resulting adventure as easily on an iPhone as on an Amiga or even a TRS-80.

If you're unfamiliar, it's an evolved version of the same language that games like Zork, Enchanter and Starcross were written in.  There is still an active community of people who write adventures in "Z Code" so getting support would be easy.

If this approach interests you, start searching with "Z-machine" and "Inform" as search terms.

Hope this helps!
._ __/|
\\`O,o\\\'
=(___)=
...U
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: creating a text adventure, but with what programming language?
« Reply #26 on: January 03, 2011, 11:58:40 PM »
Quote from: Holmes;603629
Lisp !!!!!

No... I althwayss tsalkss like thissss... :lol:
« Last Edit: January 10, 2011, 12:24:41 AM by Franko »
 

Offline Nameless

  • Newbie
  • *
  • Join Date: Nov 2003
  • Posts: 4
    • Show only replies by Nameless
Re: creating a text adventure, but with what programming language?
« Reply #27 on: January 04, 2011, 12:05:25 AM »
Like others have mentioned, I'd recommend either Tads or Inform over coding from scratch.

I also like Alan --
http://www.welcome.to/alan-if

The Amiga version is rather out of date, however. If interested, I think the source code is available for Alan v. 3, so it may be an interesting option to port it to  3.1, 4, AROS, MorphOS, etc.

I did a bit of coding in Alan years ago, and although it's a little underpowered compared to Inform, it's a fun language.

I also wrote several text adventures using TACL and Visionary for the Amiga ages ago, and although they are pretty easy to use, they aren't up to par with modern day IF languages.
 

Offline runequesterTopic starter

  • It\'s Amiga time!
  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 3695
    • Show only replies by runequester
Re: creating a text adventure, but with what programming language?
« Reply #28 on: January 04, 2011, 12:13:46 AM »
I appreciate all the suggestions guys :)
 
I am keen on using something that can later be used to develop other applications or games too, rather than a tool that purely does text adventure, as I want this to be a starting point.
 
But its a brave new world out there, and I'll have to get my feet wet anyways :)
 

Offline nicholas

Re: creating a text adventure, but with what programming language?
« Reply #29 from previous page: January 04, 2011, 01:08:19 AM »
Quote from: runequester;603652
I appreciate all the suggestions guys :)
 
I am keen on using something that can later be used to develop other applications or games too, rather than a tool that purely does text adventure, as I want this to be a starting point.
 
But its a brave new world out there, and I'll have to get my feet wet anyways :)


My Amiga resolution is to master 68k assembly, perhaps you could code your game in assembly and we could help each other with the learning process?
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini