Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 18, 2017, 1:24:43 PM (7 years ago)
Author:
jkindle
Message:

IMPROVED JUMP ALGORITHM OH GHAD YEES JEES

File:
1 edited

Legend:

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

    r11416 r11418  
    6767        points_=0;
    6868        timeLeft_=400.0;
    69        
     69        done_ = true;
    7070        lvl_ = 1;
    7171
     
    144144            player->startControl(figure_); //Give the control of the instance player to the real person
    145145            players_[player].state_ = PlayerState::Alive;
     146            done_ = false;
    146147        }
    147148    }
     
    166167        if (this->figure_ != nullptr && figure_->lvlEnded_) {
    167168            std::stringstream a;
    168             a << "Nice! " << getPoints() << " Points. Press <Space> to restart";
     169            a << "Nice! " << getPoints() << " Points in " << (400-getTimeLeft())/2 <<"s.\n\nPress <Space> to restart";
    169170            info_ =a.str();
    170171
     
    179180            this->figure_->dead_ = true;
    180181        //The time on the HUD
    181         timeLeft_-=dt*2.5;
     182        if (!done_)
     183            timeLeft_-=dt*2.5;
    182184    }
    183185
Note: See TracChangeset for help on using the changeset viewer.