Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9161


Ignore:
Timestamp:
May 4, 2012, 4:19:17 PM (13 years ago)
Author:
weigeltm
Message:

updated tower template and more stuff

Location:
code/branches/newlevel2012
Files:
2 added
3 edited

Legend:

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

    r9154 r9161  
    1919  include("templates/spaceshipAssff.oxt")
    2020  include("templates/spaceshipPirate.oxt")
     21  include("templates/tower.oxt")
    2122?>
    2223
     
    4142
    4243<!-- Template for a tower -->
    43 <Template name=towertemplate>
     44<!--Template name=towertemplate>
    4445  <Tower>
    4546    <attached>
    46       <Model position="0,0,0" scale=2.5 mesh="Tower_ME.mesh" />
     47      <Model position="0,0,0" scale=0.25 mesh="Tower_ME.mesh" />
    4748    </attached>
    4849  </Tower>
    49 </Template>
     50</Template-->
    5051
    5152<Level gametype = "TowerDefense">
     
    8788    </SpaceShip>
    8889   
    89 
    9090        <!-- PlayField -->
    9191        <TowerDefenseCenterpoint
     
    9494        height=16
    9595        tileScale=100
    96         towerTemplate=towertemplate
     96        towerTemplate=tower
    9797        position="0,0,0"
    9898        direction="0,0,0"
  • code/branches/newlevel2012/src/modules/towerdefense/Tower.cc

    r9143 r9161  
    5252    void Tower::moveFrontBack(const Vector2& value)
    5353    {
    54         orxout() << "frontBack.x: " << value.x << endl;
     54        //orxout() << "frontBack.x: " << value.x << endl;
    5555    }
    5656       
     
    6363    void Tower::moveRightLeft(const Vector2& value)
    6464    {
    65                 orxout() << "rightLeft.x: " << value.x << endl;
     65                //orxout() << "rightLeft.x: " << value.x << endl;
    6666                /*
    6767        if(!this->delay_)
  • code/branches/newlevel2012/src/orxonox/controllers/WaypointController.cc

    r9154 r9161  
    6565            return;
    6666
    67 //              orxout() << "(" << this->waypoints_.size() << ") entity: " << this->getControllableEntity() << endl;
    6867
    6968        if (this->waypoints_.size() == 0 || !this->getControllableEntity())
    7069            return;
    7170
    72 //              printf("3");
    7371
    7472        if (this->waypoints_[this->currentWaypoint_]->getWorldPosition().squaredDistance(this->getControllableEntity()->getPosition()) <= this->squaredaccuracy_)
    7573            this->currentWaypoint_ = (this->currentWaypoint_ + 1) % this->waypoints_.size();
    7674
    77 //              printf("4");
    7875
    7976        this->moveToPosition(this->waypoints_[this->currentWaypoint_]->getWorldPosition());
Note: See TracChangeset for help on using the changeset viewer.