Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/src/types.c
diff options
context:
space:
mode:
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