En la pantalla de Game Over se muestran las habitaciones y los items conseguidos

This commit is contained in:
2022-11-17 16:33:37 +01:00
parent 0adf8c63f4
commit 7af0dda1a0
6 changed files with 36 additions and 5 deletions

View File

@@ -824,6 +824,7 @@ bool Room::itemCollision(SDL_Rect &rect)
items.erase(items.begin() + i);
JA_PlaySound(itemSound);
*itemsPicked = *itemsPicked + 1;
options->items = *itemsPicked;
return true;
}
}