Code coverage report for ./src/client/app/level/level.service.js

Statements: 2.67% (4 / 150)      Branches: 100% (0 / 0)      Functions: 20% (1 / 5)      Lines: 2.67% (4 / 150)      Ignored: none     

All files » ./src/client/app/level/ » level.service.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 4361     1       1     1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
(function() {
    'use strict';
 
    angular
        .module('app.level')
        .service('levelService', levelService);
 
    levelService.$inject = ['enemyService'];
 
    /* @ngInject */
    function levelService(enemyService) {
        this.mainMessage = '';
 
        this.Level = function() {
            this.checkLength = function() {
                console.log(this.defaultAscii[0].length);
            },
            this.spawnMore = true;
            this.prev = 'mainMap';
            this.prevName = 'Map';
            this.spawnChance = 90;
        };
 
        //treeone
        this.treeOne = new this.Level();
        this.treeOne.unlock = 'treeTwo';
        this.treeOne.spawnMore = false;
        this.treeOne.enemySpawn = [141, 21];
        this.treeOne.playerSpawn = [0, 22];
        this.treeOne.enemyArray = [enemyService.Tree];
        this.treeOne.name = 'The Forest';
        this.treeOne.slug = 'treeOne'
        this.treeOne.defaultAscii = ["     .\'           \'./   \\    .\'\\      /                            /                                     \\/                               /                     ",
                                     "    /               \\    \\ .\'   \\    /                            /                                      /                              .\'                       ",
                                     "  .\'                      /      \'../               //\\\\        .\'                                     .\'                              /                           ",
                                     " /                 .     /         /               ///\\\\\\    . /                                      /                              .\'                           ",
                                     "/      ^           T    /                        /////\\\\\\\\   T       ^                .                              .                                          .",
                                     "   ^   T    .    ^               .       ^      //////\\\\\\\\\\      .   T                T              ^               T       ^                                  T",
                                     "   T  .     T    T     ^     .   T       T  //////////\\\\\\\\\\\\\\\\\\  T            ^                      T                       T            .              .  ",
                                     "     / \\      .       / \\   / \\     / \\       /// -- /\\ -- \\\\\\         .      T          .                                                T              T   ",
                                     ".     |      / \\       |     |       |    ////////////\\\\\\\\\\\\\\\\\\\\\\     / \\           .    T          .            .              .                 ^                  ",
                                     " \\     .      |             ^     .       ////////////\\\\\\\\\\\\\\\\\\\\\\\\   . |    ^      / \\      .      / \\          / \\     ^      / \\      .         T             .    ",
                                     " \\    / \\   .     ^        / \\   / \\        //////////\\\\\\\\\\\\\\\\\\\\    / \\    / \\     / \\     / \\     / \\  ^        |.    / \\      |      / \\     .          .    / \\   ",
                                     "| .   / \\  / \\   / \\      . |    / \\      //////////    \\\\\\\\\\\\\\\\\     |      |       |   .  / \\      |  / \\  .    / \\   / \\        ^    / \\    / \\        / \\    |    ",
                                     " / \\   |    |    / \\     / \\      |     //////// |        | \\\\\\\\\\\\\\\\ .      .          / \\  |    ^      |  / \\   / \\    |     ^  / \\    |     / \\        / \\         ",
                                     " / \\   .          |     /   \\                   ,|   __   |.        / \\    / \\         / \\      / \\        / \\    |          / \\ / \\      .    |      ^   |    ^     ",
                                     "  |   / \\         .     /   \\      .        __.\'_|  /__\\. | \\__     / \\    / \\      .   |       / \\    ^    |        ^       / \\  |      / \\   .     / \\      / \\    ",
                                     "^     / \\        / \\      |       / \\     ,\'__.\'.  \\ \\ / \\|__  \\,.   |    . |      / \\           |    / \\           / \\       |      .   / \\  / \\    / \\      / \\    ",
                                     " \\     |    /\\   / \\   .          / \\    .     / \\ / / / \\   \\___ \\      / \\       / \\      ^         / \\        .  / \\    .        / \\   |   / \\  .  |        |     ",
                                     " \\    ^    /  \\   |   / \\          |    / \\    / \\ \\/   |     ^  \/       / \\        |      / \\         |        / \\  |    / \\       / \\        |  / \\        .       ",
                                     "|    / \\   /  \\  .    / \\      ^        / \\     |            / \\      .   |  .^.           / \\       .          / \\       / \\        |       ^   /   \\   ^  / \\  .   ",
                                     "     / \\    ||  / \\    |      / \\        |           .       / \\     / \\    /   \\           |       / \\          |         |                / \\  /   \\  / \\ / \\ / \\  ",
                                     "      |         / \\          /   \\                  / \\       |     /   \\   /   \\                   / \\                                     / \\    |    / \\  |  / \\  ",
                                     "                / \\          /   \\                  / \\             /   \\     |                      |                    ''''''''''''''     |           |       |   ",
                                     "                 |             |                     |                |           ''''''''''''''''''''''''''''''''''''''''              ''''''''''                   ",
                                     "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''                                                                '''''''''''''''''''"];
 
 
 
        this.treeOne.spawnAtStart = [[17, 22], [31, 22], [53, 22], [70, 22], [101, 21], [141, 21]];
 
 
 
        //treetwo
        this.treeTwo = new this.Level();
        this.treeTwo.slug = 'treeTwo';
        this.treeTwo.unlock = 'treeCity';
        this.treeTwo.specialEnd = 95;
        this.treeTwo.enemyArray = [enemyService.Deer, enemyService.Bear];
        this.treeTwo.spawnMore = false;
        this.treeTwo.spawnAtStart = [[20, 22], [45, 22], [70,22], [85, 22]];
        this.treeTwo.playerSpawn = [0, 22];
        this.treeTwo.name = 'Approach the Giant Tree';
        this.treeTwo.defaultAscii = ["       /         \\   .^.               .'                               //////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\  ",    
                              "     .'           './   \\    .'\\      /                            ///////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",      
                              "    /               \\    \\ .'   \\    /                            /////////////////////////     \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",            
                              "  .'                      /      '../                       /////////////////////////////          \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",     
                              " /                 .     /         /                    ///////////////////////////////              \\\\\\\\\\\\\\\\\\\\\\\\\\\\",
                              "/                  T    /                                                        |            |           |        ",
                              "   ^        .    ^               .                                               |            |           |        ",
                              "   T  .     T    T           .   T                   .                        ^  |                        |        ",
                              "     / \\      .             / \\            .        / \\     .          .      T .'   |             |      '.       ",
                              ".     |      / \\      .      |         .  / \\       / \\    / \\        / \\       |    |             |       |       ",
                              " \\     .      |      / \\    ^     .   / \\  |         |     / \\       . |    ^   |                          |       ",
                              " \\    / \\         ^  / \\  ./ \\   / \\  / \\        .          |       / \\    / \\  |           |              |       ",
                              "| .   / \\     ^  / \\  |  / \\|    / \\   |   .    / \\                  |      |   |                          |       ",
                              " / \\   |  .  / \\ / \\   . / \\   .  |   .   / \\   / \\     ^            .      .  .'                          '.      ",
                              " / \\   .  / \\/ \\  |   / \\ |   / \\    / \\  / \\    |     / \\          / \\    / \\ |        |               |   |      ",
                              "  |   / \\ / \\ |   .   / \\  .  / \\  . / \\   |           / \\          / \\    / \\ |        |               |   |      ",
                              "^     / \\  |     / \\   |  / \\  |  / \\ |          ^      |            |      ,..|                 |      |   |      ",
                              " \\     |    /\\   / \\   .  / \\  .  / \\    .      / \\          ^         ___.'   |                 |          |      ",
                              " \\         /  \\   |   / \\  |  / \\  |    / \\    /   \\        / \\ _____.'       .'   |      ________          '.     ",
                              "|          /  \\       / \\     / \\       / \\    /   \\        / \\ '.____.,'--__.|    |     /        \\          |'.   ",
                              "            ||         |       |         |       |           |                |          |        |          |  \\  ",
                              "                                                                                           _______/           |   '",
                              "__________________________________________________________________________________________-                        ",
                              "-------------------------------------------------------------------------------------------------------------------"];
        
 
 
        this.bridge = new this.Level();
        this.bridge.enemyArray = [enemyService.Penguin, enemyService.Yeti];
        this.bridge.playerSpawn = [0, 14];
        this.bridge.enemySpawn = [200, 13];
        this.bridge.unitSpawnChance = [50];
        this.bridge.specialSpawn = [140, 14];
        this.bridge.specialSpawnChance = [100];
        this.bridge.spawnMore = false;
        this.bridge.spawnAtStart = [[131, 14], [135, 14], [140, 14], [144, 14], [153, 14], [200, 13]];
        this.bridge.slug = 'bridge';
        this.bridge.enemyMax = 5;
        this.bridge.unlock = 'snow'
        this.bridge.name = 'The Bridge';
        this.bridge.defaultAscii =  
                              ["  / \\    / \\                          .           /                                                             _'                                                                         .........                            ",                                                                                                                                                                                                                  
                              "  / \\     |         .                / \\         /                                               ~~~           / \\_                                                                    ..''         ''..                        ",
                              "   |               / \\       .       / \\        /                     ~~                                      /    \\  /                      |-                                                                                 ",
                              "           .       / \\      / \\       |        /      ~~~                                                   .'     /\\/                      -|                                                                                  ",
                              "          / \\       |       / \\               /                                                           .'      /  \\                       |                    -|                                              -|            ",
                              "          / \\                |    ^          /                                    ~~~                    /        \\  /                                             |-                                              |-           ",
                              "    .      |                     / \\       .'                                                           /         /\\                                               |                                               |            ",                                     
                              "   / \\                 .         / \\      /                                                           .'         /  \\/                 ,......                                            -|                                    ",
                              "   / \\                / \\         |      /                                                           /              /              .'''       ''...                                        |-                                   ",
                              "    |         ^       / \\               /                                                           /                                                                                      |                                    ",
                              "             / \\       |  .           .'                      ~~~                                 .'                                          |-                                                                                ",
                              "   /\\        / \\         / \\         /                                                           /                                           -|                                                                                ",
                              "  /  \\        |         /   \\       /                                                           /                                             |                                                                               ",
                              "  /  \\                  /   \\      /                                               ~~~         /                                                                                                                                ",
                              "   ||                     |       /                                                          _/                                                            __________----''''''''''''''''''''''''''''''''''''''''''''''''''----____  ",                                                            
                              "                                .'          ~~~~                                           .'                           '''''''''''''''''''''''''''''''''''''''''''''                                                          '''''",                                                                                                                                                                                                                                                                 
                              "'''''''____                   __________________________________________________________________           '''''''''''''                                                                                                                              ",                                                                                
                              "       ''''''''''''''''''''''/   /   /   /   /   /   /   /   /   /   /   /   /   /   /   /   / /'''''''''''                                         |-                                                                          ",
                              "  .                         /-----------------------------------------------------------------/                                -|                  -|                           -|                                              ",
                              " / \\        .             .'         //\\\\                // \\\\                 //\\\\          /                                  |-                  |                            |-                              |-             ",
                              " / \\       / \\          .'                                                                 .'                                   |                                                |                              -|              ",
                              "  |        / \\         /                       ~~                                         /            |-                                                                                                        |              ",
                              "            |         /                                          ~~~~                   .'             |                                                                                                                        "];
 
        this.snow = new this.Level();
        this.snow.enemyArray = [enemyService.Snowman, enemyService.SnowmanBoss];
        this.snow.playerSpawn = [0, 10];
        this.snow.spawnMore = false;
        this.snow.spawnAtStart = [[14, 11], [47, 9], [124, 14]];
        this.snow.name = 'Snow Wastes';
        this.snow.slug = 'snow';
        this.snow.unlock = 'wizard';
        this.snow.specialEnd = 190;
        this.snow.defaultAscii = ["                                                                                                                                                           \\                                       ",               
                                  "                                                                                                                                                            \\  /____                               ",               
                                  "                                                                                                                          _     _____                        \\/     \\____    ______                ",                            
                                  "                                                                                                                         ***   |     |                                   \\  /      \\_____          ",                           
                                  "                                                                                                                          |   _|_____|_                                   \\/             \\     ____",
                                  "                                                                                                                          |    ( . . )                                                    \\  /     ",         
                                  "                                                                                                                          >    _\\_-_/_                                                     \\/      ",                
                                  "                                                 o                                                                        |\\  /   +   \\                                                               ",               
                                  "                                               -( )-                                                                      | \\_|   +   |--.                                                               ",             
                                  "                o                              (   )                                                                         _\\_______/_  \\                                                                ",             
                                  "              -( )-                    ____-----------------------------___                                                 /           \\  ^                                                              ",             
                                  "              (   )      __________--------                            -------____                                         /             \\                                                       /\\ ",                  
                                  "-----------------------------------                                           --------______                               |             |                               /\\         /\\       ___/  \\", 
                                  "                                                                                      -----------___                       \\             /                   /\\     ____/  \\_______/  \\_____/       ", 
                                  "                                                                                                 ------______               \\           /      ____---------/  \\___/                                ",
                                  "                                                                                                       --------------------------------------------                                                ",
                                  "                                                                                                                                                                                                   ",
                                  "                                                                                                                                                                                                   ",
                                  "                                                                                                                                                                                                   ",
                                  "                                                                                                                                                                                                   "];
 
 
      this.snowNorth = new this.Level();
      this.snowNorth.enemyArray = [enemyService.GorillaSnow, enemyService.Mammoth];
      this.snowNorth.unitSpawnChance = [60, 80];
      this.snowNorth.enemySpawn = [200, 14];
      this.snowNorth.enemyMax = 5;
      this.snowNorth.playerSpawn = [0, 15];
      this.snowNorth.name = 'Northern Wastes';
      this.snowNorth.slug = 'snowNorth';
      this.snowNorth.specialEnd = 265;
      this.snowNorth.unlock = 'cabin';
      this.snowNorth.defaultAscii = ["                                                                                                                                                                                                                                                                                                             ",                                                                                                                                                                                  
                                     "                                                                                              _|                                                                                                                                                                                                             ",
                                     "                                                                                               |_                                                                                                                           _|                                                                               ",
                                     "    _|                                               .'''''''''''''.                           |                                                      .'''''''''''''''''.                                                    |_                                                                              ",
                                     "     |_                                                                                                                                                                                                                      |                                                                 .             ",
                                     "     |                                                                                                                                                              _|                                                                                                                        / \\            ",
                                     "                                                                                            .''''''''''.                                                             |_                                                                                                             .        / ~ \\           ",
                                     "                   .'''''''''''''.                    _|_                                                                                                            |                                                                                                        .    / \\       /___\\           ",
                                     "                                                       |_                                                                                                                                                                                                                    / \\   / \\     ~   |         *   ",
                                     "                                                       |                                                                                                                                                                                                                     / \\    |        ~          / \\  ",
                                     "                                                                                                                                                                                                                                                                          .   |            __          /   \\ ",
                                     "                                                                                                                                                                                                                                                                         / \\        _______||_      .  /   \\ ",
                                     "                                                                                                                                                                                                                                                                         / \\       /   \\      \\    / \\   |   ",
                                     "                                                                                                                                                                                                                                                                          |       /_____\\______\\  /   \\      ",
                                     "                                                                                                                 ____________________________________________________________                                                                                                     |  _   |     |  /___\\      ",
                                     "__________________________                                                        _______________________________''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''_____________________________________________________________________________________________________| | |  |     |____|________",
                                     "''''''''''''''''''''''''''________________________________________________________'''''''''''''''''''''''''''''''                                                            ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''",                                 
                                     "                          ''''''''''''''''''''''''''''''''''''''''''''''''''''''''                                                                                                                                                                                                                           "];
                                                                                                                                                                                                                                
                                                                                                                                                                                                                                
                                                                                                                                                                                                                                
      this.sea = new this.Level();
      this.sea.enemyArray = [enemyService.Oyster, enemyService.Crab];
      this.sea.playerSpawn = [0, 14];
      this.sea.spawnMore = false;
      this.sea.spawnAtStart = [[54, 13], [76, 13], [110, 14], [131, 14], [153, 13]];
      this.sea.name = 'Going for a Swim';
      this.sea.slug = 'sea';
      this.sea.defaultAscii =["                                                                                                                                                                                                                                 ",
                              "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",                                                                                                                                                                                                                                
                              "                                                                                                                                                                                                                                 ",  
                              "                                                                                                                                                                                                                                 ",  
                              "                                            `                                                                                            `                        `                                                              ",  
                              "                                                                                                     `                                                                                                                           ", 
                              "                                                                        `                                                                                                                                                        ", 
                              "                                                                                                                                     `                                                                                           ",
                              "                                                                                                                                            `                                                                                    ", 
                              "           `                                                                                                                                                         `                                                           ", 
                              "                                                                                                                                                                                                                                 ", 
                              "                                                                                                                                                        V          V                                                               ", 
                              "                                                                                                                                                        \\_.''''._/                                                               ",
                              "                                                                                                                                                         ;',--,';                                                                ",
                              "                                             ,'''''''''''''''''''''''''''''''''''''''''''''.                                                  .''''''''''''''''''''''''''''''''''''''''''.                                       ",                                                                                         
                              "'''''''''''''''''''''''''''''''''''''''''''''                                               ''''''''''''''''''''''''''''''''''''''''''''''''''                                            '''''''''''''''''''''''''''''''''''''''",                                                                                                                                   
                              "                                                                                                                                                                                                                                 "]
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      
 
 
 
        this.ruins = new this.Level();
        this.ruins.slug = 'desert';
        this.ruins.unlock = 'dungeon';
        this.ruins.enemyArray = [enemyService.Gorilla, enemyService.DustDevil];
        this.ruins.specialSpawn = [120, 12];
        this.ruins.specialSpawnChance = 50;
        this.ruins.unitSpawnChance = [40, 80];
        this.ruins.enemyMax = 4;
        this.ruins.playerSpawn = [0, 13];
        this.ruins.enemySpawn = [250, 10];
        this.ruins.name = 'The Desert';
        this.ruins.specialEnd = 250;
        this.ruins.defaultAscii = ["                                                                                                                                                                                     /                                                                                   ",                                                                                                                       
                                   "                                                                                                                                                                                    /                                        ________________                            ",                                                                                                                       
                                   "                                                                                                                                                                                   /                                                                                     ",                                                                                                                       
                                   "                                                                                                                                                                                  /         __________________________                                                   ",                                                                                                                                                 
                                   "                                                                                                                                                                                 /                                                                                       ",                                                                                                                          
                                   "                                                                                                                                                                                /                                                                                        ",                                                                                                                             
                                   "                                                                                                                                                                               /                        ____________________________                [=]=v=[=]            ",                                                                                                                                                                                                   
                                   "                                                                                                                                                                              /                                                                     __.\\ /.__            ",                                                                                                                                                                                                             
                                   "                                                                                                          ____________________________.''''''''''''._________________________/                                                                      |        |           ",                                                                                                                                                                                                                        
                                   "                                ________.'''''''''._______________                      ________________.'                                                                  /                                                                       |        |           ",                                                                                                                                                                                             
                                   "______.'''''''''._____________.'                                  '.__________________.'            +                           +                        +                 /                                                                        |        |           ",                                                                                                                                                                                                 
                                   "                                                       +                                            +                                                    +                                                                                                   |           ",                                                                                                                                                                                        
                                   "                         +                             +                                                                                                      .'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''           ",                                                                                                                                                                                                     
                                   "                         +                                                                                         .''''''''''''''''''''''''''''''''''''''''''                                                                                                           ",                                                                                                                                                                                                       
                                   "                                               .'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''                                                                                                                                                      ",                                                                                                                                                                                                     
                                   "'''''''''''''''''''''''''''''''''''''''''''''''                                                                                                                                                                                                                          "];                                                                                                                                                                                                  
 
 
 
        this.dungeon = new this.Level();
        this.dungeon.spawnMore = false;
        this.dungeon.enemyArray = [enemyService.Ghost, enemyService.Minotaur];
        this.dungeon.playerSpawn = [0, 0];
        this.dungeon.spawnAtStart = [[100, 11], [180, 11], [198, 11]];
        this.dungeon.slug = 'dungeon';
        this.dungeon.unlock = 'ruinsCleared';
        this.dungeon.name = 'The Beasts Lair';
        this.dungeon.defaultAscii = ["                                             *                                                                                                                                                                                    ",
                                     "____                                         *                        *   *                                                                                                                                                       ",
                                     "''''____                                   __*__                      *   *                                                                                                                                                       ",
                                     "    ''''____                              |||||||                     *   *                                                                                                                     .'\\                               ",
                                     "        ''''____                          |||||||                      \\o/                                                                                                                    .'   \\  |\\...|\\                     ",
                                     "            ''''____                      |||||||                       |                                    _______                    *-------------------*                                 \\    .' |o  o  |                    ",
                                     "                ''''____                  *******                      / \\                                  .|'|'|'|.                       |   |   |  |                                       \\.'\\\\  ;|../;;;_                   ",
                                     "                    ''''____                                                                                || | | ||                      c|  <|   V =|=                                          o\\/ ;;  ;; /\\                  ",
                                     "                        ''''____                                               ....0..0....                 || | | ||                                                                               \\'| ;  ;  | \\                 ",
                                     "                            ''''____                                           |\\   >--\\-o \\                |v v v v|                                                                                 '._____.'  O                ",
                                     "                                ''''____                                         |--0---0---|                                                                                                          | |  | |                   ",
                                     "                                    ''''____                                                                                                                                                          ,' /  \\ ',                  ",
                                     "                                        ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''",
                                     "                                                                                                                                                                                                                                  ",
                                     "                                                                                                                                                                                                                                  ",
                                     "                                                                                                                                                                                                                                  ",
                                     "                                                                                                                                                                                                                                  ",
                                     "                                                                                                                                                                                                                                  "];
 
 
        this.shroom = new this.Level();
        this.shroom.enemyArray = [enemyService.Vampire, enemyService.King];
        this.shroom.spawnMore = false;
        this.shroom.playerSpawn = [0, 14];
        this.shroom.spawnAtStart = [[140, 8], [145, 8], [150, 8], [160, 8], [ 165, 8]];
        this.shroom.enemyMax = 10;
        this.shroom.name = '? ? ?'; 
        this.shroom.slug = 'shroom';
        this.shroom.unlock = 'shroomFinish';
        this.shroom.defaultAscii =["                                                                                                                                            /\\                   _________                                                                     ",
                                   "                                                                                                                                           /  \\                 |'._______'.                                                                   ",
                                   "            ____                                                                                                           /\\              |  |_/\\______________| |   __   |                                                                   ",
                                   "           /  o \\                                                                                                          ||______________|  '/  \\               |  |  |  |                                                                   ",
                                   "           |o  o|               _________                   _______                               ________                 | '.  /\\            |  |_______________|  |__|  |                                                                   ",
                                   "           \"\"||\"\"              /_________\\                 /_______\\                ________     /________\\ ,_____________ |   '.||____________|  |   | |     | |          |                                                                   ",
                                   "_____________||____________        //                          \\\\     ______       /________\\   _____\\\\__.''               |     |                    'V'     'V'          |                                                                   ",
                                   "  _______    ||            '--.____\\\\__________________________//____/o  o  \\__________//_____.'     //                    |     |                                          \\                                                                  ",
                                   " /_______\\            _________     \\\\     ________           //     | o   o|          \\\\            \\\\                   /       ________________________________________                                                                   ",          
                                   "    //               /_________\\          /________\\                 '''||'''           \\\\                               /     /''      ____                              \\                                                                    ",
                                   "    \\\\                    \\\\                  \\\\                        ||                          ____________________/     /        /o  o\\                              '''''''''''''''''''''''\\                                            ",
                                   "      _____________       //                   \\\\            ____       ||                         /                         /         |  o |                                                      \\__________________________                 ",   
                                   "     /             \\     //                    //           /o  o\\                                /     ____________________/          \"\"||\"\"      _________                                                                  \\________________",     
                                   "____/    ______     \\______________________                 | o  |         ______________________/     /    ______                       ||       /_________\\                                                                                  ",
                                   "        /      \\                           \\                 \"||\"         /                           /    /o   o \\             _____    ||           //                                                                                       ",               
                                   "_______/        \\_______________________    \\                 ||         /     ______________________/     |  o  o|            /_____\\                \\\\                                                                                       ",
                                   "     ____________                       \\    \\__________________________/     /      ______________        \"\"\"||\"\"\"              //                    \\\\                                                                                      ",
                                   "    /            \\                       \\                                   /      /              \\          ||                //                                                                                                             ",
                                   "   /______________\\                       \\_________________________________/      /________________\\         ||                \\\\                                                                                                             ",
                                   "         \\   \\                                                                           /  /                                                                                                                                                  "];
 
 
 
        this.arena = new this.Level();
        this.arena.enemyArray = [enemyService.Mantis, enemyService.StickBug];
        this.arena.unitSpawnChance = [48, 95];
        this.arena.playerSpawn = [2, 18];
        this.arena.enemySpawn = [87, 18];
        this.arena.specialEnd = 87;
        this.arena.enemyMax = 20;
        this.arena.name = 'Fight Night';
        this.arena.slug = 'arena';
        this.arena.unlock = 'bridge';
        this.arena.defaultAscii = ["^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^",
                                   "|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|",
                                   "|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|",
                                   "                  ..........................................................                   ",
                                   "          ....''''     o o    \\o/  o   o   o   o   o  o    o   o   o  \\o/   ''''....           ",
                                   "       .''             ' '     '   '   '   '   '   '  '    '   '   '   '            ''.        ",
                                   "    .''   o \\o/   o   \\o/ \\o/  \\o/  o \\o/   o   \\o/  \\o/  o    oo     o   o  \\o/  \\o/  ''.     ",
                                   "  .'      '  '    '    '   '    '   '  '    '    '    '   '    ''     '   '   '    '      '.   ",
                                   " /   \\o/  o   o   o    o   o   o \\o/o/ \\o/ o \\o \\o/     o   \\o/ o   \\o/ o  o    \\o/  o   o  \\  ",
                                   "/____________________________________________________________________________________________\\ ",
                                   "                                                                                              ",
                                   "                                                                                              ",
                                   "                                                                                              ",
                                   "                                                                                              ",
                                   "                                                                                              ",
                                   "                                                                                              ",
                                   "_                                                                                         __  ",
                                   " |                                                                                       |  | ",
                                   " |                                                                                       |  | ",
                                   "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' "]; 
 
        this.robot = new this.Level();
        this.robot.enemyArray = [enemyService.Robot];
        this.robot.playerSpawn = [0, 15];
        this.robot.spawnAtStart = [[108, 15]];
        this.robot.spawnMore = false;
        this.robot.name = 'The Wizards Task';
        this.robot.slug = 'robot';
        this.robot.unlock = 'lich';
        this.robot.defaultAscii = ["           /                                                                                       \\    /                                                     ",
                                   "          /                                                                                         \\  /                                                      ",
                                   "        .'                                                                                           '/                                                       ",
                                   "       /                                                                                                                                                      ",       
                                   "      /                                                                                                                                                       ",          
                                   "    .'                                                                                                                                                        ",      
                                   "   /                                                                                                                                                          ",      
                                   "  /                                                                                                                                                           ",      
                                   ".'                                                                                                             .                                              ",
                                   "                                                                                                            ___|____                                          ",
                                   "                                                                                                           |        |                                         ",
                                   "                                                                                                        o  | 0  0   |                                         ",
                                   "                                                                                                         \\.|  __    |.                                        ",
                                   "                                                                                                            \\______/  \\                                       ",
                                   "                                                                                                             |    |    o                                      ",
                                   "                                                                                                            c|   c|                                           ",
                                   "'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"];
 
 
        this.theEnd = new this.Level();
        this.theEnd.enemyArray = [enemyService.Undead, enemyService.Lich];
        this.theEnd.playerSpawn = [0, 24];
        this.theEnd.spawnAtStart = [[111, 24]];
        this.theEnd.spawnMore = false;
        this.theEnd.enemyMax = 20;
        this.theEnd.name = 'The End';
        this.theEnd.slug = 'theEnd';
        this.theEnd.defaultAscii = ["                                                                                                  /     \\              _                                 ",                                                
                                    "                                                                                                \\\\  /\\   /           _/_\\\\                            ",                                                     
                                    "                                                                                               \\\\  | ||  //         //    \\\\                          ",                                                        
                                    "                                                                                               \\ \\ | ||   //       | |* *  |\\                         ",                                                  
                                    "                                                                                              \\ \\  | ||  / /       |  vvvv | |                //       ",                                                    
                                    "                                                                                               \\ \\ | ||  / /        \\ wwww/ _/              ////      ",                                                      
                                    "                                                                                               \\ \\ | ||  / /         \\__|/_/___           \\/  /       ",                                                          
                                    "                                                                                               \\ \\ | || / /         / \\_//     |\\        /| -'        ",                                                                 
                                    "                                                                                                \\ \\| || //         /|  '/      | \\      / |           ",                                                          
                                    "                                                                                              .-._\\| ||/.-.       / |          |  \\    /  |           ",                                                        
                                    "                                                                                              '..--___--..'______/  |          |   \\  /   |           ",                                                       
                                    "                                                                                                  /   \\|            |          ||   \\/    |           ",                                                       
                                    "                                                                                                  \\___/            ||          |||        |           ",                                                    
                                    "                                                                                                   / \\|        |  |||__________| | |      |           ",
                                    "                                                                                                   \\ /|    ||| |/|| |          |  ||   ||/            ",                                                    
                                    "                                                                                                    '  \\ |\\| |\\|    |          |   \\/|\\|          ",                                                         
                                    "                                                                                                        \\|         ||          ||                     ",                                                                 
                                    "                                                                                                                   |            |                     ",                                                             
                                    "                                                                                                                   |            |                     ",                                                  
                                    "                                                                                                                   |            |                     ",                                               
                                    "                                                                                                                   |            |                     ",                                               
                                    "                                                                                                                  |              |                    ",                                               
                                    "                                                                                                                  | |      |   | |  |                 ",                                               
                                    "                                                                                                               | || | | |  | | | | ||                 ",                                               
                                    "                                                                                                               |||||||||||||||||||||||                ",                                                         
                                    "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"];
 
 
        this.levelDictionary = [];
        this.levelDictionary['treeOne'] = this.treeOne;
        this.levelDictionary['treeTwo'] = this.treeTwo;
        this.levelDictionary['bridge']  = this.bridge;
        this.levelDictionary['sea'] = this.sea;
        this.levelDictionary['snow'] = this.snow;
        this.levelDictionary['snowNorth'] = this.snowNorth;
        this.levelDictionary['ruins'] = this.ruins;
        this.levelDictionary['dungeon'] = this.dungeon;
        this.levelDictionary['shroom'] = this.shroom;
        this.levelDictionary['arena'] = this.arena;
        this.levelDictionary['robot'] = this.robot;
        this.levelDictionary['theEnd'] = this.theEnd;
 
 
        
        this.switchCurrentLevel = function(activeLevel) {
            this.currentLevel = this.levelDictionary[activeLevel];
        }
 
    }
})();