eliminat molt de ruido de la consola de log

This commit is contained in:
2026-04-14 13:04:24 +02:00
parent f5da35bfb2
commit cf7ea6cc9c
27 changed files with 144 additions and 383 deletions

View File

@@ -28,7 +28,6 @@
#include "text.hpp" // Para Text
#include "texture.hpp" // Para Texture
#include "tiled_bg.hpp" // Para TiledBG, TiledBGMode
#include "ui/logger.hpp" // Para section
#include "ui/service_menu.hpp" // Para ServiceMenu
#include "utils.hpp" // Para Zone
@@ -49,8 +48,6 @@ Credits::Credits()
initVars();
startCredits();
Logger::section("CREDITS");
// Inicializa el timer de delta time para el primer frame del callback
last_time_ = SDL_GetTicks();
}

View File

@@ -41,7 +41,6 @@
#include "smart_sprite.hpp" // Para SmartSprite
#include "stage.hpp" // Para StageManager, StageData
#include "tabe.hpp" // Para Tabe
#include "ui/logger.hpp" // Para section
#include "text.hpp" // Para Text
#include "texture.hpp" // Para Texture
#include "ui/service_menu.hpp" // Para ServiceMenu
@@ -133,8 +132,6 @@ Game::Game(Player::Id player_id, int current_stage, bool demo_enabled)
setState(State::PLAYING);
#endif
Logger::section(demo_.enabled ? "GAME (DEMO)" : "GAME");
// Inicializa el timer de delta time para el primer frame del callback
last_time_ = SDL_GetTicks();
}

View File

@@ -23,7 +23,6 @@
#include "resource.hpp" // Para Resource
#include "screen.hpp" // Para Screen
#include "section.hpp" // Para Name, name, Options, options
#include "ui/logger.hpp" // Para section
#include "sprite.hpp" // Para Sprite
#include "text.hpp" // Para Text, Text::SHADOW, Text::COLOR
#include "texture.hpp" // Para Texture
@@ -47,8 +46,6 @@ HiScoreTable::HiScoreTable()
iniEntryColors();
createSprites();
Logger::section("HI-SCORE TABLE");
// Inicializa el timer de delta time y arranca la música
last_time_ = SDL_GetTicks();
Audio::get()->playMusic("title.ogg");

View File

@@ -23,7 +23,6 @@
#include "sprite.hpp" // Para Sprite
#include "text.hpp" // Para Text, Text::CENTER, Text::COLOR, Text::SHADOW
#include "tiled_bg.hpp" // Para TiledBG, TiledBGMode
#include "ui/logger.hpp" // Para section
#include "utils.hpp"
// Constructor
@@ -59,8 +58,6 @@ Instructions::Instructions()
// Inicializa los sprites de los items
iniSprites();
Logger::section("INSTRUCTIONS");
// Inicializa el timer de delta time y arranca la música
last_time_ = SDL_GetTicks();
Audio::get()->playMusic("title.ogg");

View File

@@ -20,7 +20,6 @@
#include "text.hpp" // Para Text
#include "texture.hpp" // Para Texture
#include "tiled_bg.hpp" // Para TiledBG, TiledBGMode
#include "ui/logger.hpp" // Para section
#include "utils.hpp" // Para easeOutBounce
#include "writer.hpp" // Para Writer
@@ -41,8 +40,6 @@ Intro::Intro()
tiled_bg_->setSpeed(TILED_BG_SPEED);
tiled_bg_->setColor(bg_color_);
Logger::section("INTRO");
// Inicializa el timer de delta time y arranca la música
last_time_ = SDL_GetTicks();
Audio::get()->playMusic("intro.ogg", 0);

View File

@@ -9,7 +9,6 @@
#include "audio.hpp" // Para Audio
#include "color.hpp" // Para Color
#include "global_events.hpp" // Para handle
#include "ui/logger.hpp" // Para section
#include "global_inputs.hpp" // Para check
#include "input.hpp" // Para Input
#include "param.hpp" // Para Param, ParamGame, param
@@ -48,8 +47,6 @@ Logo::Logo()
jail_sprite_.push_back(std::move(temp));
}
Logger::section("LOGO");
// Inicializa el timer de delta time para el primer frame del callback
last_time_ = SDL_GetTicks();

View File

@@ -24,7 +24,6 @@
#include "sprite.hpp" // Para Sprite
#include "text.hpp" // Para Text
#include "tiled_bg.hpp" // Para TiledBG, TiledBGMode
#include "ui/logger.hpp" // Para section
#include "ui/notifier.hpp" // Para Notifier
#include "ui/service_menu.hpp" // Para ServiceMenu
#include "utils.hpp" // Para Zone, BLOCK
@@ -61,8 +60,6 @@ Title::Title()
mini_logo_sprite_->setY(anchor_.mini_logo);
anchor_.copyright_text = anchor_.mini_logo + mini_logo_sprite_->getHeight() + COPYRIGHT_TEXT_SPACING;
Logger::section("TITLE");
// Inicializa el timer de delta time para el primer frame del callback
last_time_ = SDL_GetTicks();
}