-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibrary.h
40 lines (36 loc) · 1.07 KB
/
library.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
#define WORD_SIZE 31
#define CIR_MAX 21
#define CIR_SIZE 3
#define BACK_FAIR 1
#define FONT_FAIR 2
#define FBACK_FAIR 3
#define BOX_FAIR 4
#define BALL1 5
#define BALL2 6
#define BALL3 7
#define BALL4 8
#define TRUE 1
#define FALSE 0
void makeCircle(char Circle[][CIR_MAX], int radius);
void printCircle(char Circle[][CIR_MAX], int x, int y, int Color);
void deleteCircle(int x, int y);
void shoot(int x, char circle[][CIR_MAX], char map[][15], int *tab);
void stage1();
void printStageBorder();
void initStage(char circle[][CIR_MAX], char map[][15]);
int isEnd(char map[][15]);
void printPower(int xPower);
int isAttached(char map[][15], int x, int y);
int isOver(char map[][15]);
void search(char map[][15], int xBall, int yBall, char ball);
void stage2();
void printScore(char number[][5], int x, int y);
void printRedScore(char number[][5], int x, int y);
void printGreenScore(char number[][5], int x, int y);
void printAlp(char number[][5], int x, int y);
void deleteScore(int x, int y);
void stage3();
void stage4();
int selectStage();
void gameOver();
void Start(int x, int y);