Changeset 6305
- Timestamp:
- Dec 9, 2009, 9:34:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/data/levels/presentationHS09b.oxw
r6257 r6305 7 7 include("templates/spaceship_assff.oxt") 8 8 include("templates/spaceship_pirate.oxt") 9 include("templates/spaceship_ghost.oxt") 10 include("templates/spaceship_HXY.oxt") 9 11 ?> 10 12 … … 19 21 20 22 21 <AmbientSound ambientSource=" Earth.ogg" loop="true" play="true" />23 <AmbientSound ambientSource="Mars.ogg" loop="true" play="true" /> 22 24 23 25 <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" /> 24 26 <?lua 25 elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"} 27 elements = {"asteroid_UV.mesh" 28 --, "asteroid_ice.mesh" 29 --, "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh" 30 } 26 31 elements.length = function() 27 32 return table.getn(elements) … … 32 37 y = math.random() * 3000 - 1500 33 38 z = math.random() * 3000 - 1500 + (i-100) * 10 34 s = math.random() * 60 + 3039 s = math.random() * 100 + 50 35 40 e = math.floor(math.random()*elements.length()+1) 36 41 ?> 37 42 38 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">43 <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 39 44 <attached> 40 45 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" /> 41 46 </attached> 47 <collisionShapes> 48 <SphereCollisionShape radius="<?lua if e==0 then print(s*0.9) end if e==1 then print(s*0.3) end if e==2 or e==3 or e==4 or e==5 or e==6 or e==7 then print(s*2) end ?>" /> 49 </collisionShapes> 42 50 </MovableEntity> 43 51 <?lua … … 51 59 y = math.random() * 3000 - 1500 52 60 z = math.random() * 3000 - 1500 + (i-100) * 10 53 s = math.rando m() * 60 + 3061 s = math.rando 54 62 ?> 63 55 64 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 56 57 < !--<Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" />65 <!-- 66 <Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" /> 58 67 --> 59 68 <?lua … … 83 92 end 84 93 ?> 94 <?lua 95 for i = 1,5, 1 96 do 97 ?> 98 <SpaceShip position="2000,0,0" > 99 <templates> 100 <Template link=spaceshipHXY /> 101 </templates> 102 <controller> 103 <WaypointPatrolController name=ghost target=pirate alertnessradius=1000 team=0 active=false> 104 <waypoints> 105 <StaticEntity position="0,0,0" /> 106 </waypoints> 107 </WaypointPatrolController> 108 </controller> 109 </SpaceShip> 110 <?lua 111 end 112 ?> 85 113 86 87 <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff /> 114 <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipHXY /> 88 115 </Scene> 89 116 </Level>
Note: See TracChangeset
for help on using the changeset viewer.