Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 13 and Version 14 of content/LevelHowTo


Ignore:
Timestamp:
Feb 10, 2011, 7:34:46 PM (13 years ago)
Author:
jo
Comment:

more concrete

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v13 v14  
    11= How to create Orxonox Levels =
    2 [[OutdatedPage]]
    32[[TracNav(TracNav/TOC_CC_Tut)]]
    43
     
    1312{{{
    1413#!xml
    15 <templates>                                 <!-- Opening tag 1 -->
    16     <Template link=lodtemplate_default />   <!-- Opening and closing tag 2 at once -->
    17 </templates>                                <!-- Closing tag 1 -->
     14<templates>                               <!-- Opening tag 1 -->
     15    <Template link=lodtemplate_default /> <!-- Opening and closing tag 2 at once -->
     16</templates>                              <!-- Closing tag 1 -->
    1817}}}
    1918                                                       
     
    2726
    2827Tip: 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.
     28
     29== First steps ==
     30 1. Define the level's name in the menu. The "description" will be displayed, when a player hovers his mouse over your level's "name". This should be the first tag in the XML file.
     31{{{
     32#!xml
     33<LevelInfo
     34 name = "Teambase Match"
     35 description = "Fight for the bases."
     36 tags = ""
     37/>
     38}}}
     39 2. Decide wether you create a level for a gametype or a single player mission. A gametype is set in the <level> tag.
     40{{{
     41#!xml
     42<Level
     43 name         = "Presentation"
     44 description  = "A simple testlevel"
     45 gametype     = TeamBaseMatch
     46>
     47}}}
     48 3. Set the levels backgroud. The level's background is called skybox and is an image of what you can seen on the horizon. You can add an new skybox by changing the corresponding parameter:
     49{{{
     50#!xml
     51  <Scene
     52    ambientlight = "0.5, 0.5, 0.5"
     53    skybox       = "Orxonox/Starbox"
     54  >
     55}}}
     56Possible values are:
     57|| "Orxonox/Starbox" || „Orxonox/skypanoramagen1“ || „Orxonox/skypanoramagen2“ || „Orxonox/skyBoxMoreNebula“ ||