TETRIS: use updated TextRenderer

This commit is contained in:
2020-12-18 15:14:08 +01:00
parent 7267cb7b9a
commit 67a56d31de
8 changed files with 71 additions and 30 deletions
+5 -1
View File
@@ -20,7 +20,7 @@ std::vector< std::shared_ptr< SDLPP::RenderObject > > line_coliders{};
void updateScore( std::shared_ptr< SDLPP::Font > font ) {
g_score_texture->setText( *font, std::to_string( g_score ), colors["text"],
colors["text_out"], 5 );
colors["text_out"], 0.1 );
}
void doInput() {
@@ -138,6 +138,10 @@ int main() {
updateColors();
g_update_colors = false;
}
if ( g_update_size ) {
updateSize();
g_update_size = false;
}
renderer->clearRenderer();
for ( auto &x : g_active_scenes ) {