Frame 1
var BX_3 = 30;
var BY_3 = 20;
var Night_3 = false;
var TURTLES_TOTAL_3 = 3;
var GEMS_TOTAL_3 = 140;
var ENEMIES_TOTAL_3 = 4;
var Position_3 = [2, 14];
var BlocksArray_3 = [[21, 37, 38, 45, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 36, 37, 21], [21, 29, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 45, 36], [19, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 6, 7, 0, 0, 0, 0, 20], [19, 50, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 0, 44, 36, 15, 8, 14, 0, 0, 20], [21, 19, 30, 13, 26, 14, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 0, 0, 0, 0, 0, 0, 44, 45, 45, 46, 0, 0, 20], [37, 38, 45, 45, 45, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 0, 0, 0, 0, 0, 9, 4, 5, 28], [38, 46, 0, 0, 0, 9, 10, 5, 26, 13, 13, 13, 26, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 12, 13, 26, 17, 18, 50, 21], [22, 0, 0, 12, 26, 17, 18, 19, 21, 38, 45, 36, 21, 37, 15, 8, 27, 25, 14, 0, 0, 0, 0, 20, 19, 37, 21, 29, 19, 37], [22, 0, 0, 44, 45, 45, 45, 45, 45, 46, 0, 0, 36, 19, 19, 21, 29, 21, 22, 0, 0, 0, 12, 28, 38, 45, 45, 36, 21, 19], [30, 25, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 45, 45, 36, 21, 21, 30, 26, 14, 0, 44, 45, 46, 0, 0, 44, 45, 36], [38, 45, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 45, 45, 36, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 20], [22, 0, 0, 12, 25, 13, 26, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 36, 30, 25, 6, 7, 0, 0, 0, 0, 0, 20], [22, 0, 0, 44, 45, 45, 45, 46, 0, 12, 26, 14, 0, 0, 0, 0, 0, 0, 0, 20, 21, 19, 21, 15, 8, 26, 27, 14, 0, 20], [22, 0, 0, 0, 0, 0, 0, 0, 0, 20, 50, 30, 13, 25, 27, 26, 14, 0, 0, 20, 21, 38, 45, 45, 45, 45, 45, 46, 0, 20], [22, 0, 0, 0, 0, 0, 0, 0, 0, 44, 45, 45, 36, 29, 38, 45, 46, 0, 0, 20, 21, 22, 0, 0, 0, 0, 0, 0, 12, 28], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 45, 46, 0, 0, 12, 13, 28, 37, 22, 0, 0, 9, 10, 5, 13, 28, 21], [30, 13, 26, 14, 0, 12, 25, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 24, 38, 45, 46, 0, 12, 17, 18, 21, 19, 29, 38], [21, 19, 21, 30, 13, 28, 21, 30, 14, 0, 0, 0, 0, 0, 9, 4, 5, 28, 32, 22, 0, 0, 0, 20, 37, 50, 38, 45, 45, 46], [19, 38, 45, 45, 45, 45, 36, 38, 46, 0, 0, 0, 9, 4, 11, 18, 37, 21, 40, 30, 27, 25, 26, 28, 21, 21, 22, 0, 0, 0], [38, 46, 0, 0, 0, 0, 20, 30, 13, 25, 26, 27, 17, 18, 21, 38, 45, 45, 36, 21, 29, 21, 19, 37, 38, 45, 46, 0, 0, 0]];
var Decor_3 = [["b", 21, 959, 797], ["f", 22, 970, 797], ["b", 24, 290, 747], ["f", 7, 294, 768], ["b", 1, 50, 703], ["b", 23, 720, 595], ["b", 23, 295, 500], ["b", 24, 835, 315], ["b", 23, 1250, 695]];
var GemsArray_3 = [[27, 0, 0, 0, 0], [35, 650, 1, 5, 0], [2, 0, 0, 0, 0], [1, 0, 0, 0, 0], [2, 0, 0, 0, 0], [1, 0, 0, 0, 0], [2, 0, 0, 0, 0], [180, 740, 3, 3, 0], [0, 2, 0, 0, 0], [2, 5, 2, 0, 0], [0, 2, 0, 0, 0], [390, 675, 3, 3, 0], [0, 1, 0, 0, 0], [1, 4, 1, 0, 0], [0, 1, 0, 0, 0], [460, 795, 3, 4, 0], [5, 2, 5, 0, 0], [5, 2, 5, 0, 0], [5, 2, 5, 0, 0], [5, 2, 5, 0, 0], [805, 750, 1, 3, 0], [2, 0, 0, 0, 0], [4, 0, 0, 0, 0], [2, 0, 0, 0, 0], [860, 615, 2, 3, 0], [3, 3, 0, 0, 0], [4, 4, 0, 0, 0], [3, 3, 0, 0, 0], [600, 510, 3, 2, 0], [1, 5, 1, 0, 0], [5, 1, 5, 0, 0], [470, 545, 3, 1, 0], [1, 4, 1, 0, 0], [230, 470, 3, 1, 0], [4, 4, 4, 0, 0], [100, 540, 2, 3, 0], [5, 3, 0, 0, 0], [5, 3, 0, 0, 0], [5, 3, 0, 0, 0], [35, 327, 1, 5, 0], [5, 0, 0, 0, 0], [4, 0, 0, 0, 0], [5, 0, 0, 0, 0], [4, 0, 0, 0, 0], [5, 0, 0, 0, 0], [235, 280, 3, 2, 0], [0, 0, 5, 0, 0], [5, 0, 0, 0, 0], [145, 98, 3, 3, 0], [5, 5, 5, 0, 0], [4, 1, 4, 0, 0], [5, 5, 5, 0, 0], [445, 170, 3, 3, 0], [0, 1, 0, 0, 0], [2, 1, 2, 0, 0], [0, 1, 0, 0, 0], [710, 95, 3, 3, 0], [1, 1, 1, 0, 0], [1, 4, 1, 0, 0], [1, 1, 1, 0, 0], [900, 48, 3, 3, 0], [4, 4, 4, 0, 0], [4, 1, 4, 0, 0], [4, 4, 4, 0, 0], [900, 213, 3, 1, 0], [3, 3, 3, 0, 0], [1073, 35, 1, 3, 0], [2, 0, 0, 0, 0], [2, 0, 0, 0, 0], [2, 0, 0, 0, 0], [1140, 65, 3, 3, 0], [3, 0, 0, 0, 0], [0, 3, 0, 0, 0], [0, 0, 3, 0, 0], [1360, 125, 3, 4, 0], [2, 5, 0, 0, 0], [2, 5, 0, 0, 0], [2, 5, 0, 0, 0], [2, 5, 0, 0, 0], [1090, 315, 1, 3, 0], [2, 0, 0, 0, 0], [5, 0, 0, 0, 0], [2, 0, 0, 0, 0], [903, 369, 1, 3, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1012, 407, 2, 4, 0], [5, 3, 0, 0, 0], [3, 5, 0, 0, 0], [5, 3, 0, 0, 0], [5, 3, 0, 0, 0], [1100, 510, 3, 2, 0], [4, 0, 0, 0, 0], [0, 0, 4, 0, 0], [1347, 570, 2, 3, 0], [2, 1, 0, 0, 0], [1, 2, 0, 0, 0], [2, 1, 0, 0, 0], [1285, 655, 1, 3, 0], [4, 0, 0, 0, 0], [4, 0, 0, 0, 0], [4, 0, 0, 0, 0], [1065, 690, 1, 5, 0], [5, 0, 0, 0, 0], [5, 0, 0, 0, 0], [2, 0, 0, 0, 0], [5, 0, 0, 0, 0], [5, 0, 0, 0, 0]];
var Objects_3 = [["m", 1, 485, 892, 1, 0, 0], ["t", 1, 472, 890, 0, 0, 1], ["m", 2, 355, 267, 2, 0, 0], ["t", 2, 540, 266, 0, 0, 1], ["m", 3, 1000, 500, 3, 0, 0], ["t", 3, 1220, 555, 0, 0, 1], ["m", 4, 1340, 710, 4, 0, 0], ["e", 1, 972, 823, 0, 1, 1]];
var ObjectParams_3 = [{}, {hint:0, char:2, step:3, wplength:4, wp:[[380, 892], [567, 892], [725, 807], [567, 892]]}, {hint:1, char:1, step:3, wplength:6, wp:[[355, 267], [641, 267], [735, 315], [830, 315], [735, 315], [641, 267]]}, {hint:0, char:1, step:3, wplength:6, wp:[[990, 505], [1065, 505], [1150, 555], [1290, 555], [1150, 555], [1065, 505]]}, {hint:0, char:3, step:1, wplength:6, wp:[[1320, 703], [1235, 703], [1140, 752], [1122, 752], [1140, 752], [1235, 703]]}];
var BX_2 = 42;
var BY_2 = 12;
var Night_2 = true;
var TURTLES_TOTAL_2 = 2;
var GEMS_TOTAL_2 = 120;
var ENEMIES_TOTAL_2 = 2;
var Position_2 = [2, 2];
var BlocksArray_2 = [[38, 45, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 45, 36, 38, 45, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 36, 21], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 36], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 25, 14, 0, 12, 13, 26, 14, 0, 0, 0, 20, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20], [22, 0, 0, 0, 12, 26, 14, 0, 0, 0, 0, 0, 0, 12, 28, 38, 46, 0, 44, 45, 45, 46, 0, 12, 25, 28, 30, 14, 0, 12, 25, 26, 27, 13, 25, 14, 0, 0, 12, 13, 25, 28], [22, 0, 0, 0, 44, 45, 46, 0, 0, 0, 0, 0, 0, 44, 45, 46, 0, 0, 0, 0, 0, 0, 0, 20, 19, 24, 21, 22, 0, 44, 36, 29, 23, 50, 21, 22, 0, 0, 44, 45, 45, 36], [30, 26, 25, 14, 0, 0, 12, 26, 25, 26, 27, 13, 26, 14, 0, 12, 27, 26, 14, 0, 0, 12, 27, 28, 21, 32, 19, 30, 14, 0, 20, 21, 31, 19, 37, 30, 26, 27, 14, 0, 0, 20], [21, 19, 21, 22, 0, 0, 20, 19, 21, 21, 23, 21, 21, 22, 0, 20, 29, 50, 30, 14, 0, 44, 45, 36, 37, 40, 19, 38, 46, 0, 20, 19, 39, 21, 21, 19, 21, 19, 22, 0, 0, 20], [29, 21, 37, 30, 13, 27, 28, 21, 21, 29, 31, 37, 19, 30, 25, 28, 21, 21, 19, 22, 0, 0, 0, 44, 45, 45, 45, 46, 0, 12, 28, 21, 38, 45, 36, 21, 37, 29, 30, 13, 27, 28], [19, 19, 21, 19, 21, 50, 21, 19, 19, 21, 31, 19, 19, 21, 29, 19, 37, 19, 21, 30, 25, 26, 14, 0, 0, 0, 0, 0, 0, 44, 45, 45, 46, 0, 44, 45, 36, 21, 19, 50, 21, 21], [21, 21, 19, 21, 29, 19, 19, 19, 19, 21, 39, 21, 19, 19, 21, 21, 21, 19, 37, 19, 19, 21, 22, 0, 0, 0, 12, 13, 25, 27, 13, 13, 14, 0, 0, 0, 20, 21, 21, 29, 21, 21], [19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 21, 21, 19, 21, 30, 26, 27, 13, 28, 21, 19, 21, 29, 19, 22, 0, 0, 0, 20, 21, 37, 19, 19, 19], [19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 21, 19, 21, 19, 37, 19, 19, 21, 19, 21, 19, 19, 21, 19, 30, 25, 27, 13, 28, 19, 21, 19, 19, 19]];
var Decor_2 = [["b", 21, 1920, 77], ["f", 22, 1931, 77], ["b", 24, 242, 123], ["f", 7, 246, 141], ["b", 4, 56, 164], ["f", 8, 112, 244], ["b", 24, 723, 75], ["b", 24, 1104, 457], ["b", 24, 1632, 122], ["f", 16, 1440, 384], ["f", 16, 1487, 384], ["f", 9, 1425, 440], ["f", 10, 1471, 439]];
var GemsArray_2 = [[23, 0, 0, 0, 0, 0], [230, 60, 3, 3, 0, 0], [0, 1, 0, 0, 0, 0], [1, 2, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [219, 245, 2, 3, 0, 0], [5, 4, 0, 0, 0, 0], [4, 5, 0, 0, 0, 0], [5, 4, 0, 0, 0, 0], [420, 150, 5, 2, 0, 0], [1, 3, 1, 3, 1, 0], [3, 1, 3, 1, 3, 0], [673, 230, 2, 4, 0, 0], [5, 2, 0, 0, 0, 0], [2, 5, 0, 0, 0, 0], [5, 2, 0, 0, 0, 0], [2, 5, 0, 0, 0, 0], [655, 84, 1, 2, 0, 0], [4, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [710, 50, 3, 1, 0, 0], [1, 4, 1, 0, 0, 0], [770, 200, 4, 1, 0, 0], [3, 4, 4, 3, 0, 0], [927, 25, 3, 2, 0, 0], [0, 2, 0, 0, 0, 0], [2, 1, 2, 0, 0, 0], [950, 165, 1, 3, 0, 0], [2, 0, 0, 0, 0, 0], [5, 0, 0, 0, 0, 0], [2, 0, 0, 0, 0, 0], [1130, 50, 3, 3, 0, 0], [4, 5, 4, 0, 0, 0], [4, 5, 4, 0, 0, 0], [4, 5, 4, 0, 0, 0], [1085, 165, 1, 3, 0, 0], [3, 0, 0, 0, 0, 0], [3, 0, 0, 0, 0, 0], [3, 0, 0, 0, 0, 0], [975, 310, 4, 2, 0, 0], [1, 4, 1, 4, 0, 0], [1, 4, 1, 4, 0, 0], [1365, 358, 1, 3, 0, 0], [3, 0, 0, 0, 0, 0], [3, 0, 0, 0, 0, 0], [3, 0, 0, 0, 0, 0], [1415, 230, 1, 4, 0, 0], [4, 0, 0, 0, 0, 0], [4, 0, 0, 0, 0, 0], [4, 0, 0, 0, 0, 0], [4, 0, 0, 0, 0, 0], [1335, 170, 1, 3, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1290, 50, 1, 3, 0, 0], [4, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [4, 0, 0, 0, 0, 0], [1505, 48, 5, 3, 0, 0], [0, 0, 5, 0, 0, 0], [0, 5, 2, 5, 0, 0], [5, 5, 5, 5, 5, 0], [1720, 170, 1, 3, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1875, 75, 1, 3, 0, 0], [1, 0, 0, 0, 0, 0], [5, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1885, 254, 3, 3, 0, 0], [3, 5, 3, 0, 0, 0], [3, 5, 3, 0, 0, 0], [3, 5, 3, 0, 0, 0], [1580, 423, 6, 1, 0, 0], [4, 1, 4, 1, 4, 1], [1580, 455, 6, 1, 0, 0], [1, 4, 1, 4, 1, 4], [1580, 487, 6, 1, 0, 0], [4, 1, 4, 1, 4, 1]];
var Objects_2 = [["m", 1, 330, 218, 1, 0, 0], ["t", 1, 457, 218, 0, 0, 1], ["m", 2, 1425, 121, 2, 0, 0], ["t", 2, 1542, 121, 0, 0, 1], ["e", 1, 1923, 103, 0, 1, 1]];
var ObjectParams_2 = [{}, {hint:0, char:2, step:3, wplength:2, wp:[[330, 218], [600, 218]]}, {hint:0, char:2, step:3, wplength:2, wp:[[1425, 121], [1660, 121]]}];
var BX_1 = 42;
var BY_1 = 13;
var Night_1 = false;
var TURTLES_TOTAL_1 = 1;
var GEMS_TOTAL_1 = 30;
var ENEMIES_TOTAL_1 = 1;
var Position_1 = [2, 8];
var BlocksArray_1 = [[0, 0, 20, 19, 19, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 21, 19, 19, 21], [0, 0, 20, 19, 19, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 21, 19, 19, 21], [0, 0, 20, 38, 45, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 21, 19, 19, 21], [25, 27, 28, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 21, 19, 19, 21], [19, 19, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 12, 27, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 21, 21, 19, 19], [19, 19, 38, 46, 0, 0, 0, 0, 0, 0, 0, 12, 28, 29, 21, 15, 8, 27, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 21, 21, 21, 21], [38, 45, 46, 0, 0, 0, 0, 0, 0, 0, 0, 44, 45, 45, 36, 19, 37, 21, 22, 0, 0, 0, 0, 12, 26, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 45, 36, 21, 50], [22, 0, 0, 0, 0, 0, 0, 0, 12, 26, 14, 0, 0, 0, 20, 21, 21, 21, 30, 26, 6, 7, 0, 20, 21, 30, 26, 26, 13, 26, 13, 26, 26, 14, 0, 0, 0, 0, 0, 44, 36, 21], [22, 0, 0, 0, 0, 0, 0, 0, 20, 50, 22, 0, 0, 0, 20, 21, 21, 21, 19, 21, 50, 15, 8, 28, 21, 21, 21, 21, 29, 21, 21, 21, 21, 22, 0, 0, 0, 0, 0, 0, 44, 36], [22, 0, 0, 0, 0, 0, 0, 12, 28, 21, 30, 13, 27, 26, 28, 21, 21, 37, 21, 21, 21, 21, 21, 21, 37, 21, 21, 21, 21, 21, 21, 21, 21, 30, 6, 7, 0, 0, 0, 0, 0, 20], [22, 0, 0, 9, 4, 5, 25, 28, 19, 19, 21, 29, 21, 21, 37, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 19, 21, 21, 21, 50, 15, 8, 13, 13, 13, 13, 28], [30, 26, 25, 17, 18, 29, 19, 19, 21, 19, 19, 19, 19, 19, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 29, 21, 21], [19, 19, 19, 19, 21, 19, 21, 19, 21, 19, 19, 19, 19, 21, 19, 19, 21, 19, 21, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 21, 19, 21, 19, 19, 21, 19, 19, 19, 19, 19, 19]];
var Decor_1 = [["b", 21, 1917, 414], ["f", 22, 1928, 414], ["f", 11, 200, 100], ["f", 9, 20, 538], ["f", 7, 389, 335], ["b", 25, 432, 306], ["f", 12, 553, 432], ["f", 12, 495, 432], ["f", 9, 615, 195], ["f", 8, 580, 195], ["f", 6, 653, 195], ["b", 24, 675, 168], ["b", 25, 816, 209], ["f", 10, 1210, 345], ["f", 9, 1600, 440], ["b", 25, 1775, 452]];
var GemsArray_1 = [[4, 0, 0, 0, 0], [580, 345, 3, 3, 0], [4, 4, 4, 0, 0], [1, 1, 1, 0, 0], [4, 4, 4, 0, 0], [610, 120, 3, 2, 0], [5, 5, 5, 0, 0], [3, 3, 3, 0, 0], [920, 260, 3, 2, 0], [1, 1, 1, 0, 0], [4, 4, 4, 0, 0], [1645, 360, 3, 3, 0], [4, 1, 4, 0, 0], [4, 3, 4, 0, 0], [4, 1, 4, 0, 0]];
var Objects_1 = [["m", 1, 1300, 314, 1, 0, 0], ["t", 1, 1400, 314, 0, 0, 1], ["e", 1, 1920, 440, 0, 1, 1], ["l", 1, 440, 325, 0, 0, 1], ["l", 2, 830, 225, 0, 0, 1], ["l", 3, 1780, 450, 0, 0, 1], ["l", 4, 1410, 330, 0, 0, 1], ["l", 5, 850, 225, 0, 0, 1], ["l", 6, 1160, 285, 0, 0, 1]];
var ObjectParams_1 = [{}, {hint:1, char:2, step:3, wplength:2, wp:[[1300, 314], [1450, 314]]}];
var GAME_LIVES = 1;
var GAME_LEVELS = 3;
var GAME_SCOREFORGEM = 10;
var GAME_SCOREFORENEMY = 100;
var GAME_ENEMYDAMAGE = 25;
var BW = 48;
var BH = 48;
var GW = 24;
var GH = 24;
var GSX = 24;
var GSY = 24;
var GOINC = 4;
var MAXBX = 100;
var MAXBY = 60;
var MAXGX = 10;
var MAXGY = 200;
var MAXGEMS = 400;
var FULLLIFE = 55;
var LevelScore;
var TotalScore;
var CurrentLevel;
var Life;
var Lives = GAME_LIVES;
var MaxLevel = GAME_LEVELS;
var Levels = GAME_LEVELS;
var TurtlesTotal;
var GemsTotal;
var EnemiesTotal;
var Turtles;
var Gems;
var Enemies;
var ToDo;
var LevelToPlay;
var BX;
var BY;
var Position = [0, 0];
var BlocksArray = new Array(MAXBY);
var GemsArray = new Array(MAXGY);
var i = 0;
while (i < MAXBY) {
BlocksArray[i] = new Array(MAXBX);
i++;
}
var i = 0;
while (i < MAXGY) {
GemsArray[i] = new Array(MAXGX);
i++;
}
var Objects = new Array();
var ObjectParams = new Object();
var Decor = new Object();
var global_sound = new Sound();
var button_click_Snd = new Sound();
button_click_Snd.attachSound("Button.mp3");
var cage_derbis_Snd = new Sound();
cage_derbis_Snd.attachSound("Cage_Debris.mp3");
var enemy_kicked_Snd = new Sound();
enemy_kicked_Snd.attachSound("Enemy_Kicked.mp3");
var game_over_Snd = new Sound();
game_over_Snd.attachSound("Game_Over.mp3");
var gems_collect_Snd = new Sound();
gems_collect_Snd.attachSound("Gems_Collect.mp3");
var howtoplay_show_Snd = new Sound();
howtoplay_show_Snd.attachSound("HowToPlay_Show.mp3");
var level_complete_Snd = new Sound();
level_complete_Snd.attachSound("Level_Complete.mp3");
var player_boring_Snd = new Sound();
player_boring_Snd.attachSound("Player_Boring.mp3");
var player_show_Snd = new Sound();
player_show_Snd.attachSound("Player_Show.mp3");
var turtle_collect_Snd = new Sound();
turtle_collect_Snd.attachSound("Turtle_collect.mp3");
var enemy_hit_Snd = new Sound();
enemy_hit_Snd.attachSound("Enemy_Hit.mp3");
var enemy_nohit_Snd = new Sound();
enemy_nohit_Snd.attachSound("Enemy_NoHit.mp3");
var endportal_activated_Snd = new Sound();
endportal_activated_Snd.attachSound("EndPortal_Activated.mp3");
var player_hit_Snd = new Sound();
player_hit_Snd.attachSound("Player_Hit.mp3");
function newArray(obj, aname) {
if (arguments[2] == null) {
trace("Can`t create an array not enough arguments");
}
obj[aname] = new Array(arguments[2]);
var _local3;
var _local2;
if (arguments[3] != null) {
_local3 = 0;
while (_local3 < arguments[2]) {
obj[aname][_local3] = new Array(arguments[3]);
if (arguments[4] != null) {
_local2 = 0;
while (_local2 < arguments[3]) {
obj[aname][_local3][_local2] = new Array(arguments[4]);
_local2++;
}
}
_local3++;
}
}
}
function copyObj(s, d) {
for (var _local4 in s) {
var _local2 = new Object();
_local2 = s[_local4];
if (_local2 instanceof Object) {
d[_local4] = new Object();
copyObj(_local2, d[_local4]);
} else {
d[_local4] = s[_local4];
}
if (s.length != null) {
d.length = s.length;
}
}
}
function checkDomain() {
function denyTheGame() {
gotoAndStop ("Forbidden");
}
function allowTheGame() {
play();
}
stop();
var _local1 = new LocalConnection();
trace(_local1.domain());
if (((_local1.domain() == "localhost") || (_local1.domain() == "www.alawar.com")) || (_local1.domain() == "public.alawar.com")) {
allowTheGame();
} else {
denyTheGame();
}
}
GotoDownload = function () {
if (_root.link != undefined) {
getURL (link, "_blank");
} else {
getURL ("http://www.alawar.com/game/turtix/?referer1=flash&referer2=Turtix", "_blank");
}
if (_root.dload_f != undefined) {
cstr = ("JavaScript:" + dload_f) + "()";
getURL (cstr);
}
};
Frame 2
function ef_go() {
progress.setprogress((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (this.getBytesLoaded() == this.getBytesTotal()) {
this.onEnterFrame = undefined;
_root.gotoAndPlay("MainMenu");
}
}
if (_global.bypass == "true") {
if (_global.link != undefined) {
_root.link = _global.link;
}
if (_global.dload_f != undefined) {
_root.dload_f = _global.dload_f;
}
if (_global.close_f != undefined) {
_root.close_f = _global.close_f;
}
if (_global.alawar_f != undefined) {
_root.alawar_f = _global.alawar_f;
}
} else {
stop();
progress.init();
progress.start();
}
Stage.showMenu = false;
Frame 17
if (snd_firstime == undefined) {
snd_firstime = false;
var sosnd = SharedObject.getLocal("sound");
var snd = new Object();
snd.flag = "snd";
snd.volume = 50;
snd.mute = false;
if (sosnd.data.content.flag == "snd") {
snd.volume = sosnd.data.content.volume;
snd.mute = sosnd.data.content.mute;
}
}
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Frame 18
stop();
mainmenu.storymodebtn.onRelease = function () {
_root.button_click_Snd.start();
_root.ToDo = "NewGame";
gotoAndPlay ("Game");
};
mainmenu.quitbtn.onPress = function () {
_root.button_click_Snd.start();
fscommand ("quit");
if (_root.close_f != null) {
cstr = ("JavaScript:" + _root.close_f) + "()";
getURL (cstr);
} else {
getURL ("javascript:self.close();");
}
};
Frame 29
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Frame 31
stop();
var window = (new flash.geom.Rectangle(0, 0, 512, 384));
gamedy.scrollRect = window;
Frame 50
gotoAndStop ("Forbidden");
Symbol 84 MovieClip [gem_effect_5] Frame 1
function efstart() {
TimeCnt = 15;
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
}
function efstop() {
this.onEnterFrame = null;
}
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
}
TimeCnt--;
if (TimeCnt <= 0) {
efstop();
}
}
function newStar() {
this.attachMovie("gem_star_5", "star_" + StarID, this.getNextHighestDepth());
this["star_" + StarID]._xscale = 20 + (40 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = Math.floor(Math.random() * 32);
this["star_" + StarID]._y = Math.floor(Math.random() * 32);
this["star_" + StarID].dx = MAXDX - ((2 * MAXDX) * Math.random());
this["star_" + StarID].dy = MAXDY - ((2 * MAXDY) * Math.random());
this["star_" + StarID].da = MAXDA - ((2 * MAXDA) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (100 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation + this.da;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
var MAXTIME = 60;
var MINTIME = 40;
var MAXDX = 2;
var MAXDY = 2;
var MAXDA = 3;
var MAXTINT = 15;
var MINTINT = 10;
var Cnt;
var StarID;
var RndCnt;
var as;
var TimeCnt;
efstart();
Symbol 85 MovieClip [gem_effect_4] Frame 1
function efstart() {
TimeCnt = 15;
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
}
function efstop() {
this.onEnterFrame = null;
}
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
}
TimeCnt--;
if (TimeCnt <= 0) {
efstop();
}
}
function newStar() {
this.attachMovie("gem_star_4", "star_" + StarID, this.getNextHighestDepth());
this["star_" + StarID]._xscale = 20 + (40 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = Math.floor(Math.random() * 32);
this["star_" + StarID]._y = Math.floor(Math.random() * 32);
this["star_" + StarID].dx = MAXDX - ((2 * MAXDX) * Math.random());
this["star_" + StarID].dy = MAXDY - ((2 * MAXDY) * Math.random());
this["star_" + StarID].da = MAXDA - ((2 * MAXDA) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (100 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation + this.da;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
var MAXTIME = 60;
var MINTIME = 40;
var MAXDX = 2;
var MAXDY = 2;
var MAXDA = 3;
var MAXTINT = 15;
var MINTINT = 10;
var Cnt;
var StarID;
var RndCnt;
var as;
var TimeCnt;
efstart();
Symbol 86 MovieClip [gem_effect_3] Frame 1
function efstart() {
TimeCnt = 15;
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
}
function efstop() {
this.onEnterFrame = null;
}
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
}
TimeCnt--;
if (TimeCnt <= 0) {
efstop();
}
}
function newStar() {
this.attachMovie("gem_star_3", "star_" + StarID, this.getNextHighestDepth());
this["star_" + StarID]._xscale = 20 + (40 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = Math.floor(Math.random() * 32);
this["star_" + StarID]._y = Math.floor(Math.random() * 32);
this["star_" + StarID].dx = MAXDX - ((2 * MAXDX) * Math.random());
this["star_" + StarID].dy = MAXDY - ((2 * MAXDY) * Math.random());
this["star_" + StarID].da = MAXDA - ((2 * MAXDA) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (100 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation + this.da;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
var MAXTIME = 60;
var MINTIME = 40;
var MAXDX = 2;
var MAXDY = 2;
var MAXDA = 3;
var MAXTINT = 15;
var MINTINT = 10;
var Cnt;
var StarID;
var RndCnt;
var as;
var TimeCnt;
efstart();
Symbol 87 MovieClip [gem_effect_2] Frame 1
function efstart() {
TimeCnt = 15;
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
}
function efstop() {
this.onEnterFrame = null;
}
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
}
TimeCnt--;
if (TimeCnt <= 0) {
efstop();
}
}
function newStar() {
this.attachMovie("gem_star_2", "star_" + StarID, this.getNextHighestDepth());
this["star_" + StarID]._xscale = 20 + (40 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = Math.floor(Math.random() * 32);
this["star_" + StarID]._y = Math.floor(Math.random() * 32);
this["star_" + StarID].dx = MAXDX - ((2 * MAXDX) * Math.random());
this["star_" + StarID].dy = MAXDY - ((2 * MAXDY) * Math.random());
this["star_" + StarID].da = MAXDA - ((2 * MAXDA) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (100 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation + this.da;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
var MAXTIME = 60;
var MINTIME = 40;
var MAXDX = 2;
var MAXDY = 2;
var MAXDA = 3;
var MAXTINT = 15;
var MINTINT = 10;
var Cnt;
var StarID;
var RndCnt;
var as;
var TimeCnt;
efstart();
Symbol 88 MovieClip [gem_effect_1] Frame 1
function efstart() {
TimeCnt = 15;
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
}
function efstop() {
this.onEnterFrame = null;
}
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
}
TimeCnt--;
if (TimeCnt <= 0) {
efstop();
}
}
function newStar() {
this.attachMovie("gem_star_1", "star_" + StarID, this.getNextHighestDepth());
this["star_" + StarID]._xscale = 20 + (40 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = Math.floor(Math.random() * 32);
this["star_" + StarID]._y = Math.floor(Math.random() * 32);
this["star_" + StarID].dx = MAXDX - ((2 * MAXDX) * Math.random());
this["star_" + StarID].dy = MAXDY - ((2 * MAXDY) * Math.random());
this["star_" + StarID].da = MAXDA - ((2 * MAXDA) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (100 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation + this.da;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
var MAXTIME = 60;
var MINTIME = 40;
var MAXDX = 2;
var MAXDY = 2;
var MAXDA = 3;
var MAXTINT = 15;
var MINTINT = 10;
var Cnt;
var StarID;
var RndCnt;
var as;
var TimeCnt;
efstart();
Symbol 89 MovieClip [born_effect_] Frame 1
function efstart() {
TimeCnt = 25;
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
}
function efstop() {
this.onEnterFrame = null;
}
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
}
TimeCnt--;
if (TimeCnt <= 0) {
efstop();
}
}
function newStar() {
this.attachMovie("turtix_star_", "star_" + StarID, this.getNextHighestDepth());
this["star_" + StarID]._xscale = 100 + (100 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = Math.floor(Math.random() * 50);
this["star_" + StarID]._y = Math.floor(Math.random() * 50);
this["star_" + StarID].dx = MAXDX - ((2 * MAXDX) * Math.random());
this["star_" + StarID].dy = MAXDY - ((2 * MAXDY) * Math.random());
this["star_" + StarID].da = MAXDA - ((2 * MAXDA) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (100 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
this.attachMovie("turtix_ring_", "ring_" + StarID, this.getNextHighestDepth());
this["ring_" + StarID]._xscale = 50 + (10 * Math.random());
this["ring_" + StarID]._yscale = this["ring_" + StarID]._xscale;
this["ring_" + StarID]._x = 20 + Math.floor(Math.random() * 10);
this["ring_" + StarID]._y = 20 + Math.floor(Math.random() * 10);
this["ring_" + StarID].onEnterFrame = ringMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation + this.da;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
function ringMove() {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
this._xscale = this._xscale + 10;
this._yscale = this._xscale;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
}
var MAXTIME = 60;
var MINTIME = 40;
var MAXDX = 1;
var MAXDY = 1;
var MAXDA = 1;
var MAXTINT = 25;
var MINTINT = 10;
var Cnt;
var StarID;
var RndCnt;
var as;
var TimeCnt;
efstart();
Symbol 103 MovieClip [exit_effect_] Frame 1
function efstart() {
if (_root.CurrentLevel == 1) {
hint._visible = true;
} else {
hint._visible = false;
}
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
}
function efstop() {
this.onEnterFrame = null;
}
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
}
}
function newStar() {
if (Math.random() > 0.4) {
this.attachMovie("turtix_star_", "star_" + StarID, this.getNextHighestDepth());
} else {
this.attachMovie("exit_star_", "star_" + StarID, this.getNextHighestDepth());
}
this["star_" + StarID]._xscale = 20 + (100 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = 20 + Math.floor(Math.random() * 32);
this["star_" + StarID]._y = Math.floor(Math.random() * 32);
this["star_" + StarID].dx = MAXDX - ((2 * MAXDX) * Math.random());
this["star_" + StarID].dy = MAXDY - ((2 * MAXDY) * Math.random());
this["star_" + StarID].da = MAXDA - ((2 * MAXDA) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (100 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation + this.da;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
var MAXTIME = 20;
var MINTIME = 5;
var MAXDX = 1;
var MAXDY = 1;
var MAXDA = 2;
var MAXTINT = 35;
var MINTINT = 20;
var Cnt;
var StarID;
var RndCnt;
var as;
hint._visible = false;
Symbol 104 MovieClip [turtlefly_effect_] Frame 1
function efstop() {
this.onEnterFrame = null;
}
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (TimeCnt < 50) {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
}
}
TimeCnt--;
if (TimeCnt <= 0) {
efstop();
}
}
function newStar() {
this.attachMovie("gem_star_3", "star_" + StarID, this.getNextHighestDepth());
this["star_" + StarID]._xscale = 20 + (50 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = Math.floor(Math.random() * 32);
this["star_" + StarID]._y = Math.floor(Math.random() * 32) - 10;
this["star_" + StarID].dx = 0;
this["star_" + StarID].dy = MAXDY * Math.random();
this["star_" + StarID].da = MAXDA - ((2 * MAXDA) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (50 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._y = this._y - this.dy;
this._rotation = this._rotation + this.da;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
var MAXTIME = 60;
var MINTIME = 40;
var MAXDY = 3;
var MAXDA = 2;
var MAXTINT = 25;
var MINTINT = 15;
var Cnt;
var StarID;
var RndCnt;
var as;
var TimeCnt;
TimeCnt = 100;
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
Symbol 422 MovieClip Frame 5
if ((Math.random() * 5) > 1) {
gotoAndPlay ("Skip");
}
Symbol 423 MovieClip Frame 1
function efstop() {
this.onEnterFrame = null;
}
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
}
}
function newStar() {
this.attachMovie("turtle_star_", "star_" + StarID, this.getNextHighestDepth());
this["star_" + StarID]._xscale = 20 + (50 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = Math.floor(Math.random() * 32);
this["star_" + StarID]._y = Math.floor(Math.random() * 32);
this["star_" + StarID].dx = 0;
this["star_" + StarID].dy = MAXDY * Math.random();
this["star_" + StarID].da = MAXDA - ((2 * MAXDA) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (80 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._y = this._y - this.dy;
this._rotation = this._rotation + this.da;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
var MAXTIME = 60;
var MINTIME = 40;
var MAXDY = 1;
var MAXDA = 1;
var MAXTINT = 25;
var MINTINT = 10;
var Cnt;
var StarID;
var RndCnt;
var as;
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
Symbol 458 MovieClip Frame 33
gotoAndPlay ("Repeat");
Symbol 459 MovieClip [_turtle_] Frame 1
function free() {
gotoAndStop ("Free");
_root.Objects[Index][5] = 1;
Cnt = 50;
this.onEnterFrame = hideturtle;
}
function unlock() {
if (_root.CurrentLevel == 1) {
_root.howtoplay_show_Snd.start();
hint._visible = true;
}
_root.Objects[Index][6] = 0;
effect.efstop();
}
function hideturtle() {
if (Cnt <= 0) {
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
} else {
_root.turtle_collect_Snd.start();
_parent.removeObject(Index);
}
} else {
Cnt--;
}
}
var Cnt;
hint._visible = false;
Symbol 459 MovieClip [_turtle_] Frame 2
stop();
Symbol 459 MovieClip [_turtle_] Frame 8
stop();
Symbol 462 MovieClip Frame 1
this._visible = false;
Symbol 462 MovieClip Frame 2
stop();
this.removeMovieClip();
Symbol 463 MovieClip Frame 1
function startMove() {
freeze = false;
lookup = false;
Direction = 0;
wp = new Object();
_root.copyObj(_parent.Params.wp, wp);
wpLength = _parent.Params.wplength;
Char = _parent.Params.char;
Step = _parent.Params.step;
wpCnt = 0;
this.onEnterFrame = mainLoop;
}
function mainLoop() {
if (freeze || (lookup)) {
return(undefined);
}
wpX = wp[wpCnt][0];
wpY = wp[wpCnt][1];
var _local3 = Math.abs(_parent._x - wpX);
if (_local3 >= Step) {
var _local4 = (Math.abs(_parent._y - wpY) / _local3) * Step;
if (_parent._x < wpX) {
_parent._x = _parent._x + Step;
_parent.gotoAndStop("MoveRight");
dirRight = true;
} else {
_parent.gotoAndStop("MoveLeft");
dirRight = false;
_parent._x = _parent._x - Step;
}
if (_parent._y < wpY) {
_parent._y = _parent._y + _local4;
} else {
_parent._y = _parent._y - _local4;
}
} else {
_parent._x = wpX;
_parent._y = wpY;
wpCnt++;
if (wpCnt >= wpLength) {
wpCnt = 0;
}
}
_root.Objects[_parent.Index][2] = _parent._x;
_root.Objects[_parent.Index][3] = _parent._y;
}
function hit() {
if (_parent.hit != undefined) {
_parent.hit();
}
freeze = true;
_root.Objects[_parent.Index][6] = 1;
if (dirRight) {
_parent.gotoAndStop("HitRight");
} else {
_parent.gotoAndStop("HitLeft");
}
tmrid = setInterval(alive, 3000);
}
function alive() {
clearInterval(tmrid);
if (_parent.alive != undefined) {
_parent.alive();
}
freeze = false;
_root.Objects[_parent.Index][6] = 0;
}
function kick() {
clearInterval(tmrid);
freeze = true;
_root.Objects[_parent.Index][5] = 1;
_parent.gotoAndStop("Dead" + _root.gamedy.map.hero.Direction);
}
function death() {
_parent._parent.removeObject(_parent.Index);
}
var wpCnt;
var wpX;
var wpY;
var Step;
var wp;
var wpLength;
var Char;
var tmrid;
var dirRight;
var freeze;
var lookup;
startMove();
Symbol 510 MovieClip Frame 20
stop();
_parent.logic.death();
Symbol 511 MovieClip [_enemy_3] Frame 2
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint1._visible = true;
} else {
hint1._visible = false;
}
stop();
Symbol 511 MovieClip [_enemy_3] Frame 11
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint1._visible = true;
} else {
hint1._visible = false;
}
stop();
Symbol 511 MovieClip [_enemy_3] Frame 21
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint2._visible = true;
} else {
hint2._visible = false;
}
Symbol 511 MovieClip [_enemy_3] Frame 31
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint2._visible = true;
} else {
hint2._visible = false;
}
Symbol 551 MovieClip Frame 20
stop();
_parent.logic.death();
Symbol 552 MovieClip [_enemy_2] Frame 2
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint1._visible = true;
} else {
hint1._visible = false;
}
stop();
Symbol 552 MovieClip [_enemy_2] Frame 11
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint1._visible = true;
} else {
hint1._visible = false;
}
stop();
Symbol 552 MovieClip [_enemy_2] Frame 21
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint2._visible = true;
} else {
hint2._visible = false;
}
Symbol 552 MovieClip [_enemy_2] Frame 31
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint2._visible = true;
} else {
hint2._visible = false;
}
Symbol 592 MovieClip Frame 20
stop();
_parent.logic.death();
Symbol 605 MovieClip [_enemy_1] Frame 1
function hit() {
clearInterval(id);
}
function alive() {
starttime();
}
function starttime() {
umbrella = false;
newinterval(this);
}
function newinterval() {
var _local1;
if (id != undefined) {
clearInterval(id);
}
umbrella = !umbrella;
if (umbrella) {
logic.lookup = false;
if (logic.dirRight) {
gotoAndStop ("MoveRight");
} else {
gotoAndStop ("MoveLeft");
}
_local1 = 3500 + (Math.random() * 2000);
} else {
logic.lookup = true;
if (logic.dirRight) {
gotoAndStop ("StandRight");
} else {
gotoAndStop ("StandLeft");
}
_local1 = 2500 + (Math.random() * 500);
}
id = setInterval(newinterval, _local1);
}
var id;
var umbrella;
starttime();
Symbol 605 MovieClip [_enemy_1] Frame 2
stop();
Symbol 605 MovieClip [_enemy_1] Frame 11
stop();
Symbol 605 MovieClip [_enemy_1] Frame 21
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint1._visible = true;
} else {
hint1._visible = false;
}
Symbol 605 MovieClip [_enemy_1] Frame 31
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint1._visible = true;
} else {
hint1._visible = false;
}
Symbol 605 MovieClip [_enemy_1] Frame 61
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint2._visible = true;
} else {
hint2._visible = false;
}
Symbol 605 MovieClip [_enemy_1] Frame 71
if (_root.ObjectParams[_root.Objects[this.Index][4]].hint == 1) {
hint2._visible = true;
} else {
hint2._visible = false;
}
Symbol 608 MovieClip [100score_] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
this._alpha = this._alpha - 4;
if (this._alpha < 5) {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
};
Symbol 611 MovieClip [10score_] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
this._alpha = this._alpha - 5;
if (this._alpha < 5) {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
};
Symbol 691 MovieClip Frame 1
function init() {
this._alpha = 0;
up1._x = INITXUP;
down1._x = INITXDOWN - (1 * down1._width);
if (up2 != undefined) {
removeMovieClip(up2);
}
if (down2 != undefined) {
removeMovieClip(down2);
}
if (up3 != undefined) {
removeMovieClip(up3);
}
if (down3 != undefined) {
removeMovieClip(down3);
}
}
function start() {
duplicateMovieClip (up1, "up2", this.getNextHighestDepth());
duplicateMovieClip (up1, "up3", this.getNextHighestDepth());
duplicateMovieClip (down1, "down2", this.getNextHighestDepth());
duplicateMovieClip (down1, "down3", this.getNextHighestDepth());
up2._x = up1._width;
up3._x = up1._width * 2;
down2._x = 0;
down3._x = down1._width;
this.onEnterFrame = ef_start;
}
function ef_start() {
up1._x = up1._x - SHIFTSTEP;
up2._x = up2._x - SHIFTSTEP;
up3._x = up3._x - SHIFTSTEP;
down1._x = down1._x + SHIFTSTEP;
down2._x = down2._x + SHIFTSTEP;
down3._x = down3._x + SHIFTSTEP;
i = 1;
while (i <= 3) {
if (this["up" + i]._x < (-1 * up1._width)) {
this["up" + i]._x = up1._width * 2;
}
if (this["down" + i]._x > (2 * down1._width)) {
this["down" + i]._x = -1 * down1._width;
}
i++;
}
if (this._alpha <= (ALPHA - ALPHASTEP)) {
this._alpha = this._alpha + ALPHASTEP;
} else {
this._alpha = ALPHA;
}
}
var INITXUP = 0;
var INITXDOWN = 0;
var SHIFTSTEP = 1;
var ALPHASTEP = 0.7;
var ALPHA;
Symbol 693 MovieClip Frame 1
function init() {
text1.init();
text1.ALPHA = 75;
text2.init();
text2.ALPHA = 15;
}
function start() {
text1.start();
text2.start();
}
Symbol 697 MovieClip Frame 1
FirstTime = true;
Symbol 697 MovieClip Frame 28
if (FirstTime) {
stop();
FirstTime = false;
}
Symbol 697 MovieClip Frame 55
gotoAndPlay (2);
Symbol 717 MovieClip Frame 1
function start() {
Cnt = 0;
this.onEnterFrame = ef_start;
}
function ef_start() {
var _local3;
var _local4;
Cnt++;
if (Cnt < LFRAMES) {
i = 1;
while (i <= 10) {
_local4 = (INITAMP * Math.sin(((((Math.PI*2) / LFRAMES) / 4) * Cnt) + (Math.PI/4))) * (1 - (Cnt / LFRAMES));
_local3 = 100 - (_local4 * Math.sin((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) + (i * LV))));
this["L" + i]._xscale = _local3;
this["L" + i]._yscale = _local3;
_local3 = this["L" + i]._xscale - 100;
if (_local3 > 0) {
if (_local3 > 19) {
this["L" + i]._alpha = (100 - (_local3 * 2.1)) - 20;
} else {
this["L" + i]._alpha = 100 - (_local3 * 2.1);
}
}
i++;
}
} else {
i = 1;
while (i <= 10) {
this["L" + i]._xscale = 100;
this["L" + i]._yscale = 100;
this["L" + i]._alpha = 100;
i++;
}
this.onEnterFrame = undefined;
_parent.dummy.onMouseMove = _parent.go;
}
}
function wave(cx) {
OldCX = CX;
CX = cx;
Cnt = 0;
startf = false;
this.onEnterFrame = ef_wave;
}
function ef_wave() {
var _local3;
var _local5;
var _local4;
Cnt++;
if ((Cnt > 1) && (!startf)) {
return(undefined);
}
if (Cnt < LFRAMES) {
i = 1;
while (i <= 10) {
_local4 = ((((Math.PI*2) * CX) / this._width) * 0.7) + 0.1;
_local5 = (INITAMP * Math.sin(((((Math.PI*2) / LFRAMES) / 4) * Cnt) + (Math.PI/4))) * (1 - (Cnt / LFRAMES));
if ((CX - OldCX) >= 0) {
_local3 = 100 - (_local5 * Math.sin(((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) + (i * LV))) + _local4));
} else {
_local3 = 100 - (_local5 * Math.sin(((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) - (i * LV))) + _local4));
}
if (_local3 < 100) {
_local3 = 100 - ((100 - _local3) * 0.8);
}
this["L" + i]._xscale = _local3;
this["L" + i]._yscale = _local3;
_local3 = this["L" + i]._xscale - 100;
if (_local3 > 0) {
if (_local3 > 18) {
this["L" + i]._alpha = (100 - (_local3 * 2.1)) - 20;
} else {
this["L" + i]._alpha = 100 - (_local3 * 2.1);
}
}
i++;
}
} else {
i = 1;
while (i <= 10) {
this["L" + i]._xscale = 100;
this["L" + i]._yscale = 100;
this["L" + i]._alpha = 100;
i++;
}
this.onEnterFrame = undefined;
_parent.dummy.onMouseMove = _parent.go;
}
}
var LFRAMES = 100;
var LPER = 3;
var INITAMP = 27;
var INITPH = 5;
var LV = 2;
var Cnt;
var CX;
var OldCX = 0;
var startf;
Symbol 723 MovieClip Frame 1
function go() {
if ((((dummy._xmouse < dummy._width) && (dummy._xmouse > 0)) && (dummy._ymouse < dummy._height)) && (dummy._ymouse > 0)) {
loading.wave(dummy._xmouse);
}
}
dummy.useHandCursor = false;
dummy.onRollOut = function () {
loading.startf = true;
};
Symbol 728 MovieClip Frame 1
function start() {
duplicateMovieClip (prnload, "prnload1", this.getNextHighestDepth());
duplicateMovieClip (prnload, "prnload2", this.getNextHighestDepth());
prnload._alpha = PRALPHAINIT;
prnload._xscale = PRMAGNINIT;
prnload._yscale = PRMAGNINIT;
prnload1._alpha = PRALPHAINIT1;
prnload1._xscale = PRMAGNINIT1;
prnload1._yscale = PRMAGNINIT1;
prnload2._alpha = PRALPHAINIT2;
prnload2._xscale = PRMAGNINIT2;
prnload2._yscale = PRMAGNINIT2;
this.onEnterFrame = ef1_start;
}
function ef1_start() {
if (prnload._xscale > 100) {
tmp = PRMAGNSTEP;
if ((prnload._xscale - tmp) < 0) {
tmp = prnload._xscale - 100;
}
prnload._xscale = prnload._xscale - tmp;
prnload._yscale = prnload._yscale - tmp;
prnload._alpha = prnload._alpha + (PRALPHASTEP * PRALPHASTEP);
} else {
prnload._xscale = prnload._xscale - 0.8;
prnload._yscale = prnload._yscale - 0.8;
}
if (prnload._xscale < PRSTART1) {
if (prnload1._xscale > 100) {
tmp = (PRMAGNSTEP1 * PRMAGNSTEP1) / 23;
if ((prnload1._xscale - tmp) < 100) {
tmp = prnload1._xscale - 100;
}
prnload1._xscale = prnload1._xscale - tmp;
prnload1._yscale = prnload1._yscale - tmp;
if (prnload._xscale > 100) {
prnload1._alpha = prnload1._alpha + (PRALPHASTEP1 * PRALPHASTEP1);
} else {
prnload1._alpha = prnload1._alpha - (PRALPHASTEP1 * PRALPHASTEP1);
}
} else {
removeMovieClip(prnload1);
}
}
if (prnload._xscale < PRSTART2) {
if (prnload2._xscale > 100) {
tmp = (PRMAGNSTEP2 * PRMAGNSTEP2) / 15.4;
if ((prnload2._xscale - tmp) < 100) {
tmp = prnload2._xscale - 100;
}
prnload2._xscale = prnload2._xscale - tmp;
prnload2._yscale = prnload2._yscale - tmp;
if (prnload1._xscale != 100) {
prnload2._alpha = prnload2._alpha + (PRALPHASTEP2 * PRALPHASTEP2);
} else {
prnload2._alpha = prnload2._alpha - (PRALPHASTEP2 * PRALPHASTEP2);
}
} else {
removeMovieClip(prnload2);
}
}
if (prnload2 == undefined) {
Cnt = 0;
prnload._alpha = 100;
shadow.play();
prnload.loading.start();
prnload.progress._alpha = 35;
this.onEnterFrame = ef2_start;
_root.onEnterFrame = _root.ef_go;
}
}
function ef2_start() {
Cnt++;
if (Cnt == TEXTSTART) {
text.start();
}
if (Cnt < WVFRAMES) {
tmp = 100 - ((WVINITAMP * (1 - (Cnt / WVFRAMES))) * Math.sin((((Math.PI * Cnt) / WVFRAMES) * WVPERIODS) + (Math.PI/4)));
prnload._xscale = tmp;
prnload._yscale = tmp;
maskmc._xscale = tmp;
maskmc._yscale = tmp;
filled._xscale = tmp;
filled._yscale = tmp;
} else {
this.onEnterFrame = undefined;
}
}
function init() {
text.init();
Cnt = 0;
this._alpha = 100;
htmp = maskmc.target._height;
ytmp = maskmc.target._y;
maskmc.target._height = 0;
maskmc.target._y = ytmp + htmp;
}
function setprogress(pr) {
maskmc.target._height = (pr * htmp) / 100;
maskmc.target._y = ytmp + (htmp * (1 - (pr / 100)));
}
var PRMAGNINIT = 1000;
var PRALPHAINIT = 0;
var PRMAGNSTEP = 25;
var PRALPHASTEP = 1.5;
var PRMAGNINIT1 = 1000;
var PRALPHAINIT1 = 0;
var PRMAGNSTEP1 = 25;
var PRALPHASTEP1 = 1.5;
var PRSTART1 = 700;
var PRMAGNINIT2 = 1000;
var PRALPHAINIT2 = 0;
var PRMAGNSTEP2 = 25;
var PRALPHASTEP2 = 1.6;
var PRSTART2 = 300;
var WVFRAMES = 85;
var WVINITAMP = 17;
var WVPERIODS = 3.5;
var TEXTSTART = 30;
var htmp;
var ytmp;
var Cnt;
Symbol 761 Button
on (press) {
_root.button_click_Snd.start();
_root.GotoDownload();
}
Symbol 768 MovieClip Frame 1
function update() {
if (_parent._parent.Mute) {
_root.global_sound.setVolume(0);
gotoAndStop (2);
} else {
_root.global_sound.setVolume(_parent._parent.Volume);
gotoAndStop (1);
}
}
update();
stop();
Symbol 768 MovieClip Frame 2
stop();
Symbol 776 MovieClip Frame 1
this.useHandCursor = false;
this.onPress = function () {
};
Symbol 787 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
_parent.hint.lshow();
_parent.hint.speaker.update();
};
this.onRollOut = function () {
gotoAndStop (1);
_parent.hint.lhide();
};
this.onMouseUp = function () {
if ((((this._xmouse > this._width) || (this._ymouse > this._height)) || (this._xmouse < 0)) || (this._ymouse < 0)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
stop();
Symbol 787 MovieClip Frame 2
stop();
Symbol 787 MovieClip Frame 3
stop();
Symbol 791 MovieClip Frame 1
this.useHandCursor = false;
this.onRollOver = function () {
gotoAndStop (2);
_parent.regul.gotoAndStop(2);
};
this.onRollOut = function () {
gotoAndStop (1);
_parent.regul.gotoAndStop(1);
};
stop();
Symbol 791 MovieClip Frame 2
stop();
Symbol 791 MovieClip Frame 3
stop();
Symbol 797 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
_parent.scal.gotoAndStop(2);
};
this.onRollOut = function () {
gotoAndStop (1);
_parent.scal.gotoAndStop(1);
};
stop();
Symbol 797 MovieClip Frame 2
stop();
Symbol 797 MovieClip Frame 3
stop();
Symbol 802 MovieClip Frame 1
function update() {
if (_parent._parent._parent._parent.Mute) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
stop();
Symbol 802 MovieClip Frame 2
stop();
Symbol 803 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((this._alpha + ALPHASTEP) < ALPHAMAX) {
this._alpha = this._alpha + ALPHASTEP;
} else {
this._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
this._xscale = 100 + ((SCALEMAX * this._alpha) / (ALPHAMAX - ALPHAMIN));
this._yscale = _xscale;
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((this._alpha - ALPHASTEP) > ALPHAMIN) {
this._alpha = this._alpha - ALPHASTEP;
} else {
this._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
this._xscale = 100 + ((SCALEMAX * this._alpha) / (ALPHAMAX - ALPHAMIN));
this._yscale = _xscale;
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 35;
var SCALEMAX = 25;
this._alpha = ALPHAMIN;
this._xscale = 100;
this._yscale = 100;
Symbol 807 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((this._alpha + ALPHASTEP) < ALPHAMAX) {
this._alpha = this._alpha + ALPHASTEP;
} else {
this._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
this._xscale = 100 + ((SCALEMAX * this._alpha) / (ALPHAMAX - ALPHAMIN));
this._yscale = _xscale;
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((this._alpha - ALPHASTEP) > ALPHAMIN) {
this._alpha = this._alpha - ALPHASTEP;
} else {
this._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
this._xscale = 100 + ((SCALEMAX * this._alpha) / (ALPHAMAX - ALPHAMIN));
this._yscale = _xscale;
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 35;
var SCALEMAX = 25;
this._alpha = ALPHAMIN;
this._xscale = 100;
this._yscale = 100;
Symbol 808 MovieClip Frame 1
function setvol(vol) {
update((YMAX - ((vol / 100) * (YMAX - YMIN))) + (regul._height / 4));
}
function update(ry) {
regul._y = ry - (regul._height / 4);
if (regul._y < YMIN) {
regul._y = YMIN;
}
if (regul._y > YMAX) {
regul._y = YMAX;
}
grade.arrow._y = ((regul._y - 8.2) * 1.018) - 4.4;
_parent._parent.Volume = Math.floor(((YMAX - regul._y) / (YMAX - YMIN)) * 100);
if (!_parent._parent.Mute) {
_root.global_sound.setVolume(_parent._parent.Volume);
}
}
function mouse_handler() {
update(_ymouse);
}
var YMIN = 3;
var YMAX = 76;
setvol(_parent._parent.Volume);
mute.onPress = function () {
_parent._parent.Mute = !_parent._parent.Mute;
_parent.speaker.update();
this.gotoAndStop(3);
hint.speaker.update();
};
scal.onPress = function () {
update(_ymouse);
};
regul.onPress = function () {
grade.lshow();
regul.gotoAndStop(3);
scal.gotoAndStop(3);
scal.onMouseMove = mouse_handler;
};
regul.onMouseUp = function () {
scal.onMouseMove = undefined;
if ((((scal._xmouse > (scal._width - 14)) || (scal._ymouse > (scal._height - 1))) || (scal._xmouse < 0)) || (scal._ymouse < 0)) {
regul.gotoAndStop(1);
scal.gotoAndStop(1);
} else {
regul.gotoAndStop(2);
scal.gotoAndStop(2);
}
grade.lhide();
_parent._parent.setsosnd();
};
Symbol 815 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._xscale + ALPHASTEP) < ALPHAMAX) {
light._xscale = light._xscale + ALPHASTEP;
light._yscale = light._yscale + ALPHASTEP;
} else {
light._xscale = ALPHAMAX;
light._yscale = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._xscale - ALPHASTEP) > ALPHAMIN) {
light._xscale = light._xscale - ALPHASTEP;
light._yscale = light._yscale - ALPHASTEP;
} else {
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 100;
var ALPHAMAX = 150;
var ALPHASTEP = 18;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 817 MovieClip Frame 1
Symbol 818 MovieClip Frame 1
function setsosnd() {
_parent.snd.volume = Volume;
_parent.snd.mute = Mute;
_parent.sosnd.data.content = _parent.snd;
}
var Volume;
var Mute;
Volume = _parent.snd.volume;
Mute = _parent.snd.mute;
stop();
openbtn.onPress = function () {
gotoAndPlay ("Show");
};
Symbol 818 MovieClip Frame 10
stop();
closebtn.onPress = function () {
play();
};
headbtn.onPress = function () {
play();
};
headbtn.onRollOver = function () {
closebtn.lshow();
};
headbtn.onRollOut = function () {
closebtn.lhide();
};
Symbol 818 MovieClip Frame 17
gotoAndStop ("Start");
Symbol 820 Button
on (press) {
if (Key.isDown(17)) {
gamedy.map.levelcompleted();
return(undefined);
}
_root.button_click_Snd.start();
_root.GotoDownload();
}
Symbol 825 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 2
stop();
Symbol 829 MovieClip Frame 1
var STEP = 0.5;
this.onEnterFrame = function () {
cl1._x = cl1._x - STEP;
cl2._x = cl2._x - STEP;
if (((cl1._x + this._x) < 0) && ((cl2._x + this._x) < 0)) {
cl1._x = cl1._x + 512;
cl2._x = cl2._x + 512;
}
if (((cl1._x + this._x) > 0) && ((cl2._x + this._x) > 0)) {
cl1._x = cl1._x - 512;
cl2._x = cl2._x - 512;
}
};
Symbol 834 MovieClip Frame 1
stop();
Symbol 834 MovieClip Frame 2
stop();
Symbol 844 MovieClip Frame 1
var keyListener = new Object();
keyListener.onKeyDown = function () {
Key.removeListener(keyListener);
_parent._parent.cover.show();
_parent.play();
};
Key.addListener(keyListener);
stop();
Symbol 844 MovieClip Frame 2
stop();
Symbol 844 MovieClip Frame 3
stop();
Symbol 846 MovieClip Frame 1
this._visible = false;
Symbol 846 MovieClip Frame 2
stop();
this.removeMovieClip();
Symbol 847 MovieClip Frame 1
function clear() {
var _local2 = this[each];
for (each in this) {
_local2 = this[each];
removeMovieClip(_local2);
}
}
function show(blockimg) {
var _local4;
var _local3;
_local4 = 0;
while (_local4 < _root.BY) {
_local3 = 0;
while (_local3 < _root.BX) {
if (blockimg[_local4][_local3] > 0) {
if (this[(("B" + _local4) + "_") + _local3] == undefined) {
this.attachMovie(String("_b" + blockimg[_local4][_local3]), String((("B" + _local4) + "_") + _local3), this.getNextHighestDepth());
}
this[(("B" + _local4) + "_") + _local3]._x = _local3 * _root.BW;
this[(("B" + _local4) + "_") + _local3]._y = _local4 * _root.BH;
if (!(maparr[blockimg[_local4][_local3]] instanceof flash.display.BitmapData)) {
maparr[blockimg[_local4][_local3]] = flash.display.BitmapData.loadBitmap("map_" + blockimg[_local4][_local3]);
}
colbitmap.copyPixels(maparr[blockimg[_local4][_local3]], new flash.geom.Rectangle(0, 0, _root.BW, _root.BH), new flash.geom.Point(_local3 * _root.BW, _local4 * _root.BW));
}
_local3++;
}
_local4++;
}
}
var colbitmap = (new flash.display.BitmapData(_root.BW * _root.BX, _root.BH * _root.BY, true, 0));
var i;
var j;
var maparr = new Array(80);
Symbol 849 MovieClip Frame 1
this._visible = false;
Symbol 849 MovieClip Frame 2
stop();
this.removeMovieClip();
Symbol 850 MovieClip Frame 1
function clear() {
var _local2 = this[each];
for (each in this) {
_local2 = this[each];
removeMovieClip(_local2);
}
}
function show() {
var _local3;
var _local4;
_local3 = 0;
while (_local3 < _root.Decor.length) {
if (_root.Decor[_local3][0] == "b") {
this.attachMovie("decor_" + _root.Decor[_local3][1], "dec_" + _local3, this.getNextHighestDepth());
this["dec_" + _local3]._x = _root.Decor[_local3][2];
this["dec_" + _local3]._y = _root.Decor[_local3][3];
}
_local3++;
}
}
Symbol 852 MovieClip Frame 1
this._visible = false;
Symbol 852 MovieClip Frame 2
stop();
this.removeMovieClip();
Symbol 853 MovieClip Frame 1
function clear() {
var _local2 = this[each];
for (each in this) {
_local2 = this[each];
removeMovieClip(_local2);
}
}
function show(gemimg) {
var _local4;
var _local3;
var _local5;
var _local10;
var _local9;
var _local12;
var _local11;
var _local13;
var _local6;
var _local7;
_local5 = 0;
_local13 = 0;
_local7 = 0;
do {
_local5++;
_local10 = gemimg[_local5][0];
_local9 = gemimg[_local5][1];
_local12 = gemimg[_local5][2];
_local11 = gemimg[_local5][3];
_local6 = 0;
_local4 = 1;
while (_local4 <= _local11) {
_local3 = 0;
while (_local3 < _local12) {
if (this[(("G" + (_local5 + _local4)) + "_") + _local3] == undefined) {
this.attachMovie(String("gem_" + gemimg[_local5 + _local4][_local3]), String((("G" + (_local5 + _local4)) + "_") + _local3), this.getNextHighestDepth());
}
this[(("G" + (_local5 + _local4)) + "_") + _local3]._x = _local10 + (_local3 * _root.GSX);
this[(("G" + (_local5 + _local4)) + "_") + _local3]._y = _local9 + ((_local4 - 1) * _root.GSY);
this[(("G" + (_local5 + _local4)) + "_") + _local3].gotoAndPlay(_local6);
this[(("G" + (_local5 + _local4)) + "_") + _local3].ident = _local7;
this[(("G" + (_local5 + _local4)) + "_") + _local3].gi = _local4;
this[(("G" + (_local5 + _local4)) + "_") + _local3].gj = _local3;
this[(("G" + (_local5 + _local4)) + "_") + _local3].num = gemimg[_local5 + _local4][_local3];
_local7++;
gemdata[_local7] = this[(("G" + (_local5 + _local4)) + "_") + _local3]._name;
if ((_local6 + _root.GOINC) > this[(("G" + (_local5 + _local4)) + "_") + _local3]._framesloaded) {
_local6 = _root.GOINC - this[(("G" + (_local5 + _local4)) + "_") + _local3]._framesloaded;
} else {
_local6 = _local6 + _root.GOINC;
}
gembitmap.copyPixels(new flash.display.BitmapData(_root.GW, _root.GH, false, _local7), new flash.geom.Rectangle(0, 0, _root.GW - 8, _root.GH - 8), new flash.geom.Point((_local10 + (_local3 * _root.GSX)) + 6, (_local9 + ((_local4 - 1) * _root.GSY)) + 4));
this[(("G" + (_local5 + _local4)) + "_") + _local3].cmx = (_local10 + (_local3 * _root.GSX)) + 6;
this[(("G" + (_local5 + _local4)) + "_") + _local3].cmy = (_local9 + ((_local4 - 1) * _root.GSY)) + 4;
this[(("G" + (_local5 + _local4)) + "_") + _local3].cmw = _root.GW - 8;
this[(("G" + (_local5 + _local4)) + "_") + _local3].cmh = _root.GH - 8;
_local3++;
}
_local4++;
}
_local5 = _local5 + _local11;
_local13++;
} while (_local13 < gemimg[0][0]);
}
function removegem(gname) {
gembitmap.copyPixels(new flash.display.BitmapData(_root.GW, _root.GH, true, 0), new flash.geom.Rectangle(0, 0, this[gname].cmw, this[gname].cmh), new flash.geom.Point(this[gname].cmx, this[gname].cmy));
this.attachMovie("gem_effect_" + this[gname].num, gname + "_eff", this.getNextHighestDepth());
this.attachMovie("10score_", gname + "_sc", this.getNextHighestDepth());
this[gname + "_eff"]._x = this[gname]._x;
this[gname + "_eff"]._y = this[gname]._y;
this[gname + "_sc"]._x = this[gname]._x + 5;
this[gname + "_sc"]._y = this[gname]._y;
this[gname].removeMovieClip();
}
var gembitmap = (new flash.display.BitmapData(_root.BW * _root.BX, _root.BH * _root.BY, true, 0));
var gemdata = new Array(_root.MAXGEMS * 4);
Symbol 855 MovieClip Frame 1
this._visible = false;
Symbol 855 MovieClip Frame 2
stop();
this.removeMovieClip();
Symbol 856 MovieClip Frame 1
function clear() {
var _local2 = this[each];
for (each in this) {
_local2 = this[each];
removeMovieClip(_local2);
}
}
function show(blockimg) {
var _local3;
var _local5;
var _local4;
_local3 = 0;
while (_local3 < _root.Objects.length) {
_local4 = _root.Objects[_local3][0] + _root.Objects[_local3][1];
if (_root.Objects[_local3][0] == "t") {
this.attachMovie("_turtle_", _local4, this.getNextHighestDepth());
this[_local4]._x = _root.Objects[_local3][2];
this[_local4]._y = _root.Objects[_local3][3];
this[_local4].Index = _local3;
}
if (_root.Objects[_local3][0] == "e") {
this.attachMovie("exit_effect_", _local4, this.getNextHighestDepth());
this[_local4]._x = _root.Objects[_local3][2];
this[_local4]._y = _root.Objects[_local3][3];
this[_local4].Index = _local3;
}
_local3++;
}
_local3 = 0;
while (_local3 < _root.Objects.length) {
_local4 = _root.Objects[_local3][0] + _root.Objects[_local3][1];
if (_root.Objects[_local3][0] == "m") {
_local5 = _root.ObjectParams[_root.Objects[_local3][4]].char;
this.attachMovie("_enemy_" + _local5, _local4, this.getNextHighestDepth());
this[_local4].Params = _root.ObjectParams[_root.Objects[_local3][4]];
this[_local4]._x = _root.Objects[_local3][2];
this[_local4]._y = _root.Objects[_local3][3];
this[_local4].Index = _local3;
}
_local3++;
}
getArrowCoordinates();
}
function hitEnemy(i) {
var _local3;
_local3 = _root.Objects[i][0] + _root.Objects[i][1];
if (!this[_local3].umbrella) {
_root.enemy_hit_Snd.start();
this[_local3].logic.hit();
} else {
_root.enemy_nohit_Snd.start();
}
}
function hitTurtle(i) {
var _local4;
_local4 = _root.Objects[i][0] + _root.Objects[i][1];
this[_local4].free();
this.attachMovie("turtlefly_effect_", _local4 + "_ef", this.getNextHighestDepth());
this[_local4 + "_ef"]._x = this[_local4]._x + 5;
this[_local4 + "_ef"]._y = this[_local4]._y;
_parent.freeturtle();
getArrowCoordinates();
_root.cage_derbis_Snd.start();
}
function sideEnemy(i) {
var _local4;
_local4 = _root.Objects[i][0] + _root.Objects[i][1];
this[_local4].logic.kick();
this.attachMovie("100score_", _local4 + "_sc", this.getNextHighestDepth());
this[_local4 + "_sc"]._x = this[_local4]._x;
this[_local4 + "_sc"]._y = this[_local4]._y;
_local4 = "t" + _root.Objects[i][1];
if (this[_local4] != undefined) {
this[_local4].unlock();
}
_parent.scoreforenemy();
_root.enemy_kicked_Snd.start();
}
function removeObject(i) {
var _local3;
_local3 = _root.Objects[i][0] + _root.Objects[i][1];
this[_local3].removeMovieClip();
}
function showexit() {
_root.endportal_activated_Snd.start();
e1.efstart();
_root.Objects[e1.Index][5] = 0;
_parent._parent.info.radar.gotoAndStop("Blue");
}
function getArrowCoordinates() {
var _local3 = false;
i = 0;
while (i < _root.Objects.length) {
objname = _root.Objects[i][0] + _root.Objects[i][1];
if (_root.Objects[i][0] == "t") {
if (_root.Objects[i][5] == 0) {
_local3 = true;
arrx = this[_root.Objects[i][0] + _root.Objects[i][1]]._x;
arry = this[_root.Objects[i][0] + _root.Objects[i][1]]._y;
break;
}
}
i++;
}
if (!_local3) {
arrx = e1._x;
arry = e1._y;
}
}
var arrx;
var arry;
Symbol 885 MovieClip Frame 16
if ((Math.random() * 5) > 1) {
gotoAndPlay (1);
}
Symbol 885 MovieClip Frame 24
if ((Math.random() * 3) > 1) {
gotoAndPlay (1);
}
Symbol 924 MovieClip Frame 16
if ((Math.random() * 5) > 1) {
gotoAndPlay (1);
}
Symbol 933 MovieClip Frame 4
stop();
Symbol 942 MovieClip Frame 4
stop();
Symbol 959 MovieClip Frame 8
stop();
Symbol 976 MovieClip Frame 8
stop();
_parent._parent.bypass_move = false;
Symbol 985 MovieClip Frame 4
stop();
Symbol 986 MovieClip Frame 1
Symbol 986 MovieClip Frame 50
stop();
_parent._parent.bypass_move = false;
Symbol 1003 MovieClip Frame 8
stop();
Symbol 1021 MovieClip Frame 1
stop();
Symbol 1021 MovieClip Frame 9
stop();
Symbol 1021 MovieClip Frame 17
stop();
Symbol 1021 MovieClip Frame 25
stop();
Symbol 1021 MovieClip Frame 33
stop();
Symbol 1021 MovieClip Frame 41
stop();
Symbol 1021 MovieClip Frame 50
stop();
Symbol 1021 MovieClip Frame 58
stop();
Symbol 1021 MovieClip Frame 66
stop();
Symbol 1021 MovieClip Frame 74
stop();
Symbol 1021 MovieClip Frame 82
stop();
Symbol 1021 MovieClip Frame 90
stop();
Symbol 1021 MovieClip Frame 98
stop();
Symbol 1021 MovieClip Frame 106
stop();
Symbol 1021 MovieClip Frame 114
stop();
Symbol 1021 MovieClip Frame 122
stop();
Symbol 1021 MovieClip Frame 130
stop();
_root.player_boring_Snd.start(0, 1000);
Symbol 1021 MovieClip Frame 138
stop();
_root.player_boring_Snd.start(0, 1000);
Symbol 1022 MovieClip Frame 1
function efstart() {
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
}
function efstop() {
this.onEnterFrame = null;
}
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
}
}
function newStar() {
this.attachMovie("turtix_star_", "star_" + StarID, this.getNextHighestDepth());
this["star_" + StarID]._xscale = 20 + (40 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = Math.floor(Math.random() * 32);
this["star_" + StarID]._y = Math.floor(Math.random() * 32);
this["star_" + StarID].dx = MAXDX - ((2 * MAXDX) * Math.random());
this["star_" + StarID].dy = MAXDY - ((2 * MAXDY) * Math.random());
this["star_" + StarID].da = MAXDA - ((2 * MAXDA) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (80 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation + this.da;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
var MAXTIME = 60;
var MINTIME = 40;
var MAXDX = 1;
var MAXDY = 1;
var MAXDA = 2;
var MAXTINT = 25;
var MINTINT = 10;
var Cnt;
var StarID;
var RndCnt;
var as;
Symbol 1023 MovieClip Frame 1
function setpos(pos) {
anim.gotoAndStop("StandRight");
this._x = pos[0] * _root.BW;
this._y = pos[1] * _root.BH;
this._visible = true;
this._alpha = 0;
}
function starthero() {
_parent.attachMovie("born_effect_", "born_effect", _parent.getNextHighestDepth());
_parent.born_effect._x = this._x;
_parent.born_effect._y = this._y;
startid = setInterval(this, "starthero2", 1000);
this.onEnterFrame = showhero;
}
function showhero() {
if (this._alpha < 100) {
this._alpha = this._alpha + 2;
}
}
function starthero2() {
if (_root.CurrentLevel == 1) {
_parent._parent.igmenu.help.show();
}
clearInterval(startid);
this._alpha = 100;
blinkdir = -1 * BLINKDIR;
blinkcnt = BLINKCNT;
blink = false;
bypass_move = false;
BH = _root.BH;
BW = _root.BW;
MAP = _root.MapArray;
mcntl = 0;
mcntr = 0;
ku = false;
bypassku = false;
lockku = false;
hitjump = false;
fallstep = FALLSTEP;
Direction = "Right";
lockfall = false;
standcnt = STANDCNT;
this.onEnterFrame = movehero;
}
function stophero() {
this.onEnterFrame = undefined;
}
function movehero() {
var _local3;
var _local4;
var _local2;
if (blink && (!bypass_move)) {
if (blinkcnt > 0) {
if (effect.onEnterFrame == undefined) {
effect.efstart();
}
blinkcnt--;
anim._alpha = anim._alpha + blinkdir;
if (anim._alpha <= 40) {
blinkdir = BLINKDIR;
} else if (anim._alpha >= 100) {
blinkdir = -1 * BLINKDIR;
}
} else {
blinkcnt = BLINKCNT;
blinkdir = -1 * BLINKDIR;
anim._alpha = 100;
blink = false;
effect.efstop();
}
}
keytrace();
if (!bypass_move) {
checkstate();
checkgems();
checkobjectside();
} else {
ksp = false;
ku = false;
jumpstep = 0;
bypassku = false;
lockku = false;
}
if (kl) {
_local2 = 0;
while (_local2 < MOVESTEP) {
_local3 = chcol((this._x + PX1) - 1, this._y + PY1);
_local4 = chcol((this._x + PX1) - 1, this._y + PY2);
if (_local4 && (_local3)) {
this._x--;
} else if (_local3) {
this._x--;
this._y--;
} else {
break;
}
_local2++;
}
}
if (kr) {
_local2 = 0;
while (_local2 < MOVESTEP) {
_local3 = chcol((this._x + PX2) + 1, this._y + PY1);
_local4 = chcol((this._x + PX2) + 1, this._y + PY2);
if (_local4 && (_local3)) {
this._x++;
} else if (_local3) {
this._x++;
this._y--;
} else {
break;
}
_local2++;
}
}
if (ku) {
lockfall = false;
_local2 = 0;
while (_local2 < Math.floor(jumpstep)) {
_local3 = chcol(this._x + PX1, (this._y + PY1) - 1);
_local4 = chcol(this._x + PX2, (this._y + PY1) - 1);
if (_local4 && (_local3)) {
this._y--;
} else {
jumpstep = 0;
break;
}
_local2++;
}
jumpstep = jumpstep - DJUMPSTEP;
if (jumpstep <= 0) {
ku = false;
fallstep = 0;
bypassku = true;
lockku = true;
}
} else if (kd) {
bypassku = true;
_local2 = 0;
while (_local2 < Math.floor(fallstep)) {
_local3 = chcol(this._x + PX1, (this._y + PY2) + 1);
_local4 = chcol(this._x + PX2, (this._y + PY2) + 1);
if ((_local4 && (_local3)) && (!checkobjectup())) {
fallcnt++;
if (_local2 > 3) {
lockfall = true;
}
this._y++;
} else {
fallstep = 0;
bypassku = false;
lockfall = false;
break;
}
_local2++;
}
if (fallstep <= (FALLSTEP - DFALLSTEP)) {
fallstep = fallstep + DFALLSTEP;
} else {
fallstep = FALLSTEP;
}
}
}
function chcol(cx, cy) {
var _local4;
currPoint.x = cx;
currPoint.y = cy;
if (_parent.blocks.colbitmap.hitTest(initPoint, 128, currPoint)) {
return(false);
}
return(true);
}
function checkgems() {
if (chgem(this._x + ((PX1 + PX2) / 2), this._y + ((PY1 + PY2) / 2))) {
return(undefined);
}
if (chgem(this._x + PX1, this._y + PY1)) {
return(undefined);
}
if (chgem(this._x + PX1, this._y + PY2)) {
return(undefined);
}
if (chgem(this._x + PX2, this._y + PY1)) {
return(undefined);
}
if (chgem(this._x + PX2, this._y + PY2)) {
return(undefined);
}
}
function chgem(cx, cy) {
var _local2;
_local2 = _parent.gems.gembitmap.getPixel(cx, cy);
if (_local2 != 0) {
if (_parent.gems[_parent.gems.gemdata[_local2]] != undefined) {
_parent.scoreforgem();
_parent.gems.removegem(_parent.gems.gemdata[_local2]);
return(true);
}
}
return(false);
}
function getcx(coord) {
coord = Math.floor(coord / _root.BW);
return(coord);
}
function getcy(coord) {
coord = Math.floor(coord / _root.BH);
return(coord);
}
function keytrace() {
kl = false;
kr = false;
kd = false;
ksp = false;
if (Key.isDown(32)) {
ksp = true;
}
if ((((!Key.isDown(16)) && (Key.isDown(37))) && (!Key.isDown(39))) && (!bypass_move)) {
mcntl = MCNT;
mcntr = 0;
}
if ((((!Key.isDown(16)) && (Key.isDown(39))) && (!Key.isDown(37))) && (!bypass_move)) {
mcntr = MCNT;
mcntl = 0;
}
if ((!ku) && (!bypassku)) {
if ((!Key.isDown(16)) && (Key.isDown(38))) {
if (!lockku) {
hitjump = false;
dojump();
}
} else {
lockku = false;
}
}
kd = true;
if (mcntl > 0) {
mcntl--;
kl = true;
}
if (mcntr > 0) {
mcntr--;
kr = true;
}
}
function dojump() {
ku = true;
jumpstep = JUMPSTEP;
}
function dohitjump() {
hitjump = true;
ku = true;
jumpstep = HITJUMPSTEP;
}
function checkstate() {
if (kl) {
standcnt = STANDCNT;
_root.player_boring_Snd.stop("Player_Boring.mp3");
if ((!ku) && (!bypassku)) {
anim.gotoAndStop("MoveLeft");
}
Direction = "Left";
} else if (kr) {
standcnt = STANDCNT;
_root.player_boring_Snd.stop("Player_Boring.mp3");
if ((!ku) && (!bypassku)) {
anim.gotoAndStop("MoveRight");
}
Direction = "Right";
} else if ((!ku) && (!bypassku)) {
standcnt--;
if (standcnt > 0) {
anim.gotoAndStop("Stand" + Direction);
} else {
standcnt = 0;
anim.gotoAndStop("Music" + Direction);
}
}
if (ku) {
standcnt = STANDCNT;
_root.player_boring_Snd.stop("Player_Boring.mp3");
if (hitjump) {
anim.gotoAndStop("HitJump" + Direction);
} else {
anim.gotoAndStop("Jump" + Direction);
}
} else if (bypassku) {
standcnt = STANDCNT;
_root.player_boring_Snd.stop("Player_Boring.mp3");
if (lockfall) {
anim.gotoAndStop("Fall" + Direction);
}
}
}
function checkobjectup() {
var _local3;
var _local4;
_local3 = 0;
while (_local3 < _root.Objects.length) {
if ((_root.Objects[_local3][5] == 0) && (_root.Objects[_local3][6] == 0)) {
_local4 = _root.Objects[_local3][0];
if (_local4 == "m") {
if (checkup(_local3)) {
dohitjump();
_parent.animals.hitEnemy(_local3);
return(true);
}
}
if (_local4 == "t") {
if (checkup(_local3)) {
dohitjump();
_parent.animals.hitTurtle(_local3);
return(true);
}
}
}
_local3++;
}
return(false);
}
function checkup(n) {
var _local6 = 40;
var _local5 = 37;
var _local4 = _root.Objects[n][2];
var _local3 = _root.Objects[n][3];
if ((this._x > (_local4 - (BW / 2))) && (this._x < (_local4 + (BW / 2)))) {
if ((this._y > (_local3 - _local6)) && (this._y < (_local3 - _local5))) {
return(true);
}
}
return(false);
}
function checkobjectside() {
var _local2;
var _local3;
_local2 = 0;
while (_local2 < _root.Objects.length) {
if (_root.Objects[_local2][5] == 0) {
_local3 = _root.Objects[_local2][0];
if (_local3 == "m") {
if (checkside(_local2)) {
checkenemy(_local2);
return(true);
}
} else if (_local3 == "e") {
if (checkside(_local2)) {
turtixExit();
return(true);
}
} else if (_local3 == "l") {
if (checkside(_local2)) {
checkHint(_local3 + _root.Objects[_local2][1]);
return(true);
}
}
}
_local2++;
}
return(false);
}
function checkside(n) {
var _local5 = 37;
var _local4 = _root.Objects[n][2];
var _local3 = _root.Objects[n][3];
if ((this._x > (_local4 - (BW / 2))) && (this._x < (_local4 + (BW / 2)))) {
if ((this._y > (_local3 - _local5)) && (this._y <= (_local3 + (BH / 2)))) {
return(true);
}
}
return(false);
}
function checkenemy(i) {
if (_root.Objects[i][6] == 1) {
if (ksp && (!bypassku)) {
_parent.animals.sideEnemy(i);
kickEnemy();
}
} else if (!blink) {
hitTurtix();
}
}
function kickEnemy() {
bypass_move = true;
anim.gotoAndStop("Kick" + Direction);
}
function hitTurtix() {
if (mcntl > 0) {
mcntl = mcntl * 3;
}
if (mcntr > 0) {
mcntr = mcntr * 3;
}
bypass_move = true;
blink = true;
anim.gotoAndStop("Hit" + Direction);
_parent.decreaselife();
_root.player_hit_Snd.start();
}
function turtixExit() {
anim.gotoAndStop("Exit" + Direction);
_parent.levelcompleted();
}
function checkHint(hint) {
if (_root.CurrentLevel == 1) {
if (hint == "l1") {
_parent._parent.info.hint.gotoAndStop(1);
_parent._parent.info.hint.lshow();
} else if (hint == "l2") {
if (_root.Objects[_parent.animals.e1.Index][5] == 1) {
_parent._parent.info.hint.gotoAndStop(2);
_parent._parent.info.hint.lshow();
}
} else if (hint == "l3") {
if (_root.Objects[_parent.animals.e1.Index][5] == 0) {
_parent._parent.info.hint.gotoAndStop(4);
} else {
_parent._parent.info.hint.gotoAndStop(5);
}
_parent._parent.info.hint.lshow();
} else if (hint == "l4") {
if (_root.Objects[_parent.animals.e1.Index][5] == 0) {
_parent._parent.info.hint.gotoAndStop(3);
_parent._parent.info.hint.lshow();
}
} else if (hint == "l5") {
_root.howtoplay_show_Snd.start();
_parent._parent.info.radarhint._visible = true;
} else if (hint == "l6") {
_parent._parent.info.radarhint._visible = false;
}
}
}
var d = 1E-9;
var MOVESTEP = 5;
var MCNT = 5;
var FALLSTEP = 19;
var DFALLSTEP = 2;
var JUMPSTEP = 19;
var HITJUMPSTEP = 15;
var DJUMPSTEP = 2;
var PX1 = 12;
var PX2 = 40;
var PY1 = 24;
var PY2 = 46;
var DIRLEFT = 1;
var DIRRIGHT = 1;
var DIRUP = 1;
var DIRDOWN = 1;
var BH;
var BW;
var MAP;
var kl;
var kr;
var ku;
var kd;
var ksp;
var mcntl;
var mcntr;
var jumpstep;
var fallstep;
var bypassku;
var lockku;
var Direction;
var lockfall;
var hitjump;
var bypass_move;
var blink;
var blinkcnt;
var blinkdir;
var standcnt;
var BLINKDIR = 10;
var BLINKCNT = 100;
var STANDCNT = 200;
var startid;
var currPoint = (new flash.geom.Point());
var initPoint = (new flash.geom.Point());
initPoint.x = 0;
initPoint.y = 0;
this._visible = false;
Symbol 1025 MovieClip Frame 1
this._visible = false;
Symbol 1025 MovieClip Frame 2
stop();
this.removeMovieClip();
Symbol 1026 MovieClip Frame 1
function clear() {
var _local2 = this[each];
for (each in this) {
_local2 = this[each];
removeMovieClip(_local2);
}
}
function show() {
var _local3;
var _local4;
_local3 = 0;
while (_local3 < _root.Decor.length) {
if (_root.Decor[_local3][0] == "f") {
this.attachMovie("decor_" + _root.Decor[_local3][1], "dec_" + _local3, this.getNextHighestDepth());
this["dec_" + _local3]._x = _root.Decor[_local3][2];
this["dec_" + _local3]._y = _root.Decor[_local3][3];
}
_local3++;
}
}
Symbol 1027 MovieClip Frame 1
function start() {
Status = "_START";
this.onEnterFrame = ef_start;
}
function stop() {
Status = "_STOP";
this.onEnterFrame = undefined;
}
function ef_start() {
var _local3;
if (Key.isDown(16)) {
if (eye._alpha < 100) {
eye._alpha = eye._alpha + YASTEP;
}
} else if (eye._alpha > 0) {
eye._alpha = eye._alpha - YASTEP;
}
if (((_parent.hero._x + _parent._x) > (sw / 2)) || (Key.isDown(16) && (Key.isDown(39)))) {
if (Key.isDown(16) && (Key.isDown(39))) {
_local3 = CAMSPD;
} else if (!Key.isDown(16)) {
_local3 = Math.abs((_parent.hero._x + _parent._x) - (sw / 2));
if (_local3 > 50) {
_local3 = 50;
}
_local3 = (_local3 * _local3) / 80;
}
if ((_parent._x - _local3) < (((-_root.BW) * _root.BX) + sw)) {
_local3 = (_parent._x + (_root.BW * _root.BX)) - sw;
_parent._x = _parent._x - _local3;
eye._x = eye._x + _local3;
_parent._parent.back2._x = (_parent._x / ((_root.BW * _root.BX) - sw)) * (_parent._parent.back2._width - sw);
_parent._parent.clouds._x = (_parent._x / ((_root.BW * _root.BX) - sw)) * (CLOUDSWIDTH - sw);
if (Key.isDown(16)) {
return(undefined);
}
} else if (_local3 > 1) {
_parent._x = _parent._x - _local3;
eye._x = eye._x + _local3;
_parent._parent.back2._x = (_parent._x / ((_root.BW * _root.BX) - sw)) * (_parent._parent.back2._width - sw);
_parent._parent.clouds._x = (_parent._x / ((_root.BW * _root.BX) - sw)) * (CLOUDSWIDTH - sw);
if (Key.isDown(16)) {
return(undefined);
}
}
}
if (((_parent.hero._x + _parent._x) < (sw / 2)) || (Key.isDown(16) && (Key.isDown(37)))) {
if (Key.isDown(16) && (Key.isDown(37))) {
_local3 = CAMSPD;
} else if (!Key.isDown(16)) {
_local3 = Math.abs((_parent.hero._x + _parent._x) - (sw / 2));
if (_local3 > 50) {
_local3 = 50;
}
_local3 = (_local3 * _local3) / 80;
}
if ((_parent._x + _local3) > 0) {
_local3 = -_parent._x;
_parent._x = _parent._x + _local3;
eye._x = eye._x - _local3;
_parent._parent.back2._x = (_parent._x / ((_root.BW * _root.BX) - sw)) * (_parent._parent.back2._width - sw);
_parent._parent.clouds._x = (_parent._x / ((_root.BW * _root.BX) - sw)) * (CLOUDSWIDTH - sw);
if (Key.isDown(16)) {
return(undefined);
}
} else if (_local3 > 1) {
_parent._x = _parent._x + _local3;
eye._x = eye._x - _local3;
_parent._parent.back2._x = (_parent._x / ((_root.BW * _root.BX) - sw)) * (_parent._parent.back2._width - sw);
_parent._parent.clouds._x = (_parent._x / ((_root.BW * _root.BX) - sw)) * (CLOUDSWIDTH - sw);
if (Key.isDown(16)) {
return(undefined);
}
}
}
if (((_parent.hero._y + _parent._y) > (sh / 2)) || (Key.isDown(16) && (Key.isDown(40)))) {
if (Key.isDown(16) && (Key.isDown(40))) {
_local3 = CAMSPD;
} else if (!Key.isDown(16)) {
_local3 = Math.abs((_parent.hero._y + _parent._y) - (sh / 2));
if (_local3 > 50) {
_local3 = 50;
}
_local3 = (_local3 * _local3) / 80;
}
if ((_parent._y - _local3) < (((-_root.BH) * _root.BY) + sh)) {
_local3 = (_parent._y + (_root.BH * _root.BY)) - sh;
_parent._y = _parent._y - _local3;
eye._y = eye._y + _local3;
_parent._parent.back2._y = (_parent._y / ((_root.BH * _root.BY) - sh)) * (_parent._parent.back2._height - sh);
_parent._parent.back1._y = _parent._parent.back2._y;
_parent._parent.clouds._y = _parent._parent.back2._y;
if (Key.isDown(16)) {
return(undefined);
}
} else if (_local3 > 1) {
_parent._y = _parent._y - _local3;
eye._y = eye._y + _local3;
_parent._parent.back2._y = (_parent._y / ((_root.BH * _root.BY) - sh)) * (_parent._parent.back2._height - sh);
_parent._parent.back1._y = _parent._parent.back2._y;
_parent._parent.clouds._y = _parent._parent.back2._y;
if (Key.isDown(16)) {
return(undefined);
}
}
}
if (((_parent.hero._y + _parent._y) < (sh / 2)) || (Key.isDown(16) && (Key.isDown(38)))) {
if (Key.isDown(16) && (Key.isDown(38))) {
_local3 = CAMSPD;
} else if (!Key.isDown(16)) {
_local3 = Math.abs((_parent.hero._y + _parent._y) - (sh / 2));
if (_local3 > 50) {
_local3 = 50;
}
_local3 = (_local3 * _local3) / 80;
}
if ((_parent._y + _local3) > 0) {
_local3 = -_parent._y;
_parent._y = _parent._y + _local3;
eye._y = eye._y - _local3;
_parent._parent.back2._y = (_parent._y / ((_root.BH * _root.BY) - sh)) * (_parent._parent.back2._height - sh);
_parent._parent.back1._y = _parent._parent.back2._y;
_parent._parent.clouds._y = _parent._parent.back2._y;
if (Key.isDown(16)) {
return(undefined);
}
} else if (_local3 > 1) {
_parent._y = _parent._y + _local3;
eye._y = eye._y - _local3;
_parent._parent.back2._y = (_parent._y / ((_root.BH * _root.BY) - sh)) * (_parent._parent.back2._height - sh);
_parent._parent.back1._y = _parent._parent.back2._y;
_parent._parent.clouds._y = _parent._parent.back2._y;
if (Key.isDown(16)) {
return(undefined);
}
}
}
}
var CAMSPD = 20.5;
var YASTEP = 18.5;
var CLOUDSWIDTH = 640;
var Status = "_STOP";
var sw = Stage.width;
var sh = Stage.height;
eye._alpha = 0;
Symbol 1028 MovieClip Frame 1
function newgame() {
_root.Enemies = 0;
_root.Gems = 0;
_root.Lives = _root.GAME_LIVES;
_root.Life = 100;
_root.TotalScore = 0;
playlevel(1);
}
function nextlevel() {
_root.TotalScore = _root.TotalScore + _root.LevelScore;
_root.CurrentLevel++;
playlevel(_root.CurrentLevel);
}
function replaylevel() {
}
function playlevel(level) {
_root.Life = 100;
_root.LevelScore = 0;
_root.CurrentLevel = level;
_root.Turtles = 0;
_root.Gems = 0;
_root.Enemies = 0;
comix.gotoAndStop(level);
}
function scoreforgem() {
_root.gems_collect_Snd.start();
_root.Gems++;
_root.LevelScore = _root.LevelScore + _root.GAME_SCOREFORGEM;
updateinfo();
}
function scoreforenemy() {
_root.Enemies++;
_root.LevelScore = _root.LevelScore + _root.GAME_SCOREFORENEMY;
updateinfo();
}
function freeturtle() {
_root.Turtles++;
updateinfo();
if (_root.Turtles == _root.TurtlesTotal) {
animals.showexit();
}
}
function decreaselife() {
_root.Life = _root.Life - _root.GAME_ENEMYDAMAGE;
if (_root.Life < 0) {
_root.Life = 0;
}
updateinfo();
if (_root.Life == 0) {
gameover();
}
}
function levelcompleted() {
if (_root.CurrentLevel == 1) {
animals.e1.hint._visible = false;
}
_parent.igmenu.levelcompleted.gems.text = (_root.Gems + " / ") + _root.GemsTotal;
_parent.igmenu.levelcompleted.enemies.text = (_root.Enemies + " / ") + _root.EnemiesTotal;
_parent.igmenu.levelcompleted.show();
if (_root.CurrentLevel == _root.Levels) {
_parent.igmenu.levelcompleted.alllevels._visible = true;
}
if (_root.Gems == _root.GemsTotal) {
_parent.igmenu.levelcompleted.great1._visible = true;
}
if (_root.Enemies == _root.EnemiesTotal) {
_parent.igmenu.levelcompleted.great2._visible = true;
}
hero.stophero();
_root.level_complete_Snd.start();
}
function levelcompleted2() {
if (_root.CurrentLevel == _root.Levels) {
_root.gotoAndPlay("MainMenu");
} else {
_root.ToDo = "NextLevel";
_root.gotoAndPlay("Game");
}
}
function gameover() {
_parent.igmenu.gameover.show();
hero.stophero();
_root.game_over_Snd.start();
}
function gameover2() {
_root.gotoAndPlay("MainMenu");
}
function updateinfo() {
_parent.info.score.text = _root.LevelScore;
_parent.info.turtles.text = (_root.Turtles + " / ") + _root.TurtlesTotal;
_parent.info.life._width = (_root.Life / 100) * _root.FULLLIFE;
}
function preparedata(level) {
_root.Night = _root["Night_" + level];
_root.TurtlesTotal = _root["TURTLES_TOTAL_" + level];
_root.GemsTotal = _root["GEMS_TOTAL_" + level];
_root.EnemiesTotal = _root["ENEMIES_TOTAL_" + level];
_root.BY = _root["BY_" + level];
_root.BX = _root["BX_" + level];
_root.BY = _root["BY_" + level];
_root.Position[0] = _root["Position_" + level][0];
_root.Position[1] = _root["Position_" + level][1];
var _local3 = 0;
while (_local3 < _root.MAXBY) {
var _local2 = 0;
while (_local2 < _root.MAXBX) {
_root.BlocksArray[_local3][_local2] = _root["BlocksArray_" + level][_local3][_local2];
_local2++;
}
_local3++;
}
_local3 = 0;
while (_local3 < _root["GemsArray_" + level].length) {
var _local2 = 0;
while (_local2 < _root["GemsArray_" + level][0].length) {
_root.GemsArray[_local3][_local2] = _root["GemsArray_" + level][_local3][_local2];
_local2++;
}
_local3++;
}
_local3 = 0;
while (_local3 < _root["Objects_" + level].length) {
_root.Objects.push(new Array(_root["Objects_" + level][_local3].length));
var _local2 = 0;
while (_local2 < _root.Objects[_local3].length) {
_root.Objects[_local3][_local2] = _root["Objects_" + level][_local3][_local2];
_local2++;
}
_local3++;
}
_root.copyObj(_root["ObjectParams_" + level], _root.ObjectParams);
_root.copyObj(_root["Decor_" + level], _root.Decor);
}
_parent.info._visible = false;
switch (_root.ToDo) {
case "NewGame" :
newgame();
break;
case "NextLevel" :
nextlevel();
break;
case "ReplayLevel" :
replaylevel();
break;
case "PlayLevel" :
playlevel(_root.LevelToPlay);
}
preparedata(_root.CurrentLevel);
Symbol 1028 MovieClip Frame 2
_parent.cover.hide();
Symbol 1028 MovieClip Frame 4
function init() {
if (_root.Night) {
_parent.back1.gotoAndStop(2);
_parent.back2.gotoAndStop(2);
_parent.clouds._visible = false;
} else {
_parent.back1.gotoAndStop(1);
_parent.back2.gotoAndStop(1);
_parent.clouds._visible = true;
}
_parent.info._visible = true;
_parent.cover.hide();
updateinfo();
blocks.show(_root.BlocksArray);
foreground.show();
background.show();
gems.show(_root.GemsArray);
camera.start();
hero.init();
hero.setpos(_root.Position);
hero.starthero();
animals.show();
_parent.info.radar.gotoAndStop("Yellow");
_root.player_show_Snd.start();
}
stop();
init();
Symbol 1053 MovieClip Frame 24
if ((Math.random() * 5) > 1) {
gotoAndPlay (1);
}
Symbol 1073 MovieClip Frame 15
if ((Math.random() * 5) > 1) {
gotoAndPlay (34);
}
Symbol 1098 MovieClip Frame 1
function arr() {
var _local4;
var _local3;
_local4 = ((_parent._parent.map.animals.arrx + 30) - this._x) + _parent._parent.map._x;
_local3 = ((_parent._parent.map.animals.arry + 30) - this._y) + _parent._parent.map._y;
this._rotation = 90 + ((Math.atan2(_local3, _local4) / Math.PI) * 180);
}
stop();
var iid;
iid = setInterval(this, "arr", 100);
Symbol 1098 MovieClip Frame 2
stop();
Symbol 1106 MovieClip Frame 1
function lshow() {
if (!Flag) {
_root.howtoplay_show_Snd.start();
Flag = true;
}
Cnt = 10;
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((this._alpha + ALPHASTEP) < ALPHAMAX) {
this._alpha = this._alpha + ALPHASTEP;
} else {
this._alpha = ALPHAMAX;
Cnt--;
if (Cnt == 0) {
lhide();
}
}
}
function lhide() {
Flag = false;
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((this._alpha - ALPHASTEP) > ALPHAMIN) {
this._alpha = this._alpha - ALPHASTEP;
} else {
this._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 12;
var Cnt;
var Flag;
this._alpha = ALPHAMIN;
Flag = false;
stop();
Symbol 1106 MovieClip Frame 2
stop();
Flag = false;
Symbol 1106 MovieClip Frame 3
stop();
Flag = false;
Symbol 1106 MovieClip Frame 4
stop();
Flag = false;
Symbol 1106 MovieClip Frame 5
stop();
Flag = false;
Symbol 1110 MovieClip Frame 1
radarhint._visible = false;
Symbol 1116 MovieClip Frame 1
function show() {
this._visible = true;
this._alpha = 0;
this.onEnterFrame = efshow;
}
function efshow() {
if (this._alpha < (100 - AS)) {
this._alpha = this._alpha + AS;
} else {
this._alpha = 100;
Key.addListener(keyListener);
this.onEnterFrame = undefined;
}
}
function hide() {
this._visible = true;
this.onEnterFrame = efhide;
}
function efhide() {
if (this._alpha > AS) {
this._alpha = this._alpha - (AS * 2.5);
} else {
this._alpha = 100;
this._visible = false;
Key.removeListener(keyListener);
this.onEnterFrame = undefined;
}
}
var AS = 4;
var keyListener = new Object();
keyListener.onKeyDown = function () {
hide();
};
Symbol 1120 MovieClip Frame 1
function show() {
this._visible = true;
this._alpha = 0;
this.onEnterFrame = efshow;
}
function efshow() {
if (this._alpha < (100 - AS)) {
this._alpha = this._alpha + AS;
} else {
this._alpha = 100;
this.onEnterFrame = undefined;
tid = setInterval(this, "hide", 2000);
}
}
function hide() {
this._visible = true;
this.onEnterFrame = efhide;
}
function efhide() {
if (this._alpha > AS) {
this._alpha = this._alpha - AS;
} else {
this._alpha = 100;
this._visible = false;
this.onEnterFrame = undefined;
_root.gamedy.map.gameover2();
}
}
var AS = 5;
var tid;
Symbol 1152 MovieClip Frame 1
function show() {
this._visible = true;
this._alpha = 0;
this.onEnterFrame = efshow;
}
function efshow() {
if (this._alpha < (100 - AS)) {
this._alpha = this._alpha + AS;
} else {
this._alpha = 100;
Key.addListener(keyListener);
this.onEnterFrame = undefined;
}
}
function hide() {
this._visible = true;
this.onEnterFrame = efhide;
}
function efhide() {
if (this._alpha > AS) {
this._alpha = this._alpha - AS;
} else {
this._alpha = 100;
this._visible = false;
Key.removeListener(keyListener);
this.onEnterFrame = undefined;
_root.gamedy.map.levelcompleted2();
}
}
var AS = 8;
var keyListener = new Object();
keyListener.onKeyDown = function () {
hide();
};
Symbol 1153 MovieClip Frame 1
function init() {
levelcompleted._visible = false;
gameover._visible = false;
help._visible = false;
levelcompleted.great1._visible = false;
levelcompleted.great2._visible = false;
levelcompleted.great3._visible = false;
levelcompleted.alllevels._visible = false;
}
init();
Symbol 1154 MovieClip Frame 1
function show() {
this._visible = true;
this._alpha = 100;
}
function hide() {
this.onEnterFrame = efhide;
}
function efhide() {
if (this._alpha > AS) {
this._alpha = this._alpha - AS;
} else {
this._alpha = 100;
this._visible = false;
this.onEnterFrame = null;
}
}
var AS = 5;
Symbol 1155 MovieClip Frame 1
var colbitmap = flash.display.BitmapData.loadBitmap("_colmap1");
cover.show();