Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/src/types.c
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2025-04-05 22:16:26 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2025-04-05 22:16:26 +0100
commit8701a3d42c86aada738bfb3b5f817e6e1ce12a47 (patch)
tree79b9b7d239ff7b431fd6a50119061a9394bd2d15 /src/types.c
parent7bb8b8c7670728b0dcd510d8a8205bb3776368dd (diff)
parent3fba436a0b83cce81353e3b170621a1632d8b219 (diff)
downloadldjam57-8701a3d42c86aada738bfb3b5f817e6e1ce12a47.tar
Merge branch 'main' of codeberg.org:shtanton/ldjam57
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/types.c b/src/types.c
index fde4ab4..bfe0d7d 100644
--- a/src/types.c
+++ b/src/types.c
@@ -1,10 +1,13 @@
+#ifndef INCLUDE_TYPES_C
+#define INCLUDE_TYPES_C
+
#include "all.c"
#define MEM_SIZE (1<<24)
#define GRIDWIDTH 20
#define GRIDHEIGHT 16
#define TICK_LENGTH 200
-#define GRID_OFFSET_X 256
+#define GRID_OFFSET_X 64
typedef struct {
unsigned char r, g, b, a;
@@ -45,6 +48,7 @@ enum {
};
enum {
+ BUTTON_CONTINUE,
BUTTON_RETRY,
BUTTON_BACK,
N_BUTTONS,
@@ -107,3 +111,5 @@ static void *alloc(Arena *a, ptrdiff_t count, ptrdiff_t size, ptrdiff_t align) {
return r;
}
+
+#endif // INCLUDE_TYPES_C