From b6e7e454ed6242475163dcd534051897d3c9158c Mon Sep 17 00:00:00 2001 From: lamp Date: Sun, 5 Mar 2023 21:25:03 +0000 Subject: init --- include/defines.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/defines.h (limited to 'include/defines.h') 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 + +#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; -- cgit v1.2.3