- Timestamp:
- May 18, 2017, 1:24:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOB.cc
r11416 r11418 67 67 points_=0; 68 68 timeLeft_=400.0; 69 69 done_ = true; 70 70 lvl_ = 1; 71 71 … … 144 144 player->startControl(figure_); //Give the control of the instance player to the real person 145 145 players_[player].state_ = PlayerState::Alive; 146 done_ = false; 146 147 } 147 148 } … … 166 167 if (this->figure_ != nullptr && figure_->lvlEnded_) { 167 168 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"; 169 170 info_ =a.str(); 170 171 … … 179 180 this->figure_->dead_ = true; 180 181 //The time on the HUD 181 timeLeft_-=dt*2.5; 182 if (!done_) 183 timeLeft_-=dt*2.5; 182 184 } 183 185
Note: See TracChangeset
for help on using the changeset viewer.