Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 18, 2011, 11:51:05 PM (14 years ago)
Author:
youngk
Message:

Changing planets level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mac_osx/data/levels/planets.oxw

    r8116 r8262  
    2323  >
    2424   
    25 <AmbientSound ambientSource="AlphaCentauri.ogg" looping="true" playOnLoad="true" />
    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" />
     25    <AmbientSound ambientSource="AlphaCentauri.ogg" looping="true" playOnLoad="true" />
     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" />
    2727
    28 <?lua
    29 planetsize=40000
    30 ?>
     28    <?lua
     29      planetsize=4000
     30    ?>
    3131
    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 />
     32    <SpawnPoint position="<?lua print(math.sin(1.5) *(2)*planetsize) ?>,<?lua print(math.cos(1.5) *3*planetsize) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow />
    3333
    3434
    35 <?lua
    36 max = 50
     35    <Planet position="0,0,0" scale="<?lua print(planetsize) ?>" pitch=-90 mesh="Muunilinst.mesh" atmosphere="atmosphere1" rotationaxis="0,1,0" rotationrate="0.2" atmospheresize=300.0f imagesize=1024.0f />
    3736
    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 ?>
     37    <Planet position="<?lua print(3*planetsize) ?>,0,0" scale=1000 pitch=30 mesh="ganymede.mesh" atmosphere="atmosphere1" rotationaxis="1,0,1" rotationrate="1.5" atmospheresize=224.0f imagesize=1024.0f />
    4938
    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 ?>
    61 <?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 />
     39    <Planet position="0,<?lua print(3*planetsize) ?>,0" scale=1000 pitch=30 mesh="jupiter.mesh" atmosphere="atmosphere1" rotationaxis="1,0,1" rotationrate="1.5" atmospheresize=224.0f imagesize=1024.0f />
     40
     41    <Planet position="0,0,<?lua print(3*planetsize) ?>" scale=1000 pitch=30 mesh="Planet3.mesh" atmosphere="atmosphere1" rotationaxis="1,0,1" rotationrate="1.5" atmospheresize=224.0f imagesize=1024.0f />
     42
    6443  </Scene>
    6544</Level>
Note: See TracChangeset for help on using the changeset viewer.