TETRIS: Fix score not updating
This commit is contained in:
@@ -20,6 +20,7 @@ std::vector< std::shared_ptr< SDLPP::RenderObject > > line_coliders{};
|
|||||||
|
|
||||||
void updateScore() {
|
void updateScore() {
|
||||||
g_score_texture->changeText( std::to_string( g_score ) );
|
g_score_texture->changeText( std::to_string( g_score ) );
|
||||||
|
g_score_texture->updateSizeAndPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
void doInput() {
|
void doInput() {
|
||||||
|
|||||||
Reference in New Issue
Block a user