Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/src/types.c
diff options
context:
space:
mode:
authorostanton <114495956+ostanton@users.noreply.github.com>2025-04-06 12:36:27 +0100
committerostanton <114495956+ostanton@users.noreply.github.com>2025-04-06 12:36:27 +0100
commit672ae1cdc364d15787e0433b3578d0fb30e2231e (patch)
tree8ff938b57b52fc29e19425129dbbb85c9d603f36 /src/types.c
parentaf06f8718558683aa717bc98bcba1ed1a30e3737 (diff)
downloadldjam57-672ae1cdc364d15787e0433b3578d0fb30e2231e.tar
Tidied restart level, started on tracking placed cells
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/types.c b/src/types.c
index 4c7a3cb..bd6b858 100644
--- a/src/types.c
+++ b/src/types.c
@@ -93,6 +93,7 @@ typedef struct {
int goalx, goaly;
ButtonState buttonStates[N_BUTTONS];
int currentLevel;
+ int placedCells[MAX_PLACEABLE_CELLS]; // indices into Level placeableCells
} State;
// Mirror these in src/index.html.in
@@ -101,6 +102,7 @@ enum {
INPUT_CLICK,
INPUT_RCLICK,
INPUT_PAUSE_PLAY,
+ INPUT_RESTART,
};
typedef struct {