[5262] | 1 | <?lua |
---|
[5336] | 2 | include("levels/spaceshiptemplates_physics.oxw") |
---|
[5262] | 3 | ?> |
---|
[5295] | 4 | <?lua |
---|
[5336] | 5 | include("levels/hudtemplates.oxw") |
---|
[5295] | 6 | ?> |
---|
[5262] | 7 | |
---|
| 8 | <Level |
---|
| 9 | name = "Sample" |
---|
| 10 | description = "Just a few tests" |
---|
| 11 | > |
---|
| 12 | <Scene |
---|
| 13 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 14 | skybox = "Orxonox/Starbox" |
---|
[5289] | 15 | negativeWorldRange = "(-100000, -100000, -100000)" |
---|
| 16 | positiveWorldRange = "( 100000, 100000, 100000)" |
---|
| 17 | hasPhysics = true |
---|
[5262] | 18 | > |
---|
[5302] | 19 | <!--SpawnPoint position="0, 0, 100" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 20 | <SpawnPoint position="0, 0, -700" yaw =180 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 21 | <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /--> |
---|
| 22 | |
---|
| 23 | <!-- axes in ogre's origin of coordinate system for phsics engine testing purposes--> |
---|
| 24 | <StaticEntity |
---|
[5335] | 25 | position = "0,0,0" |
---|
| 26 | name = "banana" |
---|
| 27 | collisionType = "static" |
---|
| 28 | mass = 1000 |
---|
| 29 | > |
---|
| 30 | <attached> |
---|
| 31 | <Model position="0,0,0" scale=100 mesh="plane.mesh" /> |
---|
| 32 | <Model position="0,-0.0001,0" roll=180 scale=100 mesh="plane.mesh" /> |
---|
| 33 | |
---|
| 34 | </attached> |
---|
| 35 | <collisionShapes> |
---|
| 36 | <PlaneCollisionShape name="thePlane" planeNormal="0,1,0" planeOffset=0 /> |
---|
| 37 | </collisionShapes> |
---|
[5302] | 38 | </StaticEntity> |
---|
| 39 | |
---|
| 40 | <!-- red sphere for phsics engine testing purposes--> |
---|
[5335] | 41 | <!--StaticEntity position="40,0,0"> |
---|
[5302] | 42 | <attached> |
---|
| 43 | <Model position="0,0,0" scale=1 mesh="sphere.mesh" /> |
---|
| 44 | </attached> |
---|
[5335] | 45 | </StaticEntity--> |
---|
[5302] | 46 | |
---|
| 47 | <!-- yellow cube for phsics engine testing purposes--> |
---|
[5335] | 48 | <!--StaticEntity position="80,0,0"> |
---|
| 49 | <attached> |
---|
| 50 | <Model position="0,0,0" scale=1 mesh="cube.mesh" /> |
---|
| 51 | </attached> |
---|
| 52 | </StaticEntity--> |
---|
| 53 | |
---|
[5289] | 54 | <LinearEntity |
---|
[5290] | 55 | name = "blubb" |
---|
[5335] | 56 | position = "-150, 20, -500" |
---|
[5290] | 57 | collisionType = "kinematic" |
---|
[5335] | 58 | mass = 10000 |
---|
| 59 | velocity = "30, 0, 0" |
---|
[5289] | 60 | > |
---|
| 61 | <attached> |
---|
[5335] | 62 | <Model name = "moedeli" position="0,0,0" scale=20 mesh="sphere.mesh" /> |
---|
[5290] | 63 | <StaticEntity name="hahaha" position="0,0,0" collisionType="static"> |
---|
| 64 | <collisionShapes> |
---|
| 65 | <SphereCollisionShape name="firstSphere" radius=20/> |
---|
| 66 | </collisionShapes> |
---|
| 67 | </StaticEntity> |
---|
[5289] | 68 | </attached> |
---|
[5290] | 69 | |
---|
[5335] | 70 | <!--attached> |
---|
[5290] | 71 | <SphereCollisionShape name = "secondSphere" radius=0.4 position="1,1,1"/> |
---|
| 72 | <CompoundCollisionShape position="4,4,4"> |
---|
| 73 | <SphereCollisionShape name = "thirdSphere" radius=1.0/> |
---|
| 74 | </CompoundCollisionShape> |
---|
[5335] | 75 | </attached--> |
---|
[5289] | 76 | </LinearEntity> |
---|
| 77 | |
---|
| 78 | <LinearEntity |
---|
[5290] | 79 | name = "blubb2" |
---|
[5335] | 80 | position = "150, 30, -500" |
---|
[5290] | 81 | collisionType = "dynamic" |
---|
[5289] | 82 | mass = 10 |
---|
[5335] | 83 | velocity = "-30, 0, 0" |
---|
[5289] | 84 | > |
---|
| 85 | <attached> |
---|
[5335] | 86 | <Model position="0,0,0" scale=20 mesh="sphere.mesh" /> |
---|
[5289] | 87 | </attached> |
---|
[5290] | 88 | <collisionShapes> |
---|
[5295] | 89 | <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/> |
---|
[5290] | 90 | </collisionShapes> |
---|
[5289] | 91 | </LinearEntity> |
---|
[5262] | 92 | |
---|
[5295] | 93 | <StaticEntity |
---|
| 94 | name = "blubbStatic" |
---|
[5335] | 95 | position = "0, 15, -500" |
---|
| 96 | collisionType = "Static" |
---|
[5295] | 97 | mass = 10 |
---|
| 98 | > |
---|
| 99 | <attached> |
---|
[5335] | 100 | <Model position="0,0,0" scale=20 mesh="sphere.mesh" /> |
---|
[5295] | 101 | </attached> |
---|
| 102 | <collisionShapes> |
---|
| 103 | <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/> |
---|
| 104 | </collisionShapes> |
---|
| 105 | </StaticEntity> |
---|
| 106 | |
---|
[5262] | 107 | <!--SpawnPoint position="0, 0, 100" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 108 | <SpawnPoint position="0, 0, -700" yaw =180 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 109 | <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /--> |
---|
| 110 | |
---|
[5268] | 111 | <!--LinearEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90> |
---|
[5262] | 112 | <events> |
---|
| 113 | <activity> |
---|
| 114 | <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 /> |
---|
| 115 | </activity> |
---|
| 116 | </events> |
---|
| 117 | <attached> |
---|
| 118 | <Model position="0,0,0" scale=10 mesh="ast1.mesh" /> |
---|
| 119 | <PositionableEntity position="0,0,100"> |
---|
| 120 | <attached> |
---|
| 121 | <Model position="0,0,0" scale=6 mesh="ast1.mesh" /> |
---|
[5268] | 122 | <LinearEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500> |
---|
[5262] | 123 | <attached> |
---|
| 124 | <Model position="0,35,0" scale=2 mesh="ast1.mesh" /> |
---|
| 125 | <Model position="0,-35,0" scale=2 mesh="ast1.mesh" /> |
---|
| 126 | <Model position="35,0,0" scale=2 mesh="ast1.mesh"> |
---|
| 127 | <attached> |
---|
| 128 | <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> |
---|
| 129 | </attached> |
---|
| 130 | </Model> |
---|
| 131 | <Model position="-35,0,0" scale=2 mesh="ast1.mesh"> |
---|
| 132 | <attached> |
---|
| 133 | <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> |
---|
| 134 | </attached> |
---|
| 135 | </Model> |
---|
| 136 | </attached> |
---|
[5268] | 137 | </LinearEntity> |
---|
[5262] | 138 | </attached> |
---|
| 139 | </PositionableEntity> |
---|
[5268] | 140 | <LinearEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200> |
---|
[5262] | 141 | <attached> |
---|
| 142 | <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> |
---|
| 143 | <Model position="0,0,0" scale=6 mesh="ast1.mesh" /> |
---|
| 144 | <Model position="0,0,-50" scale=3 mesh="ast1.mesh" /> |
---|
| 145 | <Model position="0,0,50" scale=3 mesh="ast1.mesh" /> |
---|
| 146 | </attached> |
---|
[5268] | 147 | </LinearEntity> |
---|
[5262] | 148 | </attached> |
---|
[5268] | 149 | </LinearEntity--> |
---|
[5262] | 150 | |
---|
| 151 | |
---|
| 152 | <!--ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 /> |
---|
| 153 | <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 /> |
---|
| 154 | <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 /> |
---|
| 155 | <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 /> |
---|
| 156 | <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 /--> |
---|
| 157 | |
---|
| 158 | |
---|
[5335] | 159 | <ParticleSpawner position="0,5,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> |
---|
[5262] | 160 | <events> |
---|
| 161 | <spawn> |
---|
| 162 | <EventTrigger delay=1> |
---|
| 163 | <events> |
---|
| 164 | <trigger> |
---|
[5335] | 165 | <SpawnPoint position="0,5,100" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
[5262] | 166 | </trigger> |
---|
| 167 | </events> |
---|
| 168 | </EventTrigger> |
---|
| 169 | </spawn> |
---|
| 170 | </events> |
---|
| 171 | </ParticleSpawner> |
---|
| 172 | |
---|
| 173 | |
---|
| 174 | <!--ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false> |
---|
| 175 | <events> |
---|
| 176 | <activity> |
---|
| 177 | <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" /> |
---|
| 178 | </activity> |
---|
| 179 | </events> |
---|
| 180 | </ParticleEmitter> |
---|
| 181 | <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false> |
---|
| 182 | <events> |
---|
| 183 | <activity> |
---|
| 184 | <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" /> |
---|
| 185 | </activity> |
---|
| 186 | </events> |
---|
| 187 | </ParticleEmitter> |
---|
| 188 | <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false> |
---|
| 189 | <events> |
---|
| 190 | <activity> |
---|
| 191 | <EventListener event=firetrigger1 /> |
---|
| 192 | <EventListener event=firetrigger2 /> |
---|
| 193 | </activity> |
---|
| 194 | </events> |
---|
| 195 | </ParticleEmitter--> |
---|
| 196 | |
---|
| 197 | |
---|
| 198 | <!--EventDispatcher> |
---|
| 199 | <targets> |
---|
| 200 | <EventTarget name=fireright /> |
---|
| 201 | <EventTarget name=firecenter /> |
---|
| 202 | <EventTarget name=fireleft /> |
---|
| 203 | </targets> |
---|
| 204 | <events> |
---|
| 205 | <activity> |
---|
| 206 | <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" /> |
---|
| 207 | </activity> |
---|
| 208 | </events> |
---|
| 209 | </EventDispatcher--> |
---|
| 210 | |
---|
| 211 | |
---|
| 212 | <!--Model position="0,50,0" scale=3 mesh="assff.mesh"> |
---|
| 213 | <events> |
---|
| 214 | <visibility> |
---|
| 215 | <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 /> |
---|
| 216 | </visibility> |
---|
| 217 | </events> |
---|
| 218 | </Model--> |
---|
| 219 | |
---|
| 220 | |
---|
| 221 | <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true /> |
---|
| 222 | <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /--> |
---|
| 223 | <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true /> |
---|
| 224 | <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true /> |
---|
| 225 | <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false /> |
---|
| 226 | <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false /> |
---|
| 227 | |
---|
| 228 | <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" /> |
---|
| 229 | |
---|
| 230 | <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" /> |
---|
| 231 | <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" /> |
---|
| 232 | <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /--> |
---|
| 233 | |
---|
| 234 | </Scene> |
---|
| 235 | </Level> |
---|