aboutsummaryrefslogtreecommitdiff
path: root/include/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/defines.h')
-rw-r--r--include/defines.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/defines.h b/include/defines.h
new file mode 100644
index 0000000..765ecde
--- /dev/null
+++ b/include/defines.h
@@ -0,0 +1,23 @@
+#pragma once
+#include <gb/gb.h>
+
+#define TILE_SIZE 8
+#define GRAVITY_ACCELERATION 1
+#define APPLY_GRAVITY_N_FRAMES 4
+#define CYCLE_ANIMATION_N_FRAMES 8
+#define JUMP_VELOCITY -4
+#define BACKGROUND_SCROLL_SPEED 1
+#define FOREGROUND_SCROLL_SPEED 2
+#define PIPE_TILE_START 9
+#define NUMERALS_TILE_START 10
+#define BLANK_NUMERAL_TILE 20
+#define PIPE_WIDTH 24
+#define BUTTON_TILE_START 14
+#define CYCLE_BUTTON_N_FRAMES 16
+#define WINDOW_CENTERING_OFFSET 23
+#define GAME_OVER_TILE_START 21
+
+#define BIRD_WIDTH 16
+#define BIRD_HEIGHT 12
+
+typedef INT8 ScreenCoordinate;