From 672ae1cdc364d15787e0433b3578d0fb30e2231e Mon Sep 17 00:00:00 2001 From: ostanton <114495956+ostanton@users.noreply.github.com> Date: Sun, 6 Apr 2025 12:36:27 +0100 Subject: Tidied restart level, started on tracking placed cells --- src/types.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/types.c') 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 { -- cgit v1.2.3