Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2015, 8:59:23 PM (9 years ago)
Author:
luhug
Message:

Finished!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/planetLevelHS15/data/levels/planetLevelHS15.oxw

    r10951 r10965  
    2626PLANET_SCALE = 20000
    2727SKYBOX_SCALE = 100000
    28 X = 100
    29 Y = 100
     28X = 20
     29Y = 20
    3030CELL_SIZE = 600
    3131?>
     
    4545        returnString = returnString .. "<StaticEntity collisionType=\"static\" position=\"" .. (currentX*cellSize) .. "," .. (currentY*cellSize - (cellSize/2)) .. ",0\" direction=\"0,1,0\" pitch=\"0\" roll=\"0\" yaw=\"" .. orientation .. "\">  <attached> <Model position=\"0,0,0\" mesh=\"" .. houses[houseNr] .. ".mesh\" scale=\"" .. scales[houseNr] .. "\"/></attached><collisionShapes>" .. collisionShapes[houseNr] .. "</collisionShapes></StaticEntity>\n\n"
    4646        end
    47         returnString = returnString .. "<StaticEntity collisionType=\"static\" position=\"" .. (currentX*cellSize - cellSize/2) .. "," .. (currentY*cellSize) .. ",0\" direction=\"0,1,0\" pitch=\"0\" roll=\"0\" yaw=\"0\">  <attached> <Model position=\"0,0,0\" mesh=\"CityGround.mesh\" scale=\"" .. cellSize .. "\"/></attached><collisionShapes><BoxCollisionShape position=\"0,0,0\" halfExtents=\"500,0,500\"/></collisionShapes></StaticEntity>\n\n"
     47        returnString = returnString .. "<StaticEntity collisionType=\"static\" position=\"" .. (currentX*cellSize - cellSize/2) .. "," .. (currentY*cellSize) .. ",0\" direction=\"0,1,0\" pitch=\"0\" roll=\"0\" yaw=\"0\">  <attached> <Model position=\"0,0,0\" mesh=\"CityGroundLamps.mesh\" scale=\"" .. cellSize .. "\"/><Model position=\"0,0,0\" mesh=\"CityGround.mesh\" scale=\"" .. cellSize .. "\"/></attached><collisionShapes><BoxCollisionShape position=\"0,0,0\" halfExtents=\"500,0,500\"/><BoxCollisionShape position=\"48.5,50.88,192\" halfExtents=\"5,50.88,5\"/><BoxCollisionShape position=\"48.5,50.88,-192\" halfExtents=\"5,50.88,5\"/><BoxCollisionShape position=\"48.5,50.88,-54\" halfExtents=\"5,50.88,5\"/><BoxCollisionShape position=\"48.5,50.88,54\" halfExtents=\"5,50.88,5\"/><BoxCollisionShape position=\"-48.5,50.88,192\" halfExtents=\"5,50.88,5\"/><BoxCollisionShape position=\"-48.5,50.88,-192\" halfExtents=\"5,50.88,5\"/><BoxCollisionShape position=\"-48.5,50.88,-54\" halfExtents=\"5,50.88,5\"/><BoxCollisionShape position=\"-48.5,50.88,54\" halfExtents=\"5,50.88,5\"/></collisionShapes></StaticEntity>\n\n"
    4848      end
    4949    end
     
    5757    <Template link=lodtemplate_default />
    5858  </templates>
     59
    5960  <?lua include("includes/notifications.oxi") ?>
    60 <Template name=PortalDefault>
    61     <PortalEndPoint>
    62         <attached>
    63             <Model mesh="Spacegate.mesh" yaw="90"/>
    64         </attached>
    65     </PortalEndPoint>
    66 </Template>
    6761
    68 <Template name=PortalBig>
    69     <PortalEndPoint>
    70         <attached>
    71             <Billboard material="Portals/Big" />
    72         </attached>
    73     </PortalEndPoint>
    74 </Template>
     62
    7563  <Scene
    7664    ambientlight = "10, 10, 10"
     
    7866  >
    7967
    80 <!--    <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"/> -->
    8168   
    8269    <Planet
     
    8774      angularDamping="0"
    8875      mass="5.9e21"
    89       pitch="0"
    9076      mesh="planets/earth.mesh"
    9177      atmosphere="atmosphere1"
     
    120106          </events>
    121107        </Model>
    122         <PortalEndPoint position="<?lua print(X*CELL_SIZE/2) ?>,<?lua print(Y*CELL_SIZE/2) ?>,1000" id="1" distance="40" target="Pawn" design="PortalDefault"/>
     108        <PortalEndPoint position="<?lua print(X*CELL_SIZE/2) ?>,500,<?lua print(Y*CELL_SIZE/2) ?>" id="3" distance="40" target="Pawn"/>
    123109        <Light type="point" position="0,0,0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
    124110    </attached>
     
    126112</StaticEntity>
    127113
    128 <SpawnPoint team=0 position="<!--<?lua print(PLANET_DISTANCE - PLANET_SCALE - 5000)?> -->0,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort direction="0,1,0" />
     114<SpawnPoint team=0 position="<?lua print(PLANET_DISTANCE - PLANET_SCALE - 5000)?>,0,0" lookat="<?lua print(PLANET_DISTANCE) ?>,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort orientation="-0.4,-0.6,0.6,0.4" />
    129115
    130 <PortalEndPoint position = "<?lua print(PLANET_DISTANCE) ?>,0,0" id="2" distance=<?lua print(PLANET_SCALE)?> target="Pawn" design="PortalEndPoint"/>
    131 <PortalEndPoint position="<?lua print(PLANET_DISTANCE + PLANET_SCALE + 6000) ?>,0,0" id="1" distance="40" target="Pawn" design="PortalEndPoint"/>
     116<PortalEndPoint position = "<?lua print(PLANET_DISTANCE) ?>,0,0" id="2" distance=<?lua print(PLANET_SCALE)?> target="Pawn"/>
     117<PortalEndPoint position="<?lua print(PLANET_DISTANCE + PLANET_SCALE + 6000) ?>,0,0" id="1" distance="40" target="Pawn"/>
    132118
    133119
Note: See TracChangeset for help on using the changeset viewer.