Frame 1
var MAPW = 640;
var BLOCKSIZEX = 32;
var BLOCKSIZEY = 32;
var BLOCKNUMX = 20;
var BLOCKNUMY = 14;
var GD_LEVELS = 6;
var GD_LIVES = 5;
var SC_GEM = [120, 150, 200, 230, 250, 270];
var SC_BONUS = [0, 200, 250, 300, 400, 300];
var LD_IGHELP = [1, 0, 2, 0, 3, 0, 0];
var CLR_BONUS = [16676984, 16737956, 15794022, 16750899, 16645241, 12712810];
var SnowyPosL1 = new Array(2);
var GemsL1;
var BlockImgL1 = new Array(BLOCKNUMY);
var WBlockImgL1 = new Array(BLOCKNUMY);
var CheckMapL1 = new Array(BLOCKNUMY);
var WCheckMapL1 = new Array(BLOCKNUMY);
var CheckGemsL1 = new Array(BLOCKNUMY);
var CheckBonusesL1 = new Array(BLOCKNUMY);
var i = 0;
while (i < BLOCKNUMY) {
BlockImgL1[i] = new Array(BLOCKNUMX);
WBlockImgL1[i] = new Array(BLOCKNUMX);
CheckMapL1[i] = new Array(BLOCKNUMX);
WCheckMapL1[i] = new Array(BLOCKNUMX);
CheckGemsL1[i] = new Array(BLOCKNUMX);
CheckBonusesL1[i] = new Array(BLOCKNUMX);
i++;
}
var win_f;
var LD_SnowyPosL6 = [2, 12];
var LD_BlockImgL6 = [[0, 53, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 54, 0], [50, 0, 0, 0, 0, 0, 39, 45, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50], [48, 0, 0, 0, 7, 10, 16, 16, 47, 14, 14, 14, 14, 14, 14, 8, 0, 0, 0, 48], [48, 0, 0, 7, 15, 0, 13, 16, 47, 16, 16, 16, 16, 16, 16, 16, 8, 0, 0, 48], [48, 0, 0, 13, 16, 14, 16, 16, 47, 16, 16, 16, 16, 16, 16, 16, 15, 0, 0, 48], [48, 0, 0, 13, 16, 16, 16, 16, 47, 16, 16, 16, 16, 16, 16, 16, 16, 21, 0, 48], [48, 0, 0, 13, 12, 12, 16, 47, 16, 16, 16, 16, 16, 16, 16, 16, 15, 0, 1, 48], [48, 0, 0, 11, 0, 0, 13, 16, 12, 16, 16, 12, 16, 16, 12, 16, 15, 0, 0, 48], [48, 0, 7, 9, 0, 50, 13, 15, 0, 13, 15, 0, 13, 15, 0, 13, 15, 0, 0, 48], [48, 0, 11, 0, 0, 48, 13, 15, 50, 13, 15, 50, 13, 15, 50, 13, 15, 50, 0, 48], [48, 0, 2, 0, 0, 48, 13, 15, 48, 13, 15, 48, 13, 15, 48, 13, 15, 48, 0, 48], [48, 0, 0, 0, 0, 48, 22, 25, 48, 22, 25, 48, 22, 25, 48, 22, 25, 48, 0, 48], [49, 0, 0, 0, 0, 49, 0, 0, 49, 0, 0, 49, 0, 0, 49, 0, 0, 49, 0, 49], [45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45]];
var LD_CheckMapL6 = [[0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0], [3, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3], [3, 0, 0, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 3], [3, 0, 0, 1, 1, 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 3], [3, 0, 0, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 3], [3, 0, 0, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 3], [3, 0, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 3], [3, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 3], [3, 0, 1, 1, 0, 3, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 3], [3, 0, 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, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 54, 56], [50, 0, 0, 0, 0, 0, 39, 45, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50], [48, 0, 0, 0, 7, 10, 16, 16, 47, 14, 14, 14, 14, 14, 14, 8, 0, 0, 0, 48], [48, 0, 0, 7, 15, 0, 13, 16, 47, 16, 16, 16, 16, 16, 16, 16, 8, 0, 0, 48], [48, 0, 0, 13, 16, 14, 16, 16, 47, 16, 16, 16, 16, 16, 16, 16, 15, 0, 0, 48], [48, 0, 0, 13, 16, 16, 16, 16, 47, 16, 16, 16, 16, 16, 16, 16, 16, 21, 0, 48], [48, 0, 0, 13, 12, 12, 16, 47, 16, 16, 16, 16, 16, 16, 16, 16, 15, 0, 1, 48], [48, 0, 0, 11, 0, 0, 13, 16, 12, 16, 16, 12, 16, 16, 12, 16, 15, 0, 0, 48], [48, 0, 7, 9, 0, 50, 13, 15, 0, 13, 15, 0, 13, 15, 0, 13, 15, 0, 0, 48], [48, 0, 11, 0, 0, 48, 13, 15, 50, 13, 15, 50, 13, 15, 50, 13, 15, 50, 0, 48], [48, 0, 2, 0, 0, 48, 13, 15, 48, 13, 15, 48, 13, 15, 48, 13, 15, 48, 0, 48], [48, 0, 0, 0, 0, 48, 22, 25, 48, 22, 25, 48, 22, 25, 48, 22, 25, 48, 0, 48], [49, 0, 0, 0, 0, 49, 0, 0, 49, 0, 0, 49, 0, 0, 49, 0, 0, 49, 0, 49], [45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45]];
var LD_WCheckMapL6 = [[6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6], [3, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3], [3, 0, 0, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31], [31, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31], [31, 0, 49, 35, 10, 37, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31], [31, 0, 0, 0, 0, 0, 48, 0, 0, 0, 50, 35, 10, 10, 10, 10, 10, 37, 0, 31], [31, 0, 0, 0, 0, 0, 48, 35, 10, 37, 48, 0, 0, 0, 0, 0, 0, 0, 0, 31], [31, 45, 45, 21, 0, 0, 48, 0, 0, 0, 49, 35, 10, 37, 0, 0, 19, 45, 45, 31], [45, 45, 37, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 45, 45], [45, 40, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39, 45], [45, 45, 45, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 45, 45, 45]];
var LD_CheckMapL5 = [[2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2], [2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2], [2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 3, 2, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 3, 2, 1, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
var LD_WBlockImgL5 = [[45, 45, 45, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 45, 45, 45], [45, 45, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 45, 45], [45, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 45], [31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31], [31, 0, 50, 35, 10, 10, 10, 10, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31], [31, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31], [31, 0, 48, 0, 0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31], [31, 0, 49, 35, 10, 37, 50, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31], [31, 0, 0, 0, 0, 0, 48, 0, 49, 0, 50, 35, 10, 10, 10, 10, 10, 37, 0, 31], [31, 0, 0, 0, 0, 0, 48, 35, 10, 37, 48, 0, 0, 0, 0, 0, 0, 0, 0, 31], [31, 45, 45, 21, 0, 0, 48, 0, 0, 0, 49, 35, 10, 37, 0, 0, 19, 45, 45, 31], [45, 45, 37, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 45, 45], [45, 40, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39, 45], [45, 45, 45, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 45, 45, 45]];
var LD_WCheckMapL5 = [[2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2], [2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 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0, 0, 0, 0, 0, 6, 10, 10, 10, 9, 48, 0], [0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 0, 0, 35, 10, 10, 37, 0, 0, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 39, 10, 10, 10, 10, 10, 10, 10, 10, 40, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 35, 41, 41, 10, 10, 10, 10, 41, 41, 37, 0, 0, 0, 48, 0], [0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]];
var LD_CheckMapL4 = [[0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0], [0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0], [0, 3, 1, 1, 2, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 2, 1, 1, 3, 0], [0, 3, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 3, 0], [0, 3, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 3, 0], [0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0], [0, 3, 0, 0, 0, 0, 0, 0, 2, 1, 1, 2, 0, 0, 0, 0, 0, 0, 3, 0], [0, 3, 0, 0, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 4], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
var LD_WBlockImgL4 = [[0, 0, 53, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 54, 0, 0], [0, 50, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 50, 0], [0, 48, 7, 10, 41, 41, 40, 0, 0, 0, 0, 0, 0, 39, 41, 41, 10, 8, 48, 0], [0, 48, 11, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 11, 48, 0], [0, 48, 6, 10, 10, 10, 9, 0, 0, 0, 0, 0, 0, 6, 10, 10, 10, 9, 48, 0], [0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 0, 0, 35, 10, 10, 37, 0, 0, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 39, 10, 10, 10, 10, 10, 10, 10, 10, 40, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 35, 41, 41, 10, 10, 10, 10, 41, 41, 37, 0, 0, 0, 48, 0], [0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]];
var LD_WCheckMapL4 = [[0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0], [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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 42, 0, 0, 42, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 42, 0, 0, 42, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 42, 0, 0, 42, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 6, 10, 10, 9, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 0, 0, 0, 0, 48, 0, 35, 10, 37, 50, 35, 10, 10, 10, 37, 50, 0, 44], [46, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 48, 0, 44], [46, 0, 50, 35, 41, 37, 49, 0, 50, 35, 37, 49, 0, 0, 0, 0, 0, 48, 0, 44], [46, 0, 48, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 35, 41, 37, 0, 48, 0, 44], [46, 0, 49, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 44], [43, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 43]];
var LD_CheckMapL3 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 2, 1, 1, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 2, 0, 0, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 2, 0, 0, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 2, 0, 0, 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0, 0, 0, 0, 0, 2, 0, 4, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
var LD_WBlockImgL3 = [[45, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 45], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 44, 10, 10, 45, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 42, 0, 0, 42, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 42, 0, 0, 42, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 42, 0, 0, 42, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 6, 10, 10, 9, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 0, 0, 0, 0, 48, 0, 35, 10, 37, 50, 35, 10, 10, 10, 37, 50, 0, 44], [46, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 48, 0, 44], [46, 0, 50, 35, 41, 37, 49, 0, 50, 35, 37, 49, 0, 0, 0, 0, 0, 48, 0, 44], [46, 0, 48, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 35, 41, 37, 0, 48, 0, 44], [46, 0, 49, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 44], [43, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 43]];
var LD_WCheckMapL3 = [[2, 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0, 0, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 39, 45, 45, 40, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 39, 45, 45, 40, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 38, 41, 41, 37, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 0, 51, 51, 0, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 19, 10, 41, 45, 45, 41, 10, 21, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 50, 39, 40, 50, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 48, 39, 40, 48, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 48, 38, 37, 48, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 48, 0, 0, 48, 0, 0, 0, 0, 0, 0, 48, 29], [31, 49, 0, 0, 0, 51, 39, 40, 49, 0, 0, 49, 39, 40, 51, 0, 0, 0, 49, 29], [28, 14, 14, 14, 14, 14, 12, 12, 14, 14, 14, 14, 12, 12, 14, 14, 14, 14, 14, 28]];
var LD_CheckMapL2 = [[2, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 2], [2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2], [2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2], [2, 3, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 3, 2], [2, 3, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 3, 2], [2, 3, 0, 0, 0, 0, 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0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
var LD_WBlockImgL2 = [[24, 50, 53, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 54, 50, 23], [31, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 50, 0, 0, 39, 45, 45, 40, 0, 0, 50, 0, 0, 0, 48, 29], [31, 48, 51, 51, 51, 49, 0, 0, 39, 45, 45, 40, 0, 0, 49, 51, 51, 51, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 38, 41, 41, 37, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 0, 51, 51, 0, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 19, 10, 41, 45, 45, 41, 10, 21, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 50, 39, 40, 50, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 48, 39, 40, 48, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 48, 38, 37, 48, 0, 0, 0, 0, 0, 0, 48, 29], [31, 48, 0, 0, 0, 0, 0, 0, 48, 0, 0, 48, 0, 0, 0, 0, 0, 0, 48, 29], [31, 49, 0, 0, 0, 51, 39, 40, 49, 0, 0, 49, 39, 40, 51, 0, 0, 0, 49, 29], [28, 14, 14, 14, 14, 14, 12, 12,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0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 38, 41, 41, 37, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [10, 10, 10, 21, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 48, 38, 10, 37, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 38, 41, 41, 37, 48, 0, 0, 0, 48, 38, 10, 37, 50, 38, 10, 37, 0, 0], [0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 48, 38, 10, 37, 49, 0, 0, 0, 48, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0], [14, 14, 14, 14, 14, 45, 45, 45, 14, 14, 14, 14, 14, 45, 45, 45, 14, 14, 14, 14]];
var LD_CheckMapL1 = [[5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 2, 2, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 3, 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 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0], [14, 14, 14, 14, 14, 45, 45, 45, 14, 14, 14, 14, 14, 45, 45, 45, 14, 14, 14, 14]];
var LD_WCheckMapL1 = [[5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 2, 2, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 3, 2, 1, 2, 3, 0, 0, 0, 6, 0, 0, 0, 0, 0], [0, 0, 2, 2, 2, 2, 3, 0, 0, 0, 3, 2, 1, 2, 3, 2, 1, 2, 0, 0], [0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 3, 2, 1, 2, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1]];
var MABSnd = new Sound();
MABSnd.attachSound("003_activatebutton");
var MCBSnd = new Sound();
MCBSnd.attachSound("005_clickbutton");
var MSSSnd = new Sound();
MSSSnd.attachSound("007_switchscreen1");
var MESnd = new Sound();
MESnd.attachSound("006_error");
var gameover_Snd = new Sound();
gameover_Snd.attachSound("gameover");
var getgem1_Snd = new Sound();
getgem1_Snd.attachSound("getgem1");
var getgem2_Snd = new Sound();
getgem2_Snd.attachSound("getgem2");
var getgem3_Snd = new Sound();
getgem3_Snd.attachSound("getgem3");
var getgem4_Snd = new Sound();
getgem4_Snd.attachSound("getgem4");
var getlifebonus_Snd = new Sound();
getlifebonus_Snd.attachSound("getlifebonus");
var getscorebonus1_Snd = new Sound();
getscorebonus1_Snd.attachSound("getscorebonus1");
var getscorebonus2_Snd = new Sound();
getscorebonus2_Snd.attachSound("getscorebonus2");
var getscorebonus3_Snd = new Sound();
getscorebonus3_Snd.attachSound("getscorebonus3");
var getscorebonus4_Snd = new Sound();
getscorebonus4_Snd.attachSound("getscorebonus4");
var hero_appear_Snd = new Sound();
hero_appear_Snd.attachSound("hero_appear");
var hero_death2_Snd = new Sound();
hero_death2_Snd.attachSound("hero_death2");
var hero_dig_Snd = new Sound();
hero_dig_Snd.attachSound("hero_dig");
var hero_exit_Snd = new Sound();
hero_exit_Snd.attachSound("hero_exit");
var hero_landing_Snd = new Sound();
hero_landing_Snd.attachSound("hero_landing");
var hints_appear_Snd = new Sound();
hints_appear_Snd.attachSound("hints_appear");
var lastgem_Snd = new Sound();
lastgem_Snd.attachSound("lastgem");
var levelcompleted_Snd = new Sound();
levelcompleted_Snd.attachSound("levelcompleted");
var CurrentScore;
var CurrentLevel;
var Lives;
var Gems;
Frame 2
function ef_go() {
progress.setprogress((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (this.getBytesLoaded() == this.getBytesTotal()) {
this.onEnterFrame = undefined;
_root.gotoAndStop("Menu");
}
}
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;
var so = SharedObject.getLocal("temp");
var inf = new Object();
inf.flag = "inf";
inf.level = 0;
if (so.data.content.flag == "inf") {
inf.level = so.data.content.level;
}
Frame 3
stop();
Frame 9
var cnt = 0;
_test.onPress = function () {
if (cnt == 0) {
cnt++;
} else if (cnt == 1) {
cnt = 0;
}
};
stop();
Lives = GD_LIVES;
gamedy.init(CurrentLevel);
gamedy.start();
Frame 10
stop();
GotoDownload = function () {
if (_root.link != undefined) {
getURL (link, "_blank");
} else {
getURL ("http://www.alawar.com/download/SnowyTreasureHunter2.exe", "_blank");
}
if (_root.dload_f != undefined) {
cstr = ("JavaScript:" + dload_f) + "()";
getURL (cstr);
}
};
Symbol 542 MovieClip [_g_9] Frame 32
gotoAndPlay ("Loop");
Symbol 542 MovieClip [_g_9] Frame 64
stop();
removeMovieClip(this);
Symbol 1166 MovieClip [eff_foamww] Frame 1
var sy;
var sz;
Symbol 1170 MovieClip [_dust_effect] Frame 25
this.removeMovieClip();
Symbol 1171 MovieClip [_gems_effect] Frame 1
function ef_move() {
if (Cnt < DSTEPS) {
i = 0;
while (i < STARS) {
this["star_" + i]._x = this["star_" + i]._x + (this["star_" + i].tx / DSTEPS);
this["star_" + i]._y = this["star_" + i]._y + (this["star_" + i].ty / DSTEPS);
if (Cnt <= AL1) {
this["star_" + i]._alpha = this["star_" + i]._alpha + (100 / AL1);
}
if (Cnt >= AL2) {
this["star_" + i]._alpha = this["star_" + i]._alpha - (100 / (DSTEPS - AL2));
this["star_" + i]._rotation = this["star_" + i]._rotation - as;
}
i++;
}
if (Cnt >= AL2) {
this._rotation = this._rotation + as;
}
Cnt++;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
}
var STARS = 16;
var DISTANCE = 30;
var DELTA = 7;
var ADELTA = 0.7;
var DSTEPS = 12;
var ASPEED = 3;
var AL1 = 6;
var AL2 = 7;
var Cnt = 0;
var i;
var tmp;
var as;
i = 0;
while (i < STARS) {
this.attachMovie("_star_effect", "star_" + i, this.getNextHighestDepth());
this["star_" + i]._xscale = 80 + (50 * Math.random());
this["star_" + i]._yscale = this["star_" + i]._xscale;
this["star_" + i]._x = 0;
this["star_" + i]._y = 0;
tmp = (ADELTA / 2) - (ADELTA * Math.random());
this["star_" + i].tx = (DISTANCE * Math.cos((((Math.PI*2) / STARS) * i) + tmp)) + (DELTA * Math.random());
this["star_" + i].ty = (DISTANCE * Math.sin((((Math.PI*2) / STARS) * i) + tmp)) + (DELTA * Math.random());
this["star_" + i]._alpha = 0;
i++;
}
as = ASPEED - (ASPEED * Math.random());
this.onEnterFrame = ef_move;
Symbol 1172 MovieClip [_block_effect2] Frame 1
function hide() {
Cnt = 0;
this.onEnterFrame = ef_hide;
}
function show() {
Cnt = 32;
this.onEnterFrame = ef_show;
}
function ef_hide() {
Cnt = Cnt + STEP;
var _local3 = 0;
while (_local3 < LLEN) {
if (this[("f_" + (LLEN * Cnt)) + _local3] == undefined) {
this.attachMovie("eff_foamww", String(("f_" + (LLEN * Cnt)) + _local3), this.getNextHighestDepth());
}
this[String(("f_" + (LLEN * Cnt)) + _local3)].onEnterFrame = ef_foam;
_local3++;
}
if (Cnt > 32) {
for (each in this) {
removeMovieClip(each);
}
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y + _root.BLOCKSIZEY;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._height = 0;
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y - _root.gamedy.dig.DELTA;
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._height = _root.BLOCKSIZEY + (_root.gamedy.dig.DELTA * 2);
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y - _root.gamedy.dig.DELTA;
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height = _root.BLOCKSIZEY + (_root.gamedy.dig.DELTA * 2);
this.onEnterFrame = undefined;
}
}
function ef_show() {
Cnt = Cnt - STEP;
var _local2 = 0;
while (_local2 < LLEN) {
this.attachMovie("eff_foamww", String(("f_" + (LLEN * Cnt)) + _local2), this.getNextHighestDepth());
this[String(("f_" + (LLEN * Cnt)) + _local2)].onEnterFrame = ef_foam;
_local2++;
}
if (Cnt < 0) {
for (each in this) {
removeMovieClip(each);
}
this.onEnterFrame = undefined;
this.removeMovieClip();
}
}
function ef_foam() {
if ((this._xscale - this.sz) >= 0) {
this._xscale = this._xscale - this.sz;
this._yscale = this._xscale;
this._y = this._y - this.sy;
} else {
removeMovieClip(this);
}
}
var STEP = 4;
var LLEN = 5;
var Cnt;
hide();
Symbol 1173 MovieClip [_block_effect] Frame 1
function hide() {
_parent[(("E2" + eyn) + "_") + exn].hide();
Cnt = 0;
this.onEnterFrame = ef_hide;
}
function show() {
_parent[(("E2" + eyn) + "_") + exn].show();
Cnt = 32;
if (_root.CheckMapL1[eyn + 1][exn] == -1) {
_root.gamedy.dig[(("D" + (eyn + 1)) + "_") + exn].su = true;
_root.gamedy.dig[(("D" + (eyn + 1)) + "_") + exn].refresh();
}
this.onEnterFrame = ef_show;
}
function ef_hide() {
Cnt = Cnt + STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._y + STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._height = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._height - STEP;
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._height = _root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._height + STEP;
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height = _root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height + STEP;
var _local4 = 0;
while (_local4 < LLEN) {
if (this[("f_" + (LLEN * Cnt)) + _local4] == undefined) {
this.attachMovie("eff_foamb", String(("f_" + (LLEN * Cnt)) + _local4), this.getNextHighestDepth());
}
this[String(("f_" + (LLEN * Cnt)) + _local4)]._y = Cnt - 2;
this[String(("f_" + (LLEN * Cnt)) + _local4)]._x = Math.floor(Math.random() * _root.BLOCKSIZEX);
this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale = 50 + Math.floor(Math.random() * 50);
this[String(("f_" + (LLEN * Cnt)) + _local4)]._yscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale;
this[String(("f_" + (LLEN * Cnt)) + _local4)].onEnterFrame = ef_foam;
this[String(("f_" + (LLEN * Cnt)) + _local4)].sy = 0.5 + Math.floor(Math.random() * 3);
this[String(("f_" + (LLEN * Cnt)) + _local4)].sz = 6 + Math.floor((Math.random() * 3) * this[String(("f_" + (LLEN * Cnt)) + _local4)].sy);
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._y = this[String(("f_" + (LLEN * Cnt)) + _local4)]._y;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._x = this[String(("f_" + (LLEN * Cnt)) + _local4)]._x;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._xscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._yscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._yscale;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)].sy = this[String(("f_" + (LLEN * Cnt)) + _local4)].sy;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)].sz = this[String(("f_" + (LLEN * Cnt)) + _local4)].sz;
_local4++;
}
if (Cnt > 32) {
for (each in this) {
removeMovieClip(each);
}
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y + _root.BLOCKSIZEY;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._height = 0;
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y - _root.gamedy.dig.DELTA;
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._height = _root.BLOCKSIZEY + (_root.gamedy.dig.DELTA * 2);
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y - _root.gamedy.dig.DELTA;
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height = _root.BLOCKSIZEY + (_root.gamedy.dig.DELTA * 2);
this.onEnterFrame = undefined;
}
}
function ef_show() {
Cnt = Cnt - STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._y - STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._height = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._height + STEP;
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._height = _root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._height - STEP;
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height = _root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height - STEP;
var _local4 = 0;
while (_local4 < LLEN) {
this.attachMovie("eff_foamb", String(("f_" + (LLEN * Cnt)) + _local4), this.getNextHighestDepth());
this[String(("f_" + (LLEN * Cnt)) + _local4)]._y = Cnt - 2;
this[String(("f_" + (LLEN * Cnt)) + _local4)]._x = Math.floor(Math.random() * _root.BLOCKSIZEX);
this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale = 50 + Math.floor(Math.random() * 50);
this[String(("f_" + (LLEN * Cnt)) + _local4)]._yscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale;
this[String(("f_" + (LLEN * Cnt)) + _local4)].onEnterFrame = ef_foam;
this[String(("f_" + (LLEN * Cnt)) + _local4)].sy = 0.5 + Math.floor(Math.random() * 2);
this[String(("f_" + (LLEN * Cnt)) + _local4)].sz = 6 + Math.floor(Math.random() * 4);
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._y = this[String(("f_" + (LLEN * Cnt)) + _local4)]._y;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._x = this[String(("f_" + (LLEN * Cnt)) + _local4)]._x;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._xscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._yscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._yscale;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)].sy = this[String(("f_" + (LLEN * Cnt)) + _local4)].sy;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)].sz = this[String(("f_" + (LLEN * Cnt)) + _local4)].sz;
_local4++;
}
if (Cnt < 0) {
for (each in this) {
removeMovieClip(each);
}
_root.gamedy.map[(("B" + eyn) + "_") + exn].setMask(null);
_root.gamedy.map[(("DM" + eyn) + "_") + exn].removeMovieClip();
_root.gamedy.dig[(("D" + eyn) + "_") + exn].setMask(null);
_root.gamedy.dig.refresh(_root.CheckMapL1);
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn].removeMovieClip();
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn].removeMovieClip();
this.onEnterFrame = undefined;
this.removeMovieClip();
}
}
function ef_foam() {
if ((this._xscale - this.sz) >= 0) {
this._xscale = this._xscale - this.sz;
this._yscale = this._xscale;
this._y = this._y - this.sy;
} else {
removeMovieClip(this);
}
}
var STEP = 4;
var LLEN = 5;
var Cnt;
hide();
Symbol 1175 MovieClip [eff_foamw] Frame 1
var sy;
var sz;
Symbol 1180 MovieClip [_dig2_] Frame 1
function refresh() {
if (sl) {
ldig._visible = true;
} else {
ldig._visible = false;
}
if (sr) {
rdig._visible = true;
} else {
rdig._visible = false;
}
if (su) {
udig._visible = true;
} else {
udig._visible = false;
}
if (sd) {
ddig._visible = true;
} else {
ddig._visible = false;
}
}
var sl;
var sr;
var su;
var sd;
refresh();
Symbol 1188 MovieClip [_dig_] Frame 1
function refresh() {
if (sl) {
ldig._visible = true;
} else {
ldig._visible = false;
}
if (sr) {
rdig._visible = true;
} else {
rdig._visible = false;
}
if (su) {
udig._visible = true;
} else {
udig._visible = false;
}
if (sd) {
ddig._visible = true;
} else {
ddig._visible = false;
}
}
var sl;
var sr;
var su;
var sd;
refresh();
Symbol 1201 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 1203 MovieClip Frame 1
function init() {
text1.init();
text1.ALPHA = 75;
text2.init();
text2.ALPHA = 15;
}
function start() {
text1.start();
text2.start();
}
Symbol 1207 MovieClip Frame 1
FirstTime = true;
Symbol 1207 MovieClip Frame 28
if (FirstTime) {
stop();
FirstTime = false;
}
Symbol 1207 MovieClip Frame 55
gotoAndPlay (2);
Symbol 1227 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 1233 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 1238 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 1272 MovieClip Frame 1
if (_root.alawar_f == undefined) {
barrow._visible = false;
} else {
barrow._visible = true;
}
Symbol 1273 MovieClip Frame 1
function show() {
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._alpha < 100) {
this._alpha = this._alpha + STEP;
} else {
this._alpha = 100;
this.onEnterFrame = undefined;
}
}
function hide() {
this.onEnterFrame = ef_hide;
}
function ef_hide() {
if (this._alpha > 0) {
this._alpha = this._alpha - STEP;
} else {
this._alpha = 0;
this.onEnterFrame = undefined;
}
}
var STEP = 8;
Symbol 1284 MovieClip Frame 1
if (_root.alawar_f == undefined) {
barrow._visible = false;
} else {
barrow._visible = true;
}
Symbol 1285 MovieClip Frame 1
function show() {
this._visible = true;
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._alpha < 100) {
this._alpha = this._alpha + STEP;
} else {
this._alpha = 100;
this.onEnterFrame = undefined;
}
}
function hide() {
this.onEnterFrame = ef_hide;
}
function ef_hide() {
if (this._alpha > 0) {
this._alpha = this._alpha - STEP;
} else {
this._alpha = 0;
this.onEnterFrame = undefined;
}
}
var STEP = 8;
Symbol 1312 MovieClip Frame 1
slbtnleft.onRollOver = function () {
_root.MABSnd.start();
};
slbtnright.onRollOver = function () {
_root.MABSnd.start();
};
slbtnleft.onPress = function () {
_root.MCBSnd.start();
this._parent.prevFrame();
};
slbtnright.onPress = function () {
_root.MCBSnd.start();
this._parent.nextFrame();
};
stop();
slbtnleft._visible = false;
slbtnright._visible = true;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1312 MovieClip Frame 2
stop();
slbtnleft._visible = true;
slbtnright._visible = true;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1312 MovieClip Frame 3
stop();
slbtnleft._visible = true;
slbtnright._visible = true;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1312 MovieClip Frame 4
stop();
slbtnleft._visible = true;
slbtnright._visible = true;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1312 MovieClip Frame 5
stop();
slbtnleft._visible = true;
slbtnright._visible = true;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1312 MovieClip Frame 6
stop();
slbtnleft._visible = true;
slbtnright._visible = false;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1321 MovieClip Frame 1
function show() {
this._visible = true;
this._alpha = 0;
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._alpha < 100) {
this._alpha = this._alpha + HSTEP;
} else {
this._alpha = 0;
this._visible = false;
this.onEnterFrame = undefined;
_root.gotoAndStop("Game");
}
}
var HSTEP = 18;
Symbol 1335 MovieClip Frame 1
dload.onRollOver = function () {
_root.MABSnd.start();
};
swbtndown.onRollOver = function () {
_root.MABSnd.start();
};
swbtnup.onRollOver = function () {
_root.MABSnd.start();
};
startbtn.onRollOver = function () {
_root.MABSnd.start();
};
cancelbtn.onRollOver = function () {
_root.MABSnd.start();
};
swbtndown.onPress = function () {
_root.MCBSnd.start();
this._parent.nextFrame();
};
swbtnup.onPress = function () {
_root.MCBSnd.start();
this._parent.prevFrame();
};
startbtn.onPress = function () {
_root.MCBSnd.start();
_root.CurrentLevel = ls._currentframe;
_root.CurrentScore = 0;
shadow.show();
};
cancelbtn.onPress = function () {
_root.MCBSnd.start();
this._parent._parent.gotoAndStop("MMenu");
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.gotoAndStop("Download");
};
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
stop();
swbtnup._visible = false;
swbtndown._visible = true;
if (firstttime == undefined) {
swext._alpha = 0;
swext._visible = false;
firstttime = false;
} else {
swext.hide();
}
ls._visible = true;
shadow._visible = false;
Symbol 1335 MovieClip Frame 2
stop();
swbtnup._visible = true;
swbtndown._visible = true;
swext._alpha = 60;
swext.show();
ls._visible = false;
Symbol 1335 MovieClip Frame 3
stop();
swbtnup._visible = true;
swbtndown._visible = true;
swext._alpha = 60;
swext.show();
ls._visible = false;
Symbol 1335 MovieClip Frame 4
stop();
swbtnup._visible = true;
swbtndown._visible = false;
swext._alpha = 60;
swext.show();
ls._visible = false;
Symbol 1336 MovieClip Frame 1
stop();
mmplay.onRollOver = function () {
_root.MABSnd.start();
};
mmexit.onRollOver = function () {
_root.MABSnd.start();
};
dload.onRollOver = function () {
_root.MABSnd.start();
};
mmplay.onPress = function () {
_root.menu.play();
_root.MSSSnd.start();
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.gotoAndStop("Download");
};
mmexit.onPress = function () {
fscommand ("quit");
if (_root.close_f != undefined) {
cstr = ("JavaScript:" + _root.close_f) + "()";
getURL (cstr);
}
_root.MCBSnd.start();
};
if (_root.close_f == undefined) {
mmexit._visible = false;
} else {
mmexit._visible = true;
}
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Symbol 1336 MovieClip Frame 8
stop();
sgext._alpha = 0;
sgtfk.onRollOver = function () {
_root.MABSnd.start();
};
sgsc.onPress = function () {
_root.MESnd.start();
};
dload.onRollOver = function () {
_root.MABSnd.start();
};
sgsc.onRollOver = function () {
this._parent.sgext.show();
_root.MABSnd.start();
};
sgsc.onRollOut = function () {
this._parent.sgext.hide();
};
sgtfk.onPress = function () {
_root.menu.play();
_root.MSSSnd.start();
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.gotoAndStop("Download");
};
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Symbol 1336 MovieClip Frame 15
stop();
Symbol 1340 MovieClip Frame 1
function clear() {
Ecnt = 0;
Status = "_CLEAR";
var _local2;
for (_local2 in this) {
removeMovieClip(_local2);
}
}
function show(blockimg) {
var _local4;
var _local3;
Status = "_SHOW";
_local4 = 0;
while (_local4 < _root.BLOCKNUMY) {
_local3 = 0;
while (_local3 < _root.BLOCKNUMX) {
if (blockimg[_local4][_local3] > 0) {
this.attachMovie(String("_g_" + blockimg[_local4][_local3]), String((("G" + _local4) + "_") + _local3), this.getNextHighestDepth());
this[(("G" + _local4) + "_") + _local3]._x = (_local3 * _root.BLOCKSIZEX) + OFFSETX;
this[(("G" + _local4) + "_") + _local3]._y = (_local4 * _root.BLOCKSIZEY) + OFFSETY;
this[(("G" + _local4) + "_") + _local3].gotoAndPlay(Math.ceil(Math.random() * 20));
}
_local3++;
}
_local4++;
}
}
function removegem(xn, yn, blockimg) {
blockimg[yn][xn] = 0;
removeMovieClip(this[(("G" + yn) + "_") + xn]);
_parent.dig.attachMovie("_gems_effect", "ge_" + Ecnt, _parent.dig.getNextHighestDepth());
_parent.dig["ge_" + Ecnt]._x = (xn * _root.BLOCKSIZEX) + (_root.BLOCKSIZEX / 2);
_parent.dig["ge_" + Ecnt]._y = ((yn * _root.BLOCKSIZEY) + (_root.BLOCKSIZEY / 2)) - 6;
Ecnt++;
}
function removepointer(xn, yn, blockimg) {
blockimg[yn][xn] = 0;
this[(("G" + yn) + "_") + xn].gotoAndPlay("Remove");
}
var OFFSETX = -10;
var OFFSETY = -12;
var Status;
var Ecnt;
Symbol 1341 MovieClip Frame 1
function clear() {
Ecnt = 0;
Hide_f = false;
Status = "_CLEAR";
var _local3;
for (each in this) {
var _local2 = this[each];
if (_local2._name.slice(0, 3) == "BNS") {
removeMovieClip(_local2);
}
}
}
function show(blockimg) {
var _local4;
var _local3;
var _local5;
Cnt = 0;
ObjCnt = 0;
Status = "_SHOW";
_local4 = 0;
while (_local4 < _root.BLOCKNUMY) {
_local3 = 0;
while (_local3 < _root.BLOCKNUMX) {
if (blockimg[_local4][_local3] > 0) {
this.attachMovie(String("_bns_" + blockimg[_local4][_local3]), String((("BNS" + _local4) + "_") + _local3), this.getNextHighestDepth());
this[(("BNS" + _local4) + "_") + _local3].ni = _local4;
this[(("BNS" + _local4) + "_") + _local3].nj = _local3;
this[(("BNS" + _local4) + "_") + _local3]._xscale = 30;
this[(("BNS" + _local4) + "_") + _local3]._yscale = 30;
_local5 = (51 - this[(("BNS" + _local4) + "_") + _local3]._width) / 2;
this[(("BNS" + _local4) + "_") + _local3]._x = ((_local3 * _root.BLOCKSIZEX) + OFFSETX) + _local5;
this[(("BNS" + _local4) + "_") + _local3]._y = ((_local4 * _root.BLOCKSIZEY) + OFFSETY) + _local5;
this[(("BNS" + _local4) + "_") + _local3].gotoAndPlay(Math.ceil(Math.random() * 20));
ObjCnt++;
}
_local3++;
}
_local4++;
}
this.onEnterFrame = ef_show;
}
function ef_show() {
Cnt++;
var _local8;
var _local7;
var _local6;
var _local4;
var _local5 = 0;
if (!Hide_f) {
for (_local6 in this) {
var _local3 = this[_local6];
if ((_local3._name.slice(0, 3) == "BNS") && (_local3._xscale < 100)) {
_local3._xscale = _local3._xscale + SSTEP;
_local3._yscale = _local3._yscale + SSTEP;
_local4 = (51 - _local3._width) / 2;
_local3._x = ((_local3.nj * _root.BLOCKSIZEX) + OFFSETX) + _local4;
_local3._y = ((_local3.ni * _root.BLOCKSIZEY) + OFFSETY) + _local4;
} else if ((_local3._name.slice(0, 3) == "BNS") && (_local3._xscale >= 100)) {
_local3._xscale = 100;
_local3._yscale = 100;
_local3._x = (_local7 * _root.BLOCKSIZEX) + OFFSETX;
_local3._y = (_local8 * _root.BLOCKSIZEY) + OFFSETY;
_local5++;
if (_local5 == ObjCnt) {
Hide_f = true;
}
}
}
} else if (Cnt > SHOWTIME) {
for (_local6 in this) {
var _local3 = this[_local6];
if ((_local3._name.slice(0, 3) == "BNS") && (_local3._xscale > 10)) {
_local3._xscale = _local3._xscale - SSTEP;
_local3._yscale = _local3._yscale - SSTEP;
_local4 = (51 - _local3._width) / 2;
_local3._x = ((_local3.nj * _root.BLOCKSIZEX) + OFFSETX) + _local4;
_local3._y = ((_local3.ni * _root.BLOCKSIZEY) + OFFSETY) + _local4;
} else if ((_local3._name.slice(0, 3) == "BNS") && (_local3._xscale <= 10)) {
removeMovieClip(_local3);
_local5++;
if (_local5 == ObjCnt) {
_root.win_f = false;
this.onEnterFrame = undefined;
}
}
}
}
}
function removebonus(xn, yn, blockimg) {
_parent.dig.attachMovie("_gems_effect", "be_" + Ecnt, _parent.dig.getNextHighestDepth());
_parent.dig["be_" + Ecnt]._x = (xn * _root.BLOCKSIZEX) + (_root.BLOCKSIZEX / 2);
_parent.dig["be_" + Ecnt]._y = ((yn * _root.BLOCKSIZEY) + (_root.BLOCKSIZEY / 2)) - 6;
var _local6 = new Color(_parent.dig["be_" + Ecnt]);
_local6.setRGB(_root.CLR_BONUS[blockimg[yn][xn] - 1]);
Ecnt++;
blockimg[yn][xn] = 0;
removeMovieClip(this[(("BNS" + yn) + "_") + xn]);
ObjCnt--;
}
var OFFSETX = -10;
var OFFSETY = -12;
var SSTEP = 7;
var SHOWTIME = 270;
var Cnt;
var Ecnt;
var Status;
var ObjCnt;
var Hide_f = false;
Symbol 1342 MovieClip Frame 1
function clear() {
_root.gamedy.effect.clear();
Status = "_CLEAR";
var _local3 = this[each];
for (each in this) {
_local3 = this[each];
removeMovieClip(_local3);
}
}
function show(blockimg) {
var _local4;
var _local3;
_local4 = 0;
while (_local4 < dCnt.lenght) {
dCnt.shift();
dXn.shift();
dYn.shift();
_local4++;
}
Status = "_SHOW";
_local4 = 0;
while (_local4 < _root.BLOCKNUMY) {
_local3 = 0;
while (_local3 < _root.BLOCKNUMX) {
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.BLOCKSIZEX;
this[(("B" + _local4) + "_") + _local3]._y = _local4 * _root.BLOCKSIZEY;
}
_local3++;
}
_local4++;
}
this.onEnterFrame = ef_undig;
}
function dig(xn, yn) {
_root.gamedy.effect.seteffect(yn, xn);
this.attachMovie("_digmask_", String((("DM" + yn) + "_") + xn), this.getNextHighestDepth());
this[(("DM" + yn) + "_") + xn]._width = _root.BLOCKSIZEX;
this[(("DM" + yn) + "_") + xn]._height = _root.BLOCKSIZEY;
this[(("DM" + yn) + "_") + xn]._x = xn * _root.BLOCKSIZEX;
this[(("DM" + yn) + "_") + xn]._y = yn * _root.BLOCKSIZEY;
this[(("B" + yn) + "_") + xn].setMask(this[(("DM" + yn) + "_") + xn]);
_root.CheckMapL1[yn][xn] = -1;
dXn.push(xn);
dYn.push(yn);
dCnt.push(TIME * FPS);
_parent.dig.refresh(_root.CheckMapL1);
_parent.dig.setmask(yn, xn);
}
function ef_undig() {
var _local2;
var _local3;
var _local4;
_local2 = 0;
while (_local2 < dCnt.length) {
dCnt[_local2]--;
if (dCnt[_local2] <= 0) {
dCnt.shift();
_local3 = dXn.shift();
_local4 = dYn.shift();
_root.CheckMapL1[_local4][_local3] = 1;
_root.gamedy.effect[(("E" + _local4) + "_") + _local3].show();
}
_local2++;
}
}
var TIME = 8;
var FPS = 22;
var Status;
var dCnt = new Array(50);
var dXn = new Array(50);
var dYn = new Array(50);
Symbol 1344 MovieClip Frame 1
function clear() {
var _local2 = new Object();
for (each in this) {
_local2 = this[each];
removeMovieClip(_local2);
}
}
function refresh(blockimg) {
_parent.dig2.refresh(blockimg);
var _local5;
var _local4;
_local5 = 0;
while (_local5 < _root.BLOCKNUMY) {
_local4 = 0;
while (_local4 < _root.BLOCKNUMX) {
if (blockimg[_local5][_local4] == -1) {
if (this[(("D" + _local5) + "_") + _local4] == undefined) {
this.attachMovie("_dig_", String((("D" + _local5) + "_") + _local4), this.getNextHighestDepth());
this.attachMovie("_dig2_", String((("D2" + _local5) + "_") + _local4), this.getNextHighestDepth());
}
this[(("D" + _local5) + "_") + _local4]._x = _local4 * _root.BLOCKSIZEX;
this[(("D" + _local5) + "_") + _local4]._y = _local5 * _root.BLOCKSIZEY;
this[(("D2" + _local5) + "_") + _local4]._x = this[(("D" + _local5) + "_") + _local4]._x;
this[(("D2" + _local5) + "_") + _local4]._y = this[(("D" + _local5) + "_") + _local4]._y;
if ((blockimg[_local5][_local4 + 1] == 1) || (blockimg[_local5][_local4 + 1] == 2)) {
this[(("D" + _local5) + "_") + _local4].sr = true;
this[(("D2" + _local5) + "_") + _local4].sr = true;
} else {
this[(("D" + _local5) + "_") + _local4].sr = false;
this[(("D2" + _local5) + "_") + _local4].sr = false;
}
if ((blockimg[_local5][_local4 - 1] == 1) || (blockimg[_local5][_local4 - 1] == 2)) {
this[(("D" + _local5) + "_") + _local4].sl = true;
this[(("D2" + _local5) + "_") + _local4].sl = true;
} else {
this[(("D" + _local5) + "_") + _local4].sl = false;
this[(("D2" + _local5) + "_") + _local4].sl = false;
}
if ((blockimg[_local5 - 1][_local4] == 1) || (blockimg[_local5 - 1][_local4] == 2)) {
this[(("D" + _local5) + "_") + _local4].su = true;
this[(("D2" + _local5) + "_") + _local4].su = true;
} else {
this[(("D" + _local5) + "_") + _local4].su = false;
this[(("D2" + _local5) + "_") + _local4].su = false;
}
if ((blockimg[_local5 + 1][_local4] == 1) || (blockimg[_local5 + 1][_local4] == 2)) {
this[(("D" + _local5) + "_") + _local4].sd = true;
this[(("D2" + _local5) + "_") + _local4].sd = true;
} else {
this[(("D" + _local5) + "_") + _local4].sd = false;
this[(("D2" + _local5) + "_") + _local4].sd = false;
}
this[(("D" + _local5) + "_") + _local4].refresh();
this[(("D2" + _local5) + "_") + _local4].refresh();
} else if (this[(("D" + _local5) + "_") + _local4] != undefined) {
removeMovieClip(this[(("D" + _local5) + "_") + _local4]);
removeMovieClip(this[(("D2" + _local5) + "_") + _local4]);
}
_local4++;
}
_local5++;
}
}
function setmask(yn, xn) {
this.attachMovie("_digmask_", String((("DDM" + yn) + "_") + xn), this.getNextHighestDepth());
this.attachMovie("_digmask_", String((("DDM2" + yn) + "_") + xn), this.getNextHighestDepth());
this[(("DDM" + yn) + "_") + xn]._width = _root.BLOCKSIZEX + (DELTA * 2);
this[(("DDM" + yn) + "_") + xn]._height = 0;
this[(("DDM" + yn) + "_") + xn]._x = (xn * _root.BLOCKSIZEX) - DELTA;
this[(("DDM" + yn) + "_") + xn]._y = yn * _root.BLOCKSIZEY;
this[(("DDM2" + yn) + "_") + xn]._width = this[(("DDM" + yn) + "_") + xn]._width;
this[(("DDM2" + yn) + "_") + xn]._height = this[(("DDM" + yn) + "_") + xn]._height;
this[(("DDM2" + yn) + "_") + xn]._x = this[(("DDM" + yn) + "_") + xn]._x;
this[(("DDM2" + yn) + "_") + xn]._y = this[(("DDM" + yn) + "_") + xn]._y;
this[(("D" + yn) + "_") + xn].setMask(this[(("DDM" + yn) + "_") + xn]);
this[(("D2" + yn) + "_") + xn].setMask(this[(("DDM2" + yn) + "_") + xn]);
}
var DELTA = 6;
Symbol 1345 MovieClip Frame 1
function clear() {
var _local2 = this[each];
for (each in this) {
_local2 = this[each];
removeMovieClip(_local2);
}
}
function seteffect(yn, xn) {
this.attachMovie("_block_effect", String((("E" + yn) + "_") + xn), this.getNextHighestDepth());
this.attachMovie("_block_effect2", String((("E2" + yn) + "_") + xn), this.getNextHighestDepth());
this[(("E" + yn) + "_") + xn]._x = xn * _root.BLOCKSIZEX;
this[(("E" + yn) + "_") + xn]._y = yn * _root.BLOCKSIZEY;
this[(("E" + yn) + "_") + xn].exn = xn;
this[(("E" + yn) + "_") + xn].eyn = yn;
this[(("E2" + yn) + "_") + xn]._x = this[(("E" + yn) + "_") + xn]._x;
this[(("E2" + yn) + "_") + xn]._y = this[(("E" + yn) + "_") + xn]._y;
this[(("E2" + yn) + "_") + xn].exn = this[(("E" + yn) + "_") + xn].exn;
this[(("E2" + yn) + "_") + xn].eyn = this[(("E" + yn) + "_") + xn].eyn;
}
Symbol 1492 MovieClip Frame 11
_parent._parent.dig();
Symbol 1492 MovieClip Frame 16
_parent._parent.gof();
Symbol 1526 MovieClip Frame 11
_parent._parent.dig();
Symbol 1526 MovieClip Frame 16
_parent._parent.gof();
Symbol 1559 MovieClip Frame 11
_parent._parent.dig();
Symbol 1559 MovieClip Frame 16
_parent._parent.gof();
Symbol 1592 MovieClip Frame 16
stop();
_parent._parent.snowygone();
Symbol 1625 MovieClip Frame 16
stop();
this._parent._parent._parent.snowydead();
Symbol 1626 MovieClip Frame 5
stop();
Symbol 1627 MovieClip Frame 5
stop();
Symbol 1628 MovieClip Frame 1
stop();
Symbol 1628 MovieClip Frame 2
stop();
Symbol 1628 MovieClip Frame 3
stop();
Symbol 1628 MovieClip Frame 4
stop();
Symbol 1628 MovieClip Frame 5
stop();
Symbol 1628 MovieClip Frame 6
stop();
Symbol 1628 MovieClip Frame 7
stop();
Symbol 1628 MovieClip Frame 8
stop();
Symbol 1628 MovieClip Frame 9
stop();
Symbol 1628 MovieClip Frame 10
stop();
Symbol 1628 MovieClip Frame 11
stop();
Symbol 1628 MovieClip Frame 12
stop();
Symbol 1628 MovieClip Frame 13
stop();
Symbol 1628 MovieClip Frame 14
stop();
Symbol 1628 MovieClip Frame 15
stop();
Symbol 1628 MovieClip Frame 16
stop();
Symbol 1628 MovieClip Frame 17
stop();
Symbol 1628 MovieClip Frame 18
stop();
Symbol 1628 MovieClip Frame 19
stop();
Symbol 1628 MovieClip Frame 20
stop();
Symbol 1628 MovieClip Frame 21
stop();
Symbol 1628 MovieClip Frame 22
stop();
Symbol 1628 MovieClip Frame 23
stop();
Symbol 1628 MovieClip Frame 24
stop();
Symbol 1628 MovieClip Frame 25
stop();
Symbol 1629 MovieClip Frame 1
function init(sx, sy) {
fall_f = false;
this._visible = false;
Status = "_RIGHT";
DigL_f = false;
DigR_f = false;
this._x = sx * _root.BLOCKSIZEX;
this._y = sy * _root.BLOCKSIZEY;
this.onEnterFrame = undefined;
_parent.onMouseDown = undefined;
_parent.onMouseUp = undefined;
}
function show() {
_root.hero_appear_Snd.start();
this._visible = true;
}
function start() {
_parent.onMouseDown = pressmouse;
_parent.onMouseUp = releasemouse;
this.onEnterFrame = ef_start;
}
function ef_start() {
var _local4;
var _local7;
var _local8;
var _local6;
var _local5;
if (mouse_f) {
checkmouse();
}
if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) {
_local6 = Key.isDown(37);
_local5 = Key.isDown(39);
_local7 = Key.isDown(38);
_local8 = Key.isDown(40);
} else {
_local6 = left_key;
_local5 = right_key;
_local7 = up_key;
_local8 = down_key;
}
if (_root.CheckMapL1[getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)][getxn(this._x)] == 1) {
this.onEnterFrame = undefined;
_root.hero_death2_Snd.start();
if (Status == "_RIGHT") {
dir.gotoAndStop("DeadL");
} else {
dir.gotoAndStop("DeadR");
}
return(undefined);
}
_local4 = _root.CheckGemsL1[getyn(this._y)][getxn(this._x)];
if ((_local4 != 0) && (_local4 != 9)) {
_root.gamedy.gems.removegem(getxn(this._x), getyn(this._y), _root.CheckGemsL1);
_root.gamedy.takegem(_local4);
}
_local4 = _root.CheckBonusesL1[getyn(this._y)][getxn(this._x)];
if (_root.win_f && (_local4 != 0)) {
_root.gamedy.bonuses.removebonus(getxn(this._x), getyn(this._y), _root.CheckBonusesL1);
_root.gamedy.takebonus(_local4);
}
if (_root.CheckMapL1[getyn(this._y)][getxn(this._x)] == 6) {
this.onEnterFrame = undefined;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
_root.hero_exit_Snd.start();
dir.gotoAndStop("Exit");
return(undefined);
}
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) != 3) {
if ((checkmap(getxn(this._x), getyn(this._y - (_root.BLOCKSIZEY / 2))) != 5) || (Stick_f && (this._y != (getyn(this._y) * _root.BLOCKSIZEY)))) {
_local4 = checkmap(getxn(this._x), getyn(this._y + (_root.BLOCKSIZEY / 2)));
if ((_local4 == 0) || (_local4 == 5)) {
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) + SYSTEP));
if ((_local4 == 0) || (_local4 == 5)) {
if (!fall_f) {
this.hero_fall_Snd.start();
fall_f = true;
}
Stick_f = false;
this._y = this._y + SYSTEP;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
if (Status == "_RIGHT") {
dir.gotoAndStop("FlyRight");
} else {
dir.gotoAndStop("FlyLeft");
}
return(undefined);
}
this._y = getyn(this._y) * _root.BLOCKSIZEY;
this.hero_fall_Snd.stop();
fall_f = false;
if (checkmap(getxn(this._x), getyn(this._y + (_root.BLOCKSIZEY / 2))) != 3) {
_parent.attachMovie("_dust_effect", "dust", _parent.getNextHighestDepth());
_parent.dust._x = this._x + DUSTX;
_parent.dust._y = this._y + DUSTY;
_root.hero_landing_Snd.start();
}
return(undefined);
}
} else if (!Stick_f) {
this._y = getyn(this._y) * _root.BLOCKSIZEY;
Stick_f = true;
return(undefined);
}
}
if (_local6 && (!_local5)) {
var _local9;
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("StickgoLeft");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("LiftLeft");
} else {
dir.gotoAndStop("GoLeft");
}
Status = "_LEFT";
if (checkmap(getxn(this._x), getyn(this._y) + 1) == 4) {
_local9 = SXSTEP / 2;
} else {
_local9 = SXSTEP;
}
_local4 = checkmap(getxn((this._x - (_root.BLOCKSIZEX / 2)) - _local9), getyn(this._y));
if (((_local4 == 0) || (_local4 == 3)) || (_local4 == 5)) {
this._x = this._x - _local9;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
} else {
this._x = getxn(this._x - (_root.BLOCKSIZEX / 2)) * _root.BLOCKSIZEX;
checkstand();
return(undefined);
}
}
if ((!_local6) && (_local5)) {
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("StickgoRight");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("LiftRight");
} else {
dir.gotoAndStop("GoRight");
}
Status = "_RIGHT";
if (checkmap(getxn(this._x), getyn(this._y) + 1) == 4) {
var _local9 = SXSTEP / 2;
} else {
var _local9 = SXSTEP;
}
_local4 = checkmap(getxn((this._x + (_root.BLOCKSIZEX / 2)) + _local9), getyn(this._y));
if (((_local4 == 0) || (_local4 == 3)) || (_local4 == 5)) {
this._x = this._x + _local9;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
} else {
this._x = getxn(this._x) * _root.BLOCKSIZEX;
checkstand();
return(undefined);
}
}
if (((!_local6) && (!_local5)) && (!(_local7 || (_local8)))) {
checkstand();
}
if (_local6 && (_local5)) {
checkstand();
return(undefined);
}
if ((((!_local8) && (_local7)) && (!_local6)) && (!_local5)) {
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8));
if ((_local4 != 0) && (_local4 != 5)) {
_local4 = checkmap(getxn(this._x), getyn((this._y - (_root.BLOCKSIZEY / 2)) - LUPSTEP));
if ((_local4 == 0) || (_local4 == 3)) {
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8)) == 3) {
dir.gotoAndStop("LiftUp");
}
this._y = this._y - LUPSTEP;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
// unexpected jump
}
this._y = getyn(this._y - (_root.BLOCKSIZEY / 2)) * _root.BLOCKSIZEY;
checkstand();
return(undefined);
}
checkstand();
return(undefined);
}
if (((_local8 && (!_local7)) && (!_local6)) && (!_local5)) {
if (Stick_f) {
tstep = SDOWNSTEP;
} else {
tstep = LDOWNSTEP;
}
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) + tstep));
if (((_local4 == 0) || (_local4 == 3)) || (_local4 == 5)) {
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8)) == 3) {
dir.gotoAndStop("LiftDown");
}
this._y = this._y + tstep;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
} else {
this._y = getyn(this._y) * _root.BLOCKSIZEY;
checkstand();
return(undefined);
}
}
if (Key.isDown(90) && (!Key.isDown(88))) {
this._x = getxn(this._x) * _root.BLOCKSIZEX;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
stopf();
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("DigSLeft");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("DigLLeft");
} else {
dir.gotoAndStop("DigLeft");
}
if ((checkmap(getxn(this._x) - 1, getyn(this._y) + 1) == 1) && ((checkmap(getxn(this._x) - 1, getyn(this._y)) == 0) || (checkmap(getxn(this._x) - 1, getyn(this._y)) == 5))) {
_root.hero_dig_Snd.start();
DigL_f = true;
}
}
if ((!Key.isDown(90)) && (Key.isDown(88))) {
this._x = getxn(this._x) * _root.BLOCKSIZEX;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
stopf();
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("DigSRight");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("DigLRight");
} else {
dir.gotoAndStop("DigRight");
}
if ((checkmap(getxn(this._x) + 1, getyn(this._y) + 1) == 1) && ((checkmap(getxn(this._x) + 1, getyn(this._y)) == 0) || (checkmap(getxn(this._x) + 1, getyn(this._y)) == 5))) {
_root.hero_dig_Snd.start();
DigR_f = true;
}
}
}
function checkmap(numx, numy) {
var _local2;
if ((((numx < 0) || (numx > _root.BLOCKNUMX)) || (numy < 0)) || (numy > _root.BLOCKNUMY)) {
_local2 = 2;
} else {
_local2 = _root.CheckMapL1[numy][numx];
}
if ((_local2 == -1) || (_local2 == 6)) {
_local2 = 0;
}
return(_local2);
}
function getxn(curx) {
return(Math.round(curx / _root.BLOCKSIZEX));
}
function getyn(cury) {
return(Math.round(cury / _root.BLOCKSIZEY));
}
function stopf() {
this.onEnterFrame = undefined;
}
function gof() {
this.onEnterFrame = ef_start;
}
function dig() {
if (DigL_f) {
_parent.map.dig(getxn(this._x) - 1, getyn(this._y) + 1);
DigL_f = false;
if (_root.CheckGemsL1[getyn(this._y)][getxn(this._x) - 1] == 9) {
_root.gamedy.gems.removepointer(getxn(this._x) - 1, getyn(this._y), _root.CheckGemsL1);
}
}
if (DigR_f) {
_parent.map.dig(getxn(this._x) + 1, getyn(this._y) + 1);
DigR_f = false;
if (_root.CheckGemsL1[getyn(this._y)][getxn(this._x) + 1] == 9) {
_root.gamedy.gems.removepointer(getxn(this._x) + 1, getyn(this._y), _root.CheckGemsL1);
}
}
}
function checkstand() {
var _local3;
var _local4;
_local3 = "";
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7));
if (_local4 == 3) {
_local3 = "SLift";
} else if (_local4 == 5) {
_local3 = "Stick";
} else {
_local3 = "Stand";
}
if (Status == "_RIGHT") {
_local3 = _local3 + "Right";
}
if (Status == "_LEFT") {
_local3 = _local3 + "Left";
}
dir.gotoAndStop(_local3);
}
function snowygone() {
_parent.endlevel();
}
function snowydead() {
_parent.loselevel();
}
function checkmouse() {
var _local4;
var _local5;
var _local7 = 16;
var _local6 = 12;
var _local8 = 10;
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8));
_local5 = checkmap(getxn(this._x), getyn(this._y + (_root.BLOCKSIZEY / 2)));
if (getyn(_parent._ymouse - (_root.BLOCKSIZEY / 2)) < getyn(this._y)) {
up_key = true;
} else {
up_key = false;
}
if (getyn(_parent._ymouse - (_root.BLOCKSIZEY / 2)) > getyn(this._y)) {
down_key = true;
} else {
down_key = false;
}
if ((up_key && (_local4 == 3)) || (down_key && (_local5 == 3))) {
right_key = false;
left_key = false;
return(undefined);
}
if (getxn(_parent._xmouse - (_root.BLOCKSIZEX / 2)) > getxn(this._x)) {
right_key = true;
} else {
right_key = false;
}
if (getxn(_parent._xmouse - (_root.BLOCKSIZEX / 2)) < getxn(this._x)) {
left_key = true;
} else {
left_key = false;
}
}
function pressmouse() {
mouse_f = true;
}
function releasemouse() {
mouse_f = false;
left_key = false;
right_key = false;
up_key = false;
down_key = false;
}
var SXSTEP = 5.5;
var SYSTEP = 11;
var LUPSTEP = 5.5;
var LDOWNSTEP = 8.25;
var SDOWNSTEP = 10;
var DUSTX = -10;
var DUSTY = 5;
var up_key;
var down_key;
var left_key;
var right_key;
var z_key;
var x_key;
var Status;
var DigL_f;
var DigR_f;
var Stick_f = false;
var mouse_f = false;
var fall_f = false;
var hero_fall_Snd = new Sound(this);
hero_fall_Snd.attachSound("hero_fall");
Symbol 1640 MovieClip Frame 1
function ef_shadow() {
if (_root.gamedy.shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_root.gotoAndStop("Menu");
}
}
menu.onRollOver = function () {
_root.MABSnd.start();
};
menu.onRelease = function () {
_root.MCBSnd.start();
_root.gamedy.shadow.show();
this._parent.onEnterFrame = ef_shadow;
};
Symbol 1649 MovieClip Frame 1
stop();
Symbol 1649 MovieClip Frame 2
stop();
Symbol 1649 MovieClip Frame 3
stop();
Symbol 1649 MovieClip Frame 4
stop();
Symbol 1659 MovieClip Frame 1
function go() {
area.onMouseDown = undefined;
Key.removeListener(keyListener);
_root.gamedy.shadow.show();
this.onEnterFrame = ef_go;
}
function ef_go() {
if (_root.gamedy.shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_parent.cover._visible = false;
_root.gamedy.nextlevel();
}
}
function init() {
this._visible = false;
}
function show() {
_root.levelcompleted_Snd.start();
_root.gamedy.ighelp._visible = false;
_parent.cover._visible = true;
InitX = this._x;
InitY = this._y;
InitH = this._height;
InitW = this._width;
this._visible = true;
this._alpha = 0;
this._xscale = 30;
this._yscale = 30;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._xscale < 100) {
if (this._alpha < 100) {
this._alpha = this._alpha + SALPHA;
}
this._xscale = this._xscale + SSCALE;
this._yscale = this._xscale;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
} else {
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
this._x = InitX;
this._y = InitY;
this.onEnterFrame = undefined;
Key.addListener(keyListener);
area.onMouseDown = function () {
go();
};
}
}
var SALPHA = 15;
var SSCALE = 8;
var InitX;
var InitY;
var InitH;
var InitW;
var keyListener = new Object();
keyListener.onKeyDown = function () {
go();
};
dload.onRollOver = function () {
_root.MABSnd.start();
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.gotoAndStop("Download");
};
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Symbol 1662 MovieClip Frame 1
if (_root.alawar_f == undefined) {
barrow._visible = false;
} else {
barrow._visible = true;
}
Symbol 1663 MovieClip Frame 1
function show() {
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._alpha < 100) {
this._alpha = this._alpha + STEP;
} else {
this._alpha = 100;
this.onEnterFrame = undefined;
}
}
function hide() {
this.onEnterFrame = ef_hide;
}
function ef_hide() {
if (this._alpha > 0) {
this._alpha = this._alpha - STEP;
} else {
this._alpha = 0;
this.onEnterFrame = undefined;
}
}
var STEP = 8;
Symbol 1664 MovieClip Frame 1
function go() {
area.onMouseDown = undefined;
Key.removeListener(keyListener);
_root.gamedy.shadow.show();
this.onEnterFrame = ef_go;
}
function ef_go() {
if (_root.gamedy.shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_parent.cover._visible = false;
_root.gotoAndStop("Menu");
}
}
function init() {
this._visible = false;
}
function show() {
_root.levelcompleted_Snd.start();
_root.gamedy.ighelp._visible = false;
_parent.cover._visible = true;
InitX = this._x;
InitY = this._y;
InitH = this._height;
InitW = this._width;
this._visible = true;
this._alpha = 0;
this._xscale = 30;
this._yscale = 30;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._xscale < 100) {
if (this._alpha < 100) {
this._alpha = this._alpha + SALPHA;
}
this._xscale = this._xscale + SSCALE;
this._yscale = this._xscale;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
} else {
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
this._x = InitX;
this._y = InitY;
this.onEnterFrame = undefined;
Key.addListener(keyListener);
area.onMouseDown = function () {
go();
};
arrow.show();
}
}
var SALPHA = 15;
var SSCALE = 8;
var InitX;
var InitY;
var InitH;
var InitW;
var keyListener = new Object();
keyListener.onKeyDown = function () {
go();
};
dload.onRollOver = function () {
_root.MABSnd.start();
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.gotoAndStop("Download");
};
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Symbol 1667 MovieClip Frame 1
function go() {
area.onMouseDown = undefined;
Key.removeListener(keyListener);
_root.gamedy.shadow.show();
this.onEnterFrame = ef_go;
}
function ef_go() {
if (_root.gamedy.shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_parent.cover._visible = false;
_root.gotoAndStop("Menu");
}
}
function init() {
this._visible = false;
}
function show() {
_root.gameover_Snd.start();
_root.gamedy.ighelp._visible = false;
_parent.cover._visible = true;
InitX = this._x;
InitY = this._y;
InitH = this._height;
InitW = this._width;
this._visible = true;
this._alpha = 0;
this._xscale = 30;
this._yscale = 30;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._xscale < 100) {
if (this._alpha < 100) {
this._alpha = this._alpha + SALPHA;
}
this._xscale = this._xscale + SSCALE;
this._yscale = this._xscale;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
} else {
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
this._x = InitX;
this._y = InitY;
this.onEnterFrame = undefined;
Key.addListener(keyListener);
area.onMouseDown = function () {
go();
};
}
}
var SALPHA = 15;
var SSCALE = 8;
var InitX;
var InitY;
var InitH;
var InitW;
var keyListener = new Object();
keyListener.onKeyDown = function () {
go();
};
Symbol 1668 MovieClip Frame 1
function init() {
cover._visible = false;
cover.useHandCursor = false;
go.init();
lc.init();
ec.init();
}
Symbol 1669 MovieClip Frame 1
function hide() {
Status = "_HIDE";
this._visible = true;
this._alpha = 100;
this.onEnterFrame = ef_hide;
}
function ef_hide() {
if (this._alpha > 0) {
this._alpha = this._alpha - HSTEP;
} else {
this._alpha = 100;
this._visible = false;
this.onEnterFrame = undefined;
Status = "_READY";
}
}
function show() {
Status = "_SHOW";
this._visible = true;
this._alpha = 0;
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._alpha < 100) {
this._alpha = this._alpha + SSTEP;
} else {
this._alpha = 100;
this.onEnterFrame = undefined;
Status = "_READY";
}
}
var HSTEP = 12;
var SSTEP = 25;
var Status;
Symbol 1670 MovieClip Frame 1
function init(level) {
var _local3;
var _local2;
_root.win_f = false;
_local3 = 0;
while (_local3 < _root.BLOCKNUMY) {
_local2 = 0;
while (_local2 < _root.BLOCKNUMX) {
_root.BlockImgL1[_local3][_local2] = _root["LD_BlockImgL" + level][_local3][_local2];
_root.WBlockImgL1[_local3][_local2] = _root["LD_WBlockImgL" + level][_local3][_local2];
_root.CheckMapL1[_local3][_local2] = _root["LD_CheckMapL" + level][_local3][_local2];
_root.WCheckMapL1[_local3][_local2] = _root["LD_WCheckMapL" + level][_local3][_local2];
_root.CheckGemsL1[_local3][_local2] = _root["LD_CheckGemsL" + level][_local3][_local2];
_root.CheckBonusesL1[_local3][_local2] = _root["LD_CheckBonusesL" + level][_local3][_local2];
_local2++;
}
_local3++;
}
_root.SnowyPosL1[0] = _root["LD_SnowyPosL" + level][0];
_root.SnowyPosL1[1] = _root["LD_SnowyPosL" + level][1];
_root.GemsL1 = _root["LD_GemsL" + level];
OldScore = _root.CurrentScore;
_root.Gems = _root.GemsL1;
_root.CurrentLevel = level;
map.clear();
dig.clear();
gems.clear();
bonuses.clear();
snowy.init(_root.SnowyPosL1[0], _root.SnowyPosL1[1]);
menu.init();
ighelp.gotoAndStop(_root.LD_IGHELP[level - 1] + 1);
ighelp._visible = false;
info.level.text = _root.CurrentLevel;
info.gems.text = _root.Gems;
info.lives.text = _root.Lives;
info.score.text = _root.CurrentScore;
}
function start() {
map.show(_root.BlockImgL1);
gems.show(_root.CheckGemsL1);
snowy.show();
snowy.start();
shadow.hide();
ighelp._visible = true;
}
function takegem(gem) {
var _local2;
_root.Gems--;
info.gems.text = _root.Gems;
_root.CurrentScore = _root.CurrentScore + _root.SC_GEM[gem - 1];
info.score.text = _root.CurrentScore;
if (_root.Gems == 0) {
_root.lastgem_Snd.start();
winlevel();
} else {
_local2 = Math.ceil(Math.random() * 4);
_root[("getgem" + _local2) + "_Snd"].start();
}
}
function takebonus(bonus) {
var _local2;
if (bonus == 1) {
_root.getlifebonus_Snd.start();
_root.Lives++;
info.lives.text = _root.Lives;
} else {
_local2 = Math.ceil(Math.random() * 4);
_root[("getscorebonus" + _local2) + "_Snd"].start();
}
_root.CurrentScore = _root.CurrentScore + _root.SC_BONUS[bonus - 1];
info.score.text = _root.CurrentScore;
}
function winlevel() {
i = 0;
while (i < _root.BLOCKNUMY) {
j = 0;
while (j < _root.BLOCKNUMX) {
if (_root.CheckMapL1[i][j] != -1) {
_root.CheckMapL1[i][j] = _root.WCheckMapL1[i][j];
}
j++;
}
i++;
}
map.show(_root.WBlockImgL1);
_root.win_f = true;
bonuses.show(_root.CheckBonusesL1);
}
function endlevel() {
_root.inf.level = _root.CurrentLevel;
_root.so.data.content = _root.inf;
if (_root.CurrentLevel == _root.GD_LEVELS) {
menu.ec.show();
} else {
menu.lc.show();
}
}
function nextlevel() {
_root.CurrentLevel++;
init(_root.CurrentLevel);
start();
}
function loselevel() {
if (_root.Lives == 0) {
menu.go.show();
} else {
_root.CurrentScore = OldScore;
shadow.show();
this.onEnterFrame = ef_loselevel;
}
}
function ef_loselevel() {
if (shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_root.Lives--;
init(_root.CurrentLevel);
start();
}
}
var OldScore;
Symbol 1687 MovieClip Frame 1
back.onRollOver = function () {
_root.MABSnd.start();
};
dload.onRollOver = function () {
_root.MABSnd.start();
};
back.onPress = function () {
_root.MCBSnd.start();
_root.gotoAndStop("Menu");
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.GotoDownload();
};