![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Adam Baker 201166301
Dependencies: mbed Gamepad N5110
Menu/Menu.cpp@43:11c5d098ce9d, 2019-05-08 (annotated)
- Committer:
- adambakerwa
- Date:
- Wed May 08 22:00:17 2019 +0000
- Revision:
- 43:11c5d098ce9d
- Parent:
- 41:4b20f909bbcb
final level addition
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 | 43:11c5d098ce9d | 14 | |
adambakerwa | 43:11c5d098ce9d | 15 | //initialise Menu variables |
adambakerwa | 43:11c5d098ce9d | 16 | void Menu::init() |
adambakerwa | 36:6f452777b9ce | 17 | { |
adambakerwa | 36:6f452777b9ce | 18 | _select = 1; |
adambakerwa | 36:6f452777b9ce | 19 | _input = 0; |
adambakerwa | 40:f53c70793975 | 20 | _stop = 0; |
adambakerwa | 36:6f452777b9ce | 21 | |
adambakerwa | 36:6f452777b9ce | 22 | } |
adambakerwa | 36:6f452777b9ce | 23 | |
adambakerwa | 36:6f452777b9ce | 24 | |
adambakerwa | 43:11c5d098ce9d | 25 | //runs intro sequence |
adambakerwa | 43:11c5d098ce9d | 26 | void Menu::title_intro(N5110 &lcd, Gamepad &pad) |
adambakerwa | 40:f53c70793975 | 27 | { |
adambakerwa | 40:f53c70793975 | 28 | intro_b(lcd, pad); |
adambakerwa | 40:f53c70793975 | 29 | intro_bl(lcd, pad); |
adambakerwa | 40:f53c70793975 | 30 | intro_blo(lcd, pad); |
adambakerwa | 40:f53c70793975 | 31 | intro_bloc(lcd, pad); |
adambakerwa | 40:f53c70793975 | 32 | intro_block(lcd, pad); |
adambakerwa | 40:f53c70793975 | 33 | intro_block_h(lcd, pad); |
adambakerwa | 40:f53c70793975 | 34 | intro_block_he(lcd, pad); |
adambakerwa | 40:f53c70793975 | 35 | intro_block_hea(lcd, pad); |
adambakerwa | 40:f53c70793975 | 36 | intro_block_head(lcd, pad); |
adambakerwa | 40:f53c70793975 | 37 | } |
adambakerwa | 40:f53c70793975 | 38 | |
adambakerwa | 43:11c5d098ce9d | 39 | |
adambakerwa | 43:11c5d098ce9d | 40 | //display b with note |
adambakerwa | 43:11c5d098ce9d | 41 | void Menu::intro_b(N5110 &lcd, Gamepad &pad) |
adambakerwa | 37:23b6312c8315 | 42 | { |
adambakerwa | 37:23b6312c8315 | 43 | wait(0.5); |
adambakerwa | 40:f53c70793975 | 44 | |
adambakerwa | 37:23b6312c8315 | 45 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 46 | pad.tone(261.3, 0.1); //plays C, on beat 1 |
adambakerwa | 41:4b20f909bbcb | 47 | B(1,15,lcd); //displays B sprite |
adambakerwa | 37:23b6312c8315 | 48 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 49 | } |
adambakerwa | 40:f53c70793975 | 50 | |
adambakerwa | 43:11c5d098ce9d | 51 | |
adambakerwa | 43:11c5d098ce9d | 52 | //display bl with note |
adambakerwa | 43:11c5d098ce9d | 53 | void Menu::intro_bl(N5110 &lcd, Gamepad &pad) |
adambakerwa | 40:f53c70793975 | 54 | { |
adambakerwa | 41:4b20f909bbcb | 55 | wait(0.2); |
adambakerwa | 40:f53c70793975 | 56 | |
adambakerwa | 37:23b6312c8315 | 57 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 58 | pad.tone(293.66, 0.1); //plays D, beat 1.5 |
adambakerwa | 41:4b20f909bbcb | 59 | BL(1,15,lcd); //displays BL sprite |
adambakerwa | 37:23b6312c8315 | 60 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 61 | } |
adambakerwa | 40:f53c70793975 | 62 | |
adambakerwa | 43:11c5d098ce9d | 63 | |
adambakerwa | 43:11c5d098ce9d | 64 | //display blo with note |
adambakerwa | 43:11c5d098ce9d | 65 | void Menu::intro_blo(N5110 &lcd, Gamepad &pad) |
adambakerwa | 40:f53c70793975 | 66 | { |
adambakerwa | 37:23b6312c8315 | 67 | wait(0.4); |
adambakerwa | 40:f53c70793975 | 68 | |
adambakerwa | 37:23b6312c8315 | 69 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 70 | pad.tone(440.00, 0.1); //plays G, beat 2.5 |
adambakerwa | 41:4b20f909bbcb | 71 | BLO(1,15,lcd); //displays BLO sprite |
adambakerwa | 37:23b6312c8315 | 72 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 73 | } |
adambakerwa | 40:f53c70793975 | 74 | |
adambakerwa | 43:11c5d098ce9d | 75 | |
adambakerwa | 43:11c5d098ce9d | 76 | //display bloc with note |
adambakerwa | 43:11c5d098ce9d | 77 | void Menu::intro_bloc(N5110 &lcd, Gamepad &pad) |
adambakerwa | 40:f53c70793975 | 78 | { |
adambakerwa | 40:f53c70793975 | 79 | wait(0.4); |
adambakerwa | 40:f53c70793975 | 80 | |
adambakerwa | 40:f53c70793975 | 81 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 82 | pad.tone(392.00, 0.1); //Plays A, beat 3.5 |
adambakerwa | 41:4b20f909bbcb | 83 | BLOC(1,15,lcd); //displays BLOC sprite |
adambakerwa | 37:23b6312c8315 | 84 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 85 | } |
adambakerwa | 40:f53c70793975 | 86 | |
adambakerwa | 43:11c5d098ce9d | 87 | |
adambakerwa | 43:11c5d098ce9d | 88 | //display block with note |
adambakerwa | 43:11c5d098ce9d | 89 | void Menu::intro_block(N5110 &lcd, Gamepad &pad) |
adambakerwa | 40:f53c70793975 | 90 | { |
adambakerwa | 37:23b6312c8315 | 91 | wait(0.2); |
adambakerwa | 40:f53c70793975 | 92 | |
adambakerwa | 37:23b6312c8315 | 93 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 94 | pad.tone(220.00, 0.1); //plays A, beat 4 |
adambakerwa | 41:4b20f909bbcb | 95 | BLOCK(1,15,lcd); //displays BLOCK sprite |
adambakerwa | 37:23b6312c8315 | 96 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 97 | } |
adambakerwa | 40:f53c70793975 | 98 | |
adambakerwa | 43:11c5d098ce9d | 99 | |
adambakerwa | 43:11c5d098ce9d | 100 | //display block h with note |
adambakerwa | 43:11c5d098ce9d | 101 | void Menu::intro_block_h(N5110 &lcd, Gamepad &pad) |
adambakerwa | 40:f53c70793975 | 102 | { |
adambakerwa | 37:23b6312c8315 | 103 | wait(0.4); |
adambakerwa | 40:f53c70793975 | 104 | |
adambakerwa | 37:23b6312c8315 | 105 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 106 | pad.tone(196.00, 0.1); //plays G, beat 1 |
adambakerwa | 41:4b20f909bbcb | 107 | BLOCK_H(1,15,lcd); //displays BLOCK H sprite |
adambakerwa | 37:23b6312c8315 | 108 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 109 | } |
adambakerwa | 40:f53c70793975 | 110 | |
adambakerwa | 43:11c5d098ce9d | 111 | |
adambakerwa | 43:11c5d098ce9d | 112 | //display block he with note |
adambakerwa | 43:11c5d098ce9d | 113 | void Menu::intro_block_he(N5110 &lcd, Gamepad &pad) |
adambakerwa | 40:f53c70793975 | 114 | { |
adambakerwa | 37:23b6312c8315 | 115 | wait(0.133); |
adambakerwa | 40:f53c70793975 | 116 | |
adambakerwa | 37:23b6312c8315 | 117 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 118 | pad.tone(220.00, 0.1); //plays A, beat 1.33 |
adambakerwa | 41:4b20f909bbcb | 119 | BLOCK_HE(1,15,lcd); //displays BLOCK HE sprite |
adambakerwa | 37:23b6312c8315 | 120 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 121 | } |
adambakerwa | 40:f53c70793975 | 122 | |
adambakerwa | 43:11c5d098ce9d | 123 | |
adambakerwa | 43:11c5d098ce9d | 124 | //display block hea with note |
adambakerwa | 43:11c5d098ce9d | 125 | void Menu::intro_block_hea(N5110 &lcd, Gamepad &pad) |
adambakerwa | 41:4b20f909bbcb | 126 | { |
adambakerwa | 41:4b20f909bbcb | 127 | wait(0.133); |
adambakerwa | 41:4b20f909bbcb | 128 | |
adambakerwa | 41:4b20f909bbcb | 129 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 130 | pad.tone(246.94, 0.1); //plays B, beat 1.66 |
adambakerwa | 41:4b20f909bbcb | 131 | BLOCK_HEA(1,15,lcd); //displays BLOCK HEA sprite |
adambakerwa | 41:4b20f909bbcb | 132 | lcd.refresh(); |
adambakerwa | 41:4b20f909bbcb | 133 | } |
adambakerwa | 41:4b20f909bbcb | 134 | |
adambakerwa | 43:11c5d098ce9d | 135 | |
adambakerwa | 43:11c5d098ce9d | 136 | //display block head with note |
adambakerwa | 43:11c5d098ce9d | 137 | void Menu::intro_block_head(N5110 &lcd, Gamepad &pad) |
adambakerwa | 40:f53c70793975 | 138 | { |
adambakerwa | 37:23b6312c8315 | 139 | wait(0.133); |
adambakerwa | 40:f53c70793975 | 140 | |
adambakerwa | 37:23b6312c8315 | 141 | lcd.clear(); |
adambakerwa | 41:4b20f909bbcb | 142 | pad.tone(261.63, 0.1); //plays C, beat 2 |
adambakerwa | 41:4b20f909bbcb | 143 | BLOCK_HEAD(1,15,lcd); //displays B sprite |
adambakerwa | 37:23b6312c8315 | 144 | lcd.refresh(); |
adambakerwa | 37:23b6312c8315 | 145 | } |
adambakerwa | 37:23b6312c8315 | 146 | |
adambakerwa | 37:23b6312c8315 | 147 | |
adambakerwa | 43:11c5d098ce9d | 148 | //flash start untill start button is pressed |
adambakerwa | 43:11c5d098ce9d | 149 | int Menu::press_start(N5110 &lcd, Gamepad &pad) |
adambakerwa | 40:f53c70793975 | 150 | { |
adambakerwa | 40:f53c70793975 | 151 | |
adambakerwa | 40:f53c70793975 | 152 | if (pad.check_event(Gamepad::START_PRESSED)) { //return 1 when start is pressed |
adambakerwa | 37:23b6312c8315 | 153 | _start = 1; |
adambakerwa | 37:23b6312c8315 | 154 | } else { |
adambakerwa | 37:23b6312c8315 | 155 | _start = 0; |
adambakerwa | 37:23b6312c8315 | 156 | } |
adambakerwa | 40:f53c70793975 | 157 | |
adambakerwa | 40:f53c70793975 | 158 | lcd.clear(); |
adambakerwa | 40:f53c70793975 | 159 | BLOCK_HEAD(1,15,lcd); //print blockhead |
adambakerwa | 40:f53c70793975 | 160 | |
adambakerwa | 40:f53c70793975 | 161 | _count++; //increment count |
adambakerwa | 40:f53c70793975 | 162 | |
adambakerwa | 40:f53c70793975 | 163 | if (_count == 3) { //every 3 refreshes, invert flash |
adambakerwa | 37:23b6312c8315 | 164 | _flash = !_flash; |
adambakerwa | 40:f53c70793975 | 165 | _count = 0; //and set count back to 0 |
adambakerwa | 37:23b6312c8315 | 166 | } |
adambakerwa | 40:f53c70793975 | 167 | |
adambakerwa | 37:23b6312c8315 | 168 | if (_flash) { |
adambakerwa | 40:f53c70793975 | 169 | lcd.printString(" Press Start ",0,5); //if flash is true, print 'press start' |
adambakerwa | 37:23b6312c8315 | 170 | } |
adambakerwa | 40:f53c70793975 | 171 | |
adambakerwa | 37:23b6312c8315 | 172 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 173 | |
adambakerwa | 37:23b6312c8315 | 174 | return _start; |
adambakerwa | 37:23b6312c8315 | 175 | } |
adambakerwa | 37:23b6312c8315 | 176 | |
adambakerwa | 37:23b6312c8315 | 177 | |
adambakerwa | 43:11c5d098ce9d | 178 | //selects input using button and joystick and displays main menu |
adambakerwa | 43:11c5d098ce9d | 179 | int Menu::select_input_main(Gamepad &pad, N5110 &lcd) |
adambakerwa | 36:6f452777b9ce | 180 | { |
adambakerwa | 36:6f452777b9ce | 181 | |
adambakerwa | 40:f53c70793975 | 182 | if (pad.check_event(Gamepad::A_PRESSED)) { //if a button pressed, |
adambakerwa | 40:f53c70793975 | 183 | _input = _select; //input = select |
adambakerwa | 36:6f452777b9ce | 184 | } else { |
adambakerwa | 36:6f452777b9ce | 185 | _input = 0; |
adambakerwa | 36:6f452777b9ce | 186 | } |
adambakerwa | 36:6f452777b9ce | 187 | |
adambakerwa | 36:6f452777b9ce | 188 | Vector2D updown = pad.get_coord(); |
adambakerwa | 36:6f452777b9ce | 189 | |
adambakerwa | 40:f53c70793975 | 190 | if (updown.y <= -0.5f && _stop == 0 ) { //if joystick moved down |
adambakerwa | 40:f53c70793975 | 191 | _select++; //select incrments |
adambakerwa | 40:f53c70793975 | 192 | _stop = 1; //stop = 1,prevent from moving too quickly |
adambakerwa | 40:f53c70793975 | 193 | } else if (updown.y >= 0.5f && _stop == 0) { // if joy stick moved up |
adambakerwa | 40:f53c70793975 | 194 | _select--; //selecet decrements |
adambakerwa | 40:f53c70793975 | 195 | _stop = 1; //stop - 1, prevent from moving too quickly |
adambakerwa | 36:6f452777b9ce | 196 | } |
adambakerwa | 40:f53c70793975 | 197 | //select runs between 1 - 4 |
adambakerwa | 40:f53c70793975 | 198 | if (_select == 0) { //when select reaches 0, it becomes 4 |
adambakerwa | 36:6f452777b9ce | 199 | _select = 4; |
adambakerwa | 40:f53c70793975 | 200 | } else if (_select == 5) { //when select reaches 5, it becomes 1 |
adambakerwa | 36:6f452777b9ce | 201 | _select = 1; |
adambakerwa | 36:6f452777b9ce | 202 | } |
adambakerwa | 36:6f452777b9ce | 203 | |
adambakerwa | 40:f53c70793975 | 204 | if (updown.y < 0.5f && updown.y > -0.5 && _stop == 1) { //reset stop |
adambakerwa | 36:6f452777b9ce | 205 | _stop = 0; |
adambakerwa | 36:6f452777b9ce | 206 | } |
adambakerwa | 40:f53c70793975 | 207 | |
adambakerwa | 40:f53c70793975 | 208 | print_main_menu(lcd); //print main menu |
adambakerwa | 40:f53c70793975 | 209 | |
adambakerwa | 36:6f452777b9ce | 210 | return _input; |
adambakerwa | 36:6f452777b9ce | 211 | } |
adambakerwa | 36:6f452777b9ce | 212 | |
adambakerwa | 43:11c5d098ce9d | 213 | |
adambakerwa | 43:11c5d098ce9d | 214 | //prints menu class visuals |
adambakerwa | 43:11c5d098ce9d | 215 | void Menu::print_main_menu(N5110 &lcd) |
adambakerwa | 36:6f452777b9ce | 216 | { |
adambakerwa | 37:23b6312c8315 | 217 | lcd.clear(); |
adambakerwa | 40:f53c70793975 | 218 | |
adambakerwa | 41:4b20f909bbcb | 219 | menu_decoration(lcd); //top and bottom flashing decoative part |
adambakerwa | 36:6f452777b9ce | 220 | |
adambakerwa | 41:4b20f909bbcb | 221 | lcd.printString(" Play Game ",0,1); //prints menu options |
adambakerwa | 36:6f452777b9ce | 222 | lcd.printString(" Highscore ",0,2); |
adambakerwa | 36:6f452777b9ce | 223 | lcd.printString(" Settings ",0,3); |
adambakerwa | 36:6f452777b9ce | 224 | lcd.printString(" Quit... ",0,4); |
adambakerwa | 36:6f452777b9ce | 225 | |
adambakerwa | 41:4b20f909bbcb | 226 | if (_select == 1) { //depending on _select value, |
adambakerwa | 41:4b20f909bbcb | 227 | lcd.drawRect(3,10,3,3,FILL_BLACK); //cursor changes position, |
adambakerwa | 41:4b20f909bbcb | 228 | } else if (_select == 2) { //stays in line with what ever text selected corresponds too |
adambakerwa | 36:6f452777b9ce | 229 | lcd.drawRect(3,18,3,3,FILL_BLACK); |
adambakerwa | 36:6f452777b9ce | 230 | } else if (_select == 3) { |
adambakerwa | 36:6f452777b9ce | 231 | lcd.drawRect(3,26,3,3,FILL_BLACK); |
adambakerwa | 36:6f452777b9ce | 232 | } else if (_select == 4) { |
adambakerwa | 36:6f452777b9ce | 233 | lcd.drawRect(3,34,3,3,FILL_BLACK); |
adambakerwa | 36:6f452777b9ce | 234 | } |
adambakerwa | 40:f53c70793975 | 235 | |
adambakerwa | 40:f53c70793975 | 236 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 237 | |
adambakerwa | 40:f53c70793975 | 238 | } |
adambakerwa | 40:f53c70793975 | 239 | |
adambakerwa | 43:11c5d098ce9d | 240 | |
adambakerwa | 43:11c5d098ce9d | 241 | //displays animated borders for menu pages |
adambakerwa | 43:11c5d098ce9d | 242 | void Menu::menu_decoration(N5110 &lcd) |
adambakerwa | 40:f53c70793975 | 243 | { |
adambakerwa | 40:f53c70793975 | 244 | |
adambakerwa | 40:f53c70793975 | 245 | _count++; //count increments |
adambakerwa | 40:f53c70793975 | 246 | |
adambakerwa | 41:4b20f909bbcb | 247 | if (_count == 3) { //flash inverts every 3rd count |
adambakerwa | 40:f53c70793975 | 248 | _flash = !_flash; //and count resets to 0 |
adambakerwa | 40:f53c70793975 | 249 | _count = 0; |
adambakerwa | 40:f53c70793975 | 250 | } |
adambakerwa | 40:f53c70793975 | 251 | |
adambakerwa | 41:4b20f909bbcb | 252 | if (_flash) { //when flash is true displays one version of boarder |
adambakerwa | 40:f53c70793975 | 253 | lcd.printString("<><><><><><><>",0,0); |
adambakerwa | 40:f53c70793975 | 254 | lcd.printString("><><><><><><><",0,5); |
adambakerwa | 41:4b20f909bbcb | 255 | } else { //when false, displays inverted version of boarder, creating an animation |
adambakerwa | 40:f53c70793975 | 256 | lcd.printString("><><><><><><><",0,0); |
adambakerwa | 40:f53c70793975 | 257 | lcd.printString("<><><><><><><>",0,5); |
adambakerwa | 40:f53c70793975 | 258 | } |
adambakerwa | 40:f53c70793975 | 259 | |
adambakerwa | 40:f53c70793975 | 260 | } |
adambakerwa | 40:f53c70793975 | 261 | |
adambakerwa | 43:11c5d098ce9d | 262 | |
adambakerwa | 43:11c5d098ce9d | 263 | //selects input using button and joystick |
adambakerwa | 43:11c5d098ce9d | 264 | int Menu::select_input_continue(Gamepad &pad, N5110 &lcd) |
adambakerwa | 40:f53c70793975 | 265 | { |
adambakerwa | 40:f53c70793975 | 266 | |
adambakerwa | 40:f53c70793975 | 267 | if (pad.check_event(Gamepad::A_PRESSED)) { //if a button pressed, |
adambakerwa | 40:f53c70793975 | 268 | _input = _select; //input = select |
adambakerwa | 40:f53c70793975 | 269 | } else { |
adambakerwa | 40:f53c70793975 | 270 | _input = 0; |
adambakerwa | 40:f53c70793975 | 271 | } |
adambakerwa | 40:f53c70793975 | 272 | |
adambakerwa | 40:f53c70793975 | 273 | Vector2D updown = pad.get_coord(); |
adambakerwa | 40:f53c70793975 | 274 | |
adambakerwa | 40:f53c70793975 | 275 | if (updown.y <= -0.5f && _stop == 0 ) { //if joystick moved down |
adambakerwa | 40:f53c70793975 | 276 | _select++; //select incrments |
adambakerwa | 40:f53c70793975 | 277 | _stop = 1; //stop = 1,prevent from moving too quickly |
adambakerwa | 40:f53c70793975 | 278 | } else if (updown.y >= 0.5f && _stop == 0) { // if joy stick moved up |
adambakerwa | 40:f53c70793975 | 279 | _select--; //selecet decrements |
adambakerwa | 40:f53c70793975 | 280 | _stop = 1; //stop - 1, prevent from moving too quickly |
adambakerwa | 40:f53c70793975 | 281 | } |
adambakerwa | 40:f53c70793975 | 282 | //select runs between 1 - 2 |
adambakerwa | 40:f53c70793975 | 283 | if (_select == 3) { //when select reaches 3, it becomes 2 |
adambakerwa | 40:f53c70793975 | 284 | _select = 2; |
adambakerwa | 40:f53c70793975 | 285 | } else if (_select == 0) { //when select reaches 0, it becomes 1 |
adambakerwa | 40:f53c70793975 | 286 | _select = 1; |
adambakerwa | 40:f53c70793975 | 287 | } |
adambakerwa | 40:f53c70793975 | 288 | |
adambakerwa | 40:f53c70793975 | 289 | if (updown.y < 0.5f && updown.y > -0.5 && _stop == 1) { //reset stop |
adambakerwa | 40:f53c70793975 | 290 | _stop = 0; |
adambakerwa | 40:f53c70793975 | 291 | } |
adambakerwa | 40:f53c70793975 | 292 | |
adambakerwa | 41:4b20f909bbcb | 293 | print_continue_menu(lcd); //print continue menu |
adambakerwa | 40:f53c70793975 | 294 | |
adambakerwa | 40:f53c70793975 | 295 | return _input; |
adambakerwa | 40:f53c70793975 | 296 | } |
adambakerwa | 40:f53c70793975 | 297 | |
adambakerwa | 43:11c5d098ce9d | 298 | |
adambakerwa | 43:11c5d098ce9d | 299 | //prints continues menu's visual |
adambakerwa | 43:11c5d098ce9d | 300 | void Menu::print_continue_menu(N5110 &lcd) |
adambakerwa | 40:f53c70793975 | 301 | { |
adambakerwa | 40:f53c70793975 | 302 | lcd.clear(); |
adambakerwa | 40:f53c70793975 | 303 | |
adambakerwa | 41:4b20f909bbcb | 304 | menu_decoration(lcd); //prints decorative border |
adambakerwa | 40:f53c70793975 | 305 | |
adambakerwa | 40:f53c70793975 | 306 | |
adambakerwa | 41:4b20f909bbcb | 307 | lcd.printString(" Continue ",0,2); //prints continue menus options |
adambakerwa | 41:4b20f909bbcb | 308 | lcd.printString(" Go back ",0,3); |
adambakerwa | 40:f53c70793975 | 309 | |
adambakerwa | 40:f53c70793975 | 310 | |
adambakerwa | 41:4b20f909bbcb | 311 | if (_select == 1) { //prints cursor in correct possition according to _select |
adambakerwa | 40:f53c70793975 | 312 | lcd.drawRect(3,18,3,3,FILL_BLACK); |
adambakerwa | 40:f53c70793975 | 313 | } else if (_select == 2) { |
adambakerwa | 40:f53c70793975 | 314 | lcd.drawRect(3,26,3,3,FILL_BLACK); |
adambakerwa | 40:f53c70793975 | 315 | } |
adambakerwa | 36:6f452777b9ce | 316 | |
adambakerwa | 37:23b6312c8315 | 317 | lcd.refresh(); |
adambakerwa | 36:6f452777b9ce | 318 | |
adambakerwa | 40:f53c70793975 | 319 | |
adambakerwa | 36:6f452777b9ce | 320 | } |
adambakerwa | 36:6f452777b9ce | 321 | |
adambakerwa | 43:11c5d098ce9d | 322 | |
adambakerwa | 43:11c5d098ce9d | 323 | //prints highscore menu |
adambakerwa | 43:11c5d098ce9d | 324 | void Menu::print_highscore(N5110 &lcd, int highscore) |
adambakerwa | 40:f53c70793975 | 325 | { |
adambakerwa | 40:f53c70793975 | 326 | lcd.clear(); |
adambakerwa | 40:f53c70793975 | 327 | |
adambakerwa | 41:4b20f909bbcb | 328 | menu_decoration(lcd); //prints decorative border |
adambakerwa | 40:f53c70793975 | 329 | |
adambakerwa | 41:4b20f909bbcb | 330 | lcd.printString(" Highscore.. ", 0,1); |
adambakerwa | 40:f53c70793975 | 331 | lcd.printString(" ..is.. ", 0,2); |
adambakerwa | 40:f53c70793975 | 332 | char buffer[14]; |
adambakerwa | 41:4b20f909bbcb | 333 | sprintf(buffer,"%i", highscore); //displays high score |
adambakerwa | 40:f53c70793975 | 334 | lcd.printString(buffer,35,3); |
adambakerwa | 40:f53c70793975 | 335 | |
adambakerwa | 41:4b20f909bbcb | 336 | lcd.printString(" B to go back", 0,4); |
adambakerwa | 40:f53c70793975 | 337 | |
adambakerwa | 40:f53c70793975 | 338 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 339 | |
adambakerwa | 40:f53c70793975 | 340 | } |
adambakerwa | 40:f53c70793975 | 341 | |
adambakerwa | 43:11c5d098ce9d | 342 | |
adambakerwa | 43:11c5d098ce9d | 343 | //prints settings menu |
adambakerwa | 43:11c5d098ce9d | 344 | float Menu::print_settings(Gamepad &pad, N5110 &lcd) |
adambakerwa | 40:f53c70793975 | 345 | { |
adambakerwa | 40:f53c70793975 | 346 | lcd.clear(); |
adambakerwa | 40:f53c70793975 | 347 | |
adambakerwa | 41:4b20f909bbcb | 348 | menu_decoration(lcd); //prints decorative border |
adambakerwa | 40:f53c70793975 | 349 | |
adambakerwa | 40:f53c70793975 | 350 | lcd.printString(" Use POT for ", 0,1); |
adambakerwa | 40:f53c70793975 | 351 | lcd.printString("Contrast level", 0,2); |
adambakerwa | 40:f53c70793975 | 352 | |
adambakerwa | 41:4b20f909bbcb | 353 | float pot = pad.read_pot(); //read pot value |
adambakerwa | 41:4b20f909bbcb | 354 | float contrast = (pot*0.2f)+0.47f; //scale to 0.47 - 0.67 (contrast out side of this makes screen unreadable) |
adambakerwa | 41:4b20f909bbcb | 355 | int width = int(pot*84.0f); //scale pot tp 0 - 84 in integer steps |
adambakerwa | 40:f53c70793975 | 356 | |
adambakerwa | 41:4b20f909bbcb | 357 | lcd.drawRect(1,26,80,10,FILL_TRANSPARENT); //draw rectangle |
adambakerwa | 41:4b20f909bbcb | 358 | lcd.drawRect(1,26,width,10,FILL_BLACK); //fill rectangle, depending where the pot is |
adambakerwa | 40:f53c70793975 | 359 | |
adambakerwa | 40:f53c70793975 | 360 | lcd.refresh(); |
adambakerwa | 40:f53c70793975 | 361 | |
adambakerwa | 41:4b20f909bbcb | 362 | return contrast; //returns contrast |
adambakerwa | 40:f53c70793975 | 363 | |
adambakerwa | 40:f53c70793975 | 364 | } |
adambakerwa | 40:f53c70793975 | 365 | |
adambakerwa | 40:f53c70793975 | 366 | |
adambakerwa | 40:f53c70793975 | 367 | |
adambakerwa | 36:6f452777b9ce | 368 | |
adambakerwa | 36:6f452777b9ce | 369 | |
adambakerwa | 41:4b20f909bbcb | 370 | void Menu::B(int x, int y, N5110 &lcd) //prints B sprite |
adambakerwa | 36:6f452777b9ce | 371 | { |
adambakerwa | 36:6f452777b9ce | 372 | |
adambakerwa | 36:6f452777b9ce | 373 | const int B[48][84] = { |
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},//1 |
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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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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 392 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 393 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 394 | |
adambakerwa | 36:6f452777b9ce | 395 | |
adambakerwa | 36:6f452777b9ce | 396 | }; |
adambakerwa | 36:6f452777b9ce | 397 | |
adambakerwa | 37:23b6312c8315 | 398 | lcd.drawSprite(x,y,48,84,(int *)B); |
adambakerwa | 36:6f452777b9ce | 399 | |
adambakerwa | 36:6f452777b9ce | 400 | } |
adambakerwa | 36:6f452777b9ce | 401 | |
adambakerwa | 43:11c5d098ce9d | 402 | |
adambakerwa | 43:11c5d098ce9d | 403 | |
adambakerwa | 41:4b20f909bbcb | 404 | void Menu::BL(int x, int y, N5110 &lcd) //prints BL sprite |
adambakerwa | 36:6f452777b9ce | 405 | { |
adambakerwa | 36:6f452777b9ce | 406 | |
adambakerwa | 36:6f452777b9ce | 407 | const int BL[48][84] = { |
adambakerwa | 36:6f452777b9ce | 408 | {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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777b9ce | 424 | {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 | 425 | {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 | 426 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 427 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 428 | |
adambakerwa | 36:6f452777b9ce | 429 | |
adambakerwa | 36:6f452777b9ce | 430 | }; |
adambakerwa | 36:6f452777b9ce | 431 | |
adambakerwa | 37:23b6312c8315 | 432 | lcd.drawSprite(x,y,48,84,(int *)BL); |
adambakerwa | 36:6f452777b9ce | 433 | |
adambakerwa | 36:6f452777b9ce | 434 | } |
adambakerwa | 36:6f452777b9ce | 435 | |
adambakerwa | 43:11c5d098ce9d | 436 | |
adambakerwa | 43:11c5d098ce9d | 437 | |
adambakerwa | 43:11c5d098ce9d | 438 | |
adambakerwa | 41:4b20f909bbcb | 439 | void Menu::BLO(int x, int y, N5110 &lcd) //prints BLO sprite |
adambakerwa | 36:6f452777b9ce | 440 | { |
adambakerwa | 36:6f452777b9ce | 441 | |
adambakerwa | 36:6f452777b9ce | 442 | const int BLO[48][84] = { |
adambakerwa | 36:6f452777b9ce | 443 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 444 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 445 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 446 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 447 | {0,0,0,0,0,0,1,1,1,1,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,0,0},//10 |
adambakerwa | 36:6f452777b9ce | 463 | |
adambakerwa | 36:6f452777b9ce | 464 | |
adambakerwa | 36:6f452777b9ce | 465 | }; |
adambakerwa | 36:6f452777b9ce | 466 | |
adambakerwa | 37:23b6312c8315 | 467 | lcd.drawSprite(x,y,48,84,(int *)BLO); |
adambakerwa | 36:6f452777b9ce | 468 | |
adambakerwa | 36:6f452777b9ce | 469 | } |
adambakerwa | 36:6f452777b9ce | 470 | |
adambakerwa | 43:11c5d098ce9d | 471 | |
adambakerwa | 43:11c5d098ce9d | 472 | |
adambakerwa | 43:11c5d098ce9d | 473 | |
adambakerwa | 41:4b20f909bbcb | 474 | void Menu::BLOC(int x, int y, N5110 &lcd) //prints BLOC sprite |
adambakerwa | 36:6f452777b9ce | 475 | { |
adambakerwa | 36:6f452777b9ce | 476 | |
adambakerwa | 36:6f452777b9ce | 477 | const int BLOC[48][84] = { |
adambakerwa | 36:6f452777b9ce | 478 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 479 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 480 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 497 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 498 | |
adambakerwa | 36:6f452777b9ce | 499 | |
adambakerwa | 36:6f452777b9ce | 500 | }; |
adambakerwa | 36:6f452777b9ce | 501 | |
adambakerwa | 37:23b6312c8315 | 502 | lcd.drawSprite(x,y,48,84,(int *)BLOC); |
adambakerwa | 36:6f452777b9ce | 503 | |
adambakerwa | 36:6f452777b9ce | 504 | } |
adambakerwa | 36:6f452777b9ce | 505 | |
adambakerwa | 43:11c5d098ce9d | 506 | |
adambakerwa | 43:11c5d098ce9d | 507 | |
adambakerwa | 43:11c5d098ce9d | 508 | |
adambakerwa | 41:4b20f909bbcb | 509 | void Menu::BLOCK(int x, int y, N5110 &lcd) //prints BLOCK sprite |
adambakerwa | 36:6f452777b9ce | 510 | { |
adambakerwa | 36:6f452777b9ce | 511 | |
adambakerwa | 36:6f452777b9ce | 512 | const int BLOCK[48][84] = { |
adambakerwa | 36:6f452777b9ce | 513 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 514 | {0,0,0,0,0,0,0,0,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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,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 | 531 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 532 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 533 | |
adambakerwa | 36:6f452777b9ce | 534 | |
adambakerwa | 36:6f452777b9ce | 535 | }; |
adambakerwa | 36:6f452777b9ce | 536 | |
adambakerwa | 41:4b20f909bbcb | 537 | lcd.drawSprite(x,y,48,84,(int *)BLOCK); |
adambakerwa | 36:6f452777b9ce | 538 | |
adambakerwa | 36:6f452777b9ce | 539 | } |
adambakerwa | 36:6f452777b9ce | 540 | |
adambakerwa | 36:6f452777b9ce | 541 | |
adambakerwa | 37:23b6312c8315 | 542 | |
adambakerwa | 41:4b20f909bbcb | 543 | void Menu::BLOCK_H(int x, int y, N5110 &lcd) //prints BLOCK H sprite |
adambakerwa | 36:6f452777b9ce | 544 | { |
adambakerwa | 36:6f452777b9ce | 545 | |
adambakerwa | 37:23b6312c8315 | 546 | const int BLOCK_H[48][84] = { |
adambakerwa | 36:6f452777b9ce | 547 | {0,0,0,0,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,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 563 | {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,0,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 | 564 | {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 | 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}, |
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},//10 |
adambakerwa | 37:23b6312c8315 | 567 | |
adambakerwa | 37:23b6312c8315 | 568 | |
adambakerwa | 37:23b6312c8315 | 569 | }; |
adambakerwa | 37:23b6312c8315 | 570 | |
adambakerwa | 37:23b6312c8315 | 571 | lcd.drawSprite(x,y,48,84,(int *)BLOCK_H); |
adambakerwa | 37:23b6312c8315 | 572 | |
adambakerwa | 37:23b6312c8315 | 573 | } |
adambakerwa | 37:23b6312c8315 | 574 | |
adambakerwa | 43:11c5d098ce9d | 575 | |
adambakerwa | 43:11c5d098ce9d | 576 | |
adambakerwa | 43:11c5d098ce9d | 577 | |
adambakerwa | 41:4b20f909bbcb | 578 | void Menu::BLOCK_HE(int x, int y, N5110 &lcd) //prints BLOCK HE sprite |
adambakerwa | 37:23b6312c8315 | 579 | { |
adambakerwa | 37:23b6312c8315 | 580 | |
adambakerwa | 37:23b6312c8315 | 581 | const int BLOCK_HE[48][84] = { |
adambakerwa | 37:23b6312c8315 | 582 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 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,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 | 585 | {0,0,0,0,0,0,0,0,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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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},//10 |
adambakerwa | 36:6f452777b9ce | 602 | |
adambakerwa | 36:6f452777b9ce | 603 | |
adambakerwa | 36:6f452777b9ce | 604 | }; |
adambakerwa | 36:6f452777b9ce | 605 | |
adambakerwa | 37:23b6312c8315 | 606 | lcd.drawSprite(x,y,48,84,(int *)BLOCK_HE); |
adambakerwa | 37:23b6312c8315 | 607 | |
adambakerwa | 37:23b6312c8315 | 608 | } |
adambakerwa | 37:23b6312c8315 | 609 | |
adambakerwa | 43:11c5d098ce9d | 610 | |
adambakerwa | 43:11c5d098ce9d | 611 | |
adambakerwa | 43:11c5d098ce9d | 612 | |
adambakerwa | 41:4b20f909bbcb | 613 | void Menu::BLOCK_HEA(int x, int y, N5110 &lcd) //prints BLOCK HEA sprite |
adambakerwa | 37:23b6312c8315 | 614 | { |
adambakerwa | 37:23b6312c8315 | 615 | |
adambakerwa | 37:23b6312c8315 | 616 | const int BLOCK_HEA[48][84] = { |
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},//1 |
adambakerwa | 37:23b6312c8315 | 618 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 619 | {0,0,0,0,0,0,0,0,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,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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,0,0,0,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 | 636 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 637 | |
adambakerwa | 37:23b6312c8315 | 638 | |
adambakerwa | 37:23b6312c8315 | 639 | }; |
adambakerwa | 37:23b6312c8315 | 640 | |
adambakerwa | 37:23b6312c8315 | 641 | lcd.drawSprite(x,y,48,84,(int *)BLOCK_HEA); |
adambakerwa | 37:23b6312c8315 | 642 | |
adambakerwa | 37:23b6312c8315 | 643 | } |
adambakerwa | 37:23b6312c8315 | 644 | |
adambakerwa | 43:11c5d098ce9d | 645 | |
adambakerwa | 43:11c5d098ce9d | 646 | |
adambakerwa | 43:11c5d098ce9d | 647 | |
adambakerwa | 41:4b20f909bbcb | 648 | void Menu::BLOCK_HEAD(int x, int y, N5110 &lcd) //prints BLOCK HEAD sprite |
adambakerwa | 37:23b6312c8315 | 649 | { |
adambakerwa | 37:23b6312c8315 | 650 | |
adambakerwa | 37:23b6312c8315 | 651 | const int BLOCK_HEAD[48][84] = { |
adambakerwa | 37:23b6312c8315 | 652 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,0,1,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0}, |
adambakerwa | 37:23b6312c8315 | 669 | {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 | 670 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 671 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 672 | |
adambakerwa | 37:23b6312c8315 | 673 | |
adambakerwa | 37:23b6312c8315 | 674 | }; |
adambakerwa | 37:23b6312c8315 | 675 | |
adambakerwa | 37:23b6312c8315 | 676 | lcd.drawSprite(x,y,48,84,(int *)BLOCK_HEAD); |
adambakerwa | 36:6f452777b9ce | 677 | |
adambakerwa | 36:6f452777b9ce | 678 | } |
adambakerwa | 36:6f452777b9ce | 679 | |
adambakerwa | 36:6f452777b9ce | 680 | |
adambakerwa | 36:6f452777b9ce | 681 | |
adambakerwa | 36:6f452777b9ce | 682 |