Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2015, 3:26:21 PM (9 years ago)
Author:
bhatiab
Message:

Added General Level-structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/data/levels/Campaign1.oxw

    r10663 r10666  
    122122      <events>
    123123          <trigger>
    124               <SpawnPoint team=0 position="0,-200,0" lookat="0,0,-50" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
     124              <SpawnPoint team=0 position="-50,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
    125125          </trigger>
    126126      </events>
     
    152152    </QuestEffectBeacon>
    153153
    154     <!--ELEMENTS -->
    155 
    156         <SpaceShip position="500,500,-200" lookat="-500,500,-200" team=0>
     154    <!--STRUCTURE -->   
     155
     156    <StaticEntity position="-2500,0,1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
     157        <attached>
     158            <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
     159        </attached>
     160        <collisionShapes>
     161            <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
     162        </collisionShapes>
     163    </StaticEntity>
     164
     165    <StaticEntity position="-2500,0,-1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
     166        <attached>
     167            <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
     168        </attached>
     169        <collisionShapes>
     170            <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
     171        </collisionShapes>
     172    </StaticEntity>
     173
     174     <!--ELEMENTS -->
     175
     176       <?lua
     177      max = 5
     178    for i = 1, max, 1
     179    do
     180      x = math.cos(math.pi/8*(i+1))*1500
     181      y = math.sin(math.pi/8*(i+1))*1500
     182    ?>
     183    <SpaceShip position="<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>,<?lua print(x)?>" lookat="0,0,0" team=1>
     184        <templates>
     185            <Template link=spaceshippirate />
     186        </templates>
     187       
     188    </SpaceShip>
     189    <?lua end ?>
     190
     191        <SpaceShip position="-2500,0,1700" lookat="-2500,0,-1800" team=0>
    157192                <templates>
    158193                        <Template link=spaceshipTransporter />
     
    161196                    <WaypointController accuracy=10>
    162197                        <waypoints>
    163                             <Model mesh="cube.mesh" scale=8 position="0,700,-200" />
    164                       <Model mesh="cube.mesh" scale=8 position="500,500,-200" />
    165                       <Model mesh="cube.mesh" scale=8 position="-500,500,-200" />
     198                            <Model mesh="cube.mesh" scale=8 position="-2500,0,900" />
     199                  <Model mesh="cube.mesh" scale=8 position="-2500,0,-900" />
     200                  <Model mesh="cube.mesh" scale=8 position="-2500,0,-1700" />
    166201                        </waypoints>
    167202                    </WaypointController>
Note: See TracChangeset for help on using the changeset viewer.