Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1900 in orxonox.OLD for orxonox/trunk/core/input_output.cc


Ignore:
Timestamp:
May 23, 2004, 11:21:38 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: hardware independant game speed, more shoots, more speed - see mail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/core/input_output.cc

    r1896 r1900  
    4040
    4141
     42void InputOutput::setPlayerStep(float step)
     43{
     44  cout << "setting player step to: " << step << endl;
     45  this->step = step;
     46}
     47
    4248
    4349void InputOutput::goUp()
    4450{
    4551  //cout << "InoutOutput::goUp" << endl;
    46   (*player).goY(STEP_FRONT);
     52  (*player).goY(step);
    4753}
    4854
    4955void InputOutput::goDown()
    5056{
    51   (*player).goY(-STEP_FRONT);
     57  (*player).goY(-step);
    5258}
    5359
    5460void InputOutput::goLeft()
    5561{
    56   (*player).goX(-STEP_SIDE);
     62  (*player).goX(-step);
    5763
    5864}
     
    6167{
    6268
    63   (*player).goX(STEP_SIDE);
     69  (*player).goX(step);
    6470}
    6571
Note: See TracChangeset for help on using the changeset viewer.