[Orxonox-commit 5091] r9756 - code/trunk/src/modules/tetris
jo at orxonox.net
jo at orxonox.net
Tue Nov 5 23:12:02 CET 2013
Author: jo
Date: 2013-11-05 23:12:02 +0100 (Tue, 05 Nov 2013)
New Revision: 9756
Modified:
code/trunk/src/modules/tetris/TetrisBrick.cc
Log:
Disabling the single tetris brick. Now all tetris bricks consists of four stones.
Modified: code/trunk/src/modules/tetris/TetrisBrick.cc
===================================================================
--- code/trunk/src/modules/tetris/TetrisBrick.cc 2013-11-05 21:36:31 UTC (rev 9755)
+++ code/trunk/src/modules/tetris/TetrisBrick.cc 2013-11-05 22:12:02 UTC (rev 9756)
@@ -53,7 +53,7 @@
TetrisBrick::TetrisBrick(Context* context): ControllableEntity(context)
{
RegisterObject(TetrisBrick);
- this->shapeIndex_ = static_cast<unsigned int>(rnd(7.0f)); //<! random number between 0 and 7
+ this->shapeIndex_ = 1 + static_cast<unsigned int>(rnd(6.0f)); //<! random number between 0 and 7
this->stonesPerBrick_ = 4; //<! most tetris bricks is formed by 4 stones
this->delay_ = false;
this->delayTimer_.setTimer(0.2f, false, createExecutor(createFunctor(&TetrisBrick::enableMovement, this)));
More information about the Orxonox-commit
mailing list