- Timestamp:
- Feb 1, 2015, 3:56:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/surfaceraceHS14/src/modules/dodgerace/DodgeRaceShip.cc
r10232 r10236 101 101 if(pos.y != 0) 102 102 { 103 103 pos.y = 0; 104 104 } 105 105 … … 126 126 void DodgeRaceShip::moveFrontBack(const Vector2& value) 127 127 { 128 129 128 //lastTimeFront = 0; 129 //desiredVelocity.y = value.y * speed * 42; 130 130 131 131 } … … 133 133 void DodgeRaceShip::moveRightLeft(const Vector2& value) 134 134 { 135 136 135 lastTimeLeft = 0; 136 desiredVelocity.x = value.x * speed; 137 137 } 138 138 void DodgeRaceShip::boost(bool bBoost) … … 144 144 { 145 145 146 147 146 removeHealth(100); 147 this->death(); 148 148 return false; 149 149 } … … 155 155 for (ObjectList<DodgeRace>::iterator it = ObjectList<DodgeRace>::begin(); it != ObjectList<DodgeRace>::end(); ++it) 156 156 { 157 157 game = *it; 158 158 } 159 159 }
Note: See TracChangeset
for help on using the changeset viewer.