- Timestamp:
- Nov 4, 2013, 3:58:01 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/src/modules/invader/InvaderShip.cc
r9725 r9744 50 50 51 51 speed = 500; 52 isFireing = false; 52 53 damping = 10; 54 53 55 } 54 56 55 57 void InvaderShip::tick(float dt) 56 58 { 57 // If the bat is controlled (but not over the network). 59 // if (camera == NULL) 60 // camera = this->getCamera(); 61 // if (camera != NULL) 62 // camera->setPosition(Vector3(0, 0, 0) + this->getWorldPosition()); 63 58 64 if (this->hasLocalController()) 59 65 { … … 69 75 ControllableEntity::fire(0); 70 76 77 78 // camera->setOrientation(Vector3::UNIT_X, Degree(0)); 79 80 71 81 SUPER(InvaderShip, tick, dt); 72 82 } … … 74 84 void InvaderShip::moveFrontBack(const Vector2& value) 75 85 { 76 orxout(internal_error) << "move backfront" << value.x << value.y << endl;86 // orxout(internal_error) << "move backfront" << value.x << value.y << endl; 77 87 //velocity.y = value.y * speed * 10; 78 88 lastTimeFront = 0; … … 82 92 void InvaderShip::moveRightLeft(const Vector2& value) 83 93 { 84 orxout(internal_error) << "right left front" << value.x << value.y << endl;94 // orxout(internal_error) << "right left front" << value.x << value.y << endl; 85 95 lastTimeLeft = 0; 86 96 desiredVelocity.x = value.x * speed;
Note: See TracChangeset
for help on using the changeset viewer.