Changeset 9090 for code/branches/pCuts
- Timestamp:
- Apr 16, 2012, 10:29:49 PM (13 years ago)
- Location:
- code/branches/pCuts
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pCuts/data/levels/tetris.oxw
r9089 r9090 9 9 include("HUDTemplates3.oxo") 10 10 include("stats.oxo") 11 include("pongHUD.oxo") 11 12 include("templates/lodInformation.oxt") 12 13 ?> -
code/branches/pCuts/src/modules/pong/Pong.cc
r9081 r9090 76 76 // Set the type of Bots for this particular Gametype. 77 77 this->botclass_ = Class(PongBot); 78 79 78 this->scoreLimit_ = 10; 79 this->setConfigValues(); 80 80 } 81 81 -
code/branches/pCuts/src/modules/pong/Pong.h
r9016 r9090 83 83 void setConfigValues(); //!< Makes scoreLimit configurable. 84 84 85 85 PlayerInfo* getLeftPlayer() const; //!< Get the left player. 86 86 PlayerInfo* getRightPlayer() const; //!< Get the right player. 87 87 … … 95 95 WeakPtr<PongBall> ball_; //!< The Pong ball. 96 96 WeakPtr<PongBat> bat_[2]; //!< The two bats. 97 97 Timer starttimer_; //!< A timer to delay the start of the game. 98 98 int scoreLimit_; //!< If a player scored that much points, the game is ended. 99 99 }; -
code/branches/pCuts/src/modules/pong/PongScore.cc
r9016 r9090 61 61 this->bShowRightPlayer_ = false; 62 62 this->player1_ = NULL; 63 63 this->player2_ = NULL; 64 64 } 65 65 -
code/branches/pCuts/src/modules/tetris/CMakeLists.txt
r9082 r9090 4 4 TetrisStone.cc 5 5 TetrisBrick.cc 6 TetrisScore.cc 6 7 ) 7 8 -
code/branches/pCuts/src/modules/tetris/Tetris.cc
r9089 r9090 31 31 *BUG e) multiple rows are not cleared in one round 32 32 * 33 * TASK a) give points for winning33 * 34 34 *TASK b) write a hud (show points gained; new brick) 35 35 *TASK c) end the game in a nicer way 36 36 *TASK d) save the highscore 37 37 *TASK e) eye candy 38 *TASK f) increasing speed39 38 */ 40 39 … … 409 408 { 410 409 clearRow(row); 411 this->playerScored(this->player_); 410 this->playerScored(this->player_);// add points 411 //increase the stone's speed 412 this->center_->setStoneSpeed(this->center_->getStoneSpeed()+1.0f); 412 413 } 413 414 } -
code/branches/pCuts/src/modules/tetris/TetrisPrereqs.h
r9082 r9090 69 69 class TetrisStone; 70 70 class TetrisBrick; 71 class TetrisScore; 71 72 } 72 73
Note: See TracChangeset
for help on using the changeset viewer.