Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 29, 2012, 12:40:11 PM (13 years ago)
Author:
mentzerf
Message:

Fixed the oxw file (some more):

  • the playfield now lies in the x,y layer, the camera is at z = 20, as it should be
  • the towers are now longer to be able to see if they fit the playfield marks (they do!)
  • moved the playfield, so that towers x,y can easily be mapped to the playfield coordinates. e.g. adding a tower at 0,4 results in -8,-4, the corners of the playfield are at 8,8 / -8,-8 / -8,8 / 8,-8
  • the centerpoint is marked with a cylinder
File:
1 edited

Legend:

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

    r9137 r9138  
    3030  <Pawn>
    3131    <camerapositions>
    32       <CameraPosition position="0,0,20" absolute=true />
     32      <CameraPosition position="0,0,20"/>
    3333    </camerapositions>
    3434  </Pawn>
     
    3939  <Pawn camerapositiontemplate=playfieldcameras>
    4040    <attached>
    41       <Model position="0,0,0" orientation="1,1,1,1" mesh="crate.mesh" scale3D="1,1,1" /> <!-- the camera is attached to this -->
     41      <Model position="0,0,0" mesh="cylinder.mesh" scale3D="1,1,1" /> <!-- the camera is attached to this -->
    4242    </attached>
    4343  </Pawn>
    4444</Template>
     45
    4546
    4647<!-- Template for a tower -->
     
    4849  <Tower>
    4950    <attached>
    50       <Model position="15,0,0" mesh="cube_green.mesh" scale=1 />
     51      <Model position="0,0,0" scale3D="0.5,0.5,2" mesh="cube_green.mesh" />
    5152    </attached>
    5253  </Tower>
     
    6667
    6768    <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"/>
    68     <!--SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /-->
     69   
    6970   
    7071        <!-- Spawns the camera, attached to a crate -->
    71     <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=Pawn pawndesign=playfield />
    72    
     72        <SpawnPoint team=0 position="0,0,0" spawnclass=Pawn pawndesign=playfield />
     73
     74       
    7375        <!--SpawnPoint team=1 position="0,0,10" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff  /-->
    74        
     76        <!--SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /-->
    7577       
    7678       
     
    99101        towerTemplate=towertemplate
    100102        position="0,0,0"
    101         direction="1,0,0"
     103        direction="0,0,0"
    102104        collistionType=static
    103105        mass=100000>
    104         <attached>
    105             <Model position="0,0,0" orientation="1,1,1,1" mesh="Playfield_ME.mesh" scale3D="1,1,1" />
     106                 
     107                 <attached>
     108               
     109                        <Model position="-0.5,-0.5,0" mesh="Playfield_ME.mesh" scale=0.8 />
     110                       
     111                        <!--Model position="-8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
     112                        <!--Model position="-8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
     113                        <!--Model position="8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
     114                        <!--Model position="8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
     115                       
     116                        <!--Model position="0,0,50" direction="0,0,0"  mesh="rocket.mesh"  scale3D="0.3,0.3,0.3" /-->
     117                       
    106118        </attached>
    107119    </TowerDefenseCenterpoint>
Note: See TracChangeset for help on using the changeset viewer.