summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-05-22 14:29:32 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-05-22 15:02:50 +0200
commita95552903eaaeba18e840d39e7a4ca6d3bdfa445 (patch)
tree64c953b2cc1d43f6eb9ee83125c29cce4bb87f6f /src/game.cpp
parent8578eca2b996bbcf62399202757325d4c6038f29 (diff)
Next piece is random nowHEADmaster
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 7d42f57..10231e7 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -7,7 +7,7 @@ GameState::GameState(Renderer* renderer, float scale_):
timeCounterAdvance_ {1000},
timeLevelUp_ {20000},
renderer_ {renderer},
- piece_ {Piece::PieceType::LINE, 4},
+ piece_ {4},
blockTexture_ {renderer_->renderer()} {
renderer->setScale(scale_, scale_);
@@ -140,7 +140,7 @@ void GameState::newPiece(){
// Clear the filled lines
clearLines();
- piece_.restartTo( Piece::PieceType::LINE, 4);
+ piece_ = Piece( 4 );
piece_.initIterator();
while ( p = piece_.nextAbsBlockPos() ){
// Set the piece values as set