-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmenus.h
More file actions
61 lines (44 loc) · 1.05 KB
/
menus.h
File metadata and controls
61 lines (44 loc) · 1.05 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
//Handles drawing the menu system for the navigation and configuration of the game by the player
#ifndef _MENUS_H
#define _MENUS_H
#include "song.h"
//Global Variables
//structs used in this program
struct point{int x; int y;}; //used to interpret touch
extern int numsongs;
extern song songs[];
//global vars for song listings
extern int pg;
extern int maxpages;
extern int displayedSongs;
// external variables
extern Adafruit_ILI9341 tft;
extern TouchScreen ts;
extern int lives;
extern bool hardMode;
extern int sortMode;
extern int songToPlay;
extern const int SPEAKER_PIN;
extern int points;
//Function Declarations
void drawBack();
void drawScroll(int type);
void splashScreen();
void modeSelect();
void endlessDifficultySelect();
void songSelect();
void drawSongSelect();
void refreshList();
void sortMenu();
void drawSort();
void drawSortMenuText();
void highscores();
void refreshScores(int page);
void songTitleScreen();
void onDeath();
// external functions
point checkTouch();
void sortList();
void printString(String s);
void restart();
#endif