Class containing all the bitmaps for the 10 different mazes used throughout the game.

Committer:
el15mh
Date:
Wed May 03 21:13:38 2017 +0000
Revision:
2:834bd321a30d
Parent:
1:8ed19eb9e7e5
Child:
3:8547399e8c29
fully working program

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el15mh 2:834bd321a30d 1 /*
el15mh 2:834bd321a30d 2
el15mh 2:834bd321a30d 3 @file Maze.cpp
el15mh 2:834bd321a30d 4
el15mh 2:834bd321a30d 5 (c) Max Houghton 19.03.17
el15mh 2:834bd321a30d 6 Roller Maze Project, ELEC2645, Univeristy of Leeds
el15mh 2:834bd321a30d 7
el15mh 2:834bd321a30d 8 */
el15mh 0:d5a32831fa28 9
el15mh 0:d5a32831fa28 10 #include "Maze.h"
el15mh 0:d5a32831fa28 11
el15mh 0:d5a32831fa28 12 Maze::Maze()
el15mh 0:d5a32831fa28 13 {
el15mh 0:d5a32831fa28 14
el15mh 0:d5a32831fa28 15 }
el15mh 0:d5a32831fa28 16
el15mh 0:d5a32831fa28 17 Maze::~Maze()
el15mh 0:d5a32831fa28 18 {
el15mh 0:d5a32831fa28 19
el15mh 0:d5a32831fa28 20 }
el15mh 0:d5a32831fa28 21
el15mh 1:8ed19eb9e7e5 22 void Maze::init(int mazeIndex)
el15mh 1:8ed19eb9e7e5 23 {
el15mh 1:8ed19eb9e7e5 24 _mazeIndex = mazeIndex;
el15mh 1:8ed19eb9e7e5 25 }
el15mh 1:8ed19eb9e7e5 26
el15mh 1:8ed19eb9e7e5 27 void Maze::draw(N5110 &lcd)
el15mh 1:8ed19eb9e7e5 28 {
el15mh 2:834bd321a30d 29 /// EASY MAZES ///
el15mh 1:8ed19eb9e7e5 30 if (_mazeIndex == 0){
el15mh 2:834bd321a30d 31 mazeIndexZero(lcd);
el15mh 1:8ed19eb9e7e5 32 }
el15mh 1:8ed19eb9e7e5 33 else if (_mazeIndex == 1){
el15mh 2:834bd321a30d 34 mazeIndexOne(lcd);
el15mh 1:8ed19eb9e7e5 35 }
el15mh 1:8ed19eb9e7e5 36 else if (_mazeIndex == 2){
el15mh 2:834bd321a30d 37 mazeIndexTwo(lcd);
el15mh 2:834bd321a30d 38 }
el15mh 2:834bd321a30d 39 /// MEDIUM MAZES ///
el15mh 2:834bd321a30d 40 else if (_mazeIndex == 3){
el15mh 2:834bd321a30d 41 mazeIndexThree(lcd);
el15mh 2:834bd321a30d 42 }
el15mh 2:834bd321a30d 43 else if (_mazeIndex == 4){
el15mh 2:834bd321a30d 44 mazeIndexFour(lcd);
el15mh 2:834bd321a30d 45 }
el15mh 2:834bd321a30d 46 else if (_mazeIndex == 5){
el15mh 2:834bd321a30d 47 mazeIndexFive(lcd);
el15mh 2:834bd321a30d 48 }
el15mh 2:834bd321a30d 49 /// HARD MAZES ///
el15mh 2:834bd321a30d 50 else if (_mazeIndex == 6){
el15mh 2:834bd321a30d 51 mazeIndexSix(lcd);
el15mh 2:834bd321a30d 52 }
el15mh 2:834bd321a30d 53 else if (_mazeIndex == 7){
el15mh 2:834bd321a30d 54 mazeIndexSeven(lcd);
el15mh 2:834bd321a30d 55 }
el15mh 2:834bd321a30d 56 else if (_mazeIndex == 8){
el15mh 2:834bd321a30d 57 mazeIndexEight(lcd);
el15mh 2:834bd321a30d 58 }
el15mh 2:834bd321a30d 59 /// EXTREME MAZE ///
el15mh 2:834bd321a30d 60 else if (_mazeIndex == 9){
el15mh 2:834bd321a30d 61 mazeIndexNine(lcd);
el15mh 1:8ed19eb9e7e5 62 }
el15mh 1:8ed19eb9e7e5 63 }
el15mh 1:8ed19eb9e7e5 64
el15mh 2:834bd321a30d 65 void Maze::testMaze(N5110 &lcd)
el15mh 0:d5a32831fa28 66 {
el15mh 2:834bd321a30d 67 // maze index 0
el15mh 0:d5a32831fa28 68 for (int i = 0; i < WIDTH; i++){
el15mh 0:d5a32831fa28 69 lcd.setPixel(i, 0);
el15mh 0:d5a32831fa28 70 lcd.setPixel(i, HEIGHT - 1);
el15mh 0:d5a32831fa28 71 }
el15mh 0:d5a32831fa28 72
el15mh 0:d5a32831fa28 73 for (int j = 0; j < HEIGHT; j++){
el15mh 0:d5a32831fa28 74 lcd.setPixel(0, j);
el15mh 0:d5a32831fa28 75 lcd.setPixel(WIDTH - 1, j);
el15mh 0:d5a32831fa28 76 }
el15mh 0:d5a32831fa28 77
el15mh 2:834bd321a30d 78 for (int j = 40; j < HEIGHT; j++){
el15mh 2:834bd321a30d 79 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 80 }
el15mh 0:d5a32831fa28 81 }
el15mh 0:d5a32831fa28 82
el15mh 2:834bd321a30d 83 void Maze::mazeIndexZero(N5110 &lcd)
el15mh 0:d5a32831fa28 84 {
el15mh 2:834bd321a30d 85 // easy maze 1
el15mh 2:834bd321a30d 86 // index 0
el15mh 2:834bd321a30d 87 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 0:d5a32831fa28 88
el15mh 2:834bd321a30d 89 lcd.drawLine(10, 0, 10, 39, FILL_BLACK);
el15mh 2:834bd321a30d 90 lcd.drawLine(10, 39, 20, 39, FILL_BLACK);
el15mh 0:d5a32831fa28 91 lcd.drawLine(20, 0, 20, 20, FILL_BLACK);
el15mh 2:834bd321a30d 92 lcd.drawLine(30, 10, 39, 10, FILL_BLACK);
el15mh 0:d5a32831fa28 93 lcd.drawLine(20, 30, 30, 30, FILL_BLACK);
el15mh 0:d5a32831fa28 94 lcd.drawLine(20, 20, 40, 20, FILL_BLACK);
el15mh 0:d5a32831fa28 95 lcd.drawLine(40, 0, 40, 10, FILL_BLACK);
el15mh 0:d5a32831fa28 96 lcd.drawLine(30, 30, 30, HEIGHT - 1, FILL_BLACK);
el15mh 2:834bd321a30d 97 lcd.drawLine(30, 39, 50, 39, FILL_BLACK);
el15mh 0:d5a32831fa28 98 lcd.drawLine(40, 20, 40, 30, FILL_BLACK);
el15mh 0:d5a32831fa28 99 lcd.drawLine(40, 30, 60, 30, FILL_BLACK);
el15mh 2:834bd321a30d 100 lcd.drawLine(50, 20, 71, 20, FILL_BLACK);
el15mh 0:d5a32831fa28 101 lcd.drawLine(50, 10, 50, 20, FILL_BLACK);
el15mh 2:834bd321a30d 102 lcd.drawLine(60, 30, 60, 39, FILL_BLACK);
el15mh 2:834bd321a30d 103 lcd.drawLine(71, 20, 71, 39, FILL_BLACK);
el15mh 0:d5a32831fa28 104 lcd.drawLine(50, 10, WIDTH - 1, 10, FILL_BLACK);
el15mh 0:d5a32831fa28 105
el15mh 2:834bd321a30d 106 // drawing the goal
el15mh 2:834bd321a30d 107 for (int j = 1; j < 10; j++){
el15mh 2:834bd321a30d 108 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 109 }
el15mh 2:834bd321a30d 110 }
el15mh 2:834bd321a30d 111
el15mh 2:834bd321a30d 112 void Maze::mazeIndexOne(N5110 &lcd)
el15mh 2:834bd321a30d 113 {
el15mh 2:834bd321a30d 114 // easy maze 2
el15mh 2:834bd321a30d 115 // index 1
el15mh 2:834bd321a30d 116 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 117
el15mh 2:834bd321a30d 118 lcd.drawLine(10, 0, 10, 20, FILL_BLACK);
el15mh 2:834bd321a30d 119 lcd.drawLine(20, 10, 40, 10, FILL_BLACK);
el15mh 2:834bd321a30d 120 lcd.drawLine(50, 10, 71, 10, FILL_BLACK);
el15mh 2:834bd321a30d 121 lcd.drawLine(30, 10, 30, 30, FILL_BLACK);
el15mh 2:834bd321a30d 122 lcd.drawLine(50, 10, 50, 30, FILL_BLACK);
el15mh 2:834bd321a30d 123 lcd.drawLine(10, 20, 20, 20, FILL_BLACK);
el15mh 2:834bd321a30d 124 lcd.drawLine(40, 20, 50, 20, FILL_BLACK);
el15mh 2:834bd321a30d 125 lcd.drawLine(71, 20, 83, 20, FILL_BLACK);
el15mh 2:834bd321a30d 126 lcd.drawLine(60, 20, 60, 39, FILL_BLACK);
el15mh 2:834bd321a30d 127 lcd.drawLine(71, 20, 71, 30, FILL_BLACK);
el15mh 2:834bd321a30d 128 lcd.drawLine(20, 30, 40, 30, FILL_BLACK);
el15mh 2:834bd321a30d 129 lcd.drawLine(10, 30, 10, 39, FILL_BLACK);
el15mh 2:834bd321a30d 130 lcd.drawLine(40, 30, 40, 47, FILL_BLACK);
el15mh 2:834bd321a30d 131 lcd.drawLine(60, 10, 60, 20, FILL_BLACK);
el15mh 2:834bd321a30d 132 lcd.drawLine(10, 39, 40, 39, FILL_BLACK);
el15mh 2:834bd321a30d 133 lcd.drawLine(50, 39, 83, 39, FILL_BLACK);
el15mh 2:834bd321a30d 134
el15mh 2:834bd321a30d 135 // drawing the goal
el15mh 2:834bd321a30d 136 for (int j = 21; j < 30; j++){
el15mh 2:834bd321a30d 137 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 138 }
el15mh 2:834bd321a30d 139 }
el15mh 2:834bd321a30d 140
el15mh 2:834bd321a30d 141 void Maze::mazeIndexTwo(N5110 &lcd)
el15mh 2:834bd321a30d 142 {
el15mh 2:834bd321a30d 143 // easy maze 3
el15mh 2:834bd321a30d 144 // index 2
el15mh 2:834bd321a30d 145 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 146
el15mh 2:834bd321a30d 147 lcd.drawLine(20, 0, 20, 20, FILL_BLACK);
el15mh 2:834bd321a30d 148 lcd.drawLine(40, 0, 40, 20, FILL_BLACK);
el15mh 2:834bd321a30d 149 lcd.drawLine(0, 10, 10, 10, FILL_BLACK);
el15mh 2:834bd321a30d 150 lcd.drawLine(10, 30, 40, 30, FILL_BLACK);
el15mh 2:834bd321a30d 151 lcd.drawLine(71, 0, 71, 10, FILL_BLACK);
el15mh 2:834bd321a30d 152 lcd.drawLine(10, 10, 10, 20, FILL_BLACK);
el15mh 2:834bd321a30d 153 lcd.drawLine(50, 10, 60, 10, FILL_BLACK);
el15mh 2:834bd321a30d 154 lcd.drawLine(60, 20, 60, 30, FILL_BLACK);
el15mh 2:834bd321a30d 155 lcd.drawLine(71, 30, 83, 30, FILL_BLACK);
el15mh 2:834bd321a30d 156 lcd.drawLine(30, 10, 30, 39, FILL_BLACK);
el15mh 2:834bd321a30d 157 lcd.drawLine(50, 10, 50, 39, FILL_BLACK);
el15mh 2:834bd321a30d 158 lcd.drawLine(60, 20, 83, 20, FILL_BLACK);
el15mh 2:834bd321a30d 159 lcd.drawLine(10, 30, 10, 39, FILL_BLACK);
el15mh 2:834bd321a30d 160 lcd.drawLine(40, 30, 40, 47, FILL_BLACK);
el15mh 2:834bd321a30d 161 lcd.drawLine(71, 30, 71, 39, FILL_BLACK);
el15mh 2:834bd321a30d 162 lcd.drawLine(20, 39, 20, 47, FILL_BLACK);
el15mh 2:834bd321a30d 163 lcd.drawLine(50, 39, 71, 39, FILL_BLACK);
el15mh 2:834bd321a30d 164
el15mh 2:834bd321a30d 165 // drawing the goal
el15mh 2:834bd321a30d 166 for (int j = 21; j < 30; j++){
el15mh 2:834bd321a30d 167 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 168 }
el15mh 2:834bd321a30d 169
el15mh 2:834bd321a30d 170 }
el15mh 2:834bd321a30d 171
el15mh 2:834bd321a30d 172 void Maze::mazeIndexThree(N5110 &lcd)
el15mh 2:834bd321a30d 173 {
el15mh 2:834bd321a30d 174 // medium maze 1
el15mh 2:834bd321a30d 175 // maze index 3
el15mh 2:834bd321a30d 176 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 177
el15mh 2:834bd321a30d 178 lcd.drawLine(16, 0, 16, 8, FILL_BLACK);
el15mh 2:834bd321a30d 179 lcd.drawLine(56, 0, 56, 16, FILL_BLACK);
el15mh 2:834bd321a30d 180 lcd.drawLine(80, 0, 80, 16, FILL_BLACK);
el15mh 2:834bd321a30d 181 lcd.drawLine(8, 8, 24, 8, FILL_BLACK);
el15mh 2:834bd321a30d 182 lcd.drawLine(32, 8, 48, 8, FILL_BLACK);
el15mh 2:834bd321a30d 183 lcd.drawLine(64, 8, 72, 8, FILL_BLACK);
el15mh 2:834bd321a30d 184 lcd.drawLine(8, 8, 8, 40, FILL_BLACK);
el15mh 2:834bd321a30d 185 lcd.drawLine(24, 8, 24, 16, FILL_BLACK);
el15mh 2:834bd321a30d 186 lcd.drawLine(32, 8, 32, 40, FILL_BLACK);
el15mh 2:834bd321a30d 187 lcd.drawLine(48, 8, 48, 16, FILL_BLACK);
el15mh 2:834bd321a30d 188 lcd.drawLine(64, 8, 64, 24, FILL_BLACK);
el15mh 2:834bd321a30d 189 lcd.drawLine(72, 8, 72, 24, FILL_BLACK);
el15mh 2:834bd321a30d 190 lcd.drawLine(16, 16, 16, 24, FILL_BLACK);
el15mh 2:834bd321a30d 191 lcd.drawLine(40, 16, 40, 24, FILL_BLACK);
el15mh 2:834bd321a30d 192 lcd.drawLine(80, 16, 84, 16, FILL_BLACK);
el15mh 2:834bd321a30d 193 lcd.drawLine(16, 24, 32, 24, FILL_BLACK);
el15mh 2:834bd321a30d 194 lcd.drawLine(40, 24, 64, 24, FILL_BLACK);
el15mh 2:834bd321a30d 195 lcd.drawLine(8, 32, 24, 32, FILL_BLACK);
el15mh 2:834bd321a30d 196 lcd.drawLine(40, 32, 40, 40, FILL_BLACK);
el15mh 2:834bd321a30d 197 lcd.drawLine(48, 32, 48, 48, FILL_BLACK);
el15mh 2:834bd321a30d 198 lcd.drawLine(64, 32, 72, 32, FILL_BLACK);
el15mh 2:834bd321a30d 199 lcd.drawLine(72, 32, 72, 40, FILL_BLACK);
el15mh 2:834bd321a30d 200 lcd.drawLine(32, 40, 40, 40, FILL_BLACK);
el15mh 2:834bd321a30d 201 lcd.drawLine(72, 40, 84, 40, FILL_BLACK);
el15mh 2:834bd321a30d 202 lcd.drawLine(16, 40, 16, 48, FILL_BLACK);
el15mh 2:834bd321a30d 203 lcd.drawLine(64, 40, 64, 48, FILL_BLACK);
el15mh 2:834bd321a30d 204 lcd.drawLine(24, 32, 24, 40, FILL_BLACK);
el15mh 2:834bd321a30d 205 lcd.drawLine(40, 24, 40, 40, FILL_BLACK);
el15mh 2:834bd321a30d 206 lcd.drawLine(56, 24, 56, 40, FILL_BLACK);
el15mh 2:834bd321a30d 207 lcd.drawLine(64, 32, 72, 32, FILL_BLACK);
el15mh 2:834bd321a30d 208 lcd.drawLine(56, 40, 64, 40, FILL_BLACK);
el15mh 2:834bd321a30d 209
el15mh 2:834bd321a30d 210 // drawing the goal
el15mh 2:834bd321a30d 211 for (int j = 41; j < 47; j++){
el15mh 2:834bd321a30d 212 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 213 }
el15mh 2:834bd321a30d 214 }
el15mh 2:834bd321a30d 215
el15mh 2:834bd321a30d 216 void Maze::mazeIndexFour(N5110 &lcd)
el15mh 2:834bd321a30d 217 {
el15mh 2:834bd321a30d 218 // medium maze 2
el15mh 2:834bd321a30d 219 // index 4
el15mh 2:834bd321a30d 220 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 221
el15mh 2:834bd321a30d 222 // vertical
el15mh 2:834bd321a30d 223 lcd.drawLine(8, 0, 8, 8, FILL_BLACK);
el15mh 2:834bd321a30d 224 lcd.drawLine(32, 0, 32, 16, FILL_BLACK);
el15mh 2:834bd321a30d 225 lcd.drawLine(64, 0, 64, 16, FILL_BLACK);
el15mh 2:834bd321a30d 226
el15mh 2:834bd321a30d 227 //horizontal
el15mh 2:834bd321a30d 228 lcd.drawLine(16, 8, 24, 8, FILL_BLACK);
el15mh 2:834bd321a30d 229 lcd.drawLine(40, 8, 56, 8, FILL_BLACK);
el15mh 2:834bd321a30d 230 //vertical
el15mh 2:834bd321a30d 231 lcd.drawLine(16, 8, 16, 24, FILL_BLACK);
el15mh 2:834bd321a30d 232 lcd.drawLine(40, 8, 40, 32, FILL_BLACK);
el15mh 2:834bd321a30d 233 lcd.drawLine(73, 8, 73, 32, FILL_BLACK);
el15mh 2:834bd321a30d 234
el15mh 2:834bd321a30d 235 // horizontal
el15mh 2:834bd321a30d 236 lcd.drawLine(0, 16, 8, 16, FILL_BLACK);
el15mh 2:834bd321a30d 237 lcd.drawLine(24, 16, 32, 16, FILL_BLACK);
el15mh 2:834bd321a30d 238 lcd.drawLine(48, 16, 64, 16, FILL_BLACK);
el15mh 2:834bd321a30d 239 // vertical
el15mh 2:834bd321a30d 240 lcd.drawLine(56, 16, 56, 32, FILL_BLACK);
el15mh 2:834bd321a30d 241
el15mh 2:834bd321a30d 242 // horizontal
el15mh 2:834bd321a30d 243 lcd.drawLine(8, 24, 48, 24, FILL_BLACK);
el15mh 2:834bd321a30d 244 lcd.drawLine(64, 24, 73, 24, FILL_BLACK);
el15mh 2:834bd321a30d 245 // vertical
el15mh 2:834bd321a30d 246 lcd.drawLine(8, 24, 8, 40, FILL_BLACK);
el15mh 2:834bd321a30d 247 lcd.drawLine(64, 24, 64, 40, FILL_BLACK);
el15mh 2:834bd321a30d 248
el15mh 2:834bd321a30d 249 // horizontal
el15mh 2:834bd321a30d 250 lcd.drawLine(24, 32, 56, 32, FILL_BLACK);
el15mh 2:834bd321a30d 251 // vertical
el15mh 2:834bd321a30d 252 lcd.drawLine(16, 32, 16, 40, FILL_BLACK);
el15mh 2:834bd321a30d 253 lcd.drawLine(32, 32, 32, 40, FILL_BLACK);
el15mh 2:834bd321a30d 254 lcd.drawLine(48, 32, 48, 40, FILL_BLACK);
el15mh 2:834bd321a30d 255
el15mh 2:834bd321a30d 256 // horizontal
el15mh 2:834bd321a30d 257 lcd.drawLine(16, 40, 32, 40, FILL_BLACK);
el15mh 2:834bd321a30d 258 lcd.drawLine(64, 40, 83, 40, FILL_BLACK);
el15mh 2:834bd321a30d 259 // vertical
el15mh 2:834bd321a30d 260 lcd.drawLine(40, 40, 40, 47, FILL_BLACK);
el15mh 2:834bd321a30d 261 lcd.drawLine(56, 40, 56, 47, FILL_BLACK);
el15mh 2:834bd321a30d 262
el15mh 2:834bd321a30d 263 // drawing the goal
el15mh 2:834bd321a30d 264 for (int j = 41; j < 47; j++){
el15mh 2:834bd321a30d 265 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 266 }
el15mh 2:834bd321a30d 267
el15mh 2:834bd321a30d 268 }
el15mh 2:834bd321a30d 269
el15mh 2:834bd321a30d 270
el15mh 2:834bd321a30d 271 void Maze::mazeIndexFive(N5110 &lcd)
el15mh 2:834bd321a30d 272 {
el15mh 2:834bd321a30d 273 // medium maze 3
el15mh 2:834bd321a30d 274 // maze index 5
el15mh 2:834bd321a30d 275
el15mh 2:834bd321a30d 276 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 277
el15mh 2:834bd321a30d 278 // vertical
el15mh 2:834bd321a30d 279 lcd.drawLine(8, 0, 8, 16, FILL_BLACK);
el15mh 2:834bd321a30d 280 lcd.drawLine(24, 0, 24, 16, FILL_BLACK);
el15mh 2:834bd321a30d 281 lcd.drawLine(48, 0, 48, 16, FILL_BLACK);
el15mh 2:834bd321a30d 282 lcd.drawLine(64, 0, 64, 8, FILL_BLACK);
el15mh 2:834bd321a30d 283
el15mh 2:834bd321a30d 284 // horizontal
el15mh 2:834bd321a30d 285 lcd.drawLine(32, 8, 40, 8, FILL_BLACK);
el15mh 2:834bd321a30d 286 // vertical
el15mh 2:834bd321a30d 287 lcd.drawLine(16, 8, 16, 16, FILL_BLACK);
el15mh 2:834bd321a30d 288 lcd.drawLine(32, 8, 32, 24, FILL_BLACK);
el15mh 2:834bd321a30d 289 lcd.drawLine(56, 8, 56, 24, FILL_BLACK);
el15mh 2:834bd321a30d 290 lcd.drawLine(73, 8, 73, 16, FILL_BLACK);
el15mh 2:834bd321a30d 291
el15mh 2:834bd321a30d 292 // horizontal
el15mh 2:834bd321a30d 293 lcd.drawLine(16, 16, 24, 16, FILL_BLACK);
el15mh 2:834bd321a30d 294 lcd.drawLine(40, 16, 48, 16, FILL_BLACK);
el15mh 2:834bd321a30d 295 lcd.drawLine(56, 16, 73, 16, FILL_BLACK);
el15mh 2:834bd321a30d 296 // vertical
el15mh 2:834bd321a30d 297
el15mh 2:834bd321a30d 298 // horizontal
el15mh 2:834bd321a30d 299 lcd.drawLine(0, 24, 8, 24, FILL_BLACK);
el15mh 2:834bd321a30d 300 lcd.drawLine(16, 24, 56, 24, FILL_BLACK);
el15mh 2:834bd321a30d 301 lcd.drawLine(64, 24, 83, 24, FILL_BLACK);
el15mh 2:834bd321a30d 302 // vertical
el15mh 2:834bd321a30d 303 lcd.drawLine(16, 24, 16, 32, FILL_BLACK);
el15mh 2:834bd321a30d 304 lcd.drawLine(40, 24, 40, 40, FILL_BLACK);
el15mh 2:834bd321a30d 305
el15mh 2:834bd321a30d 306 // horizontal
el15mh 2:834bd321a30d 307 lcd.drawLine(8, 32, 32, 32, FILL_BLACK);
el15mh 2:834bd321a30d 308 lcd.drawLine(48, 32, 73, 32, FILL_BLACK);
el15mh 2:834bd321a30d 309 // vertical
el15mh 2:834bd321a30d 310 lcd.drawLine(8, 32, 8, 40, FILL_BLACK);
el15mh 2:834bd321a30d 311 lcd.drawLine(48, 32, 48, 40, FILL_BLACK);
el15mh 2:834bd321a30d 312 lcd.drawLine(64, 32, 64, 40, FILL_BLACK);
el15mh 2:834bd321a30d 313 lcd.drawLine(73, 32, 73, 47, FILL_BLACK);
el15mh 2:834bd321a30d 314
el15mh 2:834bd321a30d 315 // horizontal
el15mh 2:834bd321a30d 316 lcd.drawLine(16, 40, 40, 40, FILL_BLACK);
el15mh 2:834bd321a30d 317 // vertical
el15mh 2:834bd321a30d 318 lcd.drawLine(16, 40, 16, 47, FILL_BLACK);
el15mh 2:834bd321a30d 319 lcd.drawLine(56, 40, 56, 47, FILL_BLACK);
el15mh 2:834bd321a30d 320
el15mh 2:834bd321a30d 321 // drawing the goal
el15mh 2:834bd321a30d 322 for (int j = 41; j < 47; j++){
el15mh 2:834bd321a30d 323 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 324 }
el15mh 2:834bd321a30d 325
el15mh 2:834bd321a30d 326 }
el15mh 2:834bd321a30d 327
el15mh 2:834bd321a30d 328 void Maze::mazeIndexSix(N5110 &lcd)
el15mh 2:834bd321a30d 329 {
el15mh 2:834bd321a30d 330 // hard maze 1
el15mh 2:834bd321a30d 331 // maze index 6
el15mh 2:834bd321a30d 332
el15mh 2:834bd321a30d 333 lcd.drawRect(2, 0, 81, 47, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 334
el15mh 2:834bd321a30d 335 lcd.drawLine(7, 1, 7, 6, FILL_BLACK);
el15mh 2:834bd321a30d 336 lcd.drawLine(22, 1, 22, 11, FILL_BLACK);
el15mh 2:834bd321a30d 337 lcd.drawLine(42, 1, 42, 21, FILL_BLACK);
el15mh 2:834bd321a30d 338 lcd.drawLine(57, 1, 57, 16, FILL_BLACK);
el15mh 2:834bd321a30d 339 lcd.drawLine(12, 6, 17, 6, FILL_BLACK);
el15mh 2:834bd321a30d 340 lcd.drawLine(27, 6, 37, 6, FILL_BLACK);
el15mh 2:834bd321a30d 341 lcd.drawLine(47, 6, 52, 6, FILL_BLACK);
el15mh 2:834bd321a30d 342 lcd.drawLine(72, 6, 82, 6, FILL_BLACK);
el15mh 2:834bd321a30d 343 lcd.drawLine(12, 6, 12, 26, FILL_BLACK);
el15mh 2:834bd321a30d 344 lcd.drawLine(37, 6, 37, 16, FILL_BLACK);
el15mh 2:834bd321a30d 345 lcd.drawLine(47, 6, 47, 21, FILL_BLACK);
el15mh 2:834bd321a30d 346 lcd.drawLine(62, 6, 62, 21, FILL_BLACK);
el15mh 2:834bd321a30d 347 lcd.drawLine(67, 6, 67, 11, FILL_BLACK);
el15mh 2:834bd321a30d 348 lcd.drawLine(2, 11, 7, 11, FILL_BLACK);
el15mh 2:834bd321a30d 349 lcd.drawLine(17, 11, 32, 11, FILL_BLACK);
el15mh 2:834bd321a30d 350 lcd.drawLine(52, 11, 57, 11, FILL_BLACK);
el15mh 2:834bd321a30d 351 lcd.drawLine(67, 11, 77, 11, FILL_BLACK);
el15mh 2:834bd321a30d 352 lcd.drawLine(32, 11, 32, 21, FILL_BLACK);
el15mh 2:834bd321a30d 353 lcd.drawLine(72, 11, 72, 21, FILL_BLACK);
el15mh 2:834bd321a30d 354 lcd.drawLine(7, 16, 17, 16, FILL_BLACK);
el15mh 2:834bd321a30d 355 lcd.drawLine(22, 16, 27, 16, FILL_BLACK);
el15mh 2:834bd321a30d 356 lcd.drawLine(37, 16, 42, 16, FILL_BLACK);
el15mh 2:834bd321a30d 357 lcd.drawLine(47, 16, 57, 16, FILL_BLACK);
el15mh 2:834bd321a30d 358 lcd.drawLine(62, 16, 67, 16, FILL_BLACK);
el15mh 2:834bd321a30d 359 lcd.drawLine(77, 16, 82, 16, FILL_BLACK);
el15mh 2:834bd321a30d 360 lcd.drawLine(17, 16, 17, 21, FILL_BLACK);
el15mh 2:834bd321a30d 361 lcd.drawLine(27, 16, 27, 26, FILL_BLACK);
el15mh 2:834bd321a30d 362 lcd.drawLine(2, 21, 7, 21, FILL_BLACK);
el15mh 2:834bd321a30d 363 lcd.drawLine(17, 21, 22, 21, FILL_BLACK);
el15mh 2:834bd321a30d 364 lcd.drawLine(17, 31, 17, 36, FILL_BLACK);
el15mh 2:834bd321a30d 365 lcd.drawLine(32, 21, 37, 21, FILL_BLACK);
el15mh 2:834bd321a30d 366 lcd.drawLine(52, 21, 62, 21, FILL_BLACK);
el15mh 2:834bd321a30d 367 lcd.drawLine(67, 21, 77, 21, FILL_BLACK);
el15mh 2:834bd321a30d 368 lcd.drawLine(22, 21, 22, 26, FILL_BLACK);
el15mh 2:834bd321a30d 369 lcd.drawLine(37, 21, 37, 26, FILL_BLACK);
el15mh 2:834bd321a30d 370 lcd.drawLine(52, 21, 52, 31, FILL_BLACK);
el15mh 2:834bd321a30d 371 lcd.drawLine(77, 21, 77, 31, FILL_BLACK);
el15mh 2:834bd321a30d 372 lcd.drawLine(7, 26, 17, 26, FILL_BLACK);
el15mh 2:834bd321a30d 373 lcd.drawLine(27, 26, 32, 26, FILL_BLACK);
el15mh 2:834bd321a30d 374 lcd.drawLine(37, 26, 52, 26, FILL_BLACK);
el15mh 2:834bd321a30d 375 lcd.drawLine(57, 26, 77, 26, FILL_BLACK);
el15mh 2:834bd321a30d 376 lcd.drawLine(7, 26, 7, 31, FILL_BLACK);
el15mh 2:834bd321a30d 377 lcd.drawLine(17, 26, 17, 26, FILL_BLACK);
el15mh 2:834bd321a30d 378 lcd.drawLine(32, 26, 32, 41, FILL_BLACK);
el15mh 2:834bd321a30d 379 lcd.drawLine(42, 26, 42, 41, FILL_BLACK);
el15mh 2:834bd321a30d 380 lcd.drawLine(67, 26, 67, 41, FILL_BLACK);
el15mh 2:834bd321a30d 381 lcd.drawLine(17, 31, 27, 31, FILL_BLACK);
el15mh 2:834bd321a30d 382 lcd.drawLine(32, 31, 42, 31, FILL_BLACK);
el15mh 2:834bd321a30d 383 lcd.drawLine(52, 31, 62, 31, FILL_BLACK);
el15mh 2:834bd321a30d 384 lcd.drawLine(72, 31, 77, 31, FILL_BLACK);
el15mh 2:834bd321a30d 385 lcd.drawLine(12, 31, 12, 36, FILL_BLACK);
el15mh 2:834bd321a30d 386 lcd.drawLine(47, 31, 47, 46, FILL_BLACK);
el15mh 2:834bd321a30d 387 lcd.drawLine(62, 31, 62, 41, FILL_BLACK);
el15mh 2:834bd321a30d 388 lcd.drawLine(72, 31, 72, 46, FILL_BLACK);
el15mh 2:834bd321a30d 389 lcd.drawLine(2, 36, 12, 36, FILL_BLACK);
el15mh 2:834bd321a30d 390 lcd.drawLine(22, 36, 27, 36, FILL_BLACK);
el15mh 2:834bd321a30d 391 lcd.drawLine(32, 36, 37, 36, FILL_BLACK);
el15mh 2:834bd321a30d 392 lcd.drawLine(47, 36, 57, 36, FILL_BLACK);
el15mh 2:834bd321a30d 393 lcd.drawLine(77, 36, 82, 36, FILL_BLACK);
el15mh 2:834bd321a30d 394 lcd.drawLine(22, 36, 22, 46, FILL_BLACK);
el15mh 2:834bd321a30d 395 lcd.drawLine(7, 41, 22, 41, FILL_BLACK);
el15mh 2:834bd321a30d 396 lcd.drawLine(27, 41, 31, 41, FILL_BLACK);
el15mh 2:834bd321a30d 397 lcd.drawLine(37, 41, 42, 41, FILL_BLACK);
el15mh 2:834bd321a30d 398 lcd.drawLine(52, 41, 62, 41, FILL_BLACK);
el15mh 2:834bd321a30d 399 lcd.drawLine(77, 37, 77, 41, FILL_BLACK);
el15mh 2:834bd321a30d 400
el15mh 2:834bd321a30d 401 // drawing the goal
el15mh 2:834bd321a30d 402 for (int j = 37; j < 42; j++){
el15mh 2:834bd321a30d 403 lcd.clearPixel(82, j);
el15mh 2:834bd321a30d 404 }
el15mh 2:834bd321a30d 405 }
el15mh 2:834bd321a30d 406
el15mh 2:834bd321a30d 407 void Maze::mazeIndexSeven(N5110 &lcd)
el15mh 2:834bd321a30d 408 {
el15mh 2:834bd321a30d 409 // hard maze 2
el15mh 2:834bd321a30d 410 // maze index 7
el15mh 2:834bd321a30d 411 lcd.drawRect(2, 1, 82, 46, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 412
el15mh 2:834bd321a30d 413 //vertical
el15mh 2:834bd321a30d 414 lcd.drawLine(12, 1, 12, 11, FILL_BLACK);
el15mh 2:834bd321a30d 415 lcd.drawLine(52, 1, 52, 16, FILL_BLACK);
el15mh 2:834bd321a30d 416 lcd.drawLine(67, 1, 67, 11, FILL_BLACK);
el15mh 2:834bd321a30d 417 lcd.drawLine(77, 1, 77, 31, FILL_BLACK);
el15mh 2:834bd321a30d 418
el15mh 2:834bd321a30d 419 // horizontal
el15mh 2:834bd321a30d 420 lcd.drawLine(2, 6, 7, 6, FILL_BLACK);
el15mh 2:834bd321a30d 421 lcd.drawLine(17, 6, 32, 6, FILL_BLACK);
el15mh 2:834bd321a30d 422 lcd.drawLine(37, 6, 47, 6, FILL_BLACK);
el15mh 2:834bd321a30d 423 lcd.drawLine(57, 6, 62, 6, FILL_BLACK);
el15mh 2:834bd321a30d 424 // vertical
el15mh 2:834bd321a30d 425 lcd.drawLine(32, 6, 32, 21, FILL_BLACK);
el15mh 2:834bd321a30d 426 lcd.drawLine(37, 6, 37, 26, FILL_BLACK);
el15mh 2:834bd321a30d 427 lcd.drawLine(47, 6, 47, 31, FILL_BLACK);
el15mh 2:834bd321a30d 428 lcd.drawLine(62, 6, 62, 36, FILL_BLACK);
el15mh 2:834bd321a30d 429 lcd.drawLine(72, 6, 72, 16, FILL_BLACK);
el15mh 2:834bd321a30d 430
el15mh 2:834bd321a30d 431 // horizontal
el15mh 2:834bd321a30d 432 lcd.drawLine(17, 11, 27, 11, FILL_BLACK);
el15mh 2:834bd321a30d 433 lcd.drawLine(17, 11, 27, 11, FILL_BLACK);
el15mh 2:834bd321a30d 434 lcd.drawLine(52, 11, 57, 11, FILL_BLACK);
el15mh 2:834bd321a30d 435 // vertical
el15mh 2:834bd321a30d 436 lcd.drawLine(7, 11, 7, 16, FILL_BLACK);
el15mh 2:834bd321a30d 437 lcd.drawLine(17, 11, 17, 31, FILL_BLACK);
el15mh 2:834bd321a30d 438 lcd.drawLine(42, 11, 42, 36, FILL_BLACK);
el15mh 2:834bd321a30d 439
el15mh 2:834bd321a30d 440 // horizontal
el15mh 2:834bd321a30d 441 lcd.drawLine(7, 16, 17, 16, FILL_BLACK);
el15mh 2:834bd321a30d 442 lcd.drawLine(22, 16, 27, 16, FILL_BLACK);
el15mh 2:834bd321a30d 443 lcd.drawLine(57, 16, 72, 16, FILL_BLACK);
el15mh 2:834bd321a30d 444 // vertical
el15mh 2:834bd321a30d 445 lcd.drawLine(27, 16, 27, 31, FILL_BLACK);
el15mh 2:834bd321a30d 446
el15mh 2:834bd321a30d 447 // horizontal
el15mh 2:834bd321a30d 448 lcd.drawLine(2, 21, 12, 21, FILL_BLACK);
el15mh 2:834bd321a30d 449 lcd.drawLine(17, 21, 22, 21, FILL_BLACK);
el15mh 2:834bd321a30d 450 lcd.drawLine(32, 21, 37, 21, FILL_BLACK);
el15mh 2:834bd321a30d 451 lcd.drawLine(47, 21, 57, 21, FILL_BLACK);
el15mh 2:834bd321a30d 452 lcd.drawLine(67, 21, 77, 21, FILL_BLACK);
el15mh 2:834bd321a30d 453 // vertical
el15mh 2:834bd321a30d 454 lcd.drawLine(22, 21, 22, 26, FILL_BLACK);
el15mh 2:834bd321a30d 455
el15mh 2:834bd321a30d 456 // horizontal
el15mh 2:834bd321a30d 457 lcd.drawLine(7, 26, 12, 26, FILL_BLACK);
el15mh 2:834bd321a30d 458 lcd.drawLine(27, 26, 37, 26, FILL_BLACK);
el15mh 2:834bd321a30d 459 lcd.drawLine(52, 26, 72, 26, FILL_BLACK);
el15mh 2:834bd321a30d 460 // vertical
el15mh 2:834bd321a30d 461 lcd.drawLine(7, 26, 7, 41, FILL_BLACK);
el15mh 2:834bd321a30d 462 lcd.drawLine(72, 26, 72, 31, FILL_BLACK);
el15mh 2:834bd321a30d 463
el15mh 2:834bd321a30d 464 // horizontal
el15mh 2:834bd321a30d 465 lcd.drawLine(12, 31, 27, 31, FILL_BLACK);
el15mh 2:834bd321a30d 466 lcd.drawLine(32, 31, 41, 31, FILL_BLACK);
el15mh 2:834bd321a30d 467 lcd.drawLine(47, 31, 62, 31, FILL_BLACK);
el15mh 2:834bd321a30d 468 lcd.drawLine(72, 31, 77, 31, FILL_BLACK);
el15mh 2:834bd321a30d 469 // vertical
el15mh 2:834bd321a30d 470 lcd.drawLine(12, 31, 12, 36, FILL_BLACK);
el15mh 2:834bd321a30d 471 lcd.drawLine(22, 31, 22, 36, FILL_BLACK);
el15mh 2:834bd321a30d 472 lcd.drawLine(37, 31, 37, 41, FILL_BLACK);
el15mh 2:834bd321a30d 473 lcd.drawLine(67, 31, 67, 36, FILL_BLACK);
el15mh 2:834bd321a30d 474
el15mh 2:834bd321a30d 475 // horizontal
el15mh 2:834bd321a30d 476 lcd.drawLine(22, 36, 32, 36, FILL_BLACK);
el15mh 2:834bd321a30d 477 lcd.drawLine(42, 36, 57, 36, FILL_BLACK);
el15mh 2:834bd321a30d 478 lcd.drawLine(67, 36, 82, 36, FILL_BLACK);
el15mh 2:834bd321a30d 479 // vertical
el15mh 2:834bd321a30d 480 lcd.drawLine(17, 36, 17, 41, FILL_BLACK);
el15mh 2:834bd321a30d 481 lcd.drawLine(32, 36, 32, 41, FILL_BLACK);
el15mh 2:834bd321a30d 482 lcd.drawLine(57, 36, 57, 45, FILL_BLACK);
el15mh 2:834bd321a30d 483 lcd.drawLine(72, 36, 72, 41, FILL_BLACK);
el15mh 2:834bd321a30d 484
el15mh 2:834bd321a30d 485 // horizontal
el15mh 2:834bd321a30d 486 lcd.drawLine(7, 41, 27, 41, FILL_BLACK);
el15mh 2:834bd321a30d 487 lcd.drawLine(37, 41, 52, 41, FILL_BLACK);
el15mh 2:834bd321a30d 488 lcd.drawLine(62, 41, 77, 41, FILL_BLACK);
el15mh 2:834bd321a30d 489 // vertical
el15mh 2:834bd321a30d 490 lcd.drawLine(27, 41, 27, 45, FILL_BLACK);
el15mh 2:834bd321a30d 491
el15mh 2:834bd321a30d 492 // drawing the goal
el15mh 2:834bd321a30d 493 for (int j = 2; j < 6; j++){
el15mh 2:834bd321a30d 494 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 495 }
el15mh 0:d5a32831fa28 496
el15mh 0:d5a32831fa28 497 }
el15mh 0:d5a32831fa28 498
el15mh 2:834bd321a30d 499
el15mh 2:834bd321a30d 500 void Maze::mazeIndexEight(N5110 &lcd)
el15mh 0:d5a32831fa28 501 {
el15mh 2:834bd321a30d 502 // hard maze 3
el15mh 2:834bd321a30d 503 // maze index 8
el15mh 2:834bd321a30d 504
el15mh 2:834bd321a30d 505 lcd.drawRect(1, 1, 82, 46, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 506
el15mh 2:834bd321a30d 507 // vertical
el15mh 2:834bd321a30d 508 lcd.drawLine(7, 1, 7, 11, FILL_BLACK);
el15mh 2:834bd321a30d 509 lcd.drawLine(32, 1, 32, 21, FILL_BLACK);
el15mh 2:834bd321a30d 510 lcd.drawLine(62, 1, 62, 21, FILL_BLACK);
el15mh 2:834bd321a30d 511 lcd.drawLine(67, 1, 67, 6, FILL_BLACK);
el15mh 2:834bd321a30d 512 lcd.drawLine(77, 1, 77, 6, FILL_BLACK);
el15mh 2:834bd321a30d 513
el15mh 2:834bd321a30d 514 // horizontal
el15mh 2:834bd321a30d 515 lcd.drawLine(7, 6, 17, 6, FILL_BLACK);
el15mh 2:834bd321a30d 516 lcd.drawLine(22, 6, 27, 6, FILL_BLACK);
el15mh 2:834bd321a30d 517 lcd.drawLine(37, 6, 57, 6, FILL_BLACK);
el15mh 2:834bd321a30d 518 // vertical
el15mh 2:834bd321a30d 519 lcd.drawLine(22, 6, 22, 11, FILL_BLACK);
el15mh 2:834bd321a30d 520 lcd.drawLine(27, 6, 27, 21, FILL_BLACK);
el15mh 2:834bd321a30d 521 lcd.drawLine(57, 6, 57, 16, FILL_BLACK);
el15mh 2:834bd321a30d 522 lcd.drawLine(72, 6, 72, 11, FILL_BLACK);
el15mh 2:834bd321a30d 523
el15mh 2:834bd321a30d 524 // horizontal
el15mh 2:834bd321a30d 525 lcd.drawLine(17, 11, 22, 11, FILL_BLACK);
el15mh 2:834bd321a30d 526 lcd.drawLine(32, 11, 37, 11, FILL_BLACK);
el15mh 2:834bd321a30d 527 lcd.drawLine(47, 11, 52, 11, FILL_BLACK);
el15mh 2:834bd321a30d 528 lcd.drawLine(62, 11, 77, 11, FILL_BLACK);
el15mh 2:834bd321a30d 529 // vertical
el15mh 2:834bd321a30d 530 lcd.drawLine(12, 11, 12, 21, FILL_BLACK);
el15mh 2:834bd321a30d 531 lcd.drawLine(42, 11, 42, 26, FILL_BLACK);
el15mh 2:834bd321a30d 532 lcd.drawLine(52, 11, 52, 21, FILL_BLACK);
el15mh 2:834bd321a30d 533
el15mh 2:834bd321a30d 534 // horizontal
el15mh 2:834bd321a30d 535 lcd.drawLine(2, 16, 7, 16, FILL_BLACK);
el15mh 2:834bd321a30d 536 lcd.drawLine(12, 16, 27, 16, FILL_BLACK);
el15mh 2:834bd321a30d 537 lcd.drawLine(37, 16, 52, 16, FILL_BLACK);
el15mh 2:834bd321a30d 538 lcd.drawLine(57, 16, 62, 16, FILL_BLACK);
el15mh 2:834bd321a30d 539 lcd.drawLine(67, 16, 82, 16, FILL_BLACK);
el15mh 2:834bd321a30d 540 // vertical
el15mh 2:834bd321a30d 541 // NONE //
el15mh 2:834bd321a30d 542
el15mh 2:834bd321a30d 543 // horizontal
el15mh 2:834bd321a30d 544 lcd.drawLine(7, 21, 12, 21, FILL_BLACK);
el15mh 2:834bd321a30d 545 lcd.drawLine(17, 21, 22, 21, FILL_BLACK);
el15mh 2:834bd321a30d 546 lcd.drawLine(27, 21, 37, 21, FILL_BLACK);
el15mh 2:834bd321a30d 547 lcd.drawLine(47, 21, 57, 21, FILL_BLACK);
el15mh 2:834bd321a30d 548 lcd.drawLine(62, 21, 77, 21, FILL_BLACK);
el15mh 2:834bd321a30d 549 // vertical
el15mh 2:834bd321a30d 550 lcd.drawLine(7, 21, 7, 31, FILL_BLACK);
el15mh 2:834bd321a30d 551 lcd.drawLine(17, 21, 17, 41, FILL_BLACK);
el15mh 2:834bd321a30d 552 lcd.drawLine(37, 21, 37, 31, FILL_BLACK);
el15mh 2:834bd321a30d 553 lcd.drawLine(67, 21, 67, 31, FILL_BLACK);
el15mh 2:834bd321a30d 554
el15mh 2:834bd321a30d 555 // horizontal
el15mh 2:834bd321a30d 556 lcd.drawLine(22, 26, 32, 26, FILL_BLACK);
el15mh 2:834bd321a30d 557 lcd.drawLine(42, 26, 62, 26, FILL_BLACK);
el15mh 2:834bd321a30d 558 lcd.drawLine(72, 26, 77, 26, FILL_BLACK);
el15mh 2:834bd321a30d 559 // vertical
el15mh 2:834bd321a30d 560 lcd.drawLine(12, 26, 12, 36, FILL_BLACK);
el15mh 2:834bd321a30d 561 lcd.drawLine(22, 26, 22, 31, FILL_BLACK);
el15mh 2:834bd321a30d 562 lcd.drawLine(62, 26, 62, 36, FILL_BLACK);
el15mh 2:834bd321a30d 563 lcd.drawLine(77, 26, 77, 41, FILL_BLACK);
el15mh 2:834bd321a30d 564
el15mh 2:834bd321a30d 565 // horizontal
el15mh 2:834bd321a30d 566 lcd.drawLine(22, 31, 57, 31, FILL_BLACK);
el15mh 2:834bd321a30d 567 lcd.drawLine(67, 31, 72, 31, FILL_BLACK);
el15mh 2:834bd321a30d 568 // vertical
el15mh 2:834bd321a30d 569 lcd.drawLine(52, 31, 52, 41, FILL_BLACK);
el15mh 2:834bd321a30d 570
el15mh 2:834bd321a30d 571 // horizontal
el15mh 2:834bd321a30d 572 lcd.drawLine(2, 36, 12, 36, FILL_BLACK);
el15mh 2:834bd321a30d 573 lcd.drawLine(17, 36, 32, 36, FILL_BLACK);
el15mh 2:834bd321a30d 574 lcd.drawLine(37, 36, 47, 36, FILL_BLACK);
el15mh 2:834bd321a30d 575 lcd.drawLine(57, 36, 72, 36, FILL_BLACK);
el15mh 2:834bd321a30d 576 // vertical
el15mh 2:834bd321a30d 577 lcd.drawLine(32, 36, 32, 41, FILL_BLACK);
el15mh 2:834bd321a30d 578 lcd.drawLine(47, 36, 47, 46, FILL_BLACK);
el15mh 2:834bd321a30d 579 lcd.drawLine(57, 36, 57, 46, FILL_BLACK);
el15mh 2:834bd321a30d 580 lcd.drawLine(67, 36, 67, 41, FILL_BLACK);
el15mh 2:834bd321a30d 581
el15mh 2:834bd321a30d 582 // horizontal
el15mh 2:834bd321a30d 583 lcd.drawLine(7, 41, 17, 41, FILL_BLACK);
el15mh 2:834bd321a30d 584 lcd.drawLine(22, 41, 42, 41, FILL_BLACK);
el15mh 2:834bd321a30d 585 lcd.drawLine(62, 41, 67, 41, FILL_BLACK);
el15mh 2:834bd321a30d 586 lcd.drawLine(72, 41, 77, 41, FILL_BLACK);
el15mh 2:834bd321a30d 587 // vertical
el15mh 2:834bd321a30d 588 lcd.drawLine(72, 41, 72, 46, FILL_BLACK);
el15mh 2:834bd321a30d 589
el15mh 2:834bd321a30d 590 // drawing the goal
el15mh 2:834bd321a30d 591 for (int j = 2; j < 5; j++){
el15mh 2:834bd321a30d 592 lcd.clearPixel(82, j);
el15mh 2:834bd321a30d 593 }
el15mh 0:d5a32831fa28 594
el15mh 0:d5a32831fa28 595 }
el15mh 2:834bd321a30d 596
el15mh 2:834bd321a30d 597 void Maze::mazeIndexNine(N5110 &lcd)
el15mh 2:834bd321a30d 598 {
el15mh 2:834bd321a30d 599 // maze index 9
el15mh 2:834bd321a30d 600 // extreme maze
el15mh 2:834bd321a30d 601
el15mh 2:834bd321a30d 602 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 603
el15mh 2:834bd321a30d 604 // cycle through all rows/colums and set pixels
el15mh 2:834bd321a30d 605 int y = 3;
el15mh 2:834bd321a30d 606 lcd.drawLine(35, y, 37, y, FILL_BLACK);
el15mh 2:834bd321a30d 607 lcd.drawLine(47, y, 51, y, FILL_BLACK);
el15mh 2:834bd321a30d 608
el15mh 2:834bd321a30d 609 y++; // line 4
el15mh 2:834bd321a30d 610 lcd.drawLine(8, y, 12, y, FILL_BLACK);
el15mh 2:834bd321a30d 611 lcd.drawLine(20, y, 24, y, FILL_BLACK);
el15mh 2:834bd321a30d 612 lcd.drawLine(33, y, 34, y, FILL_BLACK);
el15mh 2:834bd321a30d 613 lcd.drawLine(51, y, 64, y, FILL_BLACK);
el15mh 2:834bd321a30d 614 lcd.drawLine(68, y, 79, y, FILL_BLACK);
el15mh 2:834bd321a30d 615
el15mh 2:834bd321a30d 616 y++; // line 5
el15mh 2:834bd321a30d 617 lcd.drawLine(31, y, 32, y, FILL_BLACK);
el15mh 2:834bd321a30d 618 lcd.drawLine(53, y, 54, y, FILL_BLACK);
el15mh 2:834bd321a30d 619 lcd.setPixel(30, y);
el15mh 2:834bd321a30d 620 lcd.setPixel(47, y);
el15mh 2:834bd321a30d 621
el15mh 2:834bd321a30d 622 y++; // line 6
el15mh 2:834bd321a30d 623 lcd.setPixel(30, y);
el15mh 2:834bd321a30d 624 lcd.drawLine(39, y, 42, y, FILL_BLACK);
el15mh 2:834bd321a30d 625 lcd.setPixel(47, y);
el15mh 2:834bd321a30d 626 lcd.setPixel(55, y);
el15mh 2:834bd321a30d 627
el15mh 2:834bd321a30d 628 y++; // line 7
el15mh 2:834bd321a30d 629 lcd.drawLine(28, y, 29, y, FILL_BLACK);
el15mh 2:834bd321a30d 630 lcd.drawLine(36, y, 38, y, FILL_BLACK);
el15mh 2:834bd321a30d 631 lcd.drawLine(47, y, 49, y, FILL_BLACK);
el15mh 2:834bd321a30d 632 lcd.drawLine(56, y, 57, y, FILL_BLACK);
el15mh 2:834bd321a30d 633
el15mh 2:834bd321a30d 634 y++; // line 8
el15mh 2:834bd321a30d 635 lcd.drawLine(0, y, 8, y, FILL_BLACK);
el15mh 2:834bd321a30d 636 lcd.drawLine(12, y, 20, y, FILL_BLACK);
el15mh 2:834bd321a30d 637 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 638 lcd.drawLine(34, y, 35, y, FILL_BLACK);
el15mh 2:834bd321a30d 639 lcd.drawLine(50, y, 51, y, FILL_BLACK);
el15mh 2:834bd321a30d 640 lcd.drawLine(58, y, 68, y, FILL_BLACK);
el15mh 2:834bd321a30d 641 lcd.drawLine(77, y, 83, y, FILL_BLACK);
el15mh 2:834bd321a30d 642
el15mh 2:834bd321a30d 643 y++; // line 9
el15mh 2:834bd321a30d 644 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 645 lcd.drawLine(32, y, 33, y, FILL_BLACK);
el15mh 2:834bd321a30d 646 lcd.drawLine(52, y, 53, y, FILL_BLACK);
el15mh 2:834bd321a30d 647 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 648
el15mh 2:834bd321a30d 649 y++; // line 10
el15mh 2:834bd321a30d 650 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 651 lcd.setPixel(31, y);
el15mh 2:834bd321a30d 652 lcd.setPixel(53, y);
el15mh 2:834bd321a30d 653 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 654
el15mh 2:834bd321a30d 655 y++; // line 11
el15mh 2:834bd321a30d 656 lcd.drawLine(24, y, 25, y, FILL_BLACK);
el15mh 2:834bd321a30d 657 lcd.setPixel(30, y);
el15mh 2:834bd321a30d 658 lcd.setPixel(52, y);
el15mh 2:834bd321a30d 659 lcd.setPixel(60, y);
el15mh 2:834bd321a30d 660
el15mh 2:834bd321a30d 661 y++; // line 12
el15mh 2:834bd321a30d 662 lcd.drawLine(4, y, 12, y, FILL_BLACK);
el15mh 2:834bd321a30d 663 lcd.drawLine(16, y, 20, y, FILL_BLACK);
el15mh 2:834bd321a30d 664 lcd.setPixel(29, y);
el15mh 2:834bd321a30d 665 lcd.drawLine(40, y, 45, y, FILL_BLACK);
el15mh 2:834bd321a30d 666 lcd.setPixel(51, y);
el15mh 2:834bd321a30d 667 lcd.setPixel(61, y);
el15mh 2:834bd321a30d 668 lcd.drawLine(66, y, 72, y, FILL_BLACK);
el15mh 2:834bd321a30d 669 lcd.drawLine(76, y, 79, y, FILL_BLACK);
el15mh 2:834bd321a30d 670
el15mh 2:834bd321a30d 671 y++; // line 13
el15mh 2:834bd321a30d 672 lcd.setPixel(24, y);
el15mh 2:834bd321a30d 673 lcd.setPixel(28, y);
el15mh 2:834bd321a30d 674 lcd.drawLine(37, y, 39, y, FILL_BLACK);
el15mh 2:834bd321a30d 675 lcd.drawLine(46, y, 48, y, FILL_BLACK);
el15mh 2:834bd321a30d 676 lcd.setPixel(50, y);
el15mh 2:834bd321a30d 677 lcd.setPixel(57, y);
el15mh 2:834bd321a30d 678 lcd.setPixel(61, y);
el15mh 2:834bd321a30d 679
el15mh 2:834bd321a30d 680 y++; // line 14
el15mh 2:834bd321a30d 681 lcd.setPixel(23, y);
el15mh 2:834bd321a30d 682 lcd.setPixel(28, y);
el15mh 2:834bd321a30d 683 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 684 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 685 lcd.setPixel(57, y);
el15mh 2:834bd321a30d 686 lcd.setPixel(62, y);
el15mh 2:834bd321a30d 687
el15mh 2:834bd321a30d 688 y++; // line 15
el15mh 2:834bd321a30d 689 lcd.setPixel(23, y);
el15mh 2:834bd321a30d 690 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 691 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 692 lcd.setPixel(50, y);
el15mh 2:834bd321a30d 693 lcd.setPixel(58, y);
el15mh 2:834bd321a30d 694 lcd.setPixel(62, y);
el15mh 2:834bd321a30d 695
el15mh 2:834bd321a30d 696 y++; // line 16
el15mh 2:834bd321a30d 697 lcd.drawLine(0, y, 8, y, FILL_BLACK);
el15mh 2:834bd321a30d 698 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 699 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 700 lcd.setPixel(37, y);
el15mh 2:834bd321a30d 701 lcd.drawLine(43, y, 45, y, FILL_BLACK);
el15mh 2:834bd321a30d 702 lcd.setPixel(51, y);
el15mh 2:834bd321a30d 703 lcd.setPixel(58, y);
el15mh 2:834bd321a30d 704 lcd.drawLine(63, y, 68, y, FILL_BLACK);
el15mh 2:834bd321a30d 705 lcd.drawLine(80, y, 83, y, FILL_BLACK);
el15mh 2:834bd321a30d 706
el15mh 2:834bd321a30d 707 y++; // line 17
el15mh 2:834bd321a30d 708 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 709 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 710 lcd.setPixel(38, y);
el15mh 2:834bd321a30d 711 lcd.drawLine(46, y, 47, y, FILL_BLACK);
el15mh 2:834bd321a30d 712 lcd.setPixel(52, y);
el15mh 2:834bd321a30d 713 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 714 lcd.setPixel(63, y);
el15mh 2:834bd321a30d 715
el15mh 2:834bd321a30d 716 y++; // line 18
el15mh 2:834bd321a30d 717 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 718 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 719 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 720 lcd.drawLine(37, y, 38, y, FILL_BLACK);
el15mh 2:834bd321a30d 721 lcd.setPixel(48, y);
el15mh 2:834bd321a30d 722 lcd.setPixel(53, y);
el15mh 2:834bd321a30d 723 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 724 lcd.setPixel(63, y);
el15mh 2:834bd321a30d 725
el15mh 2:834bd321a30d 726 y++; // line 19
el15mh 2:834bd321a30d 727 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 728 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 729 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 730 lcd.setPixel(39, y);
el15mh 2:834bd321a30d 731 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 732 lcd.setPixel(53, y);
el15mh 2:834bd321a30d 733 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 734
el15mh 2:834bd321a30d 735 y++; // line 20
el15mh 2:834bd321a30d 736 lcd.drawLine(4, y, 16, y, FILL_BLACK);
el15mh 2:834bd321a30d 737 lcd.setPixel(25, y);
el15mh 2:834bd321a30d 738 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 739 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 740 lcd.drawLine(40, y, 44, y, FILL_BLACK);
el15mh 2:834bd321a30d 741 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 742 lcd.setPixel(53, y);
el15mh 2:834bd321a30d 743
el15mh 2:834bd321a30d 744 y++; // line 21
el15mh 2:834bd321a30d 745 lcd.setPixel(45, y);
el15mh 2:834bd321a30d 746
el15mh 2:834bd321a30d 747 y++; // line 22
el15mh 2:834bd321a30d 748 /// NO INDIVIDUAL PIXELS/LINES TO DRAW ///
el15mh 2:834bd321a30d 749
el15mh 2:834bd321a30d 750 y++; // line 23
el15mh 2:834bd321a30d 751 /// NO INDIVIDUAL PIXELS/LINES TO DRAW ///
el15mh 2:834bd321a30d 752
el15mh 2:834bd321a30d 753 y++; // line 24
el15mh 2:834bd321a30d 754 lcd.drawLine(0, y, 4, y, FILL_BLACK);
el15mh 2:834bd321a30d 755 lcd.drawLine(21, y, 31, y, FILL_BLACK);
el15mh 2:834bd321a30d 756 lcd.setPixel(39, y);
el15mh 2:834bd321a30d 757 lcd.drawLine(64, y, 72, y, FILL_BLACK);
el15mh 2:834bd321a30d 758
el15mh 2:834bd321a30d 759 y++; // line 25
el15mh 2:834bd321a30d 760 lcd.setPixel(39, y);
el15mh 2:834bd321a30d 761
el15mh 2:834bd321a30d 762 y++; // line 26
el15mh 2:834bd321a30d 763 lcd.setPixel(40, y);
el15mh 2:834bd321a30d 764 lcd.setPixel(45, y);
el15mh 2:834bd321a30d 765
el15mh 2:834bd321a30d 766 y++; // line 27
el15mh 2:834bd321a30d 767 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 768 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 769 lcd.drawLine(41, y, 44, y, FILL_BLACK);
el15mh 2:834bd321a30d 770 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 771
el15mh 2:834bd321a30d 772 y++; // line 28
el15mh 2:834bd321a30d 773 lcd.drawLine(4, y, 12, y, FILL_BLACK);
el15mh 2:834bd321a30d 774 lcd.drawLine(16, y, 21, y, FILL_BLACK);
el15mh 2:834bd321a30d 775 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 776 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 777 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 778 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 779 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 780 lcd.drawLine(68, y, 83, y, FILL_BLACK);
el15mh 2:834bd321a30d 781
el15mh 2:834bd321a30d 782 y++; // line 29
el15mh 2:834bd321a30d 783 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 784 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 785 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 786 lcd.setPixel(37, y);
el15mh 2:834bd321a30d 787 lcd.setPixel(48, y);
el15mh 2:834bd321a30d 788 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 789 lcd.setPixel(63, y);
el15mh 2:834bd321a30d 790
el15mh 2:834bd321a30d 791 y++; // line 30
el15mh 2:834bd321a30d 792 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 793 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 794 lcd.setPixel(33, y);
el15mh 2:834bd321a30d 795 lcd.drawLine(38, y, 39, y, FILL_BLACK);
el15mh 2:834bd321a30d 796 lcd.drawLine(46, y, 47, y, FILL_BLACK);
el15mh 2:834bd321a30d 797 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 798 lcd.setPixel(63, y);
el15mh 2:834bd321a30d 799
el15mh 2:834bd321a30d 800 y++; // line 31
el15mh 2:834bd321a30d 801 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 802 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 803 lcd.setPixel(34, y);
el15mh 2:834bd321a30d 804 lcd.drawLine(40, y, 45, y, FILL_BLACK);
el15mh 2:834bd321a30d 805 lcd.setPixel(51, y);
el15mh 2:834bd321a30d 806 lcd.setPixel(58, y);
el15mh 2:834bd321a30d 807 lcd.setPixel(63, y);
el15mh 2:834bd321a30d 808
el15mh 2:834bd321a30d 809 y++; // line 32
el15mh 2:834bd321a30d 810 lcd.drawLine(12, y, 17, y, FILL_BLACK);
el15mh 2:834bd321a30d 811 lcd.setPixel(23, y);
el15mh 2:834bd321a30d 812 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 813 lcd.setPixel(35, y);
el15mh 2:834bd321a30d 814 lcd.setPixel(50, y);
el15mh 2:834bd321a30d 815 lcd.setPixel(58, y);
el15mh 2:834bd321a30d 816 lcd.drawLine(62, y, 72, y, FILL_BLACK);
el15mh 2:834bd321a30d 817
el15mh 2:834bd321a30d 818 y++; // line 33
el15mh 2:834bd321a30d 819 lcd.setPixel(23, y);
el15mh 2:834bd321a30d 820 lcd.setPixel(28, y);
el15mh 2:834bd321a30d 821 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 822 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 823 lcd.setPixel(57, y);
el15mh 2:834bd321a30d 824 lcd.setPixel(62, y);
el15mh 2:834bd321a30d 825
el15mh 2:834bd321a30d 826 y++; // line 34
el15mh 2:834bd321a30d 827 lcd.setPixel(28, y);
el15mh 2:834bd321a30d 828 lcd.drawLine(37, y, 38, y, FILL_BLACK);
el15mh 2:834bd321a30d 829 lcd.drawLine(46, y, 48, y, FILL_BLACK);
el15mh 2:834bd321a30d 830 lcd.setPixel(57, y);
el15mh 2:834bd321a30d 831 lcd.setPixel(61, y);
el15mh 2:834bd321a30d 832
el15mh 2:834bd321a30d 833 y++; // line 35
el15mh 2:834bd321a30d 834 lcd.setPixel(29, y);
el15mh 2:834bd321a30d 835 lcd.drawLine(42, y, 45, y, FILL_BLACK);
el15mh 2:834bd321a30d 836 lcd.setPixel(56, y);
el15mh 2:834bd321a30d 837 lcd.setPixel(61, y);
el15mh 2:834bd321a30d 838
el15mh 2:834bd321a30d 839 y++; // line 36
el15mh 2:834bd321a30d 840 lcd.drawLine(0, y, 8, y, FILL_BLACK);
el15mh 2:834bd321a30d 841 lcd.drawLine(12, y, 25, y, FILL_BLACK);
el15mh 2:834bd321a30d 842 lcd.setPixel(30, y);
el15mh 2:834bd321a30d 843 lcd.setPixel(55, y);
el15mh 2:834bd321a30d 844 lcd.setPixel(60, y);
el15mh 2:834bd321a30d 845 lcd.drawLine(64, y, 76, y, FILL_BLACK);
el15mh 2:834bd321a30d 846
el15mh 2:834bd321a30d 847 y++; // line 37
el15mh 2:834bd321a30d 848 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 849 lcd.setPixel(31, y);
el15mh 2:834bd321a30d 850 lcd.setPixel(54, y);
el15mh 2:834bd321a30d 851 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 852
el15mh 2:834bd321a30d 853 y++; // line 38
el15mh 2:834bd321a30d 854 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 855 lcd.drawLine(32, y, 33, y, FILL_BLACK);
el15mh 2:834bd321a30d 856 lcd.drawLine(52, y, 53, y, FILL_BLACK);
el15mh 2:834bd321a30d 857 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 858
el15mh 2:834bd321a30d 859 y++; // line 39
el15mh 2:834bd321a30d 860 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 861 lcd.drawLine(34, y, 35, y, FILL_BLACK);
el15mh 2:834bd321a30d 862 lcd.drawLine(50, y, 51, y, FILL_BLACK);
el15mh 2:834bd321a30d 863 lcd.setPixel(58, y);
el15mh 2:834bd321a30d 864
el15mh 2:834bd321a30d 865 y++; // line 40
el15mh 2:834bd321a30d 866 lcd.drawLine(4, y, 12, y, FILL_BLACK);
el15mh 2:834bd321a30d 867 lcd.drawLine(16, y, 20, y, FILL_BLACK);
el15mh 2:834bd321a30d 868 lcd.drawLine(28, y, 29, y, FILL_BLACK);
el15mh 2:834bd321a30d 869 lcd.drawLine(36, y, 38, y, FILL_BLACK);
el15mh 2:834bd321a30d 870 lcd.drawLine(47, y, 49, y, FILL_BLACK);
el15mh 2:834bd321a30d 871 lcd.drawLine(56, y, 68, y, FILL_BLACK);
el15mh 2:834bd321a30d 872 lcd.drawLine(72, y, 80, y, FILL_BLACK);
el15mh 2:834bd321a30d 873
el15mh 2:834bd321a30d 874 y++; // line 41
el15mh 2:834bd321a30d 875 lcd.setPixel(30, y);
el15mh 2:834bd321a30d 876 lcd.drawLine(39, y, 46, y, FILL_BLACK);
el15mh 2:834bd321a30d 877 lcd.setPixel(55, y);
el15mh 2:834bd321a30d 878
el15mh 2:834bd321a30d 879 y++; // line 42
el15mh 2:834bd321a30d 880 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 881 lcd.drawLine(31, y, 31, y, FILL_BLACK);
el15mh 2:834bd321a30d 882 lcd.drawLine(53, y, 54, y, FILL_BLACK);
el15mh 2:834bd321a30d 883
el15mh 2:834bd321a30d 884 y++; // line 43
el15mh 2:834bd321a30d 885 lcd.drawLine(12, y, 16, y, FILL_BLACK);
el15mh 2:834bd321a30d 886 lcd.drawLine(33, y, 34, y, FILL_BLACK);
el15mh 2:834bd321a30d 887 lcd.drawLine(51, y, 52, y, FILL_BLACK);
el15mh 2:834bd321a30d 888
el15mh 2:834bd321a30d 889 y++; // line 44
el15mh 2:834bd321a30d 890 lcd.drawLine(35, y, 36, y, FILL_BLACK);
el15mh 2:834bd321a30d 891 lcd.drawLine(48, y, 50, y, FILL_BLACK);
el15mh 2:834bd321a30d 892 lcd.drawLine(60, y, 72, y, FILL_BLACK);
el15mh 2:834bd321a30d 893
el15mh 2:834bd321a30d 894 /// NO OTHER NON-VERTICAL LINES ON 45 - 47 (END) ///
el15mh 2:834bd321a30d 895
el15mh 2:834bd321a30d 896 int x = 4; // column 4
el15mh 2:834bd321a30d 897 lcd.drawLine(x, 0, x, 4, FILL_BLACK);
el15mh 2:834bd321a30d 898 lcd.drawLine(x, 28, x, 32, FILL_BLACK);
el15mh 2:834bd321a30d 899 lcd.drawLine(x, 40, x, 43, FILL_BLACK);
el15mh 2:834bd321a30d 900
el15mh 2:834bd321a30d 901 x += 4; // column 8
el15mh 2:834bd321a30d 902 lcd.drawLine(x, 20, x, 24, FILL_BLACK);
el15mh 2:834bd321a30d 903 lcd.drawLine(x, 32, x, 36, FILL_BLACK);
el15mh 2:834bd321a30d 904 lcd.drawLine(x, 44, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 905
el15mh 2:834bd321a30d 906 x += 4; // column 12
el15mh 2:834bd321a30d 907 lcd.drawLine(x, 4, x, 20, FILL_BLACK);
el15mh 2:834bd321a30d 908 lcd.drawLine(x, 24, x, 43, FILL_BLACK);
el15mh 2:834bd321a30d 909
el15mh 2:834bd321a30d 910 x += 4; // column 16
el15mh 2:834bd321a30d 911 lcd.drawLine(x, 0, x, 4, FILL_BLACK);
el15mh 2:834bd321a30d 912 lcd.drawLine(x, 12, x, 28, FILL_BLACK);
el15mh 2:834bd321a30d 913
el15mh 2:834bd321a30d 914 x += 4; // column 20
el15mh 2:834bd321a30d 915 lcd.drawLine(x, 40, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 916
el15mh 2:834bd321a30d 917 x++; // column 21
el15mh 2:834bd321a30d 918 lcd.drawLine(x, 19, x, 28, FILL_BLACK);
el15mh 2:834bd321a30d 919
el15mh 2:834bd321a30d 920 x += 3; // column 24
el15mh 2:834bd321a30d 921 lcd.drawLine(x, 4, x, 13, FILL_BLACK);
el15mh 2:834bd321a30d 922 lcd.drawLine(x, 34, x, 43, FILL_BLACK);
el15mh 2:834bd321a30d 923
el15mh 2:834bd321a30d 924 x++; // column 25
el15mh 2:834bd321a30d 925 lcd.drawLine(x, 20, x, 24, FILL_BLACK);
el15mh 2:834bd321a30d 926
el15mh 2:834bd321a30d 927 x += 3; // column 28
el15mh 2:834bd321a30d 928 lcd.drawLine(x, 0, x, 2, FILL_BLACK);
el15mh 2:834bd321a30d 929 lcd.drawLine(x, 44, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 930
el15mh 2:834bd321a30d 931 x += 3; // column 31
el15mh 2:834bd321a30d 932 lcd.drawLine(x, 21, x, 26, FILL_BLACK);
el15mh 2:834bd321a30d 933
el15mh 2:834bd321a30d 934 x += 4; // column 35
el15mh 2:834bd321a30d 935 lcd.drawLine(x, 21, x, 26, FILL_BLACK);
el15mh 2:834bd321a30d 936
el15mh 2:834bd321a30d 937 x += 7; // column 42
el15mh 2:834bd321a30d 938 lcd.drawLine(x, 0, x, 6, FILL_BLACK);
el15mh 2:834bd321a30d 939 lcd.drawLine(x, 31, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 940
el15mh 2:834bd321a30d 941 x += 4; // column 46
el15mh 2:834bd321a30d 942 lcd.drawLine(x, 22, x, 25, FILL_BLACK);
el15mh 2:834bd321a30d 943
el15mh 2:834bd321a30d 944 x++; // column 47
el15mh 2:834bd321a30d 945 lcd.drawLine(x, 3, x, 7, FILL_BLACK);
el15mh 2:834bd321a30d 946
el15mh 2:834bd321a30d 947 x += 3; // column 50
el15mh 2:834bd321a30d 948 lcd.drawLine(x, 21, x, 26, FILL_BLACK);
el15mh 2:834bd321a30d 949
el15mh 2:834bd321a30d 950 x += 4; // column 54
el15mh 2:834bd321a30d 951 lcd.drawLine(x, 21, x, 26, FILL_BLACK);
el15mh 2:834bd321a30d 952
el15mh 2:834bd321a30d 953 x += 6; // column 60
el15mh 2:834bd321a30d 954 lcd.drawLine(x, 20, x, 27, FILL_BLACK);
el15mh 2:834bd321a30d 955 lcd.drawLine(x, 44, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 956
el15mh 2:834bd321a30d 957 x += 4; // column 64
el15mh 2:834bd321a30d 958 lcd.drawLine(x, 19, x, 28, FILL_BLACK);
el15mh 2:834bd321a30d 959
el15mh 2:834bd321a30d 960 x += 4;
el15mh 2:834bd321a30d 961 lcd.drawLine(x, 16, x, 20, FILL_BLACK);
el15mh 2:834bd321a30d 962
el15mh 2:834bd321a30d 963 x += 4; // column 72
el15mh 2:834bd321a30d 964 lcd.drawLine(x, 4, x, 24, FILL_BLACK);
el15mh 2:834bd321a30d 965 lcd.drawLine(x, 40, x, 44, FILL_BLACK);
el15mh 2:834bd321a30d 966
el15mh 2:834bd321a30d 967 x += 4; // column 76
el15mh 2:834bd321a30d 968 lcd.drawLine(x, 12, x, 36, FILL_BLACK);
el15mh 2:834bd321a30d 969 lcd.drawLine(x, 43, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 970
el15mh 2:834bd321a30d 971 x += 4; // column 80
el15mh 2:834bd321a30d 972 lcd.drawLine(x, 16, x, 24, FILL_BLACK);
el15mh 2:834bd321a30d 973 lcd.drawLine(x, 32, x, 44, FILL_BLACK);
el15mh 2:834bd321a30d 974
el15mh 2:834bd321a30d 975 /// END OF EXTREME MAZE ///
el15mh 2:834bd321a30d 976
el15mh 2:834bd321a30d 977 }
el15mh 2:834bd321a30d 978
el15mh 2:834bd321a30d 979