Transició a surface acabada. Ja compila

This commit is contained in:
2025-03-04 12:30:19 +01:00
parent c4033e3663
commit 05f91b2a94
31 changed files with 376 additions and 1078 deletions

View File

@@ -59,7 +59,7 @@ void Resource::load()
{
calculateTotal();
Screen::get()->show();
Screen::get()->setBorderColor(Color(0, 0, 0));
Screen::get()->setBorderColor(1);
std::cout << "** LOADING RESOURCES" << std::endl;
loadSounds();
loadMusics();
@@ -405,7 +405,7 @@ void Resource::renderProgress()
constexpr int BAR_HEIGHT = 10;
const int bar_position = options.game.height - BAR_HEIGHT - Y_PADDING;
Screen::get()->start();
Screen::get()->clean();
Screen::get()->clear();
SDL_SetRenderDrawColor(Screen::get()->getRenderer(), 255, 255, 255, 255);
const int wired_bar_width = options.game.width - (X_PADDING * 2);