Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11759


Ignore:
Timestamp:
Feb 17, 2018, 11:43:12 PM (7 years ago)
Author:
landauf
Message:

[FlappyOrx_HS17] initialize all variables

Location:
code/branches/Presentation_HS17_merge/src/modules/flappyorx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrx.cc

    r11757 r11759  
    6666        firstGame = true;                   //needed for the HUD
    6767
    68         tubeDistance=200.0f;                  //distance between tubes
    69         tubeOffsetX=500.0f;                    //tube offset (so that we can't see them spawn)
     68        speedBase = 0;
     69        speedIncrease = 0;
     70        tubeDistanceBase = 0;
     71        tubeDistanceIncrease = 0;
     72        tubeDistance = 200.0f;                  //distance between tubes
     73        tubeOffsetX = 500.0f;                    //tube offset (so that we can't see them spawn)
    7074
    7175        circlesUsed=0;
  • code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrxHUDinfo.cc

    r11758 r11759  
    4646        this->bShowPoints_ = false;
    4747        this->bShowGameOver_ = false;
     48        this->messageID = 0;
    4849    }
    4950
  • code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrxShip.cc

    r11755 r11759  
    4949        RegisterObject(FlappyOrxShip);
    5050
    51        
     51        isFlapping = false;
    5252        isDead = true;
    53         deathTime = 0;
    54 
     53        speed = 0;
     54        upwardThrust = 0;
     55        gravity = 0;
    5556        particleLifespan = 0.1;
    5657        particleAge = 0;
     58        deathTime = 0;
    5759
    5860        particlespawner_ = NULL;
Note: See TracChangeset for help on using the changeset viewer.