- Timestamp:
- May 31, 2005, 1:14:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r4412 r4413 236 236 accel = accel -(direction*acceleration); 237 237 if( this->bLeft && TrackManager::getInstance()->getWidth() > -this->getRelCoor().z*2) 238 accel = accel +(orthDirection*acceleration);238 accel = accel - (orthDirection*acceleration); 239 239 if( this->bRight && TrackManager::getInstance()->getWidth() > this->getRelCoor().z*2) 240 accel = accel -(orthDirection*acceleration);240 accel = accel + (orthDirection*acceleration); 241 241 if( this->bAscend ) 242 242 if( this->bDescend) {/* FIXME */} /* \todo up and down player movement */ … … 284 284 void Player::process(const Event &event) 285 285 { 286 PRINTF(0)("Player got command!!!!!!!!!!!!!!!!!\n"); 286 287 if( event.type == KeyMapper::PEV_UP) 287 288 { … … 294 295 else if( event.type == KeyMapper::PEV_RIGHT) 295 296 { 297 this->bRight= event.bPressed; 298 } 299 else if( event.type == KeyMapper::PEV_LEFT) 300 { 296 301 this->bLeft = event.bPressed; 297 302 } 298 else if( event.type == KeyMapper::PEV_LEFT)299 {300 this->bRight = event.bPressed;301 }302 303 else if( event.type == KeyMapper::PEV_FIRE1) 303 304 {
Note: See TracChangeset
for help on using the changeset viewer.