-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapLib.h
50 lines (38 loc) · 1.03 KB
/
mapLib.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
38
39
40
41
42
43
44
45
46
47
48
49
50
/*Name: mapLib.h
* Purpose: library of custom map function declarations
* and constants
* Due date: Dec 1 2016
* Author(s): Jaxon Lin
*/
#ifndef MAPLIB_H
#define MAPLIB_H
#define SCREENLENGTH 128
#define SCREENWIDTH 32
#define ULCORNERX 0
#define ULCORNERY 0
#define URCORNERX 127
#define URCORNERY 0
#define LLCORNERX 0
#define LLCORNERY 31
#define LRCORNERX 127
#define LRCORNERY 31
/*int testMap[128][32] = {0};
for(int i = 0; i < 32; i++) {
testMap[0][i] = 1;
}*/
typedef struct TrackMap {
int mlength;
char bmap[][SCREENWIDTH];
} TrackMap;
//draws map and moves it to the left
//**when have map include whitespace at end (128 x 32 of whitespace)
void drawMap(char bmap[][32], int mlength);
void drawGame(TrackMap *tmap, int mlength, int diff);
void drawInGameUI();
//creates map
void createMap(TrackMap *tmap, int mlength);
void createTestMap(TrackMap *tmap, int mlength);
void createTestBeatMap(TrackMap *tmap, int mlength);
void createTestMap3(TrackMap *tmap, int mlength);
void createDemoMap(TrackMap *tmap, int mlength);
#endif