= How to create Orxonox Levels =
[[OutdatedPage]]
[[TracNav(TracNav/TOC_CC_Tut)]]
== Create the basic file ==
1. Go to the folder ../data/levels. The level files ending with .oxw are simple XML files and can be opened with any editor. Each level file stored in this folder can be selected later in Orxonox.
2. Copy „empty_level.oxw“ and paste it again in the folder.
3. Rename the copy. Try to use a name that sounds good. Avoid whitespace – use „_“ or CamelCase instead.
4. Open your level with your favourite editor.
== About XML ==
XML is a description language that looks similar to HTML. We use tags to describe objects:
{{{
#!xml
}}}
A tag can contain several attributes. An attribute is the place where a value is set.
{{{
#!xml
}}}
The syntax is attribute=“vaule(s)“. If only one value is set, the quotation marks are not necessary.
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.