From f590101047ff5bf0639077d19a789fa3af4764c9 Mon Sep 17 00:00:00 2001 From: Sergio Valor Martinez Date: Thu, 29 Dec 2022 13:03:10 +0100 Subject: [PATCH] Definidos los logros --- source/cheevos.cpp | 57 ++++++++++++++++++++++++++++++++++++++++++++-- source/cheevos.h | 8 ++++--- 2 files changed, 60 insertions(+), 5 deletions(-) diff --git a/source/cheevos.cpp b/source/cheevos.cpp index 7d1f590..fa864cf 100644 --- a/source/cheevos.cpp +++ b/source/cheevos.cpp @@ -22,13 +22,66 @@ void Cheevos::init() { cheevos_t c; c.completed = false; + c.valid = true; c.id = 1; - c.caption = "JUMP"; + c.caption = "SHINY THINGS"; + c.description = "Get 25\% of the items"; cheevos.push_back(c); c.id = 2; - c.caption = "GET 3 ITEMS"; + c.caption = "HALF THE WORK"; + c.description = "Get 50\% of the items"; + cheevos.push_back(c); + + c.id = 3; + c.caption = "GETTING THERE"; + c.description = "Get 75\% of the items"; + cheevos.push_back(c); + + c.id = 4; + c.caption = "THE COLLECTOR"; + c.description = "Get 100\% of the items"; + cheevos.push_back(c); + + c.id = 5; + c.caption = "WANDERING AROUND"; + c.description = "Visit 20 rooms"; + cheevos.push_back(c); + + c.id = 6; + c.caption = "I GOT LOST"; + c.description = "Visit 40 rooms"; + cheevos.push_back(c); + + c.id = 7; + c.caption = "I LIKE TO EXPLORE"; + c.description = "Visit all rooms"; + cheevos.push_back(c); + + c.id = 8; + c.caption = "FINISH THE GAME"; + c.description = "Complete the game"; + cheevos.push_back(c); + + c.id = 9; + c.caption = "I WAS SUCKED BY A HOLE"; + c.description = "Complete the game without entering the jail"; + cheevos.push_back(c); + + c.id = 10; + c.caption = "MY LITTLE PROJECTS"; + c.description = "Complete the game with all items"; + cheevos.push_back(c); + + c.id = 11; + c.caption = "I LIKE MY MULTICOLOURED FRIENDS"; + c.description = "Complete the game without dying"; + cheevos.push_back(c); + + c.id = 12; + c.caption = "SHIT PROJECTS DONE FAST"; + c.description = "Complete the game in under 30 minutes"; cheevos.push_back(c); } diff --git a/source/cheevos.h b/source/cheevos.h index 3928533..b42f48e 100644 --- a/source/cheevos.h +++ b/source/cheevos.h @@ -10,9 +10,11 @@ struct cheevos_t { - int id; // Identificador del logro - std::string caption; // Texto que describe el logro - bool completed; // Indica si se ha obtenido el logro + int id; // Identificador del logro + std::string caption; // Texto con el nombre del logro + std::string description; // Texto que describe el logro + bool completed; // Indica si se ha obtenido el logro + bool valid; // Indica si se puede obtener el logro }; class Cheevos