[9403] | 1 | <LevelInfo |
---|
| 2 | name = "Shader Test" |
---|
| 3 | description = "Level to test shader functionality. Based on Asteroidfields." |
---|
[9426] | 4 | tags = "test" |
---|
[9403] | 5 | screenshot = "codingtutorial.png" |
---|
| 6 | startingships = "spaceshipassff, spaceshipghost, spaceshipspacecruiser" |
---|
| 7 | /> |
---|
| 8 | |
---|
| 9 | <?lua |
---|
| 10 | include("stats.oxo") |
---|
| 11 | include("HUDTemplates3.oxo") |
---|
| 12 | include("templates/lodInformation.oxt") |
---|
| 13 | ?> |
---|
| 14 | |
---|
| 15 | <?lua |
---|
| 16 | include("templates/spaceshipAssff.oxt") |
---|
| 17 | include("templates/spaceshipPirate.oxt") |
---|
| 18 | ?> |
---|
| 19 | |
---|
| 20 | <Level |
---|
| 21 | name = "Sample" |
---|
| 22 | description = "Just a few tests" |
---|
| 23 | > |
---|
| 24 | <templates> |
---|
| 25 | <Template link=lodtemplate_default /> |
---|
| 26 | </templates> |
---|
| 27 | <?lua include("includes/notifications.oxi") ?> |
---|
| 28 | |
---|
| 29 | <Scene |
---|
| 30 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 31 | skybox = "Orxonox/Starbox" |
---|
| 32 | hasPhysics = true |
---|
| 33 | > |
---|
| 34 | |
---|
| 35 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> |
---|
| 36 | <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | <!-- Belt that's far away *** TURNED OFF FOR PERFORMANCE REASONS *** --> |
---|
| 42 | <!-- Generate asteroid field and asteroid belt --> |
---|
| 43 | <!-- |
---|
| 44 | <?lua |
---|
| 45 | dofile("includes/asteroidField.lua") |
---|
| 46 | asteroidBelt(0, 0, 0, -48, -34, 70, 100, 200, 219900, 210000, 900, 1) |
---|
| 47 | ?> |
---|
| 48 | --> |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | <!-- triple large belt around the planet --> |
---|
| 52 | <?lua |
---|
| 53 | dofile("includes/asteroidField.lua") |
---|
| 54 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1) |
---|
| 55 | ?> |
---|
| 56 | <?lua |
---|
| 57 | dofile("includes/asteroidField.lua") |
---|
| 58 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1) |
---|
| 59 | ?> |
---|
| 60 | <?lua |
---|
| 61 | dofile("includes/asteroidField.lua") |
---|
| 62 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1) |
---|
| 63 | ?> |
---|
| 64 | |
---|
[9433] | 65 | <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass="50" linearDamping="0.9" angularDamping="0.7"> |
---|
[9403] | 66 | <attached> |
---|
[9426] | 67 | <Model position="10,10,10" scale="30" mesh="planets/earth.mesh" renderQueueGroup="stencil glow" material="glow"/> |
---|
[9446] | 68 | <Model position="10,10,10" scale="30" mesh="planets/earth.mesh" renderQueueGroup="main" /> |
---|
[9403] | 69 | </attached> |
---|
| 70 | <collisionShapes> |
---|
[9433] | 71 | <SphereCollisionShape position="10,10,10" radius="30" /> |
---|
[9403] | 72 | </collisionShapes> |
---|
| 73 | </Drone> |
---|
| 74 | |
---|
[9511] | 75 | <LensFlare position="10000,20,5000" fadeOnViewBorder="true" fadeResolution="11" fadeExponent="2.0" scale="1.0" colour="1.0,0.85,0.8"> |
---|
[9446] | 76 | </LensFlare> |
---|
| 77 | |
---|
[9403] | 78 | <!-- Planet close to spawn point --> |
---|
| 79 | |
---|
[11128] | 80 | <MovableEntity |
---|
[9446] | 81 | position="15000,0,-1000" |
---|
[9403] | 82 | scale="5000" |
---|
| 83 | collisionType="dynamic" |
---|
| 84 | linearDamping="0.8" |
---|
| 85 | angularDamping="0" |
---|
| 86 | mass="10000000" |
---|
| 87 | pitch="0" |
---|
| 88 | rotationaxis="1,0,0" |
---|
| 89 | rotationrate="1.0" |
---|
| 90 | collisiondamage = 2 |
---|
| 91 | enablecollisiondamage = true |
---|
| 92 | > |
---|
| 93 | <attached> |
---|
[11128] | 94 | <Planet |
---|
| 95 | mesh="planets/muunilinst.mesh" |
---|
| 96 | atmosphere="atmosphere1" |
---|
| 97 | atmospheresize="80.0f" |
---|
| 98 | imagesize="1024.0f" |
---|
| 99 | > |
---|
| 100 | <attached> |
---|
| 101 | <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> |
---|
| 102 | </attached> |
---|
| 103 | </Planet> |
---|
[9403] | 104 | </attached> |
---|
| 105 | <collisionShapes> |
---|
| 106 | <SphereCollisionShape radius="5000" position="0,0,0" /> |
---|
| 107 | </collisionShapes> |
---|
[11128] | 108 | </MovableEntity> |
---|
[9403] | 109 | |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | </Scene> |
---|
| 117 | </Level> |
---|