Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2017, 3:18:27 PM (7 years ago)
Author:
jkindle
Message:

Added the animation for the level end (walk into castle), Coins for the blocks, Castleblocks and Flagblocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBMushroom.cc

    r11412 r11416  
    2121 *
    2222 *   Author:
    23  *      Fabien Vultier
     23 *      Julien Kindle
    2424 *   Co-authors:
    25  *      ...
     25 *     
    2626 *
    2727 */
     
    2929/**
    3030    @file SOBMushroom.cc
    31     @brief All items in this minigame inherit from this class. Items can move around like platforms and enemies.
     31    @brief This is the class for the powerup mushroom
    3232*/
    3333
     
    7777
    7878
    79 if (changeAllowed_ && otherObject->getMass() != -1) {
     79        if (changeAllowed_ && otherObject->getMass() != -1) {
    8080                goesRight_ = !goesRight_;
    8181                changeAllowed_ = false;
    82 }
     82        }
    8383
    84 orxout() << "Watshc bum baem" << otherObject->getMass()<< endl;
    85 return true;
     84        return true;
    8685    }
    8786
     
    9291    }
    9392
    94     void SOBMushroom::touchFigure()
    95     {
    9693
    97     }
    9894
    9995    void SOBMushroom::tick(float dt)
     
    10197        SUPER(SOBMushroom, tick, dt);
    10298
     99        //Exactly like the Gumba class, if collided, turn direction of Mushroom and wait 200ms so we don't get two collisions from the same wall
    103100        if (!changeAllowed_) {
    104101            changedOn_+= dt;
    105             if (changedOn_> 200) {
     102            if (changedOn_> 0.200) {
    106103                changeAllowed_ = true;
    107104                changedOn_ = 0.0;
Note: See TracChangeset for help on using the changeset viewer.