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