- Timestamp:
- May 16, 2019, 11:00:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxShip.cc
r12337 r12367 34 34 35 35 #include "OrxoBloxShip.h" 36 #include "OrxoBlox.h" 36 37 #include "core/CoreIncludes.h" 37 38 … … 47 48 this->width = 120; 48 49 this->height = 100; 49 orxout() << "S pawned" << std::endl;50 orxout() << "SPACESHIP Spawned" << std::endl; 50 51 51 52 //timer.setTimer(3.5f, true, createExecutor(createFunctor(&OrxoBloxShip::showorientation, this))); … … 71 72 Vector3 pos = this->getPosition(); 72 73 73 //ensure that the ship stays in playing field74 if(pos.x > width/2) pos.x = -width/2;75 if(pos.x < -width/2) pos.x = width/2;76 77 //2D movement, position should always = 0 on y-axis78 if(pos.y!=0) pos.y = 0;79 this->setPosition(pos);80 if(pos.z!=50) pos.z = 50;81 74 } 82 75 … … 97 90 } 98 91 } 92
Note: See TracChangeset
for help on using the changeset viewer.