Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 4 and Version 5 of content/LevelHowTo


Ignore:
Timestamp:
Jan 5, 2007, 12:00:16 PM (18 years ago)
Author:
bknecht
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v4 v5  
    5151Level files have the extension OXW (for '''O'''rxono'''X''' '''W'''orld). The order of the things you add does not matter.
    5252
     53At the beginning of every file you have to put the tag <WorldDataFile> and close it in the end. Then you put in the name of the level and the screenshot (or picture) you want to show in the menu. You can check out the example below to see how it works.
     54
     55Every tag has to be closed and stuff which is written in a tag is related to that tag. If open a tag <name> you have to be sure you open it at the right place. In the !WorldDataFile tag the name tag is refering to the name of the level and in the !SpaceShip tag for example it refers to the name of that space ship. So be careful where to put your tags and when you have to close them.
     56
    5357=== Example ===
    5458{{{
     
    7983      <abs-coor>312.19, 172.36, 60.74</abs-coor>
    8084    </SpaceShip>
    81     <SpaceShip>
    82       <name>Player10</name>
    83       <model>models/ships/reap_#.obj</model>
    84       <abs-coor>315.53, 185.09, 14.04</abs-coor>
    85     </SpaceShip>
    86     <SpaceShip>
    87       <name>Player6</name>
    88       <model>models/ships/reap_#.obj</model>
    89       <abs-coor>306.53, 190.09, 23.50</abs-coor>
    90     </SpaceShip>
    91     <SpaceShip>
    92       <name>Player14</name>
    93       <model>models/ships/reap_#.obj</model>
    94       <abs-coor>330.19, 172.36, 25.74</abs-coor>
    95     </SpaceShip>
    9685
    9786    ...
     
    10493      <size>75,38.5</size>
    10594    </MovieEntity>
    106 
    107     <SpaceShip>
    108       <name>Player4</name>
    109       <model>models/ships/fighter.obj</model>
    110       <abs-coor>313,181,0</abs-coor>
    111     </SpaceShip>
    112 
    113     ...
    114 
    115     <TurbineHover>
    116       <name>Player5</name>
    117       <abs-coor>324,174,2</abs-coor>
    118     </TurbineHover>
    119     <TurbineHover>
    120       <name>Player9</name>
    121       <abs-coor>309,188,42</abs-coor>
    122     </TurbineHover>
    12395
    12496    ...
     
    134106      <abs-coor>300,50,-400</abs-coor>
    135107      <model>models/comet.obj, 2.5</model>
    136     </ModelEntity>
    137     <ModelEntity>
    138       <name>comet2</name>
    139       <abs-coor>0,0,400</abs-coor>
    140       <model>models/comet.obj, 1</model>
    141108    </ModelEntity>
    142109
     
    159126       <abs-coor>300,800,0</abs-coor>
    160127      </Light>
    161     <Light>
    162        <diffuse-color>1,1,1</diffuse-color>
    163        <abs-coor>100,200,50</abs-coor>
    164       </Light>
     128     
     129      ...
     130
    165131    </Lights>
    166132    <ambient-color>1,1,1</ambient-color>
     
    184150</WorldDataFile>
    185151}}}
     152
    186153=== World Entities ===
    187 ...
     154World entities are all the objects we have in a level. That includes space ships, meteors, animated textures and so on. Since all those objects have the !WorldEntity class in comon, we have a list of all the world entities in our XML-file. This list is defined in the <WorldEntities> tag.
     155
    188156==== Player ====
    189 ...
     157To add your player to the scene all you have to do is define a space ship or a turbine hover or any other kind of craft you want to play in. We make a difference here because not every ships is controlled the same way. If you define a space ship with the turbine hover model, the hover will be acting like a space ship. Keep that in mind when you define new space ships and players in your level.
     158
     159As seen in the example above the turbine hover has it's own tag and all you have to do is give it a name and of course fell it where its position should be. This can be achieved by using the <abs-coor> tag and define x,y and z coordinates of the position you want to have your turbine hover to be created.
     160
    190161==== Skybox ====
    191162...