Changeset 6358
- Timestamp:
- Dec 15, 2009, 11:59:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/data/levels/presentationHS09b.oxw
r6347 r6358 24 24 > 25 25 26 26 27 27 <AmbientSound ambientSource="Mars.ogg" loop="true" play="true" /> 28 28 29 29 <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" /> 30 30 <?lua 31 for i = 1, 50, 1 31 for i = 1, 50, 1 32 32 do 33 33 x = math.random() * 2000 + 4000 … … 36 36 s = math.random() * 100 37 37 ?> 38 39 <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) ?>"> 38 39 <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) ?>"> 40 40 <attached> 41 41 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" /> … … 46 46 </MovableEntity> 47 47 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 48 <?lua 48 <?lua 49 49 end 50 50 ?> … … 56 56 return table.getn(elements) 57 57 end 58 for i = 1, 100, 1 58 for i = 1, 100, 1 59 59 do 60 60 x = math.random() * 750 - 4500 … … 63 63 e = math.floor(math.random()*elements.length()+1) 64 64 ?> 65 66 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>"> 65 66 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>"> 67 67 <attached> 68 68 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 69 69 </attached> 70 70 </MovableEntity> 71 <?lua 71 <?lua 72 72 end 73 73 ?> 74 74 <?lua 75 for i = 1,25, 1 75 for i = 1,25, 1 76 76 do 77 77 ?> … … 88 88 </controller> 89 89 </SpaceShip> 90 <?lua 90 <?lua 91 91 end 92 92 ?> … … 189 189 190 190 <?lua 191 for i = 1, 50, 1 191 for i = 1, 50, 1 192 192 do 193 193 x = -(math.random() * 2000 + 4000) … … 196 196 s = math.random() * 100 197 197 ?> 198 199 <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) ?>"> 198 199 <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) ?>"> 200 200 <attached> 201 201 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" /> … … 206 206 </MovableEntity> 207 207 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 208 <?lua 209 end 210 ?> 211 <?lua 212 for i = 1,25, 1 208 <?lua 209 end 210 ?> 211 <!--<EventDispatcher> 212 <targets> 213 <EventTarget target=attack /> 214 <EventTarget target=wait /> 215 </targets> 216 <events> 217 <activity> 218 <DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=true /> 219 </activity> 220 </events> 221 </EventDispatcher> 222 223 <EventDispatcher> 224 <targets> 225 <EventTarget target=wait /> 226 </targets> 227 <events> 228 <activity> 229 <DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=false /> 230 </activity> 231 </events> 232 </EventDispatcher>--> 233 234 <?lua 235 for i = 1,25, 1 213 236 do 214 237 ?> 215 <SpaceShip position="-5000,0,<?lua print(i*50 - 150) ?>" >238 <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" > 216 239 <templates> 217 240 <Template link=spaceshipghost /> 218 241 </templates> 219 242 <controller> 220 <WaypointPatrolController alertnessradius=1000 team=1 active=true> 221 <waypoints> 222 <StaticEntity position="-5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" /> 223 </waypoints> 224 </WaypointPatrolController> 243 244 <WaypointPatrolController name=attack alertnessradius=15000 team=1 active=false> 245 <events> 246 <activity> 247 <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true /> 248 </activity> 249 </events> 250 </WaypointPatrolController> 251 225 252 </controller> 226 253 </SpaceShip> 227 <?lua 228 end 229 ?> 254 <?lua 255 end 256 ?> 257 230 258 231 259
Note: See TracChangeset
for help on using the changeset viewer.