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