fix: la classe Screen ja ha recuperat un poc del lustro que tenia
shake effect ja no està fet "the torerous menner" shake effect ja va amb shaders
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "section.h" // for name_e, name, options, options_e
|
||||
#include "title.h" // for Title
|
||||
#include "utils.h" // for music_file_t, sound_file_t, opt...
|
||||
#include <memory>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <pwd.h> // for getpwuid, passwd
|
||||
@@ -79,9 +80,8 @@ Director::Director(int argc, char *argv[])
|
||||
loadParams(paramFilePath);
|
||||
|
||||
// Carga el fichero de puntuaciones
|
||||
ManageHiScoreTable *manager = new ManageHiScoreTable(&options.game.hiScoreTable);
|
||||
auto manager = std::make_unique<ManageHiScoreTable>(&options.game.hiScoreTable);
|
||||
manager->loadFromFile(Asset::get()->get("score.bin"));
|
||||
delete manager;
|
||||
|
||||
// Inicializa SDL
|
||||
initSDL();
|
||||
@@ -326,6 +326,7 @@ bool Director::initSDL()
|
||||
|
||||
// Establece el tamaño del buffer de renderizado
|
||||
SDL_RenderSetLogicalSize(renderer, param.game.width, param.game.height);
|
||||
SDL_RenderSetIntegerScale(renderer, SDL_TRUE);
|
||||
|
||||
// Establece el modo de mezcla
|
||||
SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND);
|
||||
|
||||
Reference in New Issue
Block a user