apegat de mala manera els shaders del CCAE i fets uns apanyets per a vore si compila

This commit is contained in:
2025-10-15 12:59:17 +02:00
parent e4a08d2ec7
commit e811cf0a1d
23 changed files with 1158 additions and 829 deletions

View File

@@ -215,8 +215,8 @@ void Game::renderDebugInfo() {
// Comprueba los eventos
void Game::checkDebugEvents(const SDL_Event& event) {
if (event.type == SDL_KEYDOWN && event.key.repeat == 0) {
switch (event.key.keysym.scancode) {
if (event.type == SDL_EVENT_KEY_DOWN && event.key.repeat == 0) {
switch (event.key.key) {
case SDL_SCANCODE_G:
Debug::get()->toggleEnabled();
options.cheats.invincible = static_cast<Cheat::CheatState>(Debug::get()->getEnabled());
@@ -581,7 +581,7 @@ void Game::createRoomNameTexture() {
room_name_surface_ = std::make_shared<Surface>(options.game.width, text->getCharacterSize() * 2);
// Establece el destino de la textura
room_name_rect_ = {0, PLAY_AREA_HEIGHT, options.game.width, text->getCharacterSize() * 2};
room_name_rect_ = {0.0F, PLAY_AREA_HEIGHT, options.game.width, text->getCharacterSize() * 2.0F};
}
// Hace sonar la música