- Timestamp:
- May 4, 2012, 4:19:17 PM (13 years ago)
- Location:
- code/branches/newlevel2012
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/newlevel2012/data/levels/towerDefense.oxw
r9154 r9161 19 19 include("templates/spaceshipAssff.oxt") 20 20 include("templates/spaceshipPirate.oxt") 21 include("templates/tower.oxt") 21 22 ?> 22 23 … … 41 42 42 43 <!-- Template for a tower --> 43 < Template name=towertemplate>44 <!--Template name=towertemplate> 44 45 <Tower> 45 46 <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" /> 47 48 </attached> 48 49 </Tower> 49 </Template >50 </Template--> 50 51 51 52 <Level gametype = "TowerDefense"> … … 87 88 </SpaceShip> 88 89 89 90 90 <!-- PlayField --> 91 91 <TowerDefenseCenterpoint … … 94 94 height=16 95 95 tileScale=100 96 towerTemplate=tower template96 towerTemplate=tower 97 97 position="0,0,0" 98 98 direction="0,0,0" -
code/branches/newlevel2012/src/modules/towerdefense/Tower.cc
r9143 r9161 52 52 void Tower::moveFrontBack(const Vector2& value) 53 53 { 54 orxout() << "frontBack.x: " << value.x << endl;54 //orxout() << "frontBack.x: " << value.x << endl; 55 55 } 56 56 … … 63 63 void Tower::moveRightLeft(const Vector2& value) 64 64 { 65 orxout() << "rightLeft.x: " << value.x << endl;65 //orxout() << "rightLeft.x: " << value.x << endl; 66 66 /* 67 67 if(!this->delay_) -
code/branches/newlevel2012/src/orxonox/controllers/WaypointController.cc
r9154 r9161 65 65 return; 66 66 67 // orxout() << "(" << this->waypoints_.size() << ") entity: " << this->getControllableEntity() << endl;68 67 69 68 if (this->waypoints_.size() == 0 || !this->getControllableEntity()) 70 69 return; 71 70 72 // printf("3");73 71 74 72 if (this->waypoints_[this->currentWaypoint_]->getWorldPosition().squaredDistance(this->getControllableEntity()->getPosition()) <= this->squaredaccuracy_) 75 73 this->currentWaypoint_ = (this->currentWaypoint_ + 1) % this->waypoints_.size(); 76 74 77 // printf("4");78 75 79 76 this->moveToPosition(this->waypoints_[this->currentWaypoint_]->getWorldPosition());
Note: See TracChangeset
for help on using the changeset viewer.