-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflappybird.h
More file actions
65 lines (46 loc) · 1.73 KB
/
flappybird.h
File metadata and controls
65 lines (46 loc) · 1.73 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef HEADERFILE_H
#define HEADERFILE_H
extern int menuChoice; // this varuabel determines which choice been taken means the button that been pressed
extern int currentmenu; // This variabel determines which menu should be shown by display menu.
extern int highscores[6];
// The diffrent positions represents: 0. top score, 1. middle score, 2. lowest stored score
// 3. contains initials for score 1, 4. contains initials for score 2, 5. contain initials for score 3
extern int difficulty;
// This variabel represent current game difficulty, changable in the menu
extern int birdx;
extern int birdy;
//These represent current bird x and y values
extern int birdelex1;
extern int birdelex2;
extern int score;
//This represents score of current/last game
extern char textbuffer[4][16];
/* Declare text buffer for display output */
extern char TextString[10];//String for score
void delay(int);
void time2string(char *, int);
void quicksleep(int cyc);
void display_init(void);
void display_string(int line, char *s);
void display_update(void);
uint8_t spi_send_recv(uint8_t data);
void displayGame(int ObstacleX[], int ObstacleY[]);
void displayMenu(void);
void display_image(int x, const uint8_t *data);
// Above defines global functions from display.c
void init(void);
void IntToCharArray(int i);
void _nmi_handler();
void _on_reset();
void _on_bootstrap();
// define functions from birdfunctions.c
char *my_strcat(char *s1, const char *s2);
void Write_score(int score, int name);
void read_scoreboard();
//define functions from scoreboard.c
void menu(void);
void gameStart(void);
//Define global functions from main.c
extern uint8_t game[512];
extern const uint8_t const font[] ;/* Declare bitmap array containing font */
#endif // end HEADERFILE_H