Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4051
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show only replies by jj
Re: creating a text adventure, but with what programming language?
« Reply #89 from previous page: January 05, 2011, 12:19:30 PM »
What about learning the open source version of SCUMM, this will run then on loads of things through scummVM
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: creating a text adventure, but with what programming language?
« Reply #90 on: January 05, 2011, 02:15:49 PM »
Quote from: Karlos;603988
No, just thinking pragmatically.

All the implementations I saw turn your Obj-J into regular javascript. Hence there's nothing it can actually do that can't be done in JS directly. Probably with a greater degree of efficiency too.

There's nothing stopping your browser (and it's plugins) or any other javascript host application exposing any API it likes to javascript, irrespective of what language the API itself was written in. You don't need to change any syntax of JS for this. In fact, I can remember using and controlling java applets from javascript. You simply instantiate (or embed) the applet, get a DOM reference to it in JS, and then all the public methods of it are visible to javascript. All the webkit classes are written in C++ but you don't see someone creating a JS implementation of C++ to get at HTML5 ;)
What Objective-J gives you is the NeXTStep frameworks (called cappuccino), and all the benefits which that brings for use in your web browser. It is rather easy to rapidly build an app using it, that runs in your browser, I think that's cool :)

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 #91 on: January 05, 2011, 02:24:03 PM »
Quote from: bloodline;604027
What Objective-J gives you is the NeXTStep frameworks (called cappuccino), and all the benefits which that brings for use in your web browser. It is rather easy to rapidly build an app using it, that runs in your browser, I think that's cool :)


I don't doubt it, it's just that it is completely unnecessary to change JS syntax in any way to introduce access to this API or any other.
int p; // A
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: creating a text adventure, but with what programming language?
« Reply #92 on: January 05, 2011, 03:54:19 PM »
Quote from: Karlos;604030
I don't doubt it, it's just that it is completely unnecessary to change JS syntax in any way to introduce access to this API or any other.
Imagine you are a NeXTStep coder, or an iPhone coder or even an MacOSX coder... Now you want to write an app that anyone with a JavaScript browser can use... Bingo! Obj-j is here! All the classes you are used to, with the correct syntax and all those little features you've grown to love, all there at your fingertips ready to allow you full expression... Or you could use it as a teaching tool, a gateway from JavaScript to Obj-C as I plan to :)

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 #93 on: January 06, 2011, 01:03:36 AM »
Quote from: nicholas;603943
I still have re-occurring nightmares of being forced to write code with an Informix back end in the mid 90's!


Heh. :) I've never worked with Informix -- Oracle, SQLServer and a little MySQL, yes, but not Informix -- so I have no idea how bad it is... but you know, if it had a natural language parser, like Inform7, that'd be pretty impressive.

But my point is pretty pointless...
Ed.
 

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 #94 on: January 06, 2011, 10:08:42 AM »
Quote from: bloodline;604045
Imagine you are a NeXTStep coder, or an iPhone coder or even an MacOSX coder...


First up against the wall come the revolution.

Quote
Now you want to write an app that anyone with a JavaScript browser can use... Bingo! Obj-j is here! All the classes you are used to, with the correct syntax


Objective-C syntax is never correct except when it is vanilla C ;)

Quote
and all those little features you've grown to love, all there at your fingertips ready to allow you full expression... Or you could use it as a teaching tool, a gateway from JavaScript to Obj-C as I plan to :)


An evil plan. I almost approve :lol:
int p; // A
 

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 #95 on: January 06, 2011, 10:44:28 AM »
Anyhow, back to the original question: Pick any well-supported language that is good with strings and data collections.
int p; // A
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: creating a text adventure, but with what programming language?
« Reply #96 on: January 06, 2011, 01:13:40 PM »
Quote from: Karlos;604262
First up against the wall come the revolution.


Hmmm, so I'll put you down as "undecided" about joining the resistance then ;)

Quote

Objective-C syntax is never correct except when it is vanilla C ;)


Well, I'm going to argue with you about that, as I've said before, it took a while for the syntax to "click" with me too :)

Quote

An evil plan. I almost approve :lol:


Lol, I'm not actually being evil, my little brother has his heart set on writing a game for his iPod touch... And this seems to be the least painful way to get him started in programming!

On topic, I don't see why a simple HTML based hypertext adventure is out of the question... It would be VERY quick to implement and deploy :)

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 #97 on: January 06, 2011, 01:29:44 PM »
Quote from: bloodline;604301
Hmmm, so I'll put you down as "undecided" about joining the resistance then ;)

ROFL! Wait, resistance against what? Decent language syntax?

Quote
Well, I'm going to argue with you about that, as I've said before, it took a while for the syntax to "click" with me too :)

There's no need, I "get" the syntax used in Objective-C, I have even written Objective-C and I even appreciate some of the design aims and features of the language. I just find it horrible to look at and to write. It's as if Smalltalk was experimenting with a teleporter device and after a few successful trials, on it's first attempt at teleporting itself from one pod to the other, noticed a copy of the K&R bible had fallen in with it but couldn't get out in time...

Any promotion of Obj-J to me is like witnessing the metastasis of this hideous abomination into other language areas. Don't expect me to like it :D
int p; // A