From f36890e1240da5edf279f5a8e77960c048852506 Mon Sep 17 00:00:00 2001 From: zvon Date: Mon, 24 Aug 2020 20:46:10 +0200 Subject: [PATCH] Start pieces from higher up --- tetris.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetris.cpp b/tetris.cpp index 1cc9919..1097041 100644 --- a/tetris.cpp +++ b/tetris.cpp @@ -1006,7 +1006,7 @@ int main() { if ( !cur_object && checked_line ) { std::lock_guard< std::mutex > guard( movement_mutex ); cur_object = next_object; - cur_object->setPos( 0.5, TOP_BORDER ); + cur_object->setPos( 0.5, TOP_BORDER - BLOCK_SIZE ); auto rand_index = std::rand() / ( ( RAND_MAX + 1u ) / 7 ); int retries = 0; while ( bag[rand_index] < 4 ) {