Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9129


Ignore:
Timestamp:
Apr 27, 2012, 3:59:19 PM (13 years ago)
Author:
mentzerf
Message:

added spaceship that follows four waypoints on the playfield

Location:
code/branches/newlevel2012
Files:
2 edited

Legend:

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

    r9124 r9129  
    3030  <Pawn>
    3131    <camerapositions>
    32       <CameraPosition position="200,0,250" absolute=true />
     32      <CameraPosition position="200,0,350" absolute=true />
    3333    </camerapositions>
    3434  </Pawn>
     
    7070       
    7171       
     72       
     73         <SpaceShip position="-10,0,20" lookat="0,0,0">
     74      <templates>
     75        <Template link=spaceshipassff />
     76      </templates>
     77      <controller>
     78        <WaypointController accuracy=3>
     79          <waypoints>
     80            <Model mesh="cube.mesh" scale=1 position="110,90,20" />
     81            <Model mesh="cube.mesh" scale=2 position="290,90,20" />
     82            <Model mesh="cube.mesh" scale=3 position="290,-90,20" />
     83            <Model mesh="cube.mesh" scale=4 position="110,-90,20" />
     84          </waypoints>
     85        </WaypointController>
     86      </controller>
     87    </SpaceShip>
     88   
    7289
    7390    <!--StaticEntity position="0,0,0" direction="0,0,0" collistionType=static mass=100000>
  • code/branches/newlevel2012/src/modules/towerdefense/TowerDefense.cc

    r9124 r9129  
    5858#include "worldentities/SpawnPoint.h"
    5959#include "worldentities/pawns/Pawn.h"
     60#include "worldentities/pawns/SpaceShip.h"
    6061
    6162namespace orxonox
     
    9394        static bool test = false;
    9495        if (!test)
     96        {
    9597                        orxout()<< "First tick." <<endl;
    9698            spawnEnemy();
     
    101103        void TowerDefense::spawnEnemy()
    102104        {
    103         //      SpawnPoint *sp = *this->spawnpoints_.begin();
    104                 //Pawn* p = sp->spawn();
     105                SpawnPoint *sp = *this->spawnpoints_.begin();
     106
     107                Pawn* p = sp->spawn();
    105108        }
    106109
Note: See TracChangeset for help on using the changeset viewer.