Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9134


Ignore:
Timestamp:
Apr 29, 2012, 11:06:06 AM (13 years ago)
Author:
mentzerf
Message:

+ Added Template for tower

  • Replaced StaticEntity for playfield with TowerDefenseCenterpoint
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/newlevel2012/data/levels/towerDefense.oxw

    r9133 r9134  
    3636
    3737<!-- Loads the playfield mesh -->
    38 <!-- TODO: why don't you add Playfield_ME.mesh to the data repository ? : /orxonox/data_extern/models -->
    39 
    4038<Template name=playfield>
    4139  <Pawn camerapositiontemplate=playfieldcameras>
     
    4644</Template>
    4745
    48 
    49 
    50 
     46<!-- Template for a tower -->
     47<Template name=towertemplate>
     48  <Tower>
     49    <attached>
     50      <Model position="15,0,0" mesh="crate.mesh" scale=1 />
     51    </attached>
     52  </Tower>
     53</Template>
    5154
    5255<Level gametype = "TowerDefense">
     
    6871    <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=Pawn pawndesign=playfield />
    6972   
    70         <!--SpawnPoint team=1 position="0,0,30" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff  /-->
     73        <!--SpawnPoint team=1 position="0,0,10" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff  /-->
    7174       
    7275       
     
    8992   
    9093
    91     <StaticEntity position="0,0,0" direction="1,0,0" collistionType=static mass=100000>
     94        <!-- PlayField -->
     95        <TowerDefenseCenterpoint
     96        name=towerdefensecenter
     97        width=16
     98        height=16
     99        towerTemplate=towertemplate
     100        position="0,0,0"
     101        direction="1,0,0"
     102        collistionType=static
     103        mass=100000>
    92104        <attached>
    93105            <Model position="0,0,0" orientation="1,1,1,1" mesh="Playfield_ME.mesh" scale3D="1,1,1" />
    94106        </attached>
    95     </StaticEntity>
     107    </TowerDefenseCenterpoint>
    96108
    97109  </Scene>
Note: See TracChangeset for help on using the changeset viewer.