Changes between Version 4 and Version 5 of content/LevelHowTo
- Timestamp:
- Jan 5, 2007, 12:00:16 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
content/LevelHowTo
v4 v5 51 51 Level files have the extension OXW (for '''O'''rxono'''X''' '''W'''orld). The order of the things you add does not matter. 52 52 53 At 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 55 Every 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 53 57 === Example === 54 58 {{{ … … 79 83 <abs-coor>312.19, 172.36, 60.74</abs-coor> 80 84 </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>96 85 97 86 ... … … 104 93 <size>75,38.5</size> 105 94 </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>123 95 124 96 ... … … 134 106 <abs-coor>300,50,-400</abs-coor> 135 107 <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>141 108 </ModelEntity> 142 109 … … 159 126 <abs-coor>300,800,0</abs-coor> 160 127 </Light> 161 <Light> 162 <diffuse-color>1,1,1</diffuse-color> 163 <abs-coor>100,200,50</abs-coor> 164 </Light> 128 129 ... 130 165 131 </Lights> 166 132 <ambient-color>1,1,1</ambient-color> … … 184 150 </WorldDataFile> 185 151 }}} 152 186 153 === World Entities === 187 ... 154 World 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 188 156 ==== Player ==== 189 ... 157 To 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 159 As 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 190 161 ==== Skybox ==== 191 162 ...