Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 28 and Version 29 of content/LevelHowTo


Ignore:
Timestamp:
Nov 23, 2011, 2:24:54 PM (13 years ago)
Author:
jo
Comment:

small update on xml

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v28 v29  
    2525The syntax is attribute=“value(s)“. If only one value is set, the quotation marks are not necessary.
    2626
    27 Tip: XML files do not have to be compiled. If you changed a level file (and didn't forget to save it), you simply have to reload the level to view the changes. In Linux you can switch between the game and the editor by pressing [alt] + [tab]. If you insert only a little error and try to load a level the game will „stuck“. By pressing [alt] + [tab] you can leave the game and view the error message on the terminal.
     27Tip: XML files do not have to be compiled. If you changed a level file (and didn't forget to save it), you simply have to reload the level to view the changes. If your level doesn't load have a look at the terminal by pressing [alt] + [tab].
    2828
    2929== What it's all about ==
    30 By describing a level via xml you actually add c++objects to the level. Each tag refers to a class that contains a XMLPort function. In order to understand better what a certain tag is doing you can read the corresponding source files.
    31 Example: The <light> tag shown before refers to the [http://www.orxonox.net/browser/code/trunk/src/orxonox/graphics/Light.h light class].
     30By describing a level via XML you actually add C++ objects to the level. Each tag starting with a capital letter refers to a class that contains a XMLPort function. In order to understand better what a certain tag is doing it is recommended to read the corresponding source files.
     31Example: The <Light> tag shown before refers to the [http://www.orxonox.net/browser/code/trunk/src/orxonox/graphics/Light.h light class].
    3232
    3333== First steps ==
     
    181181
    182182Billboard in action:
    183 * Mark points of interest with a light. Maybe this will attact the player.
     183 * Mark points of interest with a light. Maybe this will attact the player.
    184184
    185185Have a look at "theTimeMachine.oxw" to see some further billboards in action.
     
    199199
    200200== Lua ==
    201 
    202 == Trigger ==
     201Lua is the scripting language we use in our levels. At the beginning of the file templates for spaceships, the hud and more are loaded.
     202
     203== Triggers ==
    203204
    204205== Events ==