Page 1 of 1

Elite in JavaScript

Posted: Thu Apr 14, 2011 7:33 pm
by JensAyton
This might be of interest to some of our more advanced scripters: Text Elite ported to JavaScript.

http://calormen.com/l33t/jselite.htm

Re: Elite in JavaScript

Posted: Thu Apr 14, 2011 8:54 pm
by DaddyHoggy
Ah... from the title of the subject I thought we were going to get original Elite running in a web browser... :oops:

Re: Elite in JavaScript

Posted: Thu Apr 14, 2011 9:01 pm
by JensAyton
Someone on the Twitternets concluded my asking for WebGL testers meant an upcoming Oolite web port. Maybe for 3.0… :-p

Re: Elite in JavaScript

Posted: Thu Apr 14, 2011 9:02 pm
by another_commander
DaddyHoggy wrote:
Ah... from the title of the subject I thought we were going to get original Elite running in a web browser... :oops:
At your command...
http://www.twinbee.org/hob/play.php?snap=elite

Re: Elite in JavaScript

Posted: Thu Apr 14, 2011 9:02 pm
by DaddyHoggy
Ahruman wrote:
Someone on the Twitternets concluded my asking for WebGL testers meant an upcoming Oolite web port. Maybe for 3.0… :-p
:shock: :lol:

What bright imaginations they have!

Re: Elite in JavaScript

Posted: Fri Apr 15, 2011 4:26 pm
by ClymAngus
yeah well as depeche mode once said: Well don't just stand there and shout it, do something about it. If half these people were as good at doing (me included) as they are at running with a misconception. We'd have this on a tablet by now.

Re: Elite in JavaScript

Posted: Fri Apr 15, 2011 7:02 pm
by Zireael
Ahruman wrote:
This might be of interest to some of our more advanced scripters: Text Elite ported to JavaScript.

http://calormen.com/l33t/jselite.htm
Somebody tell me what TextElite is and how to operate it...

Re: Elite in JavaScript

Posted: Fri Apr 15, 2011 7:41 pm
by DaddyHoggy
It's the trading engine of the original game - so no 3D graphics, just the buying/selling, moving between systems...

Re: Elite in JavaScript

Posted: Sat Apr 16, 2011 12:57 pm
by Zireael
DaddyHoggy wrote:
It's the trading engine of the original game - so no 3D graphics, just the buying/selling, moving between systems...
And no fights?

Re: Elite in JavaScript

Posted: Sat Apr 16, 2011 1:08 pm
by Commander McLane
Zireael wrote:
Ahruman wrote:
This might be of interest to some of our more advanced scripters: Text Elite ported to JavaScript.

http://calormen.com/l33t/jselite.htm
Somebody tell me what TextElite is and how to operate it...
Zireael wrote:
DaddyHoggy wrote:
It's the trading engine of the original game - so no 3D graphics, just the buying/selling, moving between systems...
And no fights?
Have you considered just doing the obvious? Clicking on the link, and playing a little with it by just following the instructions which are printed on the very first screen you get?

If I may quote them for your convenience:
Welcome to Text Elite 1.4.

Commands are:
Buy tradegood ammount
Sell tradegood ammount
Fuel ammount (buy ammount LY of fuel)
Jump planetname (limited by fuel)
Sneak planetname (any distance - no fuel cost)
Galhyp (jumps to next galaxy)
Info planetname (prints info on system
Mkt (shows market prices)
Local (lists systems within 7 light years)
Cash number (alters cash - cheating!)
Hold number (change cargo bay)
Quit or ^C (exit)
Help (display this text)
Rand (toggle RNG)

Abbreviations allowed eg. b fo 5 = Buy Food 5, m= Mkt
You may note that there are commands for buying and selling, but not for launching, docking, flying, or fighting. This should indicate that the game consists of buying and selling, not of launching, docking, flying, or fighting.