-
Notifications
You must be signed in to change notification settings - Fork 0
/
levels.h
37 lines (32 loc) · 889 Bytes
/
levels.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
typedef struct {
int row;
int col;
u16 oldBlockPixels[128];
} BLOCK;
typedef struct {
int row;
int col;
int rdel;
int cdel;
const u16* image;
} PLATFORM;
typedef struct {
int row;
int col;
int rdel;
int cdel;
const u16* image;
} BALL;
#define L1_NUMBLOCKS 165
#define L2_NUMBLOCKS 165
#define L3_NUMBLOCKS 165
#define DRAW_START_SPLASH drawImage3(10, 0, 240, 150, startsplashsized)
#define DRAW_YOU_WIN_SPLASH drawImage3(10, 0, 240, 150, you_win)
#define DRAW_GAME_OVER_SPLASH drawImage3(10, 0, 240, 150, gameoversized)
//Prototypes
void createLevel1(unsigned int* blockCounter, BLOCK blocks[L1_NUMBLOCKS],
PLATFORM* platform, BALL* ball);
void createLevel2(unsigned int* blockCounter, BLOCK blocks[L2_NUMBLOCKS],
PLATFORM* platform, BALL* ball);
void createLevel3(unsigned int* blockCounter, BLOCK blocks[L3_NUMBLOCKS],
PLATFORM* platform, BALL* ball);