Definidos los logros

This commit is contained in:
2022-12-29 13:03:10 +01:00
parent c7fcbd0258
commit f590101047
2 changed files with 60 additions and 5 deletions

View File

@@ -22,13 +22,66 @@ void Cheevos::init()
{ {
cheevos_t c; cheevos_t c;
c.completed = false; c.completed = false;
c.valid = true;
c.id = 1; c.id = 1;
c.caption = "JUMP"; c.caption = "SHINY THINGS";
c.description = "Get 25\% of the items";
cheevos.push_back(c); cheevos.push_back(c);
c.id = 2; 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); cheevos.push_back(c);
} }

View File

@@ -10,9 +10,11 @@
struct cheevos_t struct cheevos_t
{ {
int id; // Identificador del logro int id; // Identificador del logro
std::string caption; // Texto que describe el logro std::string caption; // Texto con el nombre del logro
bool completed; // Indica si se ha obtenido el 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 class Cheevos