Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2015, 10:16:26 PM (9 years ago)
Author:
fvultier
Message:

There is now a cube that can be moved on the playground using the arrow keys.

File:
1 edited

Legend:

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

    r10378 r10406  
    2525?>
    2626
    27 <!-- Specify the position of the camera -->
    28 <Template name=centerpointmarkcamera defaults=0>
    29   <Pawn team=0>
     27
     28<Template name=selectercameras defaults=0>
     29  <TowerDefenseSelecter>
    3030    <camerapositions>
    31       <CameraPosition position="0,0,1500"/>
     31      <CameraPosition position="0,0,1400" lookat="0,0,0" absolute=true />
    3232    </camerapositions>
    33   </Pawn>
     33  </TowerDefenseSelecter>
    3434</Template>
    3535
    36 <!-- Loads a mesh to mark the center-->
    37 <Template name=centerpointmark>
    38   <Pawn team=0 camerapositiontemplate=centerpointmarkcamera>
     36<Template name=selectertemplate>
     37  <TowerDefenseSelecter team=0 camerapositiontemplate=selectercameras>
    3938    <attached>
    40       <Model position="0,0,0" mesh="cylinder.mesh" scale3D="1,1,1" /> <!-- the camera is attached to this -->
     39      <Model position="0,0,0" mesh="cube.mesh" scale=45 />
    4140    </attached>
    42   </Pawn>
     41  </TowerDefenseSelecter>
    4342</Template>
     43
     44
    4445
    4546
     
    5960
    6061    <!-- Spawns the camera, attached to a crate -->
    61     <SpawnPoint team=0 position="0,0,0" pawndesign=centerpointmark />
    62     <!--TeamSpawnPoint team=0 position="-7,7,4" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
    63 
    64     <!--SpawnPoint team=0 position="0,0,10" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff  /-->
    65     <!--SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /-->
    66 
    67 
    68 
    69 
    70     <!--invisible entity to attach towers to, since playfield is static and towers are dynamic-->
    71     <StaticEntity position=0,0,0>
    72 
    73         <attached>
    74             <Model position="-50,-50,0" mesh="Playfield_ME.mesh" scale=80 />
    75             <!-- Base -->
    76             <Model position="500,700,100" mesh="sphere.mesh" scale=80 />
    77             <!--Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /--> <!-- Only temporary needed to help align the collisionshape -->
    78             <!-- This was used to mark the playfield, let's let it be here for now -->
    79             <!--Model position="-8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
    80             <!--Model position="-8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
    81             <!--Model position="8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
    82             <!--Model position="8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
    83         </attached>
    84         <collisionShapes> <!-- The collisionshape forbids other worldentities that have a collisionShape to fly through it.
    85 
    86                                TODO: Find correct size for the collisionshape; since a collisionShape is invisible
    87                                I added the crate wich currently has the same dimensions as the collisionshape.
    88                                You have to adjust the crate's scale3D as well as the collisionshape's halfExtens to
    89                                find the proper shape. -->
    90            <BoxCollisionShape position="0,0,0" halfExtents="400,400,100" />
    91         </collisionShapes>
    92     </StaticEntity>
    93 
    94 
    95 
     62    <SpawnPoint team=0 position="0,0,0"/>
    9663
    9764    <!-- PlayField -->
    9865    <TowerDefenseCenterpoint
    9966    name=towerdefensecenter
     67
     68    selecterTemplate=selectertemplate
     69
    10070    width=16
    10171    height=16
     
    10575    collisionType=dynamic
    10676    mass=100000
    107     />
     77    >
     78        <attached>
     79            <Model position="-50,-50,0" mesh="Playfield_ME.mesh" scale=80 />
     80            <Model position="500,700,100" mesh="sphere.mesh" scale=80 />
     81        </attached>
     82        <camerapositions>
     83      <CameraPosition position="0,0,1500" lookat="0,0,0" absolute=true/>
     84    </camerapositions>
     85    </TowerDefenseCenterpoint>
    10886
    10987  </Scene>
Note: See TracChangeset for help on using the changeset viewer.