Re: [GD-General] Off the shelf scripting languages
Brought to you by:
vexxed72
From: gekido <ge...@ub...> - 2003-04-17 21:22:43
|
> Simkin: Language features are nice, but I don't want to write script in > XML. And the other file format looks even less clear, if that's > possible: look at http://www.simkin.co.uk/Docs/Simkin/Example.s.txt. > What goes in the brackets? Well, brackets seem to group method > arguments with the method body. Except when they're used to block out > comments. But comments can also follow double slashes. Hmmmm. Well, > I'm sure I can count on my designers to sort it all out...I mean, they > already *almost* understand what a source control system does, so this > should be cake. the syntax IS a bit wierd, but here's a few samples from the Reality Factory implementation - it's definitely not XML ;} http://rfactory.uber-geek.ca/docs/Con_Scripting.htm http://rfactory.uber-geek.ca/docs/PawnScript.htm we have implemented High and Low level scripts, which give the designers the freedom to have 'instant one-frame' script actions (low-level) or longer-actions that may take more than a single frame to process (high-level ai stuff for example)... i can put you in touch with the lead programmer if you wish to discuss the implementation of simkin in more details... We use scripts for a wide range of things - here's the simplest type to initialize a Terrain and skydome for rendering... not THAT incomprehensible...the 'Start' command initializes everything on level load, the Run command allows you to have sun locations that change, moving clouds, wind changing directions etc in realtime... works very well and doesn't require any kind of recompiling or programmers to modify - the designers can go nuts all they want. { Start[ () { SetTerrain("flat.bmp", "desert256.bmp"); SetSkyDome(400, 64); SetSkyTexture("clouds_256.bmp"); SetSkyColor(164, 200, 255, 255); SetTimeScale(700); DisableSun(false); DisableCloud(false); UseSkyFog(false); } ] Run[ () { SetWindDirection("north"); } ] } cheers mike w www.uber-geek.ca |