aboutsummaryrefslogtreecommitdiff
path: root/include/defines.h
blob: 765ecdebe4f62c2783235d61132e46d9c96cca5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;