Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Initial Version and Version 1 of code/Scripting


Ignore:
Timestamp:
Apr 6, 2008, 12:50:43 PM (17 years ago)
Author:
bknecht
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/Scripting

    v1 v1  
     1= Scripting =
     2
     3Orxonox uses [http://www.lua.org Lua] for its scripts. Scripts are code pieces which add another layer to the game logic. As a Gamer you know those events which happen, when you reached a certain level or entered a room or area with your character. Those events are most certainly produced with a script engine like ours.
     4
     5Our script engine has access to all objects in the game and are therefore quite powerful and easy to use, as you may see in examples.
     6
     7There are two applications for the Orxonox scripting engine.
     8
     9== Level files ==
     10Our level files are pure XML-code. We add objects and ambient lights with XML tags and specify their parameters with attributes.
     11
     12If your using the special lua tags ''<?lua'' and ''?>'' you can create levels easier. You could use loops to generate more objects and you can let a level depend on earlier accomplishments of the player. If you use random parameters you can even create a level which looks slightly different every time a player plays it. Here some examples how you could use Lua in our level files.