Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8380 for code/trunk/data


Ignore:
Timestamp:
May 2, 2011, 3:45:14 PM (14 years ago)
Author:
youngk
Message:

Updated and cleaned planet level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/planets.oxw

    r8351 r8380  
    2626<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" />
    2727
    28 <?lua
    29 planetsize=40000
    30 ?>
    3128
    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" />
    3330
    34 
    35 <?lua
    36 max = 50
    37 
    38 for i = 1, max, 1
    39 do
    40     x = math.sin(i/max*6)*(1.5)*planetsize
    41     y = i*100
    42     z = math.cos(i/max*6)*(1.5)*planetsize
    43     ?>
    44 <?lua
    45 for k = 1, 25, 1
    46 do
    47 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 <?lua
    59 end
    60 ?>
    6131<?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" />
    6434  </Scene>
    6535</Level>
Note: See TracChangeset for help on using the changeset viewer.