![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Adam Baker 201166301
Dependencies: mbed Gamepad N5110
Menu/Menu.cpp@36:6f452777b9ce, 2019-05-05 (annotated)
- Committer:
- adambakerwa
- Date:
- Sun May 05 14:58:20 2019 +0000
- Revision:
- 36:6f452777b9ce
- Child:
- 37:23b6312c8315
more menu work
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 | 36:6f452777b9ce | 13 | void Menu::init() |
adambakerwa | 36:6f452777b9ce | 14 | { |
adambakerwa | 36:6f452777b9ce | 15 | _select = 1; |
adambakerwa | 36:6f452777b9ce | 16 | _input = 0; |
adambakerwa | 36:6f452777b9ce | 17 | _stop = 0; |
adambakerwa | 36:6f452777b9ce | 18 | |
adambakerwa | 36:6f452777b9ce | 19 | } |
adambakerwa | 36:6f452777b9ce | 20 | |
adambakerwa | 36:6f452777b9ce | 21 | |
adambakerwa | 36:6f452777b9ce | 22 | |
adambakerwa | 36:6f452777b9ce | 23 | int Menu::select_input(Gamepad &pad, N5110 &lcd) |
adambakerwa | 36:6f452777b9ce | 24 | { |
adambakerwa | 36:6f452777b9ce | 25 | |
adambakerwa | 36:6f452777b9ce | 26 | if (pad.check_event(Gamepad::A_PRESSED)) { |
adambakerwa | 36:6f452777b9ce | 27 | _input = _select; |
adambakerwa | 36:6f452777b9ce | 28 | } else { |
adambakerwa | 36:6f452777b9ce | 29 | _input = 0; |
adambakerwa | 36:6f452777b9ce | 30 | } |
adambakerwa | 36:6f452777b9ce | 31 | |
adambakerwa | 36:6f452777b9ce | 32 | Vector2D updown = pad.get_coord(); |
adambakerwa | 36:6f452777b9ce | 33 | |
adambakerwa | 36:6f452777b9ce | 34 | if (updown.y <= -0.5f && _stop == 0 ) { |
adambakerwa | 36:6f452777b9ce | 35 | _select++; |
adambakerwa | 36:6f452777b9ce | 36 | _stop = 1; |
adambakerwa | 36:6f452777b9ce | 37 | } else if (updown.y >= 0.5f && _stop == 0) { |
adambakerwa | 36:6f452777b9ce | 38 | _select--; |
adambakerwa | 36:6f452777b9ce | 39 | _stop = 1; |
adambakerwa | 36:6f452777b9ce | 40 | } |
adambakerwa | 36:6f452777b9ce | 41 | |
adambakerwa | 36:6f452777b9ce | 42 | if (_select == 0) { |
adambakerwa | 36:6f452777b9ce | 43 | _select = 4; |
adambakerwa | 36:6f452777b9ce | 44 | } else if (_select == 5) { |
adambakerwa | 36:6f452777b9ce | 45 | _select = 1; |
adambakerwa | 36:6f452777b9ce | 46 | } |
adambakerwa | 36:6f452777b9ce | 47 | |
adambakerwa | 36:6f452777b9ce | 48 | if (updown.y < 0.5f && updown.y > -0.5 && _stop == 1) { |
adambakerwa | 36:6f452777b9ce | 49 | _stop = 0; |
adambakerwa | 36:6f452777b9ce | 50 | } |
adambakerwa | 36:6f452777b9ce | 51 | lcd.clear(); |
adambakerwa | 36:6f452777b9ce | 52 | |
adambakerwa | 36:6f452777b9ce | 53 | char buffer[14]; |
adambakerwa | 36:6f452777b9ce | 54 | sprintf(buffer,"%i", _input); |
adambakerwa | 36:6f452777b9ce | 55 | lcd.printString(buffer,0,0); |
adambakerwa | 36:6f452777b9ce | 56 | |
adambakerwa | 36:6f452777b9ce | 57 | print_main_menu(lcd); |
adambakerwa | 36:6f452777b9ce | 58 | |
adambakerwa | 36:6f452777b9ce | 59 | lcd.refresh(); |
adambakerwa | 36:6f452777b9ce | 60 | |
adambakerwa | 36:6f452777b9ce | 61 | return _input; |
adambakerwa | 36:6f452777b9ce | 62 | } |
adambakerwa | 36:6f452777b9ce | 63 | |
adambakerwa | 36:6f452777b9ce | 64 | void Menu::print_main_menu(N5110 &lcd) //can go in menu class. |
adambakerwa | 36:6f452777b9ce | 65 | { |
adambakerwa | 36:6f452777b9ce | 66 | //lcd.clear(); |
adambakerwa | 36:6f452777b9ce | 67 | |
adambakerwa | 36:6f452777b9ce | 68 | lcd.printString(" Play Game ",0,1); |
adambakerwa | 36:6f452777b9ce | 69 | lcd.printString(" Highscore ",0,2); |
adambakerwa | 36:6f452777b9ce | 70 | lcd.printString(" Settings ",0,3); |
adambakerwa | 36:6f452777b9ce | 71 | lcd.printString(" Quit... ",0,4); |
adambakerwa | 36:6f452777b9ce | 72 | |
adambakerwa | 36:6f452777b9ce | 73 | if (_select == 1) { |
adambakerwa | 36:6f452777b9ce | 74 | lcd.drawRect(3,10,3,3,FILL_BLACK); |
adambakerwa | 36:6f452777b9ce | 75 | } else if (_select == 2) { |
adambakerwa | 36:6f452777b9ce | 76 | lcd.drawRect(3,18,3,3,FILL_BLACK); |
adambakerwa | 36:6f452777b9ce | 77 | } else if (_select == 3) { |
adambakerwa | 36:6f452777b9ce | 78 | lcd.drawRect(3,26,3,3,FILL_BLACK); |
adambakerwa | 36:6f452777b9ce | 79 | } else if (_select == 4) { |
adambakerwa | 36:6f452777b9ce | 80 | lcd.drawRect(3,34,3,3,FILL_BLACK); |
adambakerwa | 36:6f452777b9ce | 81 | } |
adambakerwa | 36:6f452777b9ce | 82 | |
adambakerwa | 36:6f452777b9ce | 83 | //lcd.refresh(); |
adambakerwa | 36:6f452777b9ce | 84 | |
adambakerwa | 36:6f452777b9ce | 85 | } |
adambakerwa | 36:6f452777b9ce | 86 | |
adambakerwa | 36:6f452777b9ce | 87 | |
adambakerwa | 36:6f452777b9ce | 88 | |
adambakerwa | 36:6f452777b9ce | 89 | void Menu::B(int x, int y, N5110 &lcd) |
adambakerwa | 36:6f452777b9ce | 90 | { |
adambakerwa | 36:6f452777b9ce | 91 | |
adambakerwa | 36:6f452777b9ce | 92 | const int B[48][84] = { |
adambakerwa | 36:6f452777b9ce | 93 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 94 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 95 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 96 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 97 | {0,0,0,0,0,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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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,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 109 | {0,0,0,0,0,1,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,0,0,0,0,0,0,0,0}, |
adambakerwa | 36:6f452777b9ce | 110 | {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 | 111 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 112 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 113 | |
adambakerwa | 36:6f452777b9ce | 114 | |
adambakerwa | 36:6f452777b9ce | 115 | }; |
adambakerwa | 36:6f452777b9ce | 116 | |
adambakerwa | 36:6f452777b9ce | 117 | lcd.drawSprite(x,y,12,9,(int *)B; |
adambakerwa | 36:6f452777b9ce | 118 | |
adambakerwa | 36:6f452777b9ce | 119 | } |
adambakerwa | 36:6f452777b9ce | 120 | |
adambakerwa | 36:6f452777b9ce | 121 | void Menu::BL(int x, int y, N5110 &lcd) |
adambakerwa | 36:6f452777b9ce | 122 | { |
adambakerwa | 36:6f452777b9ce | 123 | |
adambakerwa | 36:6f452777b9ce | 124 | const int BL[48][84] = { |
adambakerwa | 36:6f452777b9ce | 125 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 126 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 127 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 128 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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},//10 |
adambakerwa | 36:6f452777b9ce | 145 | |
adambakerwa | 36:6f452777b9ce | 146 | |
adambakerwa | 36:6f452777b9ce | 147 | }; |
adambakerwa | 36:6f452777b9ce | 148 | |
adambakerwa | 36:6f452777b9ce | 149 | lcd.drawSprite(x,y,12,9,(int *)BL; |
adambakerwa | 36:6f452777b9ce | 150 | |
adambakerwa | 36:6f452777b9ce | 151 | } |
adambakerwa | 36:6f452777b9ce | 152 | |
adambakerwa | 36:6f452777b9ce | 153 | void Menu::BLO(int x, int y, N5110 &lcd) |
adambakerwa | 36:6f452777b9ce | 154 | { |
adambakerwa | 36:6f452777b9ce | 155 | |
adambakerwa | 36:6f452777b9ce | 156 | const int BLO[48][84] = { |
adambakerwa | 36:6f452777b9ce | 157 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 158 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 159 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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}, |
adambakerwa | 36:6f452777b9ce | 176 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 177 | |
adambakerwa | 36:6f452777b9ce | 178 | |
adambakerwa | 36:6f452777b9ce | 179 | }; |
adambakerwa | 36:6f452777b9ce | 180 | |
adambakerwa | 36:6f452777b9ce | 181 | lcd.drawSprite(x,y,12,9,(int *)BLO; |
adambakerwa | 36:6f452777b9ce | 182 | |
adambakerwa | 36:6f452777b9ce | 183 | } |
adambakerwa | 36:6f452777b9ce | 184 | |
adambakerwa | 36:6f452777b9ce | 185 | void Menu::BLOC(int x, int y, N5110 &lcd) |
adambakerwa | 36:6f452777b9ce | 186 | { |
adambakerwa | 36:6f452777b9ce | 187 | |
adambakerwa | 36:6f452777b9ce | 188 | const int BLOC[48][84] = { |
adambakerwa | 36:6f452777b9ce | 189 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 190 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 207 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 208 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 209 | |
adambakerwa | 36:6f452777b9ce | 210 | |
adambakerwa | 36:6f452777b9ce | 211 | }; |
adambakerwa | 36:6f452777b9ce | 212 | |
adambakerwa | 36:6f452777b9ce | 213 | lcd.drawSprite(x,y,12,9,(int *)BLOC; |
adambakerwa | 36:6f452777b9ce | 214 | |
adambakerwa | 36:6f452777b9ce | 215 | } |
adambakerwa | 36:6f452777b9ce | 216 | |
adambakerwa | 36:6f452777b9ce | 217 | void Menu::BLOCK(int x, int y, N5110 &lcd) |
adambakerwa | 36:6f452777b9ce | 218 | { |
adambakerwa | 36:6f452777b9ce | 219 | |
adambakerwa | 36:6f452777b9ce | 220 | const int BLOCK[48][84] = { |
adambakerwa | 36:6f452777b9ce | 221 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 |
ad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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}, |
adambakerwa | 36:6f452777b9ce | 238 | {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 | 239 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 240 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 241 | |
adambakerwa | 36:6f452777b9ce | 242 | |
adambakerwa | 36:6f452777b9ce | 243 | }; |
adambakerwa | 36:6f452777b9ce | 244 | |
adambakerwa | 36:6f452777b9ce | 245 | lcd.drawSprite(x,y,12,9,(int *)BLOCK; |
adambakerwa | 36:6f452777b9ce | 246 | |
adambakerwa | 36:6f452777b9ce | 247 | } |
adambakerwa | 36:6f452777b9ce | 248 | |
adambakerwa | 36:6f452777b9ce | 249 | |
adambakerwa | 36:6f452777b9ce | 250 | void Menu::BLOCK(int x, int y, N5110 &lcd) |
adambakerwa | 36:6f452777b9ce | 251 | { |
adambakerwa | 36:6f452777b9ce | 252 | |
adambakerwa | 36:6f452777b9ce | 253 | const int BLOCK[48][84] = { |
adambakerwa | 36:6f452777b9ce | 254 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 255 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 256 | {0,0,0,0,0,0,0,0,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 | 36:6f452777b9ce | 257 | {0,0,0,0,0,0,0,0,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,0}, |
adambakerwa | 36:6f452777b9ce | 258 | {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,0,0,0,0,0,0,0,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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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,0}, |
adambakerwa | 36:6f452777b9ce | 270 | {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 | 36:6f452777b9ce | 271 | {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,0}, |
adambakerwa | 36:6f452777b9ce | 272 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 273 | {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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 | 274 | |
adambakerwa | 36:6f452777b9ce | 275 | |
adambakerwa | 36:6f452777b9ce | 276 | }; |
adambakerwa | 36:6f452777b9ce | 277 | |
adambakerwa | 36:6f452777b9ce | 278 | lcd.drawSprite(x,y,12,9,(int *)BLOCK; |
adambakerwa | 36:6f452777b9ce | 279 | |
adambakerwa | 36:6f452777b9ce | 280 | } |
adambakerwa | 36:6f452777b9ce | 281 | |
adambakerwa | 36:6f452777b9ce | 282 | |
adambakerwa | 36:6f452777b9ce | 283 | |
adambakerwa | 36:6f452777b9ce | 284 |