![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Adam Baker 201166301
Dependencies: mbed Gamepad N5110
Menu/Menu.cpp@41:4b20f909bbcb, 2019-05-08 (annotated)
- Committer:
- adambakerwa
- Date:
- Wed May 08 15:22:53 2019 +0000
- Revision:
- 41:4b20f909bbcb
- Parent:
- 40:f53c70793975
- Child:
- 43:11c5d098ce9d
final amendments
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adambakerwa | 36:6f452777b9ce | 1 | #include "Menu.h" |
adambakerwa | 36:6f452777b9ce | 2 | |
adambakerwa | 41:4b20f909bbcb | 3 | //nothing needed doing in the constructor or deconstructor |
adambakerwa | 36:6f452777b9ce | 4 | Menu::Menu() |
adambakerwa | 36:6f452777b9ce | 5 | { |
adambakerwa | 36:6f452777b9ce | 6 | |
adambakerwa | 36:6f452777b9ce | 7 | } |
adambakerwa | 36:6f452777b9ce | 8 | |
adambakerwa | 36:6f452777b9ce | 9 | Menu::~Menu() |
adambakerwa | 36:6f452777b9ce | 10 | { |
adambakerwa | 36:6f452777b9ce | 11 | |
adambakerwa | 36:6f452777b9ce | 12 | } |
adambakerwa | 36:6f452777b9ce | 13 | |
adambakerwa | 41:4b20f909bbcb | 14 | void Menu::init() //initialise Menu variables |
adambakerwa | 36:6f452777b9ce | 15 | { |
adambakerwa | 36:6f452777b9ce | 16 | _select = 1; |
adambakerwa | 36:6f452777b9ce | 17 | _input = 0; |
adambakerwa | 40:f53c70793975 | 18 | _stop = 0; |
adambakerwa | 36:6f452777b9ce | 19 | |
adambakerwa | 36:6f452777b9ce | 20 | } |
adambakerwa | 36:6f452777b9ce | 21 | |
adambakerwa | 36:6f452777b9ce | 22 | |
adambakerwa | 41:4b20f909bbcb | 23 | void Menu::title_intro(N5110 &lcd, Gamepad &pad) //runs intro sequence |
adambakerwa | 40:f53c70793975 | 24 | { |
adambakerwa | 40:f53c70793975 | 25 | intro_b(lcd, pad); |
adambakerwa | 40:f53c70793975 | 26 | intro_bl(lcd, pad); |
adambakerwa | 40:f53c70793975 | 27 | intro_blo(lcd, pad); |
adambakerwa | 40:f53c70793975 | 28 | intro_bloc(lcd, pad); |
adambakerwa | 40:f53c70793975 | 29 | intro_block(lcd, pad); |
adambakerwa | 40:f53c70793975 | 30 | intro_block_h(lcd, pad); |
adambakerwa | 40:f53c70793975 | 31 | intro_block_he(lcd, pad); |
adambakerwa | 40:f53c70793975 | 32 | intro_block_hea(lcd, pad); |
adambakerwa | 40:f53c70793975 | 33 | intro_block_head(lcd, pad); |
adambakerwa | 40:f53c70793975 | 34 | } |
adambakerwa | 40:f53c70793975 | 35 | |
adambakerwa | 41:4b20f909bbcb | 36 | void Menu::intro_b(N5110 &lcd, Gamepad &pad) //display b with note |
adambakerwa | 37:23b6312c8315 | 37 | { |
adambakerwa | 37:23b6312c8315 | 38 | wait(0.5); |
adambakerwa | 40:f53c70793975 | 39 | |
adambakerwa | 37:23b6312c8315 | 40 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 41 | pad.tone(261.3, 0.1); //plays C, on beat 1 |
adambakerwa | 41:4b20f909bbcb | 42 | B(1,15,lcd); //displays B sprite |
adambakerwa | 37:23b6312c8315 | 43 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 44 | } |
adambakerwa | 40:f53c70793975 | 45 | |
adambakerwa | 41:4b20f909bbcb | 46 | void Menu::intro_bl(N5110 &lcd, Gamepad &pad) //display bl with note |
adambakerwa | 40:f53c70793975 | 47 | { |
adambakerwa | 41:4b20f909bbcb | 48 | wait(0.2); |
adambakerwa | 40:f53c70793975 | 49 | |
adambakerwa | 37:23b6312c8315 | 50 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 51 | pad.tone(293.66, 0.1); //plays D, beat 1.5 |
adambakerwa | 41:4b20f909bbcb | 52 | BL(1,15,lcd); //displays BL sprite |
adambakerwa | 37:23b6312c8315 | 53 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 54 | } |
adambakerwa | 40:f53c70793975 | 55 | |
adambakerwa | 41:4b20f909bbcb | 56 | void Menu::intro_blo(N5110 &lcd, Gamepad &pad) //display blo with note |
adambakerwa | 40:f53c70793975 | 57 | { |
adambakerwa | 37:23b6312c8315 | 58 | wait(0.4); |
adambakerwa | 40:f53c70793975 | 59 | |
adambakerwa | 37:23b6312c8315 | 60 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 61 | pad.tone(440.00, 0.1); //plays G, beat 2.5 |
adambakerwa | 41:4b20f909bbcb | 62 | BLO(1,15,lcd); //displays BLO sprite |
adambakerwa | 37:23b6312c8315 | 63 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 64 | } |
adambakerwa | 40:f53c70793975 | 65 | |
adambakerwa | 41:4b20f909bbcb | 66 | void Menu::intro_bloc(N5110 &lcd, Gamepad &pad) //display bloc with note |
adambakerwa | 40:f53c70793975 | 67 | { |
adambakerwa | 40:f53c70793975 | 68 | wait(0.4); |
adambakerwa | 40:f53c70793975 | 69 | |
adambakerwa | 40:f53c70793975 | 70 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 71 | pad.tone(392.00, 0.1); //Plays A, beat 3.5 |
adambakerwa | 41:4b20f909bbcb | 72 | BLOC(1,15,lcd); //displays BLOC sprite |
adambakerwa | 37:23b6312c8315 | 73 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 74 | } |
adambakerwa | 40:f53c70793975 | 75 | |
adambakerwa | 41:4b20f909bbcb | 76 | void Menu::intro_block(N5110 &lcd, Gamepad &pad) //display block with note |
adambakerwa | 40:f53c70793975 | 77 | { |
adambakerwa | 37:23b6312c8315 | 78 | wait(0.2); |
adambakerwa | 40:f53c70793975 | 79 | |
adambakerwa | 37:23b6312c8315 | 80 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 81 | pad.tone(220.00, 0.1); //plays A, beat 4 |
adambakerwa | 41:4b20f909bbcb | 82 | BLOCK(1,15,lcd); //displays BLOCK sprite |
adambakerwa | 37:23b6312c8315 | 83 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 84 | } |
adambakerwa | 40:f53c70793975 | 85 | |
adambakerwa | 41:4b20f909bbcb | 86 | void Menu::intro_block_h(N5110 &lcd, Gamepad &pad) //display block h with note |
adambakerwa | 40:f53c70793975 | 87 | { |
adambakerwa | 37:23b6312c8315 | 88 | wait(0.4); |
adambakerwa | 40:f53c70793975 | 89 | |
adambakerwa | 37:23b6312c8315 | 90 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 91 | pad.tone(196.00, 0.1); //plays G, beat 1 |
adambakerwa | 41:4b20f909bbcb | 92 | BLOCK_H(1,15,lcd); //displays BLOCK H sprite |
adambakerwa | 37:23b6312c8315 | 93 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 94 | } |
adambakerwa | 40:f53c70793975 | 95 | |
adambakerwa | 41:4b20f909bbcb | 96 | void Menu::intro_block_he(N5110 &lcd, Gamepad &pad) //display block he with note |
adambakerwa | 40:f53c70793975 | 97 | { |
adambakerwa | 37:23b6312c8315 | 98 | wait(0.133); |
adambakerwa | 40:f53c70793975 | 99 | |
adambakerwa | 37:23b6312c8315 | 100 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 101 | pad.tone(220.00, 0.1); //plays A, beat 1.33 |
adambakerwa | 41:4b20f909bbcb | 102 | BLOCK_HE(1,15,lcd); //displays BLOCK HE sprite |
adambakerwa | 37:23b6312c8315 | 103 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 104 | } |
adambakerwa | 40:f53c70793975 | 105 | |
adambakerwa | 41:4b20f909bbcb | 106 | void Menu::intro_block_hea(N5110 &lcd, Gamepad &pad) //display block hea with note |
adambakerwa | 41:4b20f909bbcb | 107 | { |
adambakerwa | 41:4b20f909bbcb | 108 | wait(0.133); |
adambakerwa | 41:4b20f909bbcb | 109 | |
adambakerwa | 41:4b20f909bbcb | 110 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 111 | pad.tone(246.94, 0.1); //plays B, beat 1.66 |
adambakerwa | 41:4b20f909bbcb | 112 | BLOCK_HEA(1,15,lcd); //displays BLOCK HEA sprite |
adambakerwa | 41:4b20f909bbcb | 113 | lcd.refresh(); |
adambakerwa | 41:4b20f909bbcb | 114 | } |
adambakerwa | 41:4b20f909bbcb | 115 | |
adambakerwa | 41:4b20f909bbcb | 116 | void Menu::intro_block_head(N5110 &lcd, Gamepad &pad) //display block head with note |
adambakerwa | 40:f53c70793975 | 117 | { |
adambakerwa | 37:23b6312c8315 | 118 | wait(0.133); |
adambakerwa | 40:f53c70793975 | 119 | |
adambakerwa | 37:23b6312c8315 | 120 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 121 | pad.tone(261.63, 0.1); //plays C, beat 2 |
adambakerwa | 41:4b20f909bbcb | 122 | BLOCK_HEAD(1,15,lcd); //displays B sprite |
adambakerwa | 37:23b6312c8315 | 123 | lcd.refresh(); |
adambakerwa | 37:23b6312c8315 | 124 | } |
adambakerwa | 37:23b6312c8315 | 125 | |
adambakerwa | 37:23b6312c8315 | 126 | |
adambakerwa | 40:f53c70793975 | 127 | int Menu::press_start(N5110 &lcd, Gamepad &pad) //flash start untill start button is pressed |
adambakerwa | 40:f53c70793975 | 128 | { |
adambakerwa | 40:f53c70793975 | 129 | |
adambakerwa | 40:f53c70793975 | 130 | if (pad.check_event(Gamepad::START_PRESSED)) { //return 1 when start is pressed |
adambakerwa | 37:23b6312c8315 | 131 | _start = 1; |
adambakerwa | 37:23b6312c8315 | 132 | } else { |
adambakerwa | 37:23b6312c8315 | 133 | _start = 0; |
adambakerwa | 37:23b6312c8315 | 134 | } |
adambakerwa | 40:f53c70793975 | 135 | |
adambakerwa | 40:f53c70793975 | 136 | lcd.clear(); |
adambakerwa | 40:f53c70793975 | 137 | BLOCK_HEAD(1,15,lcd); //print blockhead |
adambakerwa | 40:f53c70793975 | 138 | |
adambakerwa | 40:f53c70793975 | 139 | _count++; //increment count |
adambakerwa | 40:f53c70793975 | 140 | |
adambakerwa | 40:f53c70793975 | 141 | if (_count == 3) { //every 3 refreshes, invert flash |
adambakerwa | 37:23b6312c8315 | 142 | _flash = !_flash; |
adambakerwa | 40:f53c70793975 | 143 | _count = 0; //and set count back to 0 |
adambakerwa | 37:23b6312c8315 | 144 | } |
adambakerwa | 40:f53c70793975 | 145 | |
adambakerwa | 37:23b6312c8315 | 146 | if (_flash) { |
adambakerwa | 40:f53c70793975 | 147 | lcd.printString(" Press Start ",0,5); //if flash is true, print 'press start' |
adambakerwa | 37:23b6312c8315 | 148 | } |
adambakerwa | 40:f53c70793975 | 149 | |
adambakerwa | 37:23b6312c8315 | 150 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 151 | |
adambakerwa | 37:23b6312c8315 | 152 | return _start; |
adambakerwa | 37:23b6312c8315 | 153 | } |
adambakerwa | 37:23b6312c8315 | 154 | |
adambakerwa | 37:23b6312c8315 | 155 | |
adambakerwa | 36:6f452777b9ce | 156 | |
adambakerwa | 41:4b20f909bbcb | 157 | int Menu::select_input_main(Gamepad &pad, N5110 &lcd) //selects input using button and joystick |
adambakerwa | 36:6f452777b9ce | 158 | { |
adambakerwa | 36:6f452777b9ce | 159 | |
adambakerwa | 40:f53c70793975 | 160 | if (pad.check_event(Gamepad::A_PRESSED)) { //if a button pressed, |
adambakerwa | 40:f53c70793975 | 161 | _input = _select; //input = select |
adambakerwa | 36:6f452777b9ce | 162 | } else { |
adambakerwa | 36:6f452777b9ce | 163 | _input = 0; |
adambakerwa | 36:6f452777b9ce | 164 | } |
adambakerwa | 36:6f452777b9ce | 165 | |
adambakerwa | 36:6f452777b9ce | 166 | Vector2D updown = pad.get_coord(); |
adambakerwa | 36:6f452777b9ce | 167 | |
adambakerwa | 40:f53c70793975 | 168 | if (updown.y <= -0.5f && _stop == 0 ) { //if joystick moved down |
adambakerwa | 40:f53c70793975 | 169 | _select++; //select incrments |
adambakerwa | 40:f53c70793975 | 170 | _stop = 1; //stop = 1,prevent from moving too quickly |
adambakerwa | 40:f53c70793975 | 171 | } else if (updown.y >= 0.5f && _stop == 0) { // if joy stick moved up |
adambakerwa | 40:f53c70793975 | 172 | _select--; //selecet decrements |
adambakerwa | 40:f53c70793975 | 173 | _stop = 1; //stop - 1, prevent from moving too quickly |
adambakerwa | 36:6f452777b9ce | 174 | } |
adambakerwa | 40:f53c70793975 | 175 | //select runs between 1 - 4 |
adambakerwa | 40:f53c70793975 | 176 | if (_select == 0) { //when select reaches 0, it becomes 4 |
adambakerwa | 36:6f452777b9ce | 177 | _select = 4; |
adambakerwa | 40:f53c70793975 | 178 | } else if (_select == 5) { //when select reaches 5, it becomes 1 |
adambakerwa | 36:6f452777b9ce | 179 | _select = 1; |
adambakerwa | 36:6f452777b9ce | 180 | } |
adambakerwa | 36:6f452777b9ce | 181 | |
adambakerwa | 40:f53c70793975 | 182 | if (updown.y < 0.5f && updown.y > -0.5 && _stop == 1) { //reset stop |
adambakerwa | 36:6f452777b9ce | 183 | _stop = 0; |
adambakerwa | 36:6f452777b9ce | 184 | } |
adambakerwa | 40:f53c70793975 | 185 | |
adambakerwa | 40:f53c70793975 | 186 | print_main_menu(lcd); //print main menu |
adambakerwa | 40:f53c70793975 | 187 | |
adambakerwa | 36:6f452777b9ce | 188 | return _input; |
adambakerwa | 36:6f452777b9ce | 189 | } |
adambakerwa | 36:6f452777b9ce | 190 | |
adambakerwa | 41:4b20f909bbcb | 191 | void Menu::print_main_menu(N5110 &lcd) //prints menu class visuals |
adambakerwa | 36:6f452777b9ce | 192 | { |
adambakerwa | 37:23b6312c8315 | 193 | lcd.clear(); |
adambakerwa | 40:f53c70793975 | 194 | |
adambakerwa | 41:4b20f909bbcb | 195 | menu_decoration(lcd); //top and bottom flashing decoative part |
adambakerwa | 36:6f452777b9ce | 196 | |
adambakerwa | 41:4b20f909bbcb | 197 | lcd.printString(" Play Game ",0,1); //prints menu options |
adambakerwa | 36:6f452777b9ce | 198 | lcd.printString(" Highscore ",0,2); |
adambakerwa | 36:6f452777b9ce | 199 | lcd.printString(" Settings ",0,3); |
adambakerwa | 36:6f452777b9ce | 200 | lcd.printString(" Quit... ",0,4); |
adambakerwa | 36:6f452777b9ce | 201 | |
adambakerwa | 41:4b20f909bbcb | 202 | if (_select == 1) { //depending on _select value, |
adambakerwa | 41:4b20f909bbcb | 203 | lcd.drawRect(3,10,3,3,FILL_BLACK); //cursor changes position, |
adambakerwa | 41:4b20f909bbcb | 204 | } else if (_select == 2) { //stays in line with what ever text selected corresponds too |
adambakerwa | 36:6f452777b9ce | 205 | lcd.drawRect(3,18,3,3,FILL_BLACK); |
adambakerwa | 36:6f452777b9ce | 206 | } else if (_select == 3) { |
adambakerwa | 36:6f452777b9ce | 207 | lcd.drawRect(3,26,3,3,FILL_BLACK); |
adambakerwa | 36:6f452777b9ce | 208 | } else if (_select == 4) { |
adambakerwa | 36:6f452777b9ce | 209 | lcd.drawRect(3,34,3,3,FILL_BLACK); |
adambakerwa | 36:6f452777b9ce | 210 | } |
adambakerwa | 40:f53c70793975 | 211 | |
adambakerwa | 40:f53c70793975 | 212 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 213 | |
adambakerwa | 40:f53c70793975 | 214 | } |
adambakerwa | 40:f53c70793975 | 215 | |
adambakerwa | 41:4b20f909bbcb | 216 | void Menu::menu_decoration(N5110 &lcd) //displays animated borders for menu pages |
adambakerwa | 40:f53c70793975 | 217 | { |
adambakerwa | 40:f53c70793975 | 218 | |
adambakerwa | 40:f53c70793975 | 219 | _count++; //count increments |
adambakerwa | 40:f53c70793975 | 220 | |
adambakerwa | 41:4b20f909bbcb | 221 | if (_count == 3) { //flash inverts every 3rd count |
adambakerwa | 40:f53c70793975 | 222 | _flash = !_flash; //and count resets to 0 |
adambakerwa | 40:f53c70793975 | 223 | _count = 0; |
adambakerwa | 40:f53c70793975 | 224 | } |
adambakerwa | 40:f53c70793975 | 225 | |
adambakerwa | 41:4b20f909bbcb | 226 | if (_flash) { //when flash is true displays one version of boarder |
adambakerwa | 40:f53c70793975 | 227 | lcd.printString("<><><><><><><>",0,0); |
adambakerwa | 40:f53c70793975 | 228 | lcd.printString("><><><><><><><",0,5); |
adambakerwa | 41:4b20f909bbcb | 229 | } else { //when false, displays inverted version of boarder, creating an animation |
adambakerwa | 40:f53c70793975 | 230 | lcd.printString("><><><><><><><",0,0); |
adambakerwa | 40:f53c70793975 | 231 | lcd.printString("<><><><><><><>",0,5); |
adambakerwa | 40:f53c70793975 | 232 | } |
adambakerwa | 40:f53c70793975 | 233 | |
adambakerwa | 40:f53c70793975 | 234 | } |
adambakerwa | 40:f53c70793975 | 235 | |
adambakerwa | 41:4b20f909bbcb | 236 | int Menu::select_input_continue(Gamepad &pad, N5110 &lcd) //selects input using button and joystick |
adambakerwa | 40:f53c70793975 | 237 | { |
adambakerwa | 40:f53c70793975 | 238 | |
adambakerwa | 40:f53c70793975 | 239 | if (pad.check_event(Gamepad::A_PRESSED)) { //if a button pressed, |
adambakerwa | 40:f53c70793975 | 240 | _input = _select; //input = select |
adambakerwa | 40:f53c70793975 | 241 | } else { |
adambakerwa | 40:f53c70793975 | 242 | _input = 0; |
adambakerwa | 40:f53c70793975 | 243 | } |
adambakerwa | 40:f53c70793975 | 244 | |
adambakerwa | 40:f53c70793975 | 245 | Vector2D updown = pad.get_coord(); |
adambakerwa | 40:f53c70793975 | 246 | |
adambakerwa | 40:f53c70793975 | 247 | if (updown.y <= -0.5f && _stop == 0 ) { //if joystick moved down |
adambakerwa | 40:f53c70793975 | 248 | _select++; //select incrments |
adambakerwa | 40:f53c70793975 | 249 | _stop = 1; //stop = 1,prevent from moving too quickly |
adambakerwa | 40:f53c70793975 | 250 | } else if (updown.y >= 0.5f && _stop == 0) { // if joy stick moved up |
adambakerwa | 40:f53c70793975 | 251 | _select--; //selecet decrements |
adambakerwa | 40:f53c70793975 | 252 | _stop = 1; //stop - 1, prevent from moving too quickly |
adambakerwa | 40:f53c70793975 | 253 | } |
adambakerwa | 40:f53c70793975 | 254 | //select runs between 1 - 2 |
adambakerwa | 40:f53c70793975 | 255 | if (_select == 3) { //when select reaches 3, it becomes 2 |
adambakerwa | 40:f53c70793975 | 256 | _select = 2; |
adambakerwa | 40:f53c70793975 | 257 | } else if (_select == 0) { //when select reaches 0, it becomes 1 |
adambakerwa | 40:f53c70793975 | 258 | _select = 1; |
adambakerwa | 40:f53c70793975 | 259 | } |
adambakerwa | 40:f53c70793975 | 260 | |
adambakerwa | 40:f53c70793975 | 261 | if (updown.y < 0.5f && updown.y > -0.5 && _stop == 1) { //reset stop |
adambakerwa | 40:f53c70793975 | 262 | _stop = 0; |
adambakerwa | 40:f53c70793975 | 263 | } |
adambakerwa | 40:f53c70793975 | 264 | |
adambakerwa | 41:4b20f909bbcb | 265 | print_continue_menu(lcd); //print continue menu |
adambakerwa | 40:f53c70793975 | 266 | |
adambakerwa | 40:f53c70793975 | 267 | return _input; |
adambakerwa | 40:f53c70793975 | 268 | } |
adambakerwa | 40:f53c70793975 | 269 | |
adambakerwa | 41:4b20f909bbcb | 270 | void Menu::print_continue_menu(N5110 &lcd) //prints continues menu's visuals |
adambakerwa | 40:f53c70793975 | 271 | { |
adambakerwa | 40:f53c70793975 | 272 | lcd.clear(); |
adambakerwa | 40:f53c70793975 | 273 | |
adambakerwa | 41:4b20f909bbcb | 274 | menu_decoration(lcd); //prints decorative border |
adambakerwa | 40:f53c70793975 | 275 | |
adambakerwa | 40:f53c70793975 | 276 | |
adambakerwa | 41:4b20f909bbcb | 277 | lcd.printString(" Continue ",0,2); //prints continue menus options |
adambakerwa | 41:4b20f909bbcb | 278 | lcd.printString(" Go back ",0,3); |
adambakerwa | 40:f53c70793975 | 279 | |
adambakerwa | 40:f53c70793975 | 280 | |
adambakerwa | 41:4b20f909bbcb | 281 | if (_select == 1) { //prints cursor in correct possition according to _select |
adambakerwa | 40:f53c70793975 | 282 | lcd.drawRect(3,18,3,3,FILL_BLACK); |
adambakerwa | 40:f53c70793975 | 283 | } else if (_select == 2) { |
adambakerwa | 40:f53c70793975 | 284 | lcd.drawRect(3,26,3,3,FILL_BLACK); |
adambakerwa | 40:f53c70793975 | 285 | } |
adambakerwa | 36:6f452777b9ce | 286 | |
adambakerwa | 37:23b6312c8315 | 287 | lcd.refresh(); |
adambakerwa | 36:6f452777b9ce | 288 | |
adambakerwa | 40:f53c70793975 | 289 | |
adambakerwa | 36:6f452777b9ce | 290 | } |
adambakerwa | 36:6f452777b9ce | 291 | |
adambakerwa | 41:4b20f909bbcb | 292 | void Menu::print_highscore(N5110 &lcd, int highscore) //prints highscore menu |
adambakerwa | 40:f53c70793975 | 293 | { |
adambakerwa | 40:f53c70793975 | 294 | lcd.clear(); |
adambakerwa | 40:f53c70793975 | 295 | |
adambakerwa | 41:4b20f909bbcb | 296 | menu_decoration(lcd); //prints decorative border |
adambakerwa | 40:f53c70793975 | 297 | |
adambakerwa | 41:4b20f909bbcb | 298 | lcd.printString(" Highscore.. ", 0,1); |
adambakerwa | 40:f53c70793975 | 299 | lcd.printString(" ..is.. ", 0,2); |
adambakerwa | 40:f53c70793975 | 300 | char buffer[14]; |
adambakerwa | 41:4b20f909bbcb | 301 | sprintf(buffer,"%i", highscore); //displays high score |
adambakerwa | 40:f53c70793975 | 302 | lcd.printString(buffer,35,3); |
adambakerwa | 40:f53c70793975 | 303 | |
adambakerwa | 41:4b20f909bbcb | 304 | lcd.printString(" B to go back", 0,4); |
adambakerwa | 40:f53c70793975 | 305 | |
adambakerwa | 40:f53c70793975 | 306 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 307 | |
adambakerwa | 40:f53c70793975 | 308 | } |
adambakerwa | 40:f53c70793975 | 309 | |
adambakerwa | 41:4b20f909bbcb | 310 | float Menu::print_settings(Gamepad &pad, N5110 &lcd) //prints settings menu |
adambakerwa | 40:f53c70793975 | 311 | { |
adambakerwa | 40:f53c70793975 | 312 | lcd.clear(); |
adambakerwa | 40:f53c70793975 | 313 | |
adambakerwa | 41:4b20f909bbcb | 314 | menu_decoration(lcd); //prints decorative border |
adambakerwa | 40:f53c70793975 | 315 | |
adambakerwa | 40:f53c70793975 | 316 | lcd.printString(" Use POT for ", 0,1); |
adambakerwa | 40:f53c70793975 | 317 | lcd.printString("Contrast level", 0,2); |
adambakerwa | 40:f53c70793975 | 318 | |
adambakerwa | 41:4b20f909bbcb | 319 | float pot = pad.read_pot(); //read pot value |
adambakerwa | 41:4b20f909bbcb | 320 | float contrast = (pot*0.2f)+0.47f; //scale to 0.47 - 0.67 (contrast out side of this makes screen unreadable) |
adambakerwa | 41:4b20f909bbcb | 321 | int width = int(pot*84.0f); //scale pot tp 0 - 84 in integer steps |
adambakerwa | 40:f53c70793975 | 322 | |
adambakerwa | 41:4b20f909bbcb | 323 | lcd.drawRect(1,26,80,10,FILL_TRANSPARENT); //draw rectangle |
adambakerwa | 41:4b20f909bbcb | 324 | lcd.drawRect(1,26,width,10,FILL_BLACK); //fill rectangle, depending where the pot is |
adambakerwa | 40:f53c70793975 | 325 | |
adambakerwa | 40:f53c70793975 | 326 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 327 | |
adambakerwa | 41:4b20f909bbcb | 328 | return contrast; //returns contrast |
adambakerwa | 40:f53c70793975 | 329 | |
adambakerwa | 40:f53c70793975 | 330 | } |
adambakerwa | 40:f53c70793975 | 331 | |
adambakerwa | 40:f53c70793975 | 332 | |
adambakerwa | 40:f53c70793975 | 333 | |
adambakerwa | 36:6f452777b9ce | 334 | |
adambakerwa | 36:6f452777b9ce | 335 | |
adambakerwa | 41:4b20f909bbcb | 336 | void Menu::B(int x, int y, N5110 &lcd) //prints B sprite |
adambakerwa | 36:6f452777b9ce | 337 | { |
adambakerwa | 36:6f452777b9ce | 338 | |
adambakerwa | 36:6f452777b9ce | 339 | const int B[48][84] = { |
adambakerwa | 36:6f452777b9ce | 340 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 357 | {0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 358 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 359 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//10 |
adambakerwa | 36:6f452777b9ce | 360 | |
adambakerwa | 36:6f452777b9ce | 361 | |
adambakerwa | 36:6f452777b9ce | 362 | }; |
adambakerwa | 36:6f452777b9ce | 363 | |
adambakerwa | 37:23b6312c8315 | 364 | lcd.drawSprite(x,y,48,84,(int *)B); |
adambakerwa | 36:6f452777b9ce | 365 | |
adambakerwa | 36:6f452777b9ce | 366 | } |
adambakerwa | 36:6f452777b9ce | 367 | |
adambakerwa | 41:4b20f909bbcb | 368 | void Menu::BL(int x, int y, N5110 &lcd) //prints BL sprite |
adambakerwa | 36:6f452777b9ce | 369 | { |
adambakerwa | 36:6f452777b9ce | 370 | |
adambakerwa | 36:6f452777b9ce | 371 | const int BL[48][84] = { |
adambakerwa | 36:6f452777b9ce | 372 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//1 |
adambakerwa | 36:6f452777b9ce | 373 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 374 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 375 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 376 | {0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 388 | {0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 389 | {0,0,0,0,0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 390 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 391 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//10 |
adambakerwa | 36:6f452777b9ce | 392 | |
adambakerwa | 36:6f452777b9ce | 393 | |
adambakerwa | 36:6f452777b9ce | 394 | }; |
adambakerwa | 36:6f452777b9ce | 395 | |
adambakerwa | 37:23b6312c8315 | 396 | lcd.drawSprite(x,y,48,84,(int *)BL); |
adambakerwa | 36:6f452777b9ce | 397 | |
adambakerwa | 36:6f452777b9ce | 398 | } |
adambakerwa | 36:6f452777b9ce | 399 | |
adambakerwa | 41:4b20f909bbcb | 400 | void Menu::BLO(int x, int y, N5110 &lcd) //prints BLO sprite |
adambakerwa | 36:6f452777b9ce | 401 | { |
adambakerwa | 36:6f452777b9ce | 402 | |
adambakerwa | 36:6f452777b9ce | 403 | const int BLO[48][84] = { |
adambakerwa | 36:6f452777b9ce | 404 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//1 |
adambakerwa | 36:6f452777b9ce | 405 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 406 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 407 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 408 | {0,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,0,0,0,0,0,0,0,0,0,0,0},//10 |
adambakerwa | 36:6f452777b9ce | 424 | |
adambakerwa | 36:6f452777b9ce | 425 | |
adambakerwa | 36:6f452777b9ce | 426 | }; |
adambakerwa | 36:6f452777b9ce | 427 | |
adambakerwa | 37:23b6312c8315 | 428 | lcd.drawSprite(x,y,48,84,(int *)BLO); |
adambakerwa | 36:6f452777b9ce | 429 | |
adambakerwa | 36:6f452777b9ce | 430 | } |
adambakerwa | 36:6f452777b9ce | 431 | |
adambakerwa | 41:4b20f909bbcb | 432 | void Menu::BLOC(int x, int y, N5110 &lcd) //prints BLOC sprite |
adambakerwa | 36:6f452777b9ce | 433 | { |
adambakerwa | 36:6f452777b9ce | 434 | |
adambakerwa | 36:6f452777b9ce | 435 | const int BLOC[48][84] = { |
adambakerwa | 36:6f452777b9ce | 436 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//1 |
adambakerwa | 36:6f452777b9ce | 437 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 438 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 439 | {0,0,0,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,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 455 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//10 |
adambakerwa | 36:6f452777b9ce | 456 | |
adambakerwa | 36:6f452777b9ce | 457 | |
adambakerwa | 36:6f452777b9ce | 458 | }; |
adambakerwa | 36:6f452777b9ce | 459 | |
adambakerwa | 37:23b6312c8315 | 460 | lcd.drawSprite(x,y,48,84,(int *)BLOC); |
adambakerwa | 36:6f452777b9ce | 461 | |
adambakerwa | 36:6f452777b9ce | 462 | } |
adambakerwa | 36:6f452777b9ce | 463 | |
adambakerwa | 41:4b20f909bbcb | 464 | void Menu::BLOCK(int x, int y, N5110 &lcd) //prints BLOCK sprite |
adambakerwa | 36:6f452777b9ce | 465 | { |
adambakerwa | 36:6f452777b9ce | 466 | |
adambakerwa | 36:6f452777b9ce | 467 | const int BLOCK[48][84] = { |
adambakerwa | 36:6f452777b9ce | 468 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//1 |
adambakerwa | 36:6f452777b9ce | 469 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 470 | {0,0,0,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,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 486 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 487 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//10 |
adambakerwa | 36:6f452777b9ce | 488 | |
adambakerwa | 36:6f452777b9ce | 489 | |
adambakerwa | 36:6f452777b9ce | 490 | }; |
adambakerwa | 36:6f452777b9ce | 491 | |
adambakerwa | 41:4b20f909bbcb | 492 | lcd.drawSprite(x,y,48,84,(int *)BLOCK); |
adambakerwa | 36:6f452777b9ce | 493 | |
adambakerwa | 36:6f452777b9ce | 494 | } |
adambakerwa | 36:6f452777b9ce | 495 | |
adambakerwa | 36:6f452777b9ce | 496 | |
adambakerwa | 37:23b6312c8315 | 497 | |
adambakerwa | 41:4b20f909bbcb | 498 | void Menu::BLOCK_H(int x, int y, N5110 &lcd) //prints BLOCK H sprite |
adambakerwa | 36:6f452777b9ce | 499 | { |
adambakerwa | 36:6f452777b9ce | 500 | |
adambakerwa | 37:23b6312c8315 | 501 | const int BLOCK_H[48][84] = { |
adambakerwa | 36:6f452777b9ce | 502 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 519 | {0,0,0,0,0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,1,1,1,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 520 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 521 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//10 |
adambakerwa | 37:23b6312c8315 | 522 | |
adambakerwa | 37:23b6312c8315 | 523 | |
adambakerwa | 37:23b6312c8315 | 524 | }; |
adambakerwa | 37:23b6312c8315 | 525 | |
adambakerwa | 37:23b6312c8315 | 526 | lcd.drawSprite(x,y,48,84,(int *)BLOCK_H); |
adambakerwa | 37:23b6312c8315 | 527 | |
adambakerwa | 37:23b6312c8315 | 528 | } |
adambakerwa | 37:23b6312c8315 | 529 | |
adambakerwa | 41:4b20f909bbcb | 530 | void Menu::BLOCK_HE(int x, int y, N5110 &lcd) //prints BLOCK HE sprite |
adambakerwa | 37:23b6312c8315 | 531 | { |
adambakerwa | 37:23b6312c8315 | 532 | |
adambakerwa | 37:23b6312c8315 | 533 | const int BLOCK_HE[48][84] = { |
adambakerwa | 37:23b6312c8315 | 534 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//1 |
adambakerwa | 37:23b6312c8315 | 535 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 536 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 537 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 538 | {0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,0,0,0,1,1,0,0,1,0,0,0,1,0,0,0,1,0,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23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,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 550 | {0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 551 | {0,0,0,0,0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 552 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 553 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//10 |
adambakerwa | 36:6f452777b9ce | 554 | |
adambakerwa | 36:6f452777b9ce | 555 | |
adambakerwa | 36:6f452777b9ce | 556 | }; |
adambakerwa | 36:6f452777b9ce | 557 | |
adambakerwa | 37:23b6312c8315 | 558 | lcd.drawSprite(x,y,48,84,(int *)BLOCK_HE); |
adambakerwa | 37:23b6312c8315 | 559 | |
adambakerwa | 37:23b6312c8315 | 560 | } |
adambakerwa | 37:23b6312c8315 | 561 | |
adambakerwa | 41:4b20f909bbcb | 562 | void Menu::BLOCK_HEA(int x, int y, N5110 &lcd) //prints BLOCK HEA sprite |
adambakerwa | 37:23b6312c8315 | 563 | { |
adambakerwa | 37:23b6312c8315 | 564 | |
adambakerwa | 37:23b6312c8315 | 565 | const int BLOCK_HEA[48][84] = { |
adambakerwa | 37:23b6312c8315 | 566 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//1 |
adambakerwa | 37:23b6312c8315 | 567 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 568 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 569 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//10 |
adambakerwa | 37:23b6312c8315 | 586 | |
adambakerwa | 37:23b6312c8315 | 587 | |
adambakerwa | 37:23b6312c8315 | 588 | }; |
adambakerwa | 37:23b6312c8315 | 589 | |
adambakerwa | 37:23b6312c8315 | 590 | lcd.drawSprite(x,y,48,84,(int *)BLOCK_HEA); |
adambakerwa | 37:23b6312c8315 | 591 | |
adambakerwa | 37:23b6312c8315 | 592 | } |
adambakerwa | 37:23b6312c8315 | 593 | |
adambakerwa | 41:4b20f909bbcb | 594 | void Menu::BLOCK_HEAD(int x, int y, N5110 &lcd) //prints BLOCK HEAD sprite |
adambakerwa | 37:23b6312c8315 | 595 | { |
adambakerwa | 37:23b6312c8315 | 596 | |
adambakerwa | 37:23b6312c8315 | 597 | const int BLOCK_HEAD[48][84] = { |
adambakerwa | 37:23b6312c8315 | 598 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//1 |
adambakerwa | 37:23b6312c8315 | 599 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 600 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 617 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},//10 |
adambakerwa | 37:23b6312c8315 | 618 | |
adambakerwa | 37:23b6312c8315 | 619 | |
adambakerwa | 37:23b6312c8315 | 620 | }; |
adambakerwa | 37:23b6312c8315 | 621 | |
adambakerwa | 37:23b6312c8315 | 622 | lcd.drawSprite(x,y,48,84,(int *)BLOCK_HEAD); |
adambakerwa | 36:6f452777b9ce | 623 | |
adambakerwa | 36:6f452777b9ce | 624 | } |
adambakerwa | 36:6f452777b9ce | 625 | |
adambakerwa | 36:6f452777b9ce | 626 | |
adambakerwa | 36:6f452777b9ce | 627 | |
adambakerwa | 36:6f452777b9ce | 628 |