smooth scroll left / right
This commit is contained in:
@ -64,7 +64,9 @@ void Game::reset(int startLevel_) {
|
||||
_pausedTime = 0;
|
||||
_lastPauseStart = 0;
|
||||
hold = Piece{}; hold.type = PIECE_COUNT; canHold=true;
|
||||
refillBag(); spawn();
|
||||
refillBag();
|
||||
pieceSequence = 0;
|
||||
spawn();
|
||||
}
|
||||
|
||||
double Game::elapsed() const {
|
||||
@ -166,6 +168,7 @@ void Game::spawn() {
|
||||
PieceType nextType = bag.back();
|
||||
int nextSpawnY = (nextType == I) ? -2 : -1;
|
||||
nextPiece = Piece{ nextType, 0, 3, nextSpawnY };
|
||||
++pieceSequence;
|
||||
}
|
||||
|
||||
bool Game::cellFilled(const Piece& p, int cx, int cy) {
|
||||
|
||||
Reference in New Issue
Block a user