commit de moure a un Linux a gastar eines de home
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include <SDL2/SDL_rect.h> // Para SDL_Rect
|
||||
#include <SDL2/SDL_timer.h> // Para SDL_GetTicks
|
||||
#include "animated_sprite.h" // Para AnimatedSprite
|
||||
#include "const.h" // Para BLOCK, PLAY_AREA_HEIGHT, PLAY_AREA_WIDTH
|
||||
#include "defines.h" // Para BLOCK, PLAY_AREA_HEIGHT, PLAY_AREA_WIDTH
|
||||
#include "resource.h" // Para Resource
|
||||
#include "text.h" // Para Text
|
||||
#include "texture.h" // Para Texture
|
||||
@@ -21,10 +21,11 @@ Scoreboard::Scoreboard(board_t *board)
|
||||
{
|
||||
// Reserva memoria para los objetos
|
||||
itemTexture = resource->getTexture("items.png");
|
||||
const std::string playerJPG = options.cheats.alternate_skin == Cheat::CheatState::ENABLED ? "player2.jpg" : "player.jpg";
|
||||
const std::string playerANI = options.cheats.alternate_skin == Cheat::CheatState::ENABLED ? "player2.ani" : "player.ani";
|
||||
sprite = std::make_shared<AnimatedSprite>(falta_la_textura, resource->getAnimation(playerANI));
|
||||
sprite = std::make_shared<AnimatedSprite>(resource->getTexture(playerJPG), resource->getAnimation(playerANI));
|
||||
sprite->setCurrentAnimation("walk_menu");
|
||||
text = Resource::get()->getText("smb2.txt");
|
||||
text = resource->getText("smb2.txt");
|
||||
|
||||
// Inicializa las variables
|
||||
counter = 0;
|
||||
@@ -99,7 +100,7 @@ void Scoreboard::update()
|
||||
updateItemsColor();
|
||||
|
||||
if (!paused)
|
||||
{
|
||||
{
|
||||
// Si está en pausa no se actualiza el reloj
|
||||
clock = getTime();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user