Changeset 12280 for code/branches/OrxoBlox_FS19/src/modules/OrxoBlox
- Timestamp:
- Apr 4, 2019, 4:26:09 PM (6 years ago)
- Location:
- code/branches/OrxoBlox_FS19/src/modules/OrxoBlox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
r12278 r12280 67 67 this->ball_ = nullptr; 68 68 this->bat_[0] = nullptr; 69 this->futureWall_ = nullptr; 69 70 70 71 //this->setHUDTemplate("pongHUD"); … … 280 281 /*void OrxoBlox::createStonewall(void){ 281 282 this->futureWall_ = new OrxoBolxWall(this->center_->getContext()); 282 283 283 } 284 285 /*void Tetris::createBrick(void) //TODO: random rotation offset between 0 and 3 (times 90°) 286 { 287 // create new futureBrick_ 288 this->futureBrick_ = new TetrisBrick(this->center_->getContext()); 289 290 291 // Apply the stone template to the stone. 292 this->futureBrick_->addTemplate(this->center_->getBrickTemplate()); 293 294 // Attach the brick to the Centerpoint and set the position of the brick to be at the left side. 295 this->center_->attach(this->futureBrick_); 296 float xPos = (this->center_->getWidth()*1.6f + ((this->center_->getWidth() % 2)*2-1)/2.0f)*this->center_->getStoneSize(); 297 float yPos = (this->center_->getHeight()-5.1f)*this->center_->getStoneSize(); 298 299 this->futureBrick_->setPosition(xPos, yPos, 0.0f); 300 this->futureBrick_->setGame(this); 301 } 284 302 285 303 }*/ -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.h
r12268 r12280 96 96 Timer starttimer_; //!< A timer to delay the start of the game. 97 97 int scoreLimit_; //!< If a player scored that much points, the game is ended. 98 WeakPtr<OrxoBloxWall> futureWall_; 98 99 }; 99 100 }
Note: See TracChangeset
for help on using the changeset viewer.