Ya funcionan las estadísticas online

This commit is contained in:
2022-11-22 10:42:30 +01:00
parent fd0bebf533
commit 0d586c0827
4 changed files with 111 additions and 66 deletions

View File

@@ -40,7 +40,7 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *as
text = new Text(resource->getOffset("smb2.txt"), resource->getTexture("smb2.png"), renderer);
music = JA_LoadMusic(asset->get("game.ogg").c_str());
deathSound = JA_LoadSound(asset->get("death.wav").c_str());
stats = new Stats(asset->get("stats.csv"), options);
stats = new Stats(asset->get("stats.csv"), asset->get("stats_buffer.csv"), options);
// Inicializa el resto de variables
ticks = 0;
@@ -632,4 +632,6 @@ void Game::initStats()
{
stats->addDictionary(room.room->number, room.room->name);
}
stats->init();
}