- [CHG] Ara en Linux la configuració se guarda en " ~/.config/thepool/config.txt"

- [FIX] Solventada explosió en pantalla de gameover per un dangling pointer. Aplicades medides similars en catslife i ingame.
This commit is contained in:
2024-10-11 09:20:24 +02:00
parent 3f127b5444
commit 31f63516ca
5 changed files with 35 additions and 12 deletions

View File

@@ -17,12 +17,15 @@ namespace modules
void init()
{
audio::playMusic("mus_gameover.ogg", 0);
if (gat == nullptr) gat = actor::createFromTemplate("GAT-NEGRE");
gat = actor::createFromTemplate("GAT-NEGRE");
}
bool loop()
{
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK)) {
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK))
{
if (gat) actor::remove(gat);
gat = nullptr;
return false;
}