Frame 1
var levarray = new Array(0);
levarray[1] = 1;
levarray[2] = 2;
levarray[3] = 3;
levarray[4] = 27;
levarray[5] = 47;
levarray[6] = 59;
levarray[7] = 7;
levarray[8] = 4;
levarray[9] = 41;
levarray[10] = 21;
levarray[11] = 9;
levarray[12] = 22;
levarray[13] = 23;
levarray[14] = 71;
levarray[15] = 74;
lev1 = new Object();
lev1.row_1 = new Array(0, 1, 1, 6, 6, 3, 3, 6, 6, 1, 1);
lev1.row_2 = new Array(0, 3, 3, 4, 4, 0, 4, 4, 3, 3);
lev1.row_3 = new Array(0, 0, 6, 1, 1, 0, 0, 1, 1, 6, 0);
lev1.row_4 = new Array(0, 0, 3, 3, 0, 0, 0, 3, 3, 0);
lev1.row_5 = new Array(0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0);
lev1.row_6 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev1.row_7 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev1.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev1.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev1.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev1.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev1.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev2 = new Object();
lev2.row_1 = new Array(0, 3, 3, 2, 2, 6, 6, 2, 2, 3, 3);
lev2.row_2 = new Array(0, 6, 6, 3, 3, 2, 3, 3, 6, 6);
lev2.row_3 = new Array(0, 5, 2, 2, 5, 6, 6, 5, 2, 2, 5);
lev2.row_4 = new Array(0, 0, 3, 0, 0, 3, 0, 0, 3, 0);
lev2.row_5 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev2.row_6 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev2.row_7 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev2.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev2.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev2.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev2.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev2.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev3 = new Object();
lev3.row_1 = new Array(0, 0, 0, 0, 2, 6, 6, 2, 0, 0, 0);
lev3.row_2 = new Array(0, 0, 0, 0, 5, 0, 5, 0, 0, 0);
lev3.row_3 = new Array(0, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0);
lev3.row_4 = new Array(0, 0, 0, 0, 0, 6, 0, 0, 0, 0);
lev3.row_5 = new Array(0, 0, 0, 0, 0, 1, 3, 0, 0, 0, 0);
lev3.row_6 = new Array(0, 0, 0, 0, 4, 0, 4, 0, 0, 0);
lev3.row_7 = new Array(0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0);
lev3.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev3.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev3.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev3.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev3.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev4 = new Object();
lev4.row_1 = new Array(0, 1, 2, 3, 4, 1, 1, 4, 3, 2, 1);
lev4.row_2 = new Array(0, 4, 6, 5, 0, 2, 0, 5, 6, 4);
lev4.row_3 = new Array(0, 0, 3, 1, 0, 0, 0, 0, 1, 3, 0);
lev4.row_4 = new Array(0, 0, 2, 0, 0, 0, 0, 0, 2, 0);
lev4.row_5 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev4.row_6 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev4.row_7 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev4.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev4.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev4.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev4.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev4.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev7 = new Object();
lev7.row_1 = new Array(0, 0, 0, 1, 1, 2, 2, 1, 1, 0, 0);
lev7.row_2 = new Array(0, 0, 3, 4, 3, 4, 3, 4, 3, 0);
lev7.row_3 = new Array(0, 0, 6, 4, 2, 0, 0, 2, 4, 6, 0);
lev7.row_4 = new Array(0, 0, 5, 0, 0, 0, 0, 0, 5, 0);
lev7.row_5 = new Array(0, 0, 6, 0, 0, 0, 0, 0, 0, 6, 0);
lev7.row_6 = new Array(0, 0, 2, 0, 0, 0, 0, 0, 2, 0);
lev7.row_7 = new Array(0, 0, 3, 0, 0, 0, 0, 0, 0, 3, 0);
lev7.row_8 = new Array(0, 0, 4, 0, 0, 0, 0, 0, 4, 0);
lev7.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev7.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev7.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev7.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev9 = new Object();
lev9.row_1 = new Array(0, 0, 6, 4, 1, 3, 3, 1, 4, 6, 0);
lev9.row_2 = new Array(0, 0, 0, 3, 2, 6, 2, 3, 0, 0);
lev9.row_3 = new Array(0, 0, 0, 0, 1, 6, 6, 1, 0, 0, 0);
lev9.row_4 = new Array(0, 0, 0, 3, 5, 6, 5, 3, 0, 0);
lev9.row_5 = new Array(0, 0, 6, 4, 1, 3, 3, 1, 4, 6, 0);
lev9.row_6 = new Array(0, 0, 0, 0, 0, 6, 0, 0, 0, 0);
lev9.row_7 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev9.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev9.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev9.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev9.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev9.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev21 = new Object();
lev21.row_1 = new Array(0, 0, 0, 0, 0, 7, 8, 0, 0, 0, 0);
lev21.row_2 = new Array(0, 0, 0, 0, 0, 3, 0, 0, 0, 0);
lev21.row_3 = new Array(0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0);
lev21.row_4 = new Array(0, 0, 0, 0, 7, 3, 7, 0, 0, 0);
lev21.row_5 = new Array(0, 0, 0, 0, 8, 2, 2, 8, 0, 0, 0);
lev21.row_6 = new Array(0, 0, 0, 7, 7, 3, 7, 7, 0, 0);
lev21.row_7 = new Array(0, 0, 0, 8, 8, 2, 2, 8, 8, 0, 0);
lev21.row_8 = new Array(0, 0, 7, 7, 3, 1, 3, 7, 7, 0);
lev21.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev21.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev21.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev21.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev22 = new Object();
lev22.row_1 = new Array(0, 2, 2, 3, 0, 0, 0, 0, 3, 2, 2);
lev22.row_2 = new Array(0, 0, 6, 7, 0, 0, 0, 7, 6, 0);
lev22.row_3 = new Array(0, 0, 6, 0, 7, 0, 0, 7, 0, 6, 0);
lev22.row_4 = new Array(0, 1, 3, 4, 5, 8, 5, 4, 3, 1);
lev22.row_5 = new Array(0, 0, 7, 0, 6, 0, 0, 6, 0, 7, 0);
lev22.row_6 = new Array(0, 0, 7, 6, 0, 0, 0, 6, 7, 0);
lev22.row_7 = new Array(0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0);
lev22.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev22.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev22.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev22.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev22.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev23 = new Object();
lev23.row_1 = new Array(0, 1, 5, 2, 5, 3, 5, 4, 5, 6, 5);
lev23.row_2 = new Array(0, 2, 0, 3, 0, 4, 0, 6, 0, 7);
lev23.row_3 = new Array(0, 0, 3, 0, 4, 0, 6, 0, 7, 0, 8);
lev23.row_4 = new Array(0, 0, 4, 0, 6, 0, 7, 0, 8, 0);
lev23.row_5 = new Array(0, 0, 0, 6, 0, 7, 0, 8, 0, 1, 0);
lev23.row_6 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev23.row_7 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev23.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev23.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev23.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev23.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev23.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev27 = new Object();
lev27.row_1 = new Array(0, 0, 1, 2, 0, 4, 5, 0, 6, 7, 0);
lev27.row_2 = new Array(0, 1, 0, 2, 4, 0, 5, 6, 0, 7);
lev27.row_3 = new Array(0, 0, 3, 3, 0, 8, 8, 0, 3, 3, 0);
lev27.row_4 = new Array(0, 2, 0, 1, 5, 0, 4, 7, 0, 6);
lev27.row_5 = new Array(0, 0, 2, 1, 0, 5, 4, 0, 7, 6, 0);
lev27.row_6 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev27.row_7 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev27.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev27.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev27.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev27.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev27.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev41 = new Object();
lev41.row_1 = new Array(0, 3, 0, 0, 4, 3, 3, 4, 0, 0, 3);
lev41.row_2 = new Array(0, 3, 1, 4, 6, 1, 6, 4, 1, 3);
lev41.row_3 = new Array(0, 5, 2, 2, 5, 1, 1, 5, 2, 2, 5);
lev41.row_4 = new Array(0, 1, 3, 6, 4, 1, 4, 6, 3, 1);
lev41.row_5 = new Array(0, 1, 0, 0, 6, 3, 3, 6, 0, 0, 1);
lev41.row_6 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev41.row_7 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev41.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev41.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev41.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev41.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev41.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev47 = new Object();
lev47.row_1 = new Array(0, 3, 3, 0, 0, 4, 4, 0, 0, 6, 6);
lev47.row_2 = new Array(0, 1, 0, 0, 0, 2, 0, 0, 0, 4);
lev47.row_3 = new Array(0, 5, 0, 0, 0, 3, 0, 0, 0, 0, 1);
lev47.row_4 = new Array(0, 2, 0, 0, 0, 1, 0, 0, 0, 2);
lev47.row_5 = new Array(0, 4, 0, 0, 0, 6, 0, 0, 0, 0, 5);
lev47.row_6 = new Array(0, 6, 0, 0, 0, 5, 0, 0, 0, 3);
lev47.row_7 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev47.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev47.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev47.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev47.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev47.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev59 = new Object();
lev59.row_1 = new Array(0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0);
lev59.row_2 = new Array(0, 0, 0, 0, 3, 0, 3, 0, 0, 0);
lev59.row_3 = new Array(0, 0, 0, 0, 6, 0, 0, 6, 0, 0, 0);
lev59.row_4 = new Array(0, 0, 0, 2, 0, 0, 0, 2, 0, 0);
lev59.row_5 = new Array(0, 0, 0, 4, 5, 1, 1, 5, 4, 0, 0);
lev59.row_6 = new Array(0, 0, 0, 0, 0, 3, 0, 0, 0, 0);
lev59.row_7 = new Array(0, 3, 4, 2, 7, 5, 5, 7, 2, 4, 3);
lev59.row_8 = new Array(0, 0, 6, 0, 0, 6, 0, 0, 6, 0);
lev59.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev59.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev59.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev59.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev71 = new Object();
lev71.row_1 = new Array(0, 1, 2, 0, 0, 3, 3, 0, 0, 2, 1);
lev71.row_2 = new Array(0, 0, 4, 0, 7, 0, 7, 0, 4, 0);
lev71.row_3 = new Array(0, 0, 0, 3, 0, 6, 6, 0, 3, 0, 0);
lev71.row_4 = new Array(0, 0, 0, 5, 4, 0, 4, 5, 0, 0);
lev71.row_5 = new Array(0, 0, 2, 7, 1, 0, 0, 1, 7, 2, 0);
lev71.row_6 = new Array(0, 0, 0, 6, 3, 5, 3, 6, 0, 0);
lev71.row_7 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev71.row_8 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev71.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev71.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev71.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev71.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev74 = new Object();
lev74.row_1 = new Array(0, 0, 0, 0, 7, 6, 6, 7, 0, 0, 0);
lev74.row_2 = new Array(0, 0, 0, 0, 1, 3, 1, 0, 0, 0);
lev74.row_3 = new Array(0, 0, 0, 0, 4, 2, 2, 4, 0, 0, 0);
lev74.row_4 = new Array(0, 0, 0, 0, 3, 5, 3, 0, 0, 0);
lev74.row_5 = new Array(0, 0, 0, 0, 4, 2, 2, 4, 0, 0, 0);
lev74.row_6 = new Array(0, 0, 0, 0, 1, 3, 1, 0, 0, 0);
lev74.row_7 = new Array(0, 0, 0, 0, 7, 6, 6, 7, 0, 0, 0);
lev74.row_8 = new Array(0, 0, 0, 0, 3, 5, 3, 0, 0, 0);
lev74.row_9 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev74.row_10 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev74.row_11 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
lev74.row_12 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
function MouseLoad() {
Mouse.hide();
attachMovie("crosshair", "crosshair", 50560);
crosshair.startDrag(1);
}
levplay = 0;
thiscont = 0;
gamelevel = 1;
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
_root.menu = newMenu;
if (!soundinit) {
loadVariables ("http://www.wolfcom.ca/getcode.php?rannum=" + random(100000), recvar);
fscommand ("showmenu", "false");
fscreen = 0;
volumeon = 1;
allsounds = new Array();
rootsound = new Sound();
soundcount = 0;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[0] = new Sound(soundclip);
allsounds[0].attachSound("DungeonPlop");
allsounds[0].setVolume(50);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[1] = new Sound(soundclip);
allsounds[1].attachSound("WetKik");
allsounds[1].setVolume(60);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[2] = new Sound(soundclip);
allsounds[2].attachSound("Clap");
allsounds[2].setVolume(40);
soundcount = soundcount + 1;
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[3] = new Sound(soundclip);
allsounds[3].attachSound("PopReverb");
allsounds[3].setVolume(50);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[4] = new Sound(soundclip);
allsounds[4].attachSound("WarpBoss");
allsounds[4].setVolume(50);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[5] = new Sound(soundclip);
allsounds[5].attachSound("AquaBoss");
allsounds[5].setVolume(50);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[6] = new Sound(soundclip);
allsounds[6].attachSound("BowlMarble");
allsounds[6].setVolume(50);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[7] = new Sound(soundclip);
allsounds[7].attachSound("dryfire");
allsounds[7].setVolume(50);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[8] = new Sound(soundclip);
allsounds[8].attachSound("takesound");
allsounds[8].setVolume(180);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[9] = new Sound(soundclip);
allsounds[9].attachSound("tick");
allsounds[9].setVolume(60);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[10] = new Sound(soundclip);
allsounds[10].attachSound("itchy");
allsounds[10].setVolume(60);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[11] = new Sound(soundclip);
allsounds[11].attachSound("blok");
allsounds[11].setVolume(40);
soundcount = soundcount + 1;
_root.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[12] = new Sound(soundclip);
allsounds[12].attachSound("humidity");
allsounds[12].setVolume(15);
soundcount = soundcount + 1;
soundinit = 1;
} else {
mainscreen.gotoAndStop(2);
}
stop();
Instance of Symbol 119 MovieClip "recvar" in Frame 1
onClipEvent (data) {
_parent.newcode = (codein * 34) + 6;
}
Frame 2
opt3.gotoAndStop(2);
var diff = 10;
var difnum = 3;
if (!gametype) {
var gametype = 2;
tg2.gotoAndStop(2);
} else if (gametype == 1) {
tg1.gotoAndStop(2);
} else {
tg2.gotoAndStop(2);
}
Instance of Symbol 205 MovieClip "tg1" in Frame 2
onClipEvent (load) {
gametype = 1;
}
Instance of Symbol 205 MovieClip "tg2" in Frame 2
onClipEvent (load) {
gametype = 2;
}
Frame 3
function NewGame(cont, nextlev) {
MouseLoad();
gameoverclip.removeMovieClip();
bu = 0;
while (bu < bublength) {
bubbles[bu].removeMovieClip();
bu++;
}
velx = 0;
vely = 0;
vel = 0;
bubs = 0;
bdrop = 0;
bubcount = 0;
bubbles = new Array();
dmcount = 0;
blastcount = 0;
switchline = 0;
ang = 0;
ang2 = 0;
moveshot = 0;
levbubs = 50;
pauseg = 0;
bjflip = 1;
showstats = 0;
if (!cont) {
if (nextlev) {
gamelevel = gamelevel + 1;
getgames = SharedObject.getLocal("bubblegames");
if (getgames.data.levcomplete) {
if (gamelevel > getgames.data.levcomplete) {
getgames.data.levcomplete = gamelevel;
getgames.flush(1000);
}
} else {
getgames.data.levcomplete = gamelevel;
getgames.flush(1000);
}
showstats = 1;
if ((gamelevel % 5) == 0) {
credits = credits + 1;
}
} else {
scoreout = 0;
gamelevel = 1;
credits = 2;
}
} else {
credits = credits - 1;
}
linespeed = 3.5;
canvel = 0;
lastang = 0;
gamecount = 0;
bubsrem = gamelevel * 25;
shottime = getTimer();
gameon = 0;
ranking = 0;
roundout = gamelevel;
bubanim.bubnext.gotoAndStop(nextcol);
bubanim._visible = 0;
cannon.swapDepths(20000);
bubsx = new Array();
bubsy = new Array();
backblock._y = 28;
if (gamelevel > 1) {
sighton = 0;
lineclip.removeMovieClip();
}
if (gamemode == 1) {
yplace = 28;
shotout = 0;
} else {
yplace = 0;
shotout = 0;
credits = 0;
}
creditsout = credits;
NewRound(showstats);
if (gamelevel > 15) {
ClearGame();
GameOver();
}
}
function SetAngle() {
sax = cannon._xmouse;
say = cannon._ymouse;
ang = Math.atan2(say, sax);
ang = (ang * 57) + 90;
if ((ang > -85) && (ang < 85)) {
cannon.canin._rotation = ang;
cannon.wheel._rotation = ang * 15;
armpos = cannon.wheel._rotation;
if (armpos < 0) {
armpos = 360 - (armpos * -1);
}
armpos = Math.round(armpos / 6);
cannon.guyarm.gotoAndStop(armpos);
}
ang2 = (Math.PI/180) * (cannon.canin._rotation - 90);
if (sighton == 1) {
DrawSight(ang2);
}
}
function UpdateSub() {
fary = 0;
bu = 0;
while (bu < bublength) {
if (bubbles[bu] != bubble) {
buy = bubbles[bu]._y;
if (buy > fary) {
fary = buy;
}
if (buy > 312) {
GameOver();
} else if (gametype == 1) {
bubbles[bu]._y = bubbles[bu]._y + 1;
}
}
bu++;
}
fary = 360 - fary;
if (fary < 83) {
if (dangerflash.playgo == 0) {
dangerflash.playgo = 1;
dangerflash.gotoAndPlay(2);
}
} else {
dangerflash.playgo = 0;
}
if (fary > 50) {
danger.lifemask._x = fary;
} else {
danger.lifemask._x = 50;
}
if (gametype == 1) {
yplace = yplace + 1;
if (gamemode == 1) {
backblock._y = backblock._y + 1;
} else if (yplace == 28) {
yplace = yplace - 28;
AddLine();
}
}
}
function UpdateTime() {
bublength = bubbles.length;
if (gameon == 1) {
if (gamemode == 1) {
nowtime = Math.round((getTimer() - starttime) / 1000);
shotout = nowtime;
}
}
if ((gamecount % diff) == 0) {
UpdateSub();
}
if (((gamecount % 2) == 0) && (dangerflash.playgo == 1)) {
Jiggle();
}
if (gamemode == 1) {
CheckGameOver();
}
gamecount = gamecount + 1;
}
function Jiggle() {
fy = 0.6 * bjflip;
bj = 0;
while (bj < bublength) {
if (bubbles[bj] != bubble) {
bubbles[bj]._x = bubbles[bj]._x + fy;
}
bj++;
}
bjflip = bjflip * -1;
}
function PauseGame() {
if (pauseg == 0) {
pauseg = 1;
} else {
pauseg = 0;
}
}
function IncreaseLevel() {
if (shotout >= levbubs) {
linespeed = linespeed + 0.2;
diff = diff - 1;
roundout = roundout + 1;
levbubs = levbubs + (gamelevel * 50);
}
}
function GameOver() {
allsounds[1].start();
dangerflash.playgo = 0;
dangerflash.gotoAndStop(1);
gameon = 0;
b = 0;
while (b < bublength) {
if (bubbles[b]._visible) {
attachMovie("bubdrop", "bubdrop" + bdrop, 7200 + bdrop);
bubdrop = eval ("bubdrop" + bdrop);
bubdrop.gotoAndStop(bubbles[b]._currentframe);
bubdrop._x = bubbles[b]._x;
bubdrop._y = bubbles[b]._y;
bubdrop.delay = b * 2;
bubbles[b].removeMovieClip();
bdrop = bdrop + 1;
}
b++;
}
attachMovie("gameoverclip", "gameoverclip", 45830);
gameoverclip._x = 264;
gameoverclip._y = 71;
hiscore = 0;
getgames = SharedObject.getLocal("bubblegames");
if (gamemode == 1) {
if (gametype == 1) {
if (getgames.data.ascores) {
ascores = getgames.data.ascores;
ascount = 10;
while (ascount > 0) {
if ((scoreout > ascores[ascount]) || (!ascores[ascount])) {
hiscore = ascount;
}
ascount--;
}
} else {
hiscore = 1;
}
} else if (getgames.data.ascores2) {
ascores = getgames.data.ascores2;
ascount = 10;
while (ascount > 0) {
if ((scoreout > ascores[ascount]) || (!ascores[ascount])) {
hiscore = ascount;
}
ascount--;
}
} else {
hiscore = 1;
}
} else if (gametype == 1) {
if (getgames.data.rscores) {
rscores = getgames.data.rscores;
ascount = 10;
while (ascount > 0) {
if ((scoreout > rscores[ascount]) || (!rscores[ascount])) {
hiscore = ascount;
}
ascount--;
}
} else {
hiscore = 1;
}
} else if (getgames.data.rscores2) {
rscores = getgames.data.rscores2;
ascount = 10;
while (ascount > 0) {
if ((scoreout > rscores[ascount]) || (!rscores[ascount])) {
hiscore = ascount;
}
ascount--;
}
} else {
hiscore = 1;
}
if ((hiscore > 0) && (scoreout > 0)) {
gameoverclip.finalscore = scoreout;
ranking = hiscore;
}
if (credits > 0) {
gameoverclip.gotoAndStop(1);
} else if ((hiscore > 0) && (scoreout > 0)) {
gameoverclip.gotoAndStop(3);
} else {
gameoverclip.gotoAndStop(2);
}
if (gamelevel > 15) {
if (hiscore > 0) {
gameoverclip.gotoAndStop(4);
} else {
ClearGame();
ClearGameOver();
gotoAndStop (8);
}
}
}
function ClearGameOver() {
bc = 0;
while (bc < 200) {
bubdrop = eval ("bubdrop" + bc);
bubdrop.removeMovieClip();
bc++;
}
}
function SaveHiScore(scorename) {
hiscore = 0;
loadVariables ((((((((((("http://www.wolfcom.ca/scorein.php?rannum=" + random(100000)) + "&username=") + scorename) + "&finalscore=") + scoreout) + "&codein=") + newcode) + "&gametype=") + gametype) + "&gamemode=") + gamemode, recvar);
}
function ClearGame() {
gameoverclip.removeMovieClip();
roundclip.removeMovieClip();
smallblock.removeMovieClip();
bu = 0;
while (bu < bublength) {
bubbles[bu].removeMovieClip();
bu++;
}
lineclip.removeMovieClip();
cannon.removeMovieClip();
gameon = 0;
}
function LoadLevel() {
rows = 1;
while (rows < 13) {
row = eval ((("lev" + levarray[gamelevel]) + ".row_") + rows);
if ((rows % 2) != 0) {
r = 1;
while (r < 11) {
if (row[r] > 0) {
attachMovie("bubble", "bubble" + bubcount, 230 + bubcount);
bubble = eval ("bubble" + bubcount);
bubble.bnum = bublength;
bubbles.push(bubble);
bubble._x = 216 + ((r - 1) * 32);
bubble._y = 28 * rows;
bubble.gotoAndStop(row[r]);
bubcount = bubcount + 1;
}
r++;
}
} else {
r = 1;
while (r < 10) {
if (row[r] > 0) {
attachMovie("bubble", "bubble" + bubcount, 230 + bubcount);
bubble = eval ("bubble" + bubcount);
bubble.bnum = bublength;
bubbles.push(bubble);
bubble._x = 232 + ((r - 1) * 32);
bubble._y = 28 * rows;
bubble.gotoAndStop(row[r]);
bubcount = bubcount + 1;
}
r++;
}
}
rows++;
}
FindNext();
bubanim.bubnext.gotoAndStop(nextcol);
}
function AddLine() {
if (switchline == 1) {
r = 3;
while (r < 9) {
ranbubcol = 1 + random(8);
attachMovie("bubble", "bubble" + bubcount, 230 + bubcount);
bubbt = eval ("bubble" + bubcount);
bubbles.push(bubbt);
bubbt._x = 216 + ((r - 1) * 32);
bubbt._y = yplace;
bubbt.gotoAndStop(ranbubcol);
bubcount = bubcount + 1;
r++;
}
} else {
r = 3;
while (r < 8) {
ranbubcol = 1 + random(8);
attachMovie("bubble", "bubble" + bubcount, 230 + bubcount);
bubbt = eval ("bubble" + bubcount);
bubbles.push(bubbt);
bubbt._x = 232 + ((r - 1) * 32);
bubbt._y = yplace;
bubbt.gotoAndStop(ranbubcol);
bubcount = bubcount + 1;
r++;
}
}
bublength = bubbles.length;
if (switchline == 1) {
switchline = 0;
} else {
switchline = 1;
}
}
function RanLevel() {
ranbubcount = 27;
rows = 1;
while (rows < 13) {
if (bubcount > ranbubcount) {
break;
}
if ((rows % 2) != 0) {
r = 3;
while (r < 9) {
ranbubcol = 1 + random(8);
attachMovie("bubble", "bubble" + bubcount, 230 + bubcount);
bubble = eval ("bubble" + bubcount);
bubbles.push(bubble);
bubble._x = 216 + ((r - 1) * 32);
bubble._y = 28 * (rows - 1);
bubble.gotoAndStop(ranbubcol);
bubcount = bubcount + 1;
if (bubcount > ranbubcount) {
break;
}
r++;
}
} else {
r = 3;
while (r < 8) {
ranbubcol = 1 + random(8);
attachMovie("bubble", "bubble" + bubcount, 230 + bubcount);
bubble = eval ("bubble" + bubcount);
bubbles.push(bubble);
bubble._x = 232 + ((r - 1) * 32);
bubble._y = 28 * (rows - 1);
bubble.gotoAndStop(ranbubcol);
bubcount = bubcount + 1;
if (bubcount > ranbubcount) {
break;
}
r++;
}
}
rows++;
}
FindNext();
bubanim.bubnext.gotoAndStop(nextcol);
}
function NumberUp(bx, by, scoreup) {
attachMovie("damnum", "damnum" + dmcount, 9200 + dmcount);
damnum = eval ("damnum" + dmcount);
damnum._x = bx;
damnum._y = by;
if (!scoreup) {
damnum.damnumin.num = 10;
scoreout = scoreout + 10;
} else {
damnum.damnumin.num = scoreup;
scoreout = scoreout + scoreup;
}
dmcount = dmcount + 1;
}
function BubBurst(bx, by, bcol) {
allsounds[0].start();
NumberUp(bx, by);
BlastEffect(bx, by);
var bubran = (6 + random(5));
z = 0;
while (z < bubran) {
attachMovie("bub", "bub" + bubs, 8200 + bubs);
bubtemp = eval ("bub" + bubs);
bubtemp.gotoAndStop(bcol);
bubtemp._xscale = 10 + random(20);
bubtemp._yscale = bubtemp._xscale;
bubtemp._x = bx;
bubtemp._y = by;
bubtemp.x = -8 + random(16);
bubtemp.y = 5 + (random(15) * -1);
if (bubs > 20) {
bubs = 0;
} else {
bubs = bubs + 1;
}
z++;
}
}
function FindNext() {
var _local1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
b = 0;
while (b < bubbles.length) {
_local1[bubbles[b]._currentframe] = 1;
b++;
}
var _local3 = 0;
at = 0;
while (at < 9) {
if (_local1[at] == 1) {
_local3 = _local3 + 1;
}
at++;
}
var _local2 = 0;
var _local4 = 0;
while (_local2 == 0) {
nextcol = 1 + random(8);
if (_local3 > 1) {
while (nextcol == bubble._currentframe) {
nextcol = 1 + random(8);
}
}
if (_local1[nextcol] == 1) {
_local2 = 1;
}
}
}
function ShotSet() {
moveshot = 0;
attachMovie("bubble", "bubble" + bubcount, 230 + bubcount);
bubble = eval ("bubble" + bubcount);
bubble.bnum = bublength;
bubbles.push(bubble);
bubble._x = 360;
bubble._y = 386;
bubble.gotoAndStop(nextcol);
FindNext();
bubanim.bubnext.gotoAndStop(nextcol);
bubanim.gotoAndStop(1);
bubcount = bubcount + 1;
}
function ShotGo() {
if (moveshot == 0) {
allsounds[5].start();
velx = Math.cos(ang2);
vely = Math.sin(ang2);
cannon.canin.canout.gotoAndPlay(2);
cannon.guyarm2.gotoAndPlay(2);
cannon.lever.gotoAndPlay(2);
bubanim.gotoAndPlay(2);
moveshot = 1;
}
}
function ShotEvent() {
var _local4 = 1;
s = 0;
while (s < 3) {
bubble._x = bubble._x + (velx * 6);
bubble._y = bubble._y + (vely * 6);
i = 0;
while (i < bublength) {
if ((bubbles[i] != bubble) && (bubbles[i]._visible)) {
var _local2 = bubbles[i]._x - bubble._x;
var _local1 = bubbles[i]._y - bubble._y;
var _local3 = (_local2 * _local2) + (_local1 * _local1);
if (_local3 <= 840) {
velx = 0;
vely = 0;
_local4 = 0;
break;
}
}
i++;
}
if (bubble._x <= 210) {
velx = velx * -1;
allsounds[3].start();
} else if (bubble._x >= 510) {
velx = velx * -1;
allsounds[3].start();
} else if (bubble._y <= yplace) {
bubble._y = yplace;
velx = 0;
vely = 0;
_local4 = 0;
}
if (_local4 == 0) {
ShotSnap();
FindMatch();
ShotSet();
break;
}
s++;
}
}
function ShotSnap() {
var _local10 = bubble._x;
var _local9 = bubble._y;
var _local5 = 0;
var _local4 = 0;
var _local8 = 214;
var _local7 = yplace;
var _local6 = 10000;
var _local3 = 0;
var _local2 = 0;
var _local1 = 0;
h = 1;
while (h < 14) {
if ((h % 2) != switchline) {
g = 1;
while (g < 11) {
_local5 = 216 + ((g - 1) * 32);
_local4 = (yplace - 29) + (28 * h);
_local3 = _local10 - _local5;
_local2 = _local9 - _local4;
_local1 = (_local3 * _local3) + (_local2 * _local2);
if (_local1 < _local6) {
_local8 = _local5;
_local7 = _local4;
_local6 = _local1;
}
g++;
}
} else {
g = 1;
while (g < 10) {
_local5 = 232 + ((g - 1) * 32);
_local4 = (yplace - 29) + (28 * h);
_local3 = _local10 - _local5;
_local2 = _local9 - _local4;
_local1 = (_local3 * _local3) + (_local2 * _local2);
if (_local1 < _local6) {
_local8 = _local5;
_local7 = _local4;
_local6 = _local1;
}
g++;
}
}
h++;
}
bubble._x = _local8;
bubble._y = _local7;
bubble.bubglow.gotoAndPlay(2);
if (gametype == 2) {
if (gamemode == 1) {
IncreasePos();
} else {
IncreaseRan();
}
}
}
function IncreasePos() {
bp = 0;
while (bp < bublength) {
bubbles[bp]._y = bubbles[bp]._y + 3.2;
bp++;
}
backblock._y = backblock._y + 3.2;
yplace = yplace + 3.2;
}
function IncreaseRan() {
yplace = yplace + linespeed;
bp = 0;
while (bp < bublength) {
bubbles[bp]._y = bubbles[bp]._y + linespeed;
bp++;
}
if (yplace >= 28) {
yplace = yplace - 28;
AddLine();
}
}
function FindMatch() {
checktime = getTimer();
var _local1 = new Array(bubble);
var _local7 = 0;
var _local2 = bubble;
while (_local7 < _local1.length) {
b = 0;
while (b < bublength) {
if (_local2 != bubbles[b]) {
if (_local2._currentframe == bubbles[b]._currentframe) {
var _local5 = bubbles[b]._x - _local2._x;
var _local4 = bubbles[b]._y - _local2._y;
var _local6 = (_local5 * _local5) + (_local4 * _local4);
if (_local6 < 1225) {
var _local3 = 0;
q = 0;
while (q < _local1.length) {
if (_local1[q] == bubbles[b]) {
_local3 = 1;
}
q++;
}
if (_local3 == 0) {
_local1.push(bubbles[b]);
}
}
}
}
b++;
}
_local7 = _local7 + 1;
_local2 = _local1[_local7];
}
if (_local1.length > 2) {
e = 0;
while (e < _local1.length) {
if (gamemode == 2) {
shotout = shotout + 1;
bubsrem = bubsrem - 1;
}
BubBurst(_local1[e]._x, _local1[e]._y, _local1[e]._currentframe);
_local1[e].removeMovieClip();
e++;
}
} else {
allsounds[2].start();
}
if (gamemode == 2) {
IncreaseLevel();
}
if (_local1.length > 2) {
CheckDrop();
}
b = 0;
while (b < bublength) {
if (!bubbles[b]._visible) {
bubbles.splice(b, 1);
}
b++;
}
}
function CheckDrop() {
testbubs = new Array();
p = 0;
while (p < bublength) {
testbubs[p] = bubbles[p];
p++;
}
var totloops = 0;
var chains = new Array();
var chain = new Array();
var rooftouch = new Array();
chains[0] = chain;
var ccount = 0;
while (testbubs.length > 0) {
var bubtest = testbubs[0];
chain.push(bubtest);
if (bubtest._y <= (yplace + 5)) {
rooftouch[ccount] = 1;
} else {
rooftouch[ccount] = 0;
}
var nocons = 0;
while (nocons < chain.length) {
b = 1;
while (b < testbubs.length) {
totloops = totloops + 1;
var difx = (testbubs[b]._x - bubtest._x);
var dify = (testbubs[b]._y - bubtest._y);
var dist = ((difx * difx) + (dify * dify));
if (dist < 1225) {
chain.push(testbubs[b]);
if (testbubs[b]._y <= (yplace + 5)) {
rooftouch[ccount] = 1;
}
testbubs.splice(b, 1);
b = b - 1;
}
b++;
}
nocons = nocons + 1;
bubtest = chain[nocons];
}
chains[ccount] = chain;
ccount = ccount + 1;
chain = new Array();
chains[ccount] = chain;
testbubs.splice(0, 1);
}
u = 0;
while (u < chains.length) {
if (rooftouch[u] == 0) {
chain = chains[u];
p = 0;
while (p < chain.length) {
if (chain[p]._visible) {
if (gamemode == 2) {
shotout = shotout + 1;
bubsrem = bubsrem - 1;
}
attachMovie("bubdrop", "bubdrop" + bdrop, 7200 + bdrop);
bubdrop = eval ("bubdrop" + bdrop);
bubdrop.gotoAndStop(chain[p]._currentframe);
bubdrop._x = chain[p]._x;
bubdrop._y = chain[p]._y;
bubdrop.delay = p * 2;
bubdrop.scoreup = 15 + (5 * p);
NumberUp(chain[p]._x, chain[p]._y, bubdrop.scoreup);
chain[p].removeMovieClip();
bdrop = bdrop + 1;
}
p++;
}
}
u++;
}
b = 0;
while (b < bublength) {
if (!bubbles[b]._visible) {
bubbles.splice(b, 1);
}
b++;
}
if (gamemode == 2) {
IncreaseLevel();
}
bubble = 0;
}
function CheckGameOver() {
if (gameon == 1) {
bubsleft = 0;
w = 0;
while (w < bublength) {
if (bubbles[w]._visible && (bubbles[w] != bubble)) {
bubsleft = 1;
}
w++;
}
if (bubsleft == 0) {
NewGame(0, 1);
}
}
}
function BlastEffect(px, py) {
attachMovie("blastlink", "blast" + blastcount, 25 + blastcount);
blast = eval ("blast" + blastcount);
blast._x = px;
blast._y = py;
if (blastcount == 15) {
blastcount = 0;
} else {
blastcount = blastcount + 1;
}
}
function DrawSight(ag) {
this.createEmptyMovieClip("lineclip", 5);
lineclip.lineStyle(2, 16777215, 50);
var _local4 = Math.cos(ag);
var _local5 = Math.sin(ag);
var _local2 = cannon._x + (_local4 * 20);
var _local3 = cannon._y + (_local5 * 20);
lineclip.moveTo(_local2, _local3);
ds = 1;
while (ds < 500) {
_local2 = _local2 + (_local4 * 2);
_local3 = _local3 + (_local5 * 2);
if (_local2 <= 210) {
_local2 = 210;
_local4 = _local4 * -1;
} else if (_local2 >= 510) {
_local2 = 510;
_local4 = _local4 * -1;
} else if (_local3 <= (yplace - 10)) {
break;
}
lineclip.lineTo(_local2, _local3);
_local2 = _local2 + (_local4 * 4);
_local3 = _local3 + (_local5 * 4);
lineclip.moveTo(_local2, _local3);
ds++;
}
}
function KeyListen() {
if (Key.isDown(39)) {
cannon.canin._rotation = cannon.canin._rotation + 1;
} else if (Key.isDown(37)) {
cannon.canin._rotation = cannon.canin._rotation - 1;
}
}
function StartGame() {
if (gamemode == 1) {
LoadLevel();
} else {
RanLevel();
}
bubanim._visible = 1;
FindNext();
ShotSet();
starttime = getTimer();
gameon = 1;
allsounds[8].start();
}
function NewRound(showstats) {
attachMovie("roundclip", "roundclip", 50000);
roundclip._x = 245;
roundclip._y = 80;
rtime = Math.round((getTimer() - starttime) / 1000);
roundclip.roundtime = rtime + " SECONDS";
checkrtime = 120 - rtime;
if (checkrtime > 0) {
rbonus = Math.round(Math.pow(checkrtime, 2) / 20);
} else {
rbonus = 0;
}
roundclip.timebonus = rbonus;
roundclip.roundtext = "ROUND " + gamelevel;
if (!showstats) {
roundclip.gotoAndPlay(60);
} else {
scoreout = scoreout + rbonus;
}
}
attachMovie("introfade", "introfade", 34000);
introfade._x = -2000;
var velx = 0;
var vely = 0;
var vel = 0;
var bubs = 0;
var bdrop = 0;
var bubcount = 0;
var bubble;
var bubbles = new Array();
var scoreout = 0;
var dmcount = 0;
var blastcount = 0;
var ang = 0;
var ang2 = 0;
var moveshot = 0;
var levbubs = 50;
var pauseg = 0;
var bjflip = 1;
var fary = 0;
if (!gamelevel) {
var gamelevel = 1;
}
var canvel = 0;
var gamecount = 0;
var starttime = getTimer();
var shottime = getTimer();
var gameon = 0;
var ranking = 0;
var nextcol = 0;
var bubsrem = 50;
var linespeed = 3.5;
var credits = 2;
var lastang = 0;
var ranbubs = new Array(0, 50);
var difs = new Array(0, 5, 5.5, 6, 7.5, 9);
var bubsx = new Array();
var bubsy = new Array();
var testbubs = new Array();
var switchline = 0;
var sighton = 0;
var yplace = 28;
backblock._y = 28;
roundout = gamelevel;
dangerflash.playgo = 0;
thiscont = 0;
bubanim._visible = 0;
cannon.swapDepths(20000);
smallblock.swapDepths(20001);
if (gamemode == 2) {
roundlabel.gotoAndStop(2);
gamelabel.gotoAndStop(2);
shotout = 0;
credits = 0;
yplace = 0;
} else {
roundlabel.gotoAndStop(1);
gamelabel.gotoAndStop(1);
shotout = 0;
smallblock._visible = 0;
if (gamelevel == 1) {
sighton = 1;
}
}
creditsout = credits;
NewRound();
Instance of Symbol 267 MovieClip "cannon" in Frame 3
onClipEvent (mouseDown) {
if ((_parent.gameon == 1) && (_parent.pauseg == 0)) {
_parent.ShotGo();
}
}
onClipEvent (enterFrame) {
if (_parent.gameon == 1) {
if (_parent.moveshot == 1) {
_parent.ShotEvent();
}
_parent.UpdateTime();
_parent.SetAngle();
}
}
Frame 4
function PrevLevel() {
bubcount = 0;
rows = 1;
while (rows < 13) {
row = eval ((("lev" + levarray[gamelevel]) + ".row_") + rows);
if ((rows % 2) != 0) {
r = 1;
while (r < 11) {
if (row[r] > 0) {
attachMovie("bubble", "bubble" + bubcount, 230 + bubcount);
bubble = eval ("bubble" + bubcount);
bubble._x = 558.8 + ((r - 1) * 15);
bubble._y = 66 + (13 * rows);
bubble._width = 15;
bubble._height = 15;
bubble.gotoAndStop(row[r]);
bubcount = bubcount + 1;
}
r++;
}
} else {
r = 1;
while (r < 10) {
if (row[r] > 0) {
attachMovie("bubble", "bubble" + bubcount, 230 + bubcount);
bubble = eval ("bubble" + bubcount);
bubble._x = 566.3 + ((r - 1) * 15);
bubble._y = 66 + (13 * rows);
bubble._width = 15;
bubble._height = 15;
bubble.gotoAndStop(row[r]);
bubcount = bubcount + 1;
}
r++;
}
}
rows++;
}
}
function ShowPrev(gl) {
levprevover.gotoAndPlay(2);
gamelevel = gl;
levshowout = "LEVEL " + gl;
levelshow._visible = 1;
ClearPrev();
PrevLevel();
}
function ClearPrev() {
bu = 0;
while (bu < bubcount) {
bubble = eval ("bubble" + bu);
bubble.removeMovieClip();
bu++;
}
}
function ClearLevs() {
levprevover.removeMovieClip();
lev = 1;
while (lev <= 100) {
levsh = eval ("levshow" + lev);
levsh.removeMovieClip();
lev++;
}
}
function PlayLev() {
ClearPrev();
ClearLevs();
gamemode = 1;
gotoAndStop (3);
}
function HidePrev() {
levprevover.gotoAndPlay(6);
ClearPrev();
levelshow._visible = 0;
}
opt3.gotoAndStop(2);
var diff = 12;
var difnum = 3;
getgames = SharedObject.getLocal("bubblegames");
if (getgames.data.levcomplete) {
levcomp = getgames.data.levcomplete;
} else {
levcomp = 1;
}
if (!gametype) {
var gametype = 2;
tg2.gotoAndStop(2);
} else if (gametype == 1) {
tg1.gotoAndStop(2);
} else {
tg2.gotoAndStop(2);
}
levcol = 1;
levrow = 1;
levelshow._visible = 0;
levprevover.swapDepths(45000);
lev = 1;
while (lev <= 100) {
attachMovie("levshowclip", "levshow" + lev, 650 + lev);
levsh = eval ("levshow" + lev);
levsh._x = (levcol * 52) - 35;
levsh._y = 38 + (levrow * 30);
levsh.tnum = lev;
levsh.levnum = lev;
if ((lev % 10) == 0) {
levcol = levcol + 1;
levrow = 1;
} else {
levrow = levrow + 1;
}
if (lev > levcomp) {
levsh.gotoAndPlay(11);
}
if (lev > 15) {
levsh.gotoAndPlay(11);
}
lev++;
}
Instance of Symbol 205 MovieClip "tg1" in Frame 4
onClipEvent (load) {
gametype = 1;
}
Instance of Symbol 205 MovieClip "tg2" in Frame 4
onClipEvent (load) {
gametype = 2;
}
Frame 7
function ShowScores(gamet) {
if (!gamet) {
ascores = ascores1;
anames = anames1;
rscores = rscores1;
rnames = rnames1;
} else {
ascores = ascores2;
anames = anames2;
rscores = rscores2;
rnames = rnames2;
}
sc = 1;
while (sc <= 10) {
ascore = eval ("allscores.allscoresin.ascore" + sc);
rscore = eval ("allscores.allscoresin.rscore" + sc);
ascore.nameout = "";
ascore.scoreout = "";
ascore.numout = "";
rscore.nameout = "";
rscore.scoreout = "";
rscore.numout = "";
if ((ranking > 0) && (sc == ranking)) {
if (((gametype == 1) && (!gamet)) || ((gametype == 2) && (gamet))) {
if (gamemode == 1) {
}
}
}
if (ascores[sc]) {
ascore.nameout = anames[sc - 1].toUpperCase();
ascore.scoreout = ascores[sc - 1];
ascore.numout = sc;
} else {
ascore.nameout = "";
ascore.scoreout = "";
ascore.numout = "";
}
if (rscores[sc]) {
rscore.nameout = rnames[sc - 1].toUpperCase();
rscore.scoreout = rscores[sc - 1];
rscore.numout = sc;
} else {
rscore.nameout = "";
rscore.scoreout = "";
rscore.numout = "";
}
sc++;
}
thiscont = 1;
if (!gamet) {
allscores.gotoAndPlay(115);
} else {
allscores.gotoAndPlay(1);
}
}
thiscont = 0;
loadVariables ("http://www.wolfcom.ca/getscores.php?rannum=" + random(100000), getscores);
Instance of Symbol 321 MovieClip "getscores" in Frame 7
onClipEvent (data) {
_parent.ascores1 = ascores1.split(",");
_parent.rscores1 = rscores1.split(",");
_parent.anames1 = anames1.split(",");
_parent.rnames1 = rnames1.split(",");
_parent.ascores2 = ascores2.split(",");
_parent.rscores2 = rscores2.split(",");
_parent.anames2 = anames2.split(",");
_parent.rnames2 = rnames2.split(",");
_parent.ShowScores(1);
_parent.allscores.allscoresin.gamemodeout.gotoAndStop(2);
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip [introfade] Frame 1
onClipEvent (load) {
count = 0;
cvol = 15;
}
onClipEvent (enterFrame) {
if ((count % 3) == 0) {
_parent._parent.allsounds[12].setVolume(cvol);
cvol = cvol - 1;
if (cvol <= 0) {
_parent._parent.allsounds[12].stop();
_parent.removeMovieClip();
}
}
count = count + 1;
}
Symbol 22 Button
on (release) {
_parent.ClearGameOver();
_parent.NewGame(1);
}
Symbol 30 Button
on (release) {
if (finalscore) {
gotoAndStop (3);
} else {
_parent.gotoAndStop(1);
_parent.ClearGameOver();
_parent.ClearGame();
}
}
Symbol 36 Button
on (release) {
if (!entername) {
entername = "PLAYER 1";
}
_parent.SaveHiScore(entername);
_parent.gotoAndStop(8);
_parent.ClearGameOver();
_parent.ClearGame();
}
Symbol 43 MovieClip [gameoverclip] Frame 1
credits = _parent.credits;
stop();
Symbol 43 MovieClip [gameoverclip] Frame 3
_parent.allsounds[6].start();
Symbol 43 MovieClip [gameoverclip] Frame 4
_parent.allsounds[6].start();
Symbol 53 MovieClip [bubdrop] Frame 1
stop();
Instance of Symbol 45 MovieClip in Symbol 53 MovieClip [bubdrop] Frame 1
onClipEvent (load) {
grav = 4;
}
onClipEvent (enterFrame) {
if (_parent.delay < 0) {
_parent._y = _parent._y + grav;
grav = grav + 3;
if (_parent._y > 450) {
_parent.removeMovieClip();
}
}
_parent.delay = _parent.delay - 1;
}
Symbol 56 MovieClip [blastlink] Frame 5
this.removeMovieClip();
Symbol 59 MovieClip [damnum] Frame 35
this.removeMovieClip();
Symbol 66 MovieClip [bub] Frame 1
stop();
Instance of Symbol 45 MovieClip in Symbol 66 MovieClip [bub] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + _parent.x;
_parent._y = _parent._y + _parent.y;
_parent._xscale = _parent._xscale - 1;
_parent._yscale = _parent._yscale - 1;
_parent.y = _parent.y + 1;
if (_parent._xscale < 0) {
_parent.removeMovieClip();
}
}
Symbol 78 MovieClip [roundclip] Frame 60
Symbol 78 MovieClip [roundclip] Frame 119
_parent.StartGame();
this.removeMovieClip();
Symbol 81 Button
on (rollOver) {
_parent.ShowPrev(tnum);
}
on (release) {
_parent.PlayLev();
}
on (rollOut) {
_parent.HidePrev();
}
Symbol 84 Button
on (rollOver) {
_parent.ShowPrev(tnum);
}
on (release) {
_parent.allsounds[9].start();
_parent.PlayLev();
}
on (rollOut) {
_parent.HidePrev();
}
Symbol 87 Button
on (rollOver) {
_parent.ShowPrev(tnum);
}
Symbol 88 Button
on (rollOver) {
_parent.levelshow._visible = 1;
_parent.levshowout = "LOCKED";
}
on (rollOut) {
_parent.levelshow._visible = 0;
_parent.levshowout = "";
}
Symbol 89 MovieClip [levshowclip] Frame 10
stop();
Symbol 89 MovieClip [levshowclip] Frame 20
stop();
Symbol 98 MovieClip [scoreline] Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 109 MovieClip [bubble] Frame 1
stop();
Symbol 115 Button
on (rollOver) {
_parent.pauseg = 1;
}
on (rollOut) {
_parent.pauseg = 0;
}
on (press) {
_parent.rootsound.setVolume(0);
_parent.volumeon = 0;
gotoAndStop (2);
}
Symbol 116 Button
on (rollOver) {
_parent.pauseg = 1;
}
on (rollOut) {
_parent.pauseg = 0;
}
on (press) {
_parent.rootsound.setVolume(100);
_parent.volumeon = 1;
gotoAndStop (1);
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 122 Button
on (press) {
getURL ("http://www.wolfcom.ca/", "_blank");
}
Symbol 151 MovieClip Frame 215
_parent.gotoAndStop(2);
Symbol 159 Button
on (press) {
_parent._parent.allsounds[9].start();
_parent._parent.gotoAndStop(2);
}
Symbol 160 MovieClip Frame 13
stop();
Symbol 163 Button
on (press) {
_parent._parent.allsounds[9].start();
_parent._parent.gotoAndStop(4);
}
Symbol 164 MovieClip Frame 12
stop();
Symbol 168 Button
on (press) {
_parent._parent.allsounds[9].start();
_parent._parent.gotoAndStop(7);
}
Symbol 169 MovieClip Frame 12
stop();
Symbol 173 Button
on (press) {
_parent._parent.allsounds[9].start();
_parent._parent.gotoAndStop(5);
}
Symbol 174 MovieClip Frame 12
stop();
Symbol 178 Button
on (press) {
_parent._parent.allsounds[9].start();
_parent._parent.gotoAndStop(6);
}
Symbol 179 MovieClip Frame 12
stop();
Symbol 185 Button
on (release) {
getURL ("http://www.wolfcom.ca/", "_blank");
}
Symbol 189 Button
on (release) {
getURL ("http://www.wolfcom.ca/", "_blank");
}
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
_parent.MouseLoad();
if (_parent.allsounds[12].position == 0) {
_parent.allsounds[12].start(0, 999);
}
Symbol 197 Button
on (release) {
allsounds[10].start();
ClearGame();
gotoAndStop (1);
}
Symbol 203 Button
on (press) {
_parent.allsounds[11].start();
_parent.tg1.gotoAndStop(1);
_parent.tg2.gotoAndStop(1);
_parent.gametype = gametype;
gotoAndStop (2);
}
Symbol 205 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 12
stop();
Symbol 214 Button
on (press) {
_parent.allsounds[9].start();
_parent.gamemode = 1;
_parent.gotoAndStop(3);
}
Symbol 215 MovieClip Frame 12
stop();
Symbol 220 Button
on (rollOver) {
PauseGame();
}
on (rollOut) {
PauseGame();
}
on (release) {
allsounds[10].start();
ClearGameOver();
ClearGame();
gotoAndStop (1);
}
Symbol 224 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 10
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 10
if (playgo == 1) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 242 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 273 Button
on (release) {
allsounds[10].start();
ClearPrev();
ClearLevs();
gotoAndStop (1);
}
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 5
stop();
Symbol 296 Button
on (release) {
getURL ("http://www.wolfcom.ca/", "_blank");
}
Symbol 300 Button
on (release) {
getURL ("http://www.n8-music.com/", "_blank");
}
Symbol 301 Button
on (release) {
getURL ("http://www.wolfcom.ca/", "_blank");
}
Symbol 318 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 1
if (!_parent.thiscont) {
stop();
} else {
allscoresin.gamemodeout.gotoAndStop(2);
_parent.ShowScores(1);
gotoAndPlay (2);
}
Symbol 320 MovieClip Frame 115
allscoresin.gamemodeout.gotoAndStop(1);
_parent.ShowScores(0);
Symbol 338 Button
on (release) {
getURL ("http://www.wolfcom.ca/paypal_trans.htm", "_blank");
}