TETRIS: Fix score not updating
This commit is contained in:
parent
79557e9edc
commit
ba1e2a2dc5
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user