Changeset 8380 for code/trunk
- Timestamp:
- May 2, 2011, 3:45:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/levels/planets.oxw
r8351 r8380 26 26 <Light type=directional position="-10000,-10000,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" /> 27 27 28 <?lua29 planetsize=4000030 ?>31 28 32 <SpawnPoint position=" <?lua print(math.sin(1.5) *(3)*planetsize) ?>,<?lua print(math.cos(1.5) *3*planetsize) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow/>29 <SpawnPoint position="1000,0,0" lookat="0,0,0" spawnclass="SpaceShip" pawndesign="spaceshipswallow" /> 33 30 34 35 <?lua36 max = 5037 38 for i = 1, max, 139 do40 x = math.sin(i/max*6)*(1.5)*planetsize41 y = i*10042 z = math.cos(i/max*6)*(1.5)*planetsize43 ?>44 <?lua45 for k = 1, 25, 146 do47 j = math.random()48 ?>49 50 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">51 <attached>52 <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />53 </attached>54 <?lua if i == 5 then ?><collisionShapes>55 <SphereCollisionShape radius="<?lua print(j * 70) ?>" />56 </collisionShapes> <?lua end ?>57 </MovableEntity>58 <?lua59 end60 ?>61 31 <?lua end ?> 62 <Planet position="0,0,0" scale=" <?lua print(planetsize) ?>" pitch=-90 mesh="jupiter.mesh" atmosphere="atmosphere1" rotationaxis="0,1,0" rotationrate="0.2" atmospheresize=300.0f imagesize=1024.0f/>63 <Planet position=" <?lua print(5*planetsize) ?>,0,0" scale=10000 pitch=30 mesh="ganymede.mesh" atmosphere="atmosphere1" rotationaxis="1,0,1" rotationrate="1.5" atmospheresize=224.0f imagesize=1024.0f/>32 <Planet position="0,0,0" scale="100" pitch="0" mesh="jupiter.mesh" atmosphere="atmosphere1" rotationaxis="1,0,0" rotationrate="1.0" atmospheresize="300.0f" imagesize="1024.0f" /> 33 <Planet position="10000,0,0" scale="1" pitch="0" mesh="ganymede.mesh" atmosphere="atmosphere1" rotationaxis="1,0,0" rotationrate="1.0" atmospheresize="224.0f" imagesize="1024.0f" /> 64 34 </Scene> 65 35 </Level>
Note: See TracChangeset
for help on using the changeset viewer.