Changes between Version 28 and Version 29 of content/LevelHowTo
- Timestamp:
- Nov 23, 2011, 2:24:54 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
content/LevelHowTo
v28 v29 25 25 The syntax is attribute=“value(s)“. If only one value is set, the quotation marks are not necessary. 26 26 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. I n 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.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. If your level doesn't load have a look at the terminal by pressing [alt] + [tab]. 28 28 29 29 == 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 canread 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].30 By 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. 31 Example: The <Light> tag shown before refers to the [http://www.orxonox.net/browser/code/trunk/src/orxonox/graphics/Light.h light class]. 32 32 33 33 == First steps == … … 181 181 182 182 Billboard 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. 184 184 185 185 Have a look at "theTimeMachine.oxw" to see some further billboards in action. … … 199 199 200 200 == Lua == 201 202 == Trigger == 201 Lua 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 == 203 204 204 205 == Events ==