feat(game): include pet in state

This commit is contained in:
2026-04-29 00:41:37 +02:00
parent 5b763a33bc
commit ea3632326b
2 changed files with 47 additions and 52 deletions
+5 -8
View File
@@ -3,20 +3,17 @@
#include "joystick.hpp"
#include "display.hpp"
#include "menu.hpp"
#include "pet.hpp"
#define ACTION_INTERVAL 60000 // 1 minute
#define MAXIMUM_STAT 100
typedef struct {
bool dead;
bool menuOpen;
int hunger;
int joy;
int energy;
int cleanliness;
Pet pet;
uint64_t lastActionTime;
bool shouldClear;
bool isMenuOpen;
bool shouldClearDisplay;
} GameState;
class Game {