Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9133


Ignore:
Timestamp:
Apr 29, 2012, 10:06:09 AM (12 years ago)
Author:
mentzerf
Message:

Fixed oxw file:

  • Camera is now focus on 0,0,0 and locked on a crate.mesh, not on the playfield.mesh. This allows us to insert the playfield.mesh after the player has pressed the mouse button. Later the crate can me made invisible

+ Playfield.mesh is inserted as StaticEntity

  • Commented out the waypoints for now
  • TowerDefense is not using SpawnPoint any more, as it is not needed
Location:
code/branches/newlevel2012
Files:
2 edited

Legend:

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

    r9129 r9133  
    3030  <Pawn>
    3131    <camerapositions>
    32       <CameraPosition position="200,0,350" absolute=true />
     32      <CameraPosition position="0,0,20" absolute=true />
    3333    </camerapositions>
    3434  </Pawn>
     
    4141  <Pawn camerapositiontemplate=playfieldcameras>
    4242    <attached>
    43       <Model position="0,0,0" orientation="1,1,1,1" mesh="Playfield_ME.mesh" scale3D="10,10,10" /> <!-- crate.mesh -->
     43      <Model position="0,0,0" orientation="1,1,1,1" mesh="crate.mesh" scale3D="1,1,1" /> <!-- the camera is attached to this -->
    4444    </attached>
    4545  </Pawn>
     
    6565    <!--SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /-->
    6666   
    67     <SpawnPoint team=0 position="200,0,0" lookat="0,0,0" spawnclass=Pawn pawndesign=playfield />
     67        <!-- Spawns the camera, attached to a crate -->
     68    <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=Pawn pawndesign=playfield />
    6869   
    6970        <!--SpawnPoint team=1 position="0,0,30" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff  /-->
     
    7172       
    7273       
    73          <SpaceShip position="-10,0,20" lookat="0,0,0">
     74         <!--SpaceShip position="-10,0,20" lookat="0,0,0">
    7475      <templates>
    7576        <Template link=spaceshipassff />
     
    8586        </WaypointController>
    8687      </controller>
    87     </SpaceShip>
     88    </SpaceShip-->
    8889   
    8990
    90     <!--StaticEntity position="0,0,0" direction="0,0,0" collistionType=static mass=100000>
     91    <StaticEntity position="0,0,0" direction="1,0,0" collistionType=static mass=100000>
    9192        <attached>
    92             <Model position="0,0,0" mesh="Playfield_ME.mesh" scale3D="10,10,10" />
     93            <Model position="0,0,0" orientation="1,1,1,1" mesh="Playfield_ME.mesh" scale3D="1,1,1" />
    9394        </attached>
    94     </StaticEntity-->
     95    </StaticEntity>
    9596
    9697  </Scene>
  • code/branches/newlevel2012/src/modules/towerdefense/TowerDefense.cc

    r9129 r9133  
    103103        void TowerDefense::spawnEnemy()
    104104        {
    105                 SpawnPoint *sp = *this->spawnpoints_.begin();
     105                //SpawnPoint *sp = *this->spawnpoints_.begin();
    106106
    107                 Pawn* p = sp->spawn();
     107                //Pawn* p = sp->spawn();
    108108        }
    109109
Note: See TracChangeset for help on using the changeset viewer.