Frame 1
var loaded = _root.getBytesLoaded();
var total = _root.getBytesTotal();
var percent = Math.ceil((loaded / total) * 100);
var pct = (percent + "%");
bar._xscale = percent;
Frame 2
if (loaded != total) {
gotoAndPlay (1);
}
Frame 3
stopAllSounds();
for (z in _root) {
_root[z].removeMovieClip();
}
_global.score = 0;
_global.addscore = function (ammount, xpos, ypos) {
_global.score = Number(_global.score) + Number(ammount);
_root.pi++;
_root.level.attachMovie("scorespot", "score_" + _root.pi, _root.pi, {_x:xpos, _y:ypos, pie:("+" + ammount) + "!"});
};
Frame 4
stop();
Frame 5
stop();
Frame 6
var vol = 0;
var stars = 0;
var s_i = 0;
var starspd = [8, 15];
var starspawn = 0;
var menuloop = new Sound();
menuloop.attachSound("loopmain");
menuloop.start(0, 0);
menuloop.setVolume(0);
menuloop.onSoundComplete = function () {
menuloop.start(0, 0);
};
var frame = _root._currentframe;
_root.onEnterFrame = function () {
if (_root._currentframe == frame) {
if (vol < 100) {
vol = vol + 0.5;
}
menuloop.setVolume(vol);
starspawn = random(5);
if ((starspawn == 1) && (stars < 60)) {
stars++;
s_i++;
holdstars.attachMovie("star", "star_" + s_i, s_i, {_y:random(Stage.height), _x:-33, _rotation:-180 + random(361), _spd:starspd[0] + random(starspd[1])});
holdstars["star_" + s_i].cacheAsBitmap = true;
holdstars["star_" + s_i].onEnterFrame = function () {
this._x = this._x + this._spd;
if (this._x > (Stage.width + 33)) {
_root.stars--;
this.removeMovieClip();
}
};
}
f = Math.round(1000 / (getTimer() - t));
t = getTimer();
fps = "fps: " + f;
}
};
_global.username = "player1";
stop();
Frame 7
_global.score = 0;
stop();
Frame 8
_root.bestplayer = "loading...";
var bplv = new LoadVars();
bplv.load("http://shared2.pldmstudios.com/santas/bp.php");
bplv.onLoad = function (success) {
if (success) {
_root.bestplayer = bplv.bestplayer;
} else {
_root.bestplayer = "";
}
};
var levels_ar = new Array();
levels_ar[0] = new Object();
levels_ar[1] = new Object();
levels_ar[1].time = 5;
levels_ar[1].enemies = [[1, "kid"], [2, "kid"], [2.5, "kid"], [3, "kid"], [4, "kid"]];
levels_ar[1].specials = [[2.2, "fast"]];
levels_ar[2] = new Object();
levels_ar[2].time = 10;
levels_ar[2].enemies = [[1, "kid"], [2.1, "kid"], [2.5, "kid"], [2.7, "kid"], [4, "goblin"], [5, "goblin"], [6, "goblin"], [7, "goblin"]];
levels_ar[2].specials = [[5, "fast"]];
levels_ar[3] = new Object();
levels_ar[3].time = 15;
levels_ar[3].enemies = [[1, "goblin"], [1.5, "goblin"], [2, "kid"], [3, "hunch"], [4, "goblin"], [5, "kid"], [6, "goblin"], [7, "goblin"], [8, "goblin"], [9, "goblin"], [12, "grufus"]];
levels_ar[3].specials = [];
levels_ar[4] = new Object();
levels_ar[4].time = 20;
levels_ar[4].enemies = [[1, "goblin"], [2, "goblin"], [3, "hunch"], [8, "goblin"], [8.5, "kid"], [9, "kid"], [11, "goblin"], [15, "grufus"], [15.4, "grufus"], [16, "grufus"]];
levels_ar[4].specials = [[17, "bullet"]];
levels_ar[5] = new Object();
levels_ar[5].time = 20;
levels_ar[5].enemies = [[1, "goblin"], [2, "bug"], [3, "bug"], [4, "kid"], [5, "kid"], [5.5, "kid"], [6, "jbug"], [6.5, "kid"], [10, "kid"], [11, "goblin"], [11.5, "grufus2"], [13, "grufus"], [14, "hunch"], [15, "hunch"], [17, "hunch"]];
levels_ar[5].specials = [[10, "life"]];
levels_ar[6] = new Object();
levels_ar[6].time = 30;
levels_ar[6].enemies = [[1, "kid"], [1.5, "goblin"], [2, "goblin"], [2.5, "goblin"], [3, "goblin"], [4, "hunch"], [6, "hunch"], [8, "hunch"], [10, "hunch"], [12, "grufus2"], [12.5, "grufus2"], [13, "grufus"], [14, "bug"], [15, "bug"], [17, "bug"], [17.5, "bug"], [18, "bug"], [20, "tank"], [21, "goblin"], [22, "goblin"], [23, "goblin"], [24, "goblin"], [25, "goblin"], [25.5, "hunch"], [26, "hunch"], [26.5, "hunch"], [27, "hunch"], [27.5, "hunch"], [28, "hunch"], [28.5, "hunch"], [29, "hunch"]];
levels_ar[6].specials = [[15, "fast"], [20, "life"], [29.5, "life"]];
levels_ar[7] = new Object();
levels_ar[7].time = 30;
levels_ar[7].enemies = [[0.5, "kid"], [1, "kid"], [1.5, "kid"], [2, "kid"], [2.5, "tank"], [3.5, "tank"], [4, "bug"], [5, "bug"], [6, "jbug"], [10, "grufus2"], [11, "grufus2"], [12, "grufus2"], [13, "grufus2"], [14, "grufus2"], [15, "grufus2"], [18, "hunch"], [18.5, "hunch"], [19, "hunch"], [19.5, "hunch"], [20, "hunch"], [20.5, "kid"], [21, "goblin"], [21.5, "kid"], [22, "goblin"], [22.5, "bug"], [23, "tank"], [23.5, "jbug"], [25, "grufus2"], [26, "grufus"], [26.5, "grufus"], [27, "grufus"], [27.5, "hunch"], [28, "kid"], [28.5, "kid"], [29, "kid"]];
levels_ar[7].specials = [[20, "life"], [28, "life"]];
levels_ar[8] = new Object();
levels_ar[8].time = 32;
levels_ar[8].enemies = [[0.5, "grufus2"], [1, "grufus2"], [1.5, "bug"], [2, "tank"], [4, "tank"], [6, "tank"], [6.5, "kid"], [7, "kid"], [7.5, "kid"], [8, "kid"], [8.5, "kid"], [9, "kid"], [9.5, "kid"], [10, "kid"], [10.5, "kid"], [11, "kid"], [11.5, "kid"], [12, "kid"], [12.5, "kid"], [13, "kid"], [13.5, "kid"], [14, "kid"], [14.5, "kid"], [15, "kid"], [15.5, "hunch"], [17, "hunch"], [20, "hunch"], [23, "hunch"], [26, "hunch"], [26.5, "grufus"], [27, "grufus"], [27.5, "grufus"], [28, "grufus"], [28.5, "grufus"], [29, "grufus"], [30, "tank"]];
levels_ar[8].specials = [[12, "god"], [31, "fast"]];
levels_ar[9] = new Object();
levels_ar[9].time = 40;
levels_ar[9].enemies = [[0.5, "kid"], [1, "kid"], [1.5, "kid"], [2, "kid"], [2.5, "kid"], [3, "kid"], [3.5, "kid"], [4, "kid"], [4.5, "kid"], [5, "kid"], [5.5, "kid"], [6, "kid"], [6.5, "kid"], [7, "kid"], [7.5, "kid"], [8, "kid"], [8.5, "kid"], [9, "kid"], [9.5, "kid"], [10, "kid"], [10.5, "kid"], [11, "kid"], [11.5, "kid"], [12, "kid"], [12.5, "kid"], [13, "kid"], [13.5, "kid"], [14, "kid"], [14.5, "kid"], [15, "kid"], [17, "grufus2"], [18, "grufus2"], [19, "grufus2"], [20, "grufus2"], [22, "hunch"], [24, "hunch"], [26, "hunch"], [29, "hunch"], [30, "hunch"], [34, "tank"], [35.5, "tank"], [37, "tank"]];
levels_ar[9].specials = [[5, "life"], [8, "life"], [16, "fast"]];
levels_ar[10] = new Object();
levels_ar[10].time = 2000;
levels_ar[10].enemies = [[0.5, "goblin"], [1, "goblin"], [1.5, "goblin"], [2, "goblin"], [2.5, "hunch"], [3, "hunch"], [3.5, "hunch"], [4, "hunch"], [4.5, "hunch"], [5, "hunch"], [5.5, "hunch"], [6, "hunch"], [6.5, "hunch"], [7, "hunch"], [7.5, "hunch"], [8, "hunch"], [8.5, "hunch"], [9, "hunch"], [9.5, "hunch"], [10, "hunch"], [15, "grufus2"], [15.5, "grufus2"], [16, "grufus2"], [18, "tank"], [20, "tank"], [22, "tank"], [24, "tank"], [28, "tank"], [32, "tank"], [33, "kid"], [33.5, "kid"], [34, "kid"], [34.5, "kid"], [35, "kid"], [35.5, "kid"], [36, "kid"], [36.5, "goblin"], [36.5, "kid"], [37, "goblin"], [37, "kid"], [37.5, "kid"], [37.5, "goblin"], [38, "jbug"], [38, "kid"], [38, "goblin"], [48, "boss"]];
levels_ar[10].specials = [[40, "fast"], [60, "life"]];
levels_ar[11] = new Object();
levels_ar[11].time = 40;
levels_ar[11].enemies = [[1, "kid"], [1.5, "kid"], [2, "kid"], [2.5, "kid"], [3, "kid"], [6, "kid"], [6, "goblin"], [6, "bug"], [6, "bug"], [6, "tank"], [10, "tank"], [12, "tank"], [14, "tank"], [16, "tank"], [18, "tank"], [20, "tank"], [23, "jbug"], [23, "jbug"], [23, "jbug"], [24, "bug"], [25, "bug"], [26, "bug"], [27, "bug"], [28, "tank"], [28, "bug"], [29, "goblin"], [29, "kid"], [30, "kid"], [31, "kid"], [32, "kid"], [33, "kid"], [33.5, "kid"], [34, "kid"], [34.5, "kid"], [34.5, "goblin"], [35, "goblin"], [35, "kid"], [35.5, "kid"], [35.5, "goblin"], [36, "grufus2"], [37, "grufus2"], [38, "grufus2"]];
levels_ar[11].specials = [[5, "life"], [10, "god"], [20, "life"], [32, "fast"]];
levels_ar[12] = new Object();
levels_ar[12].time = 40;
levels_ar[12].enemies = [[1, "tank"], [2, "tank"], [3, "tank"], [4, "tank"], [5, "tank"], [6, "bug"], [6.5, "jbug"], [6.5, "bug"], [6.5, "jbug"], [7.5, "jbug"], [8.5, "jbug"], [9, "jbug"], [9.5, "jbug"], [10, "jbug"], [10, "tank"], [10.5, "grufus2"], [11, "grufus2"], [11.5, "grufus2"], [12, "grufus2"], [12.5, "grufus"], [13, "grufus"], [13, "kid"], [13, "goblin"], [13, "hunch"], [13.5, "hunch"], [13.5, "goblin"], [14, "hunch"], [14, "goblin"], [15, "goblin"], [16, "goblin"], [16.5, "goblin"], [17, "goblin"], [17, "hunch"], [17.5, "goblin"], [18, "hunch"], [19, "tank"], [20, "tank"], [20.5, "grufus2"], [22, "grufus2"], [24, "grufus2"], [26, "grufus2"], [26, "jbug"], [28, "jbug"], [30, "jbug"], [30.5, "jbug"], [31, "jbug"], [31.5, "grufus"], [34, "grufus"], [37, "grufus"], [37.5, "grufus"], [38, "grufus"], [38.5, "grufus"], [39, "grufus"]];
levels_ar[12].specials = [[3, "bullet"], [10, "fast"], [12, "life"]];
levels_ar[13] = new Object();
levels_ar[13].time = 60;
levels_ar[13].enemies = [[1, "kid"], [1.5, "kid"], [2, "kid"], [2.5, "kid"], [3, "kid"], [3.5, "kid"], [4, "kid"], [4.5, "kid"], [5, "kid"], [5.5, "kid"], [6, "kid"], [7, "kid"], [7.5, "kid"], [8, "kid"], [8.5, "kid"], [9.5, "kid"], [10, "kid"], [10, "goblin"], [10, "jbug"], [11, "tank"], [14, "tank"], [14.5, "tank"], [15, "tank"], [15, "jbug"], [16, "bug"], [16.5, "bug"], [17, "bug"], [17.5, "bug"], [18, "bug"], [18.5, "bug"], [19, "bug"], [19.5, "bug"], [20, "bug"], [20, "kid"], [20.5, "kid"], [21, "kid"], [21, "goblin"], [21, "hunch"], [21.5, "hunch"], [22, "hunch"], [22, "goblin"], [22.5, "hunch"], [23, "hunch"], [23.5, "hunch"], [24, "hunch"], [24.5, "hunch"], [25, "hunch"], [25.5, "hunch"], [26, "hunch"], [26, "tank"], [26.5, "goblin"], [27, "goblin"], [27.5, "goblin"], [28, "goblin"], [28.5, "goblin"], [29, "goblin"], [29.5, "goblin"], [30, "goblin"], [30, "hunch"], [30, "grufus"], [30.5, "grufus"], [30.5, "hunch"], [30.5, "goblin"], [31, "goblin"], [31, "hunch"], [31, "grufus"], [31.5, "grufus"], [31.5, "hunch"], [31.5, "goblin"], [32, "kid"], [32, "grufus2"], [32.5, "grufus2"], [32.5, "kid"], [33, "tank"], [35, "tank"], [37, "tank"], [38, "jbug"], [39, "grufus2"], [39.5, "hunch"], [40, "hunch"], [40.5, "hunch"], [41, "hunch"], [41.5, "hunch"], [42, "hunch"], [42, "grufus"], [42.5, "grufus"], [43, "grufus2"], [43, "goblin"], [43.5, "goblin"], [43.5, "grufus"], [45, "grufus"], [45.5, "hunch"], [46.5, "hunch"], [47.5, "grufus2"], [47.5, "bug"], [48, "bug"], [48.5, "bug"], [49, "jbug"], [50, "jbug"], [52, "jbug"], [54, "jbug"], [56, "jbug"]];
levels_ar[13].specials = [[17, "life"], [35, "fast"], [48, "god"]];
levels_ar[14] = new Object();
levels_ar[14].time = 60;
levels_ar[14].enemies = [[0.5, "kid"], [1, "kid"], [1.5, "kid"], [2, "kid"], [2.5, "kid"], [3, "kid"], [3.5, "kid"], [4, "kid"], [4.5, "kid"], [5, "kid"], [5.5, "kid"], [6, "kid"], [6.5, "kid"], [7, "kid"], [7.5, "kid"], [8, "kid"], [8.5, "kid"], [9, "kid"], [9.5, "kid"], [10, "kid"], [10.5, "tank"], [11.5, "tank"], [12.5, "tank"], [13.5, "tank"], [14.5, "tank"], [15.5, "tank"], [16, "hunch"], [16.5, "hunch"], [17, "hunch"], [17.5, "hunch"], [18, "hunch"], [18.5, "hunch"], [19, "hunch"], [19.5, "hunch"], [20, "hunch"], [20.5, "hunch"], [21, "hunch"], [21.5, "hunch"], [21.5, "jbug"], [19.5, "jbug"], [17.5, "jbug"], [17, "jbug"], [16.5, "jbug"], [24, "jbug"], [25, "jbug"], [26, "jbug"], [27, "jbug"], [30, "jbug"], [30.5, "jbug"], [31, "jbug"], [31.5, "jbug"], [32, "jbug"], [32.5, "jbug"], [33.5, "jbug"], [38, "grufus2"], [38.5, "grufus"], [39, "grufus2"], [39.5, "grufus"], [39.5, "bug"], [39, "bug"], [39, "jbug"], [41.5, "jbug"], [42, "goblin"], [42.5, "goblin"], [43, "goblin"], [43.5, "goblin"], [44, "goblin"], [44.5, "goblin"], [45, "goblin"], [45.5, "goblin"], [46, "goblin"], [46.5, "goblin"], [47, "goblin"], [47.5, "goblin"], [48, "goblin"], [48.5, "goblin"], [49, "goblin"], [49.5, "goblin"], [50, "goblin"], [50, "tank"], [50.5, "tank"], [51, "tank"], [53, "tank"], [55, "tank"], [57, "tank"], [59, "tank"]];
levels_ar[14].specials = [[10, "god"], [20, "bullet"], [30, "life"], [40, "life"], [50, "life"]];
levels_ar[15] = new Object();
levels_ar[15].time = 60;
levels_ar[15].enemies = [[0.9, "kid"], [0.9, "goblin"], [1.2, "hunch"], [1.5, "goblin"], [1.8, "kid"], [2.1, "kid"], [2.4, "kid"], [2.7, "kid"], [3, "kid"], [3.3, "kid"], [3.6, "kid"], [3.9, "kid"], [4.2, "kid"], [4.5, "kid"], [4.8, "kid"], [5.1, "kid"], [5.4, "kid"], [5.7, "kid"], [6, "kid"], [6.3, "kid"], [6.6, "kid"], [6.9, "kid"], [7.2, "kid"], [7.5, "kid"], [7.8, "kid"], [8.1, "kid"], [8.4, "kid"], [8.7, "kid"], [9, "kid"], [9.3, "kid"], [9.6, "kid"], [9.9, "kid"], [10.2, "kid"], [10.5, "kid"], [10.8, "kid"], [11.1, "kid"], [11.4, "tank"], [12.3, "tank"], [13.2, "tank"], [14.1, "tank"], [15, "tank"], [15.9, "tank"], [16.8, "tank"], [17.7, "jbug"], [18.6, "jbug"], [19.5, "bug"], [20.4, "bug"], [21.3, "grufus"], [22.2, "hunch"], [23.1, "goblin"], [24, "kid"], [24.9, "goblin"], [25.8, "grufus"], [26.7, "grufus2"], [27.6, "bug"], [28.5, "jbug"], [29.4, "tank"], [30.3, "jbug"], [31.2, "bug"], [32.1, "grufus2"], [33, "grufus"], [33.9, "hunch"], [34.8, "tank"], [36.3, "tank"], [37.8, "tank"], [39.9, "tank"], [42, "bug"], [42.9, "bug"], [43.8, "bug"], [45.3, "bug"], [46.8, "bug"], [48.9, "bug"], [51, "bug"], [53.1, "bug"], [55.2, "bug"], [57.3, "bug"]];
levels_ar[15].specials = [[30, "god"], [59, "life"]];
levels_ar[16] = new Object();
levels_ar[16].time = 60;
levels_ar[16].enemies = [[0.5, "hunch"], [0.9, "hunch"], [1.5, "hunch"], [2.1, "hunch"], [2.7, "hunch"], [3.3, "hunch"], [3.9, "hunch"], [4.5, "hunch"], [5.1, "hunch"], [5.7, "hunch"], [6.3, "kid"], [6.6, "kid"], [6.9, "kid"], [7.2, "kid"], [7.5, "kid"], [7.8, "kid"], [8.1, "kid"], [8.4, "kid"], [8.7, "kid"], [9, "kid"], [9.3, "kid"], [9.6, "kid"], [9.9, "kid"], [10.2, "kid"], [10.5, "kid"], [10.8, "kid"], [11.1, "kid"], [11.4, "kid"], [11.7, "kid"], [12, "kid"], [12.3, "grufus"], [13.2, "grufus"], [14.1, "grufus"], [15, "grufus"], [15.9, "grufus"], [16.8, "bug"], [17.7, "bug"], [18.6, "bug"], [19.5, "grufus"], [19.5, "grufus2"], [20.1, "hunch"], [20.1, "grufus2"], [20.7, "hunch"], [20.7, "grufus2"], [20.7, "grufus2"], [21.3, "hunch"], [21.3, "grufus2"], [21.9, "hunch"], [21.9, "grufus2"], [22.5, "hunch"], [22.5, "grufus2"], [23.1, "hunch"], [23.1, "grufus2"], [23.7, "hunch"], [23.7, "grufus2"], [23.7, "goblin"], [24.3, "goblin"], [24.9, "goblin"], [25.5, "goblin"], [26.1, "goblin"], [26.7, "goblin"], [27.3, "goblin"], [27.9, "goblin"], [28.5, "jbug"], [29.1, "goblin"], [29.7, "goblin"], [30.3, "goblin"], [30.9, "goblin"], [31.5, "jbug"], [32.1, "jbug"], [32.7, "goblin"], [33.3, "goblin"], [33.9, "goblin"], [34.5, "goblin"], [35.1, "goblin"], [35.7, "goblin"], [36.3, "goblin"], [36.9, "goblin"], [37.5, "goblin"], [38.1, "goblin"], [38.7, "kid"], [39, "kid"], [39.3, "kid"], [39.6, "kid"], [39.9, "kid"], [40.2, "kid"], [40.5, "kid"], [40.8, "kid"], [41.1, "kid"], [41.4, "kid"], [41.7, "kid"], [42, "kid"], [42.3, "kid"], [42.6, "jbug"], [42.9, "kid"], [43.2, "kid"], [43.5, "kid"], [43.8, "jbug"], [44.1, "kid"], [44.4, "kid"], [44.7, "kid"], [45, "kid"], [45.3, "jbug"], [45.6, "kid"], [45.9, "kid"], [46.2, "grufus2"], [46.5, "kid"], [46.8, "grufus2"], [47.1, "jbug"], [47.4, "kid"], [47.7, "kid"], [48, "kid"], [48.3, "kid"], [48.6, "kid"], [48.9, "kid"], [49.2, "kid"], [49.5, "kid"], [49.8, "kid"], [50.1, "kid"], [50.4, "kid"], [50.7, "kid"], [51, "kid"], [51.3, "kid"], [51.6, "kid"], [51.9, "kid"], [52.2, "kid"], [52.5, "kid"], [52.8, "kid"], [53.1, "kid"], [53.4, "kid"], [53.7, "kid"], [54, "kid"], [54.3, "kid"], [54.6, "kid"], [54.9, "kid"], [55.2, "kid"], [55.5, "kid"], [55.8, "kid"], [56.1, "tank"], [57.6, "tank"]];
levels_ar[16].specials = [[46, "bullet"]];
levels_ar[17] = new Object();
levels_ar[17].time = 60;
levels_ar[17].enemies = [[0.5, "tank"], [2.4, "tank"], [4.5, "tank"], [6.6, "tank"], [8.7, "tank"], [10.8, "tank"], [12.9, "tank"], [15, "tank"], [17.1, "tank"], [19.2, "tank"], [21.3, "tank"], [23.4, "tank"], [25.5, "tank"], [27.6, "tank"], [29.7, "tank"], [31.8, "hunch"], [32.1, "hunch"], [32.4, "grufus2"], [34.5, "grufus2"], [36.6, "grufus2"], [38.7, "grufus2"], [40.8, "grufus2"], [42.9, "hunch"], [45, "hunch"], [47.1, "hunch"], [49.2, "hunch"], [51.3, "hunch"], [52.2, "hunch"], [53.1, "hunch"], [54, "hunch"], [54.9, "hunch"], [55.8, "hunch"], [56.7, "hunch"]];
levels_ar[17].specials = [[30, "life"], [50, "fast"], [55, "god"]];
levels_ar[18] = new Object();
levels_ar[18].time = 70;
levels_ar[18].enemies = [[0.5, "jbug"], [2.1, "jbug"], [3.6, "jbug"], [5.1, "jbug"], [6.6, "jbug"], [8.1, "jbug"], [9.6, "jbug"], [11.1, "jbug"], [12.6, "jbug"], [14.1, "jbug"], [15.6, "jbug"], [17.1, "jbug"], [18.6, "jbug"], [20.1, "tank"], [22.2, "tank"], [24.3, "tank"], [26.4, "tank"], [28.5, "tank"], [30.6, "tank"], [32.7, "tank"], [34.8, "tank"], [35.7, "tank"], [36.6, "tank"], [37.5, "tank"], [38.4, "tank"], [39.3, "tank"], [39.6, "tank"], [39.9, "tank"], [40.2, "kid"], [40.5, "kid"], [40.8, "kid"], [41.1, "kid"], [41.4, "kid"], [41.7, "kid"], [42, "kid"], [42.3, "kid"], [42.6, "kid"], [42.9, "kid"], [43.2, "kid"], [43.5, "kid"], [43.8, "kid"], [44.1, "kid"], [44.4, "kid"], [44.7, "kid"], [45, "kid"], [45.3, "kid"], [45.6, "kid"], [45.9, "kid"], [46.2, "goblin"], [46.5, "hunch"], [46.8, "grufus"], [47.1, "grufus2"], [47.4, "bug"], [47.7, "jbug"], [48, "bug"], [48.3, "grufus2"], [48.6, "grufus"], [48.9, "hunch"], [49.2, "goblin"], [49.5, "kid"], [49.8, "kid"], [50.1, "kid"], [50.4, "kid"], [50.7, "kid"], [51, "kid"], [51.3, "kid"], [51.6, "tank"], [51.9, "kid"], [52.2, "kid"], [52.5, "kid"], [52.8, "kid"], [53.1, "tank"], [53.4, "kid"], [53.7, "kid"], [54, "kid"], [54.3, "hunch"], [54.6, "hunch"], [54.9, "kid"], [55.2, "kid"], [55.5, "tank"], [55.8, "kid"], [56.1, "tank"], [56.4, "kid"], [56.7, "kid"], [57, "kid"], [57.3, "kid"], [57.6, "kid"], [57.9, "kid"], [58.2, "kid"], [58.5, "kid"], [58.8, "kid"], [59.1, "kid"], [59.4, "kid"], [59.7, "kid"], [60, "kid"], [60.3, "kid"], [60.6, "kid"], [60.9, "kid"], [61.2, "kid"], [61.5, "kid"], [61.8, "kid"], [62.1, "kid"], [62.4, "kid"], [62.7, "bug"], [63, "kid"], [63.3, "kid"], [63.6, "kid"], [63.9, "jbug"], [64.2, "kid"], [64.5, "kid"], [64.8, "kid"], [65.1, "kid"], [65.4, "kid"], [65.7, "kid"], [66, "kid"], [66.3, "grufus"], [66.6, "kid"], [66.9, "kid"], [67.2, "kid"], [67.5, "kid"], [67.8, "kid"], [68.1, "kid"], [68.4, "kid"]];
levels_ar[18].specials = [[7, "god"], [60, "bullet"], [64, "life"], [69, "fast"]];
levels_ar[19] = new Object();
levels_ar[19].time = 70;
levels_ar[19].enemies = [[0.5, "tank"], [2.4, "tank"], [4.5, "tank"], [6.6, "tank"], [8.7, "tank"], [10.8, "tank"], [12.9, "tank"], [15, "tank"], [17.1, "tank"], [19.2, "tank"], [21.3, "tank"], [23.4, "tank"], [25.5, "tank"], [27.6, "tank"], [29.7, "tank"], [31.8, "tank"], [33.9, "tank"], [36, "tank"], [38.1, "tank"], [40.2, "tank"], [42.3, "tank"], [44.4, "kid"], [44.7, "kid"], [45, "kid"], [45.3, "kid"], [45.6, "kid"], [45.9, "jbug"], [48, "jbug"], [50.1, "jbug"], [52.2, "jbug"], [54.3, "jbug"], [56.4, "jbug"], [58.5, "jbug"], [60.6, "jbug"], [62.7, "jbug"], [64.8, "jbug"]];
levels_ar[19].specials = [[18, "life"], [28.5, "life"], [53.5, "life"], [55, "bullet"], [55.5, "fast"], [59, "god"]];
levels_ar[20] = new Object();
levels_ar[20].time = 2000;
levels_ar[20].enemies = [[0.5, "bug"], [2.4, "bug"], [4.5, "bug"], [6.6, "bug"], [8.7, "bug"], [10.8, "bug"], [12.9, "bug"], [15, "goblin"], [15.3, "goblin"], [15.6, "goblin"], [15.9, "goblin"], [16.2, "goblin"], [16.5, "grufus2"], [16.8, "goblin"], [17.1, "goblin"], [17.4, "goblin"], [17.7, "grufus2"], [18, "goblin"], [18.3, "goblin"], [18.6, "goblin"], [18.9, "hunch"], [19.2, "hunch"], [19.5, "hunch"], [19.8, "goblin"], [20.1, "hunch"], [20.4, "goblin"], [20.7, "hunch"], [21, "goblin"], [21.3, "hunch"], [21.6, "goblin"], [21.9, "hunch"], [22.2, "goblin"], [22.5, "hunch"], [22.8, "goblin"], [23.1, "hunch"], [23.4, "goblin"], [23.7, "hunch"], [24, "goblin"], [24.3, "hunch"], [24.6, "goblin"], [24.9, "goblin"], [25.2, "goblin"], [25.5, "kid"], [25.8, "kid"], [26.1, "kid"], [26.4, "kid"], [26.7, "kid"], [27, "kid"], [27.3, "kid"], [27.6, "hunch"], [27.9, "hunch"], [28.2, "jbug"], [28.5, "tank"], [28.8, "bug"], [29.1, "tank"], [29.4, "bug"], [35.1, "boss2"]];
levels_ar[20].specials = [[30, "fast"]];
_root._quality = "LOW";
var takescreen = false;
var herodead = false;
var gotogameover = false;
var freespace = true;
var lvcounter = 1;
var levelset = 20;
var cpi = 0;
var pi = 50000;
var bli = 80000;
var ei = 10000;
var bls = 2.5;
var bla = 0.25;
var gravity = 0.5;
var scrollSpeed = -2;
var _hx = 0;
var _hy = 0;
var _hxmd = 8;
var _hymd = 6;
var _hxm = 8;
var _hym = 6;
var hlives = 5;
var _ha = 0.35;
var _had = 0.35;
var _hangle_rad = 0;
var _hangle = 0;
var godmode = false;
var godmode_max = 1200;
var godmode_cur = 0;
var fastmode = false;
var fastmode_max = 1800;
var fastmode_cur = 0;
var delay = 30;
var shakems = 1000;
var shake = false;
var shakelong = 0;
var delay_now = getTimer();
var delay_now2 = getTimer();
var recoy = 0;
var bombpowern = 0;
var bombpower = 50;
var bombdistpower = 10;
var areafactor = 100;
var explscale = 100;
var gamePaused = false;
var explosionSoundPos = 0;
mainsound = new Sound(loop_hold);
mainsound.attachSound("playlooop");
mainsound.setVolume(45);
mainsound2 = new Sound(loop_hold);
mainsound2.attachSound("playlooop_power");
var mainsoundpos = 0;
mainsound.onSoundComplete = function () {
mainsound.start(0, 0);
};
mainsound2.onSoundComplete = function () {
mainsound2.start(0, 0);
};
mainsound.start(0, 0);
bdeath1 = new Sound(blood_hold);
bdeath1.attachSound("bdeath1");
bdeath1.setVolume(80);
bdeath2 = new Sound(blood_hold);
bdeath2.attachSound("bdeath2");
bdeath3 = new Sound(blood_hold);
bdeath3.attachSound("bdeath3");
ndeath1 = new Sound(blood_hold);
ndeath1.attachSound("ndeath1");
ndeath2 = new Sound(blood_hold);
ndeath2.attachSound("ndeath2");
ph_jump1 = new Sound(blood_hold);
ph_jump1.attachSound("ph_jump1");
ph_jump2 = new Sound(blood_hold);
ph_jump2.attachSound("ph_jump2");
levelup = new Sound(pwer_hold);
levelup.attachSound("levelup");
levelup.setVolume(60);
powerup = new Sound(pwer_hold);
powerup.attachSound("powerup");
gun_fire = new Sound(pwer_hold);
gun_fire.attachSound("gun_fire");
_root.level.attachMovie("hero_bobsled", "hero", 49999, {_x:50, _y:150});
level.hero.cacheAsBitmap = true;
_root.level.attachMovie("level_", "level_" + cpi, cpi + 1, {_x:0, _y:0});
testvar = getTimer();
var theframe = _currentframe;
_root.onEnterFrame = function () {
if ((!_root.gamePaused) && (_currentframe == theframe)) {
if (levels_ar[lvcounter].curtime == undefined) {
levels_ar[lvcounter].curtime = 0;
trace(levels_ar[lvcounter].time);
trace(levels_ar[lvcounter].enemies[levels_ar[lvcounter].enemies.length][0]);
trace(levels_ar[lvcounter].enemies[0][0]);
}
levels_ar[lvcounter].curtime++;
if ((delay_now2 + 350) < getTimer()) {
if ((Number(levels_ar[lvcounter].enemies[0][0]) * 60) < levels_ar[lvcounter].curtime) {
_root.ei++;
if ((levels_ar[lvcounter].enemies[0][1] != "jbug") && (levels_ar[lvcounter].enemies[0][1] != "bug")) {
specx = 560;
specy = 300;
} else {
specx = 560;
specy = 60 + random(200);
}
if ((levels_ar[lvcounter].enemies[0][1] == "boss") || (levels_ar[lvcounter].enemies[0][1] == "boss2")) {
_root.level.attachMovie("enemy_" + levels_ar[lvcounter].enemies[0][1], "boss", ei, {_x:specx, _y:specy});
} else {
_root.level.attachMovie("enemy_" + levels_ar[lvcounter].enemies[0][1], "en_" + ei, ei, {_x:specx, _y:specy});
}
levels_ar[lvcounter].enemies.shift();
}
if ((Number(levels_ar[lvcounter].specials[0][0]) * 60) < levels_ar[lvcounter].curtime) {
_root.pi++;
specx = 560;
specy = 60 + random(200);
_root.level.attachMovie("pwup_" + levels_ar[lvcounter].specials[0][1], "pwup_" + pi, pi, {_x:specx, _y:specy});
levels_ar[lvcounter].specials.shift();
}
delay_now2 = getTimer();
}
if (levels_ar[lvcounter].curtime > (levels_ar[lvcounter].time * 60)) {
lvcounter++;
_root.pi++;
if (lvcounter == 21) {
scrollSpeed--;
}
level.attachMovie("levelupmaner", "lvup", _root.pi);
}
if (level["level_" + cpi]._x < -2997) {
cpi++;
_root.level.attachMovie("level_", "level_" + cpi, cpi + 1, {_x:545, _y:0});
}
if (level["level_" + (cpi - 1)]._x < -3500) {
level["level_" + (cpi - 1)].removeMovieClip();
}
if (((Key.isDown(68) || (Key.isDown(39))) && (Math.abs(_hx) < _hxm)) && (!herodead)) {
_hx = _hx + _ha;
}
if (((Key.isDown(65) || (Key.isDown(37))) && (Math.abs(_hx) < _hxm)) && (!herodead)) {
_hx = _hx - _ha;
}
if (((Key.isDown(87) || (Key.isDown(38))) && (Math.abs(_hy) < _hym)) && (!herodead)) {
_hy = _hy - _ha;
}
if (((Key.isDown(83) || (Key.isDown(40))) && (Math.abs(_hy) < _hym)) && (!herodead)) {
_hy = _hy + _ha;
}
_hx = _hx * 0.9;
_hy = _hy * 0.9;
if (Math.abs(_hx) < 0.18) {
_hx = 0;
}
if (Math.abs(_hy) < 0.18) {
_hy = 0;
}
level.hero._x = level.hero._x + _hx;
level.hero._y = level.hero._y + _hy;
level.hero._rotation = _hx * 2;
f = Math.round(1000 / (getTimer() - t));
t = getTimer();
fps = "fps: " + f;
if (shake) {
shakelong = getTimer() + shakems;
shake = false;
}
if (shakelong > getTimer()) {
var _local5 = (-random(3)) + random(3);
var _local3 = (-random(3)) + random(3);
if (level["level_" + cpi]._y <= 0) {
_local3 = Math.abs(_local3);
}
level["level_" + cpi]._x = level["level_" + cpi]._x + _local5;
level["level_" + (cpi - 1)]._x = level["level_" + (cpi - 1)]._x + _local5;
if (Math.abs(level["level_" + cpi]._y) < 7) {
if (level["level_" + cpi]._y < 2) {
_local3 = Math.abs(_local3);
}
level["level_" + cpi]._y = level["level_" + cpi]._y + _local3;
level["level_" + (cpi - 1)]._y = level["level_" + (cpi - 1)]._y + _local3;
} else {
var _local4 = random(4) + 1;
level["level_" + cpi]._y = level["level_" + cpi]._y * (1 / _local4);
level["level_" + (cpi - 1)]._y = level["level_" + (cpi - 1)]._y * (1 / _local4);
}
} else if (level["level_" + cpi]._y != recoy) {
level["level_" + cpi]._y = recoy;
level["level_" + (cpi - 1)]._y = recoy;
}
if (bli > 90000) {
bli = 80000 /* 0x013880 */;
}
if (pi > 70000) {
pi = 50000;
}
if (ei > 40000) {
ei = 10000;
}
while (((level["level_" + (cpi - 1)].hitTest(level.hero._x + (level.hero._width / 4), (level.hero._y + (level.hero._height / 2)) - 4, true) || (level["level_" + (cpi - 1)].hitTest(level.hero._x - (level.hero._width / 4), (level.hero._y + (level.hero._height / 2)) - 4, true))) || (level["level_" + cpi].hitTest(level.hero._x + (level.hero._width / 4), (level.hero._y + (level.hero._height / 2)) - 4, true))) || (level["level_" + cpi].hitTest(level.hero._x - (level.hero._width / 4), (level.hero._y + (level.hero._height / 2)) - 4, true))) {
level.hero._y--;
}
while (level.hero._x < 20) {
level.hero._x++;
}
while (level.hero._x > 530) {
level.hero._x--;
}
while (level.hero._y < 50) {
level.hero._y++;
}
if (godmode_cur > 0) {
godmode_cur--;
}
if ((godmode_cur == 0) && (godmode)) {
godmode = false;
mainsoundpos = mainsound2.position * 2;
mainsound2.stop();
mainsound.start(mainsoundpos / 1000, 0);
}
if ((!godmode) && (godmode_cur > 0)) {
godmode = true;
mainsoundpos = mainsound.position / 2;
mainsound.stop();
mainsound2.start(mainsoundpos / 1000, 0);
}
if (fastmode_cur > 0) {
fastmode_cur--;
}
if ((fastmode_cur == 0) && (fastmode)) {
fastmode = false;
}
if ((!fastmode) && (fastmode_cur > 0)) {
fastmode = true;
}
if ((godmode && (level.hero.claus._currentframe < 7)) && (!herodead)) {
level.hero.claus.gotoAndPlay(7);
}
if (((!godmode) && (level.hero.claus._currentframe > 6)) && (!herodead)) {
level.hero.claus.gotoAndPlay(1);
}
if ((hlives <= 0) && (!herodead)) {
herodead = true;
level.hero.claus.gotoAndPlay("death");
}
if (herodead && (level.hero.claus._currentframe < 11)) {
level.hero.claus.gotoAndPlay(11);
}
if (takescreen) {
_root._quality = "HIGH";
_global.bmap = new flash.display.BitmapData(550, 400, true, 0);
_global.bmap.draw(_root);
takescreen = false;
_root.attachMovie("pwned", "pwned", _root.getNextHighestDepth(), {_x:275, _y:200});
}
if (gotogameover) {
gotogameover = false;
for (d in _root) {
_root[d].removeMovieClip();
}
gotoAndPlay (9);
}
delay_now++;
if ((lvcounter + 1) > levelset) {
levels_ar[lvcounter + 1] = new Object();
analyze = String(lvcounter + 1);
analyze2 = analyze.split("");
analyze3 = analyze2.reverse();
analyze4 = Number(analyze3[0]);
if (analyze4 == 0) {
levels_ar[lvcounter + 1].time = 9999;
levels_ar[lvcounter + 1].enemies = [];
levels_ar[lvcounter + 1].specials = [[10, "god"], [40, "life"]];
k = 0;
while (k < 40) {
nmlolwut = ["kid", "goblin", "hunch", "bug", "jbug", "grufus", "grufus2", "tank"];
if ((lvcounter + 1) > 49) {
omgran3d = 2 + random(5);
} else {
omgran3d = random(7);
}
levels_ar[lvcounter + 1].enemies[k] = [k + (Math.round(Math.random() * 100) / 100), nmlolwut[omgran3d]];
k++;
}
levels_ar[lvcounter + 1].enemies[40] = [45, "boss2"];
} else if (analyze4 == 1) {
levels_ar[lvcounter + 1].time = 10;
levels_ar[lvcounter + 1].enemies = [];
levels_ar[lvcounter + 1].specials = [[5, "fast"]];
k = 0;
while (k < 9) {
nmlolwut = ["kid", "goblin", "hunch", "bug", "jbug", "grufus", "grufus2", "tank"];
if ((lvcounter + 1) > 49) {
omgran3d = 3 + random(5);
} else {
omgran3d = 5 + random(3);
}
levels_ar[lvcounter + 1].enemies[k] = [k + (Math.round(Math.random() * 100) / 100), nmlolwut[omgran3d]];
k++;
}
} else if (analyze4 == 5) {
levels_ar[lvcounter + 1].time = 20;
levels_ar[lvcounter + 1].enemies = [];
levels_ar[lvcounter + 1].specials = [[20 - random(20), "fast"]];
k = 0;
while (k < 19) {
nmlolwut = ["kid", "goblin", "hunch", "bug", "jbug", "grufus", "grufus2", "tank"];
if ((lvcounter + 1) > 49) {
omgran3d = 6 + random(2);
} else {
omgran3d = 5 + random(3);
}
levels_ar[lvcounter + 1].enemies[k] = [k + (Math.round(Math.random() * 100) / 100), nmlolwut[omgran3d]];
k++;
}
} else {
levels_ar[lvcounter + 1].time = 60;
levels_ar[lvcounter + 1].enemies = [];
opopop = ["bullet", "fast", "god", "life"];
levels_ar[lvcounter + 1].specials = [[59 - random(59), opopop[random(4)]]];
k = 0;
while (k < 59) {
nmlolwut = ["kid", "goblin", "hunch", "bug", "jbug", "grufus", "grufus2", "tank"];
if ((lvcounter + 1) > 69) {
omgran3d = 2 + random(6);
} else {
omgran3d = 5 + random(3);
}
levels_ar[lvcounter + 1].enemies[k] = [k + (Math.round(Math.random() * 100) / 100), nmlolwut[omgran3d]];
k++;
}
}
levelset++;
}
if (_root[explname].position != undefined) {
explosionSoundPos = _root[explname].position;
}
}
if ((Key.isDown(32) && (freespace)) && (!herodead)) {
if (gamePaused) {
if (((explosionSoundPos != 0) && (_root[explname].position != undefined)) && (_root[explname].duration != _root[explname].position)) {
_root[explname].start(explosionSoundPos / 1000, 0);
explosionSoundPos = 0;
}
if (godmode) {
mainsound2.start(mainsoundpos / 1000, 0);
} else {
mainsound.start(mainsoundpos / 1000, 0);
}
gamePaused = false;
pausedest.removeMovieClip();
pauseditself.removeMovieClip();
} else if (!gamePaused) {
_root[explname].stop();
if (godmode) {
mainsoundpos = mainsound2.position;
mainsound2.stop();
} else {
mainsoundpos = mainsound.position;
mainsound.stop();
}
gamePaused = true;
bmap = new flash.display.BitmapData(550, 400, true, 0);
bmap.draw(_root);
_root.attachMovie("pausedest", "pausedest", 5500);
pausedest.pps.attachBitmap(bmap, 1);
var _local8 = 4;
var _local7 = 2;
var _local10 = 3;
var _local9 = new flash.filters.BlurFilter(_local8, _local7, _local10);
var _local6 = new Array();
_local6.push(_local9);
pausedest.filters = _local6;
_root.attachMovie("pauseditself", "pauseditself", 5501, {_x:Stage.width / 2, _y:Stage.height / 2});
stopAllSounds();
}
freespace = false;
} else if (!Key.isDown(32)) {
freespace = true;
}
};
_root.onMouseDown = function () {
if (((!_root.gamePaused) && (!_root.herodead)) && (_currentframe == theframe)) {
if ((delay_now > delay) && (f > 15)) {
_xtemp = level.hero._x + level.hero.can._x;
_ytemp = level.hero._y + level.hero.can._y;
_angtemp = _hangle_rad;
bli++;
level.hero.can.gotoAndPlay("shoot");
gun_fire.start(0, 0);
level.attachMovie("bullet_", "b_" + bli, bli, {_x:_xtemp, _y:_ytemp, _a:_angtemp, _rotation:_angtemp * 57.2957795130823, _xspd:bls * Math.cos(_angtemp), _yspd:bls * Math.sin(_angtemp), _accel:bla});
level["b_" + bli].onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._x = this._x + this._xspd;
this._y = this._y + this._yspd;
this._a = this._rotation * (Math.PI/180);
this._b = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x) * 57.2957795130823;
if (this._rotation < this._b) {
this._rotation = this._rotation + 2;
} else if (this._rotation > this._b) {
this._rotation = this._rotation - 2;
}
if (this.hitTest(_root.level.hero.can)) {
this._visible = false;
} else {
this._visible = true;
}
this._xspd = this._xspd + (this._accel * Math.cos(this._a));
this._yspd = this._yspd + (this._accel * Math.sin(this._a));
_root.pi++;
this.tscale = 60 + random(80);
level.attachMovie("smoke", "p_" + _root.pi, _root.pi, {_x:this._x + (random(4) - random(4)), _y:this._y + (random(4) - random(4)), _rotation:random(361), _xs:(-this._xspd) / 8, _ys:(-this._yspd) / 8, _xscale:this.tscale, _yscale:this.tscale});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
this._xscale--;
this._yscale--;
if (_root.f < 5) {
this.removeMovieClip();
} else if (_root.f < 10) {
this._alpha = this._alpha - 10;
} else if (_root.f < 15) {
this._alpha = this._alpha - 7;
} else if (_root.f < 20) {
this._alpha = this._alpha - 5;
} else if (_root.f < 25) {
this._alpha = this._alpha - 4;
}
this._x = this._x + _root.scrollSpeed;
this._x = this._x + this._xs;
this._y = this._y + this._ys;
if (this._alpha < 3) {
this.removeMovieClip();
}
}
};
if ((((this._x > 650) || (this._x < -20)) || (this._y < -30)) || (this._y > 440)) {
this.removeMovieClip();
}
if (level["level_" + (_root.cpi - 1)].hitTest(this._x, this._y, true) || (level["level_" + _root.cpi].hitTest(this._x, this._y, true))) {
_root.pi++;
var _local4 = 1 + random(3);
level.attachMovie("explosion" + _local4, "p_" + _root.pi, _root.pi, {_x:this._x, _y:this._y});
_root.level["p_" + _root.pi].cacheAsBitmap = true;
_root.pi++;
_root["expls" + pi] = new Sound(expl_hold);
var _local5 = 1 + random(9);
_root["expls" + pi].attachSound("explode_" + _local5);
var _local3 = (this._x - 275) / 2.75;
_root["expls" + pi].setPan(_local3);
_root["expls" + pi].start(0, 0);
_root.explname = "expls" + pi;
_root["expls" + pi].onSoundComplete = function () {
};
level.attachMovie("explosion_area", "p_" + _root.pi, _root.pi, {_x:this._x, _y:this._y});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this.weebl = _root.ei - 10;
this.i = this.weebl;
while (this.i < (_root.ei + 1)) {
if (this.hitTest(_root.level["en_" + this.i])) {
_root.level["en_" + this.i].health = _root.level["en_" + this.i].health - _root.bombdistpower;
}
this.i++;
}
this._x = this._x + _root.scrollSpeed;
this.removeMovieClip();
}
};
_root.shake = true;
this.removeMovieClip();
}
}
minus_ei = ei - 30;
while (minus_ei < (ei + 3)) {
if ((level["en_" + minus_ei].hitTest(this._x, this._y, true) || (level["en_" + minus_ei].hitTest(this._x + this._xspd, this._y + this._yspd, true))) || (level.boss.hitTest(this._x, this._y, true))) {
_root.pi++;
var _local4 = 1 + random(3);
level.attachMovie("explosion" + _local4, "p_" + _root.pi, _root.pi, {_x:this._x, _y:this._y, _xscale:_root.explscale, _yscale:_root.explscale});
_root.pi++;
if (!_root.level.boss.hitTest(this._x, this._y, true)) {
_root.level["en_" + minus_ei].health = _root.level["en_" + minus_ei].health - _root.bombpower;
} else if (_root.level.boss._currentframe < 3) {
_root.level.boss.health = _root.level.boss.health - _root.bombpower;
_root.level.boss.mehtimer = _root.level.boss.mehtimer * 0.5;
_root.level.boss.gotoAndStop("hurt");
}
_root["expls" + pi] = new Sound(expl_hold);
var _local5 = 1 + random(9);
_root["expls" + pi].attachSound("explode_" + _local5);
var _local3 = (this._x - 275) / 2.75;
trace("pan:" + _local3);
_root["expls" + pi].setPan(_local3);
_root["expls" + pi].start(0, 0);
_root["expls" + pi].onSoundComplete = function () {
};
level.attachMovie("explosion_area", "p_" + _root.pi, _root.pi, {_x:this._x, _y:this._y, _width:_root.areafactor, _height:_root.areafactor});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this.weebl = _root.ei - 10;
this.i = this.weebl;
while (this.i < (_root.ei + 1)) {
if (this.hitTest(_root.level["en_" + this.i])) {
_root.level["en_" + this.i].health = _root.level["en_" + this.i].health - _root.bombdistpower;
}
this.i++;
}
this._x = this._x + _root.scrollSpeed;
this.removeMovieClip();
}
};
_root.shake = true;
this.removeMovieClip();
}
minus_ei++;
}
};
delay_now = 0;
}
}
};
stop();
Frame 9
stopAllSounds();
var oghscore = (_global.score + " points");
_quality = "HIGH";
holdscreen.holdbmp.attachBitmap(_global.bmap, 1);
holdscreen.holdbmp._width = 110;
holdscreen.holdbmp._height = 80;
var hashscore = Crypt227.encodeNum(_global.score);
var prep_lv = new LoadVars();
var get_lv = new LoadVars();
prep_lv.hashscore = hashscore;
prep_lv.pname = _global.username;
prep_lv.pwhere = _level0._url;
stop();
Frame 10
credits_song = new Sound();
credits_song.attachSound("credits_song");
credits_song.onSoundComplete = function () {
credits_song.start(0, 0);
};
credits_song.start(0, 0);
stop();
Frame 11
var levels_ar = new Array();
levels_ar[0] = null;
levels_ar[1] = new Object();
levels_ar[1].time = 5;
levels_ar[1].enemies = [[1, "kid"], [2, "kid"], [2.5, "kid"], [3, "kid"], [4, "kid"]];
levels_ar[1].specials = [[2.2, "fast"]];
levels_ar[1] = new Object();
levels_ar[1].time = 10;
levels_ar[1].enemies = [[1, "kid"], [2.1, "kid"], [2.5, "kid"], [2.7, "kid"], [4, "goblin"], [5, "goblin"], [6, "goblin"], [7, "goblin"]];
levels_ar[1].specials = [[5, "fast"]];
Symbol 543 MovieClip [__Packages.Crypt227] Frame 0
class Crypt227
{
function Crypt227 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 23 MovieClip Frame 1
this.onEnterFrame = function () {
if (((this._x + _parent._x) > 750) || ((this._x + _parent._x) < ((-this._width) - 30))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 25 MovieClip Frame 1
this.onEnterFrame = function () {
if (((this._x + _parent._x) > 750) || ((this._x + _parent._x) < ((-this._width) - 30))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 27 MovieClip Frame 1
this.onEnterFrame = function () {
if (((this._x + _parent._x) > 750) || ((this._x + _parent._x) < ((-this._width) - 30))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 29 MovieClip Frame 1
this.onEnterFrame = function () {
if (((this._x + _parent._x) > 750) || ((this._x + _parent._x) < ((-this._width) - 30))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 30 MovieClip Frame 1
this.onEnterFrame = function () {
if (((this._x + _parent._x) > 750) || ((this._x + _parent._x) < ((-this._width) - 30))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 32 MovieClip Frame 1
this.onEnterFrame = function () {
if (((this._x + _parent._x) > 750) || ((this._x + _parent._x) < ((-this._width) - 30))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 34 MovieClip Frame 1
this.onEnterFrame = function () {
if (((this._x + _parent._x) > 750) || ((this._x + _parent._x) < ((-this._width) - 30))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 36 MovieClip Frame 1
this.onEnterFrame = function () {
if (((this._x + _parent._x) > 750) || ((this._x + _parent._x) < ((-this._width) - 30))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 37 MovieClip [level_] Frame 1
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
while (this.hitTest(_parent.boss._x, _parent.boss._y, true)) {
_parent.boss._y--;
}
};
Symbol 41 MovieClip [particle_blood_0] Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 45 MovieClip [particle_blood_1] Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 49 MovieClip [particle_blood_2] Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 53 MovieClip [particle_blood_3] Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 69 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 69 MovieClip Frame 8
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 72 MovieClip Frame 1
var gr = (3 + random(8));
var br = (5 + random(15));
var rr = 1;
if (_root.f < 30) {
gr = 1;
}
if (gr == 1) {
_root.pi++;
rr = 0;
_root.level.attachMovie("particle_rblood_0", "p_" + _root.pi, _root.pi, {_x:_parent._x, _y:_parent._y - 35, _rotation:random(361)});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
};
}
if (rr == 1) {
_root.pi++;
_root.level.attachMovie("particle_hat", "p_" + _root.pi, _root.pi, {_x:_parent._x, _y:_parent._y - 35, _rots:random(20) - random(20), _xs:random(4) - random(4), _ys:random(4) - 7, hitt:false});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + this._xs;
this._x = this._x + _root.scrollSpeed;
this._y = this._y + this._ys;
this._rotation = this._rotation + this._rots;
while (_root.level["level_" + _root.cpi].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._ys = -Math.abs(this._ys);
this._xs = 0;
this._y--;
this._alpha--;
this.hitt = true;
}
while (_root.level[("level_" + _root.cpi) - 1].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._ys = -Math.abs(this._ys);
this._xs = 0;
this._y--;
this._alpha--;
this.hitt = true;
}
if (this.hitt) {
this._rots = this._rots * 0.8;
this.hitt = false;
}
this._ys = this._ys + _root.gravity;
if ((((this._alpha < 5) || (this._y > Stage.height)) || ((this._x + _root.level._x) < 0)) || ((this._x + _root.level._x) > 600)) {
this.removeMovieClip();
}
}
};
}
i = 1;
while (i < gr) {
_root.pi++;
pgr = 1 + random(4);
pgr2 = 80 + random(100);
_root.level.attachMovie("particle_ggut" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _rots:random(20) - random(20), _xs:random(10) - random(10), _ys:random(10) - 15, hitt:false, _xscale:pgr2, _yscale:pgr2, loltime:getTimer() - 250});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha--;
this._x = this._x + this._xs;
this._y = this._y + this._ys;
this._x = this._x + _root.scrollSpeed;
this._rotation = this._rotation + this._rots;
this._ys = this._ys + (_root.gravity * 0.8);
if (this._alpha < 5) {
this.removeMovieClip();
}
while (_root.level["level_" + _root.cpi].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
while (_root.level["level_" + (_root.cpi - 1)].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
if ((this.loltime < (getTimer() - 210)) && (_root.f > 25)) {
pgr = random(4);
pgr2 = 80 + random(60);
_root.pi++;
ang = Math.atan2(this._ys, this._xs) * 57.2957795130823;
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(this._x - random(5)) + random(5), _y:this._y, _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._x = this._x + _root.scrollSpeed;
this._rotation = this.pang;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
};
this.loltime = getTimer();
}
}
};
i++;
}
i = 1;
while (i < br) {
_root.pi++;
pgr = random(4);
pgr2 = 100 + random(15);
ang = random(361);
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._rotation = this.pang;
this._x = this._x + _root.scrollSpeed;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
i++;
}
_global.addscore(25, _parent._x, _parent._y - 100);
bdrand = 1 + random(3);
_root["bdeath" + bdrand].start(0, 0);
Symbol 72 MovieClip Frame 3
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 72 MovieClip Frame 4
stop();
_parent.removeMovieClip();
Symbol 73 MovieClip [enemy_kid] Frame 1
var _xs = -1;
var _ys = 0;
var health = 10;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
while (_root.level["level_" + (_root.cpi - 1)].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
while (_root.level["level_" + (_root.cpi - 2)].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
while (_root.level["level_" + _root.cpi].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
}
health = 0;
}
}
_ys = _ys + _root.gravity;
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
}
};
stop();
Symbol 78 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 101 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 101 MovieClip Frame 6
gotoAndPlay (1);
Symbol 101 MovieClip Frame 8
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 101 MovieClip Frame 10
gotoAndPlay (7);
Symbol 101 MovieClip Frame 33
_root.takescreen = true;
Symbol 101 MovieClip Frame 56
gotoAndPlay ("deadloop");
Symbol 105 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 114 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 114 MovieClip Frame 6
gotoAndPlay (1);
Symbol 114 MovieClip Frame 10
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 114 MovieClip Frame 14
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Instance of Symbol 114 MovieClip "can" in Symbol 115 MovieClip [hero_bobsled] Frame 1
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.herodead)) {
_root._hangle_rad = (Math.atan2((this._y + _parent._y) - _root._ymouse, (this._x + _parent._x) - _root._xmouse) - ((Math.PI/180) * _parent._rotation)) - Math.PI;
_root._hangle = _root._hangle_rad * 57.2957795130823;
this._rotation = _root._hangle;
}
}
Symbol 137 MovieClip Frame 3
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 6
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 9
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 12
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 15
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 18
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 21
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 24
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 27
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 30
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 33
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 36
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 39
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 42
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 45
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 48
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 137 MovieClip Frame 49
stop();
_parent.removeMovieClip();
Symbol 138 MovieClip [explosion1] Frame 1
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
};
Symbol 152 MovieClip Frame 1
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 7
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 10
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 13
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 16
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 19
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 22
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 25
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 28
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 31
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 34
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 37
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 152 MovieClip Frame 40
stop();
_parent.removeMovieClip();
Symbol 153 MovieClip [explosion2] Frame 1
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
};
Symbol 172 MovieClip Frame 3
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 6
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 9
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 12
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 15
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 18
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 21
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 24
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 27
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 30
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 33
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 36
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 39
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 42
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 45
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 48
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 51
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 54
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 172 MovieClip Frame 55
stop();
_parent.removeMovieClip();
Symbol 173 MovieClip [explosion3] Frame 1
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
};
Symbol 180 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 180 MovieClip Frame 6
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 187 MovieClip Frame 1
var gr = (4 + random(8));
var br = random(2);
if (_root.f < 30) {
gr = 1;
}
if (gr == 1) {
_root.pi++;
_root.level.attachMovie("particle_rblood_0", "p_" + _root.pi, _root.pi, {_x:_parent._x, _y:_parent._y - 35, _rotation:random(361)});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
};
}
i = 1;
while (i < gr) {
_root.pi++;
pgr = 1 + random(4);
pgr2 = 80 + random(100);
_root.level.attachMovie("particle_ggut" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _rots:random(20) - random(20), _xs:random(10) - random(10), _ys:random(10) - 15, hitt:false, _xscale:pgr2, _yscale:pgr2, loltime:getTimer() - 250});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha--;
this._x = this._x + this._xs;
this._y = this._y + this._ys;
this._x = this._x + _root.scrollSpeed;
this._rotation = this._rotation + this._rots;
this._ys = this._ys + (_root.gravity * 0.8);
if (this._alpha < 5) {
this.removeMovieClip();
}
while (_root.level["level_" + _root.cpi].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
while (_root.level["level_" + (_root.cpi - 1)].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
if ((this.loltime < (getTimer() - 210)) && (_root.f > 25)) {
pgr = random(4);
pgr2 = 80 + random(60);
_root.pi++;
ang = Math.atan2(this._ys, this._xs) * 57.2957795130823;
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(this._x - random(5)) + random(5), _y:this._y, _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._x = this._x + _root.scrollSpeed;
this._rotation = this.pang;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
this.loltime = getTimer();
}
}
};
i++;
}
i = 1;
while (i < br) {
_root.pi++;
pgr = random(4);
pgr2 = 100 + random(15);
ang = random(361);
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._rotation = this.pang;
this._x = this._x + _root.scrollSpeed;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
i++;
}
_global.addscore(40, _parent._x, _parent._y - 100);
bdrand = 1 + random(3);
_root["bdeath" + bdrand].start(0, 0);
Symbol 187 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 187 MovieClip Frame 8
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 187 MovieClip Frame 12
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 187 MovieClip Frame 13
stop();
Symbol 188 MovieClip [enemy_goblin] Frame 1
var _xs = -2;
var _ys = 0;
var health = 15;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
_parent.winner.removeMovieClip();
_ys = _ys + _root.gravity;
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
}
};
stop();
Symbol 190 MovieClip [scorespot] Frame 1
this.starty = -10;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha--;
if (this._alpha < 5) {
this.removeMovieClip();
}
this._y = this._y + this.starty;
this.starty = this.starty * 0.9;
this._x = this._x + _root.scrollSpeed;
}
};
Symbol 200 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 200 MovieClip Frame 10
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 200 MovieClip Frame 16
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 200 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 205 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 214 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 214 MovieClip Frame 10
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 214 MovieClip Frame 16
bdrand = 1 + random(2);
_root["ph_jump" + bdrand].start(0, 0);
Symbol 214 MovieClip Frame 18
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 214 MovieClip Frame 20
_parent._ys = -15;
_parent._xs = -2.5;
_parent.gotoAndStop("jumping");
Symbol 217 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 224 MovieClip Frame 1
var gr = (3 + random(8));
var br = (5 + random(15));
if (_root.f < 30) {
gr = 1;
}
if (gr == 1) {
_root.pi++;
_root.level.attachMovie("particle_rblood_0", "p_" + _root.pi, _root.pi, {_x:_parent._x, _y:_parent._y - 35, _rotation:random(361)});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
};
}
i = 1;
while (i < gr) {
_root.pi++;
pgr = 1 + random(4);
pgr2 = 80 + random(100);
_root.level.attachMovie("particle_ggut" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _rots:random(20) - random(20), _xs:random(10) - random(10), _ys:random(10) - 15, hitt:false, _xscale:pgr2, _yscale:pgr2, loltime:getTimer() - 250});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha--;
this._x = this._x + this._xs;
this._y = this._y + this._ys;
this._x = this._x + _root.scrollSpeed;
this._rotation = this._rotation + this._rots;
this._ys = this._ys + (_root.gravity * 0.8);
if (this._alpha < 5) {
this.removeMovieClip();
}
while (_root.level["level_" + _root.cpi].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
while (_root.level["level_" + (_root.cpi - 1)].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
if ((this.loltime < (getTimer() - 210)) && (_root.f > 25)) {
pgr = random(4);
pgr2 = 80 + random(60);
_root.pi++;
ang = Math.atan2(this._ys, this._xs) * 57.2957795130823;
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(this._x - random(5)) + random(5), _y:this._y, _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._x = this._x + _root.scrollSpeed;
this._rotation = this.pang;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
this.loltime = getTimer();
}
}
};
i++;
}
i = 1;
while (i < br) {
_root.pi++;
pgr = random(4);
pgr2 = 100 + random(15);
ang = random(361);
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._rotation = this.pang;
this._x = this._x + _root.scrollSpeed;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
i++;
}
_global.addscore(88, _parent._x, _parent._y - 100);
bdrand = 1 + random(3);
_root["bdeath" + bdrand].start(0, 0);
Symbol 224 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 224 MovieClip Frame 10
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 224 MovieClip Frame 13
stop();
_parent.removeMovieClip();
Symbol 225 MovieClip [enemy_hunch] Frame 1
var _xs = -1.5;
var _ys = 0;
var health = 10;
var gotjump = false;
var jptimer = 0;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this.jprand = random(60);
if (((jprand == 5) && (!gotjump)) && (!dead)) {
_xs = 0;
jptimer = getTimer() + 100;
this.gotoAndStop("startjump");
gotjump = true;
}
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
if ((this._currentframe == 3) && (jptimer > getTimer())) {
this._y--;
} else if (this._currentframe == 3) {
_xs = -1.5;
this.gotoAndStop(1);
this._y--;
_ys = 0;
gotjump = false;
} else {
this._y--;
_ys = 0;
}
}
i5++;
}
_parent.winner.removeMovieClip();
_ys = _ys + _root.gravity;
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
}
};
stop();
Symbol 227 MovieClip [redhero] Frame 1
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = _parent.hero._x;
this._y = _parent.hero._y;
this._alpha--;
if (this._alpha < 5) {
this.removeMovieClip();
}
if (_root.herodead) {
this.removeMovieClip();
}
}
};
Symbol 236 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 236 MovieClip Frame 6
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 236 MovieClip Frame 10
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 236 MovieClip Frame 14
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 240 MovieClip Frame 1
var gr = (3 + random(8));
var br = (5 + random(15));
if (_root.f < 30) {
gr = 1;
}
if (gr == 1) {
_root.pi++;
_root.level.attachMovie("particle_rblood_0", "p_" + _root.pi, _root.pi, {_x:_parent._x, _y:_parent._y - 35, _rotation:random(361)});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
};
}
i = 1;
while (i < gr) {
_root.pi++;
pgr = 1 + random(4);
pgr2 = 80 + random(100);
_root.level.attachMovie("particle_ggut" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _rots:random(20) - random(20), _xs:random(10) - random(10), _ys:random(12) - 11, hitt:false, _xscale:pgr2, _yscale:pgr2, loltime:getTimer() - 250});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha--;
this._x = this._x + this._xs;
this._y = this._y + this._ys;
this._x = this._x + _root.scrollSpeed;
this._rotation = this._rotation + this._rots;
this._ys = this._ys + (_root.gravity * 0.8);
if (this._alpha < 5) {
this.removeMovieClip();
}
while (_root.level["level_" + _root.cpi].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
while (_root.level["level_" + (_root.cpi - 1)].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
if ((this.loltime < (getTimer() - 210)) && (_root.f > 25)) {
pgr = random(4);
pgr2 = 80 + random(60);
_root.pi++;
ang = Math.atan2(this._ys, this._xs) * 57.2957795130823;
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(this._x - random(5)) + random(5), _y:this._y, _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._x = this._x + _root.scrollSpeed;
this._rotation = this.pang;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
this.loltime = getTimer();
}
}
};
i++;
}
i = 1;
while (i < br) {
_root.pi++;
pgr = random(4);
pgr2 = 100 + random(15);
ang = random(361);
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._rotation = this.pang;
this._x = this._x + _root.scrollSpeed;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
i++;
}
_global.addscore(227, _parent._x, _parent._y - 30);
bdrand = 1 + random(3);
_root["bdeath" + bdrand].start(0, 0);
Symbol 240 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 240 MovieClip Frame 7
stop();
_parent.removeMovieClip();
Symbol 241 MovieClip [enemy_bug] Frame 1
var _xs = -0.3;
var _ys = 0;
var health = 40;
var dead = false;
var omgtimer = getTimer();
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
_parent.winner.removeMovieClip();
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if ((omgtimer + 1300) < getTimer()) {
this._ys = random(3) - random(3);
omgtimer = getTimer();
}
if ((this._y < 50) || (this._y > 430)) {
this._ys = -this._ys;
}
this._rotation = (-this._ys) * 4;
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
if (this._x < -20) {
trace("omgIran");
this.removeMovieClip();
}
}
};
stop();
Symbol 242 MovieClip [enemy_jbug] Frame 1
var _xs = -0.5;
var _ys = 0;
var health = 50;
var dead = false;
var omgtimer = getTimer();
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
_parent.winner.removeMovieClip();
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if ((omgtimer + 1000) < getTimer()) {
if (this._y < _parent.hero._y) {
this._ys = 1 + random(3);
} else {
this._ys = -1 - random(3);
}
omgtimer = getTimer();
}
if ((this._y < 50) || (this._y > 430)) {
this._ys = -this._ys;
}
this._rotation = (-this._ys) * 4;
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
if (this._x < -20) {
trace("omgIran");
this.removeMovieClip();
}
}
};
stop();
Symbol 254 MovieClip Frame 7
stop();
_parent.removeMovieClip();
Symbol 255 MovieClip [evilpie] Frame 1
var _xs = -3;
var _ys = -14;
var _rs = -7;
var health = 1;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
this._rotation = this._rotation + _rs;
i5 = -2;
while (i5 < 2) {
if (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
_ys = -Math.abs(_ys / 2);
_xs = _xs / 2;
_rs = _rs / 4;
}
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
}
i5++;
}
_parent.winner.removeMovieClip();
_ys = _ys + _root.gravity;
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
}
};
stop();
Symbol 258 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 258 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 263 MovieClip Frame 1
var gr = (3 + random(8));
var br = (5 + random(15));
if (_root.f < 30) {
gr = 1;
}
if (gr == 1) {
_root.pi++;
_root.level.attachMovie("particle_rblood_0", "p_" + _root.pi, _root.pi, {_x:_parent._x, _y:_parent._y - 35, _rotation:random(361)});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
};
}
i = 1;
while (i < gr) {
_root.pi++;
pgr = 1 + random(4);
pgr2 = 80 + random(100);
_root.level.attachMovie("particle_ggut" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _rots:random(20) - random(20), _xs:random(10) - random(10), _ys:random(10) - 15, hitt:false, _xscale:pgr2, _yscale:pgr2, loltime:getTimer() - 250});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha--;
this._x = this._x + this._xs;
this._y = this._y + this._ys;
this._x = this._x + _root.scrollSpeed;
this._rotation = this._rotation + this._rots;
this._ys = this._ys + (_root.gravity * 0.8);
if (this._alpha < 5) {
this.removeMovieClip();
}
while (_root.level["level_" + _root.cpi].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
while (_root.level["level_" + (_root.cpi - 1)].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
if ((this.loltime < (getTimer() - 210)) && (_root.f > 25)) {
pgr = random(4);
pgr2 = 80 + random(60);
_root.pi++;
ang = Math.atan2(this._ys, this._xs) * 57.2957795130823;
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(this._x - random(5)) + random(5), _y:this._y, _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._x = this._x + _root.scrollSpeed;
this._rotation = this.pang;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
this.loltime = getTimer();
}
}
};
i++;
}
i = 1;
while (i < br) {
_root.pi++;
pgr = random(4);
pgr2 = 100 + random(15);
ang = random(361);
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._rotation = this.pang;
this._x = this._x + _root.scrollSpeed;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
i++;
}
_global.addscore(200, _parent._x, _parent._y - 100);
bdrand = 1 + random(2);
_root["ndeath" + bdrand].start(0, 0);
Symbol 263 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 263 MovieClip Frame 8
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 263 MovieClip Frame 9
stop();
_parent.removeMovieClip();
Symbol 264 MovieClip [enemy_grufus] Frame 1
var _xs = 0;
var _ys = 0;
var health = 20;
var shooting = false;
var shotluck = 0;
var shotmaxr = 200;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
shotluck = random(shotmaxr);
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
if (shotluck == 10) {
_root.ei++;
_parent.attachMovie("evilpie", "en_" + _root.ei, _root.ei, {_x:this._x - 7, _y:this._y - 25});
}
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
_parent.winner.removeMovieClip();
_ys = _ys + _root.gravity;
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
}
};
stop();
Symbol 265 MovieClip [enemy_grufus2] Frame 1
var _xs = 0;
var _ys = 0;
var health = 20;
var shooting = false;
var shotluck = 0;
var shotmaxr = 70;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
shotluck++;
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
if (shotluck == shotmaxr) {
_root.ei++;
_parent.attachMovie("evilpie", "en_" + _root.ei, _root.ei, {_x:this._x - 7, _y:this._y - 25});
shotluck = 0;
}
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
_parent.winner.removeMovieClip();
_ys = _ys + _root.gravity;
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
}
};
stop();
Symbol 268 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 268 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 272 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 272 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 272 MovieClip Frame 6
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
} else {
_parent.gotoAndStop(1);
}
Symbol 277 MovieClip Frame 1
var gr = (4 + random(8));
var br = (6 + random(15));
if (_root.f < 30) {
gr = 1;
}
if (gr == 1) {
_root.pi++;
_root.level.attachMovie("particle_rblood_0", "p_" + _root.pi, _root.pi, {_x:_parent._x, _y:_parent._y - 35, _rotation:random(361)});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
};
}
i = 1;
while (i < gr) {
_root.pi++;
pgr = 1 + random(4);
pgr2 = 80 + random(100);
_root.level.attachMovie("particle_ggut" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _rots:random(20) - random(20), _xs:random(10) - random(10), _ys:random(10) - 15, hitt:false, _xscale:pgr2, _yscale:pgr2, loltime:getTimer() - 250});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha--;
this._x = this._x + this._xs;
this._y = this._y + this._ys;
this._x = this._x + _root.scrollSpeed;
this._rotation = this._rotation + this._rots;
this._ys = this._ys + (_root.gravity * 0.8);
if (this._alpha < 5) {
this.removeMovieClip();
}
while (_root.level["level_" + _root.cpi].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
while (_root.level["level_" + (_root.cpi - 1)].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
if ((this.loltime < (getTimer() - 210)) && (_root.f > 25)) {
pgr = random(4);
pgr2 = 80 + random(60);
_root.pi++;
ang = Math.atan2(this._ys, this._xs) * 57.2957795130823;
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(this._x - random(5)) + random(5), _y:this._y, _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._x = this._x + _root.scrollSpeed;
this._rotation = this.pang;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
this.loltime = getTimer();
}
}
};
i++;
}
i = 1;
while (i < br) {
_root.pi++;
pgr = random(4);
pgr2 = 100 + random(15);
ang = random(361);
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._rotation = this.pang;
this._x = this._x + _root.scrollSpeed;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
i++;
}
_global.addscore(651, _parent._x, _parent._y - 100);
bdrand = 1 + random(2);
_root["ndeath" + bdrand].start(0, 0);
Symbol 277 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 277 MovieClip Frame 6
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 277 MovieClip Frame 8
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 277 MovieClip Frame 9
stop();
_parent.removeMovieClip();
Symbol 278 MovieClip [enemy_tank] Frame 1
var _xs = 0;
var _ys = 0;
var health = 80;
var shooting = false;
var shotluck = random(180);
var shotmaxr = (180 - random(120));
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
shotluck++;
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
if (shotluck == shotmaxr) {
_root.ei++;
_parent.attachMovie("enemy_tankhunch", "en_" + _root.ei, _root.ei, {_x:this._x - 10, _y:this._y - 30});
shotluck = 0;
gotoAndStop ("shoot");
}
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
_parent.winner.removeMovieClip();
_ys = _ys + _root.gravity;
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
}
};
stop();
Symbol 279 MovieClip [enemy_tankhunch] Frame 1
var _xs = -2;
var _ys = -7;
var health = 7;
var gotjump = false;
var jptimer = 0;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this.jprand = random(80);
if (((jprand == 5) && (!gotjump)) && (!dead)) {
_xs = 0;
jptimer = getTimer() + 100;
this.gotoAndStop("startjump");
gotjump = true;
}
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
if ((this._currentframe == 3) && (jptimer > getTimer())) {
this._y--;
} else if (this._currentframe == 3) {
_xs = -1.5;
this.gotoAndStop(1);
this._y--;
_ys = 0;
gotjump = false;
} else {
this._y--;
_ys = 0;
}
}
i5++;
}
_parent.winner.removeMovieClip();
_ys = _ys + _root.gravity;
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
}
};
stop();
Symbol 283 MovieClip [gun_up] Frame 1
_root.powerup.start(0, 0);
this.onEnterFrame = function () {
if (_root.gamePaused) {
this.removeMovieClip();
}
};
Symbol 283 MovieClip [gun_up] Frame 61
stop();
this.removeMovieClip();
Symbol 286 MovieClip Frame 5
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 286 MovieClip Frame 8
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 286 MovieClip Frame 10
stop();
_parent.removeMovieClip();
Symbol 287 MovieClip [bossbullet] Frame 1
var _xs = 0;
var _ys = ((-random(2)) + random(2));
var health = 50;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
if (this._x < -20) {
trace("omgIran");
this.removeMovieClip();
}
}
};
stop();
Symbol 290 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 290 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 297 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 297 MovieClip Frame 8
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 297 MovieClip Frame 14
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 308 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 308 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 308 MovieClip Frame 8
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 308 MovieClip Frame 10
_root.ei++;
_parent._parent.attachMovie("bossbullet", "en_" + _root.ei, _root.ei, {_x:(_parent._x + this._x) + place._x, _y:(_parent._y + this._y) + place._y});
Symbol 308 MovieClip Frame 12
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 308 MovieClip Frame 16
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 308 MovieClip Frame 20
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 308 MovieClip Frame 22
if (_parent.continuetime > 0) {
gotoAndPlay (1);
} else {
_parent.shooting = false;
_parent.gotoAndStop("still");
}
Symbol 320 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 320 MovieClip Frame 6
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 320 MovieClip Frame 8
if (_parent.health > 1500) {
_root.ei++;
_parent._parent.attachMovie("bossbullet", "en_" + _root.ei, _root.ei, {_x:(_parent._x + this._x) + place._x, _y:(_parent._y + this._y) + place._y});
_root.ei++;
_parent._parent.attachMovie("bossbullet", "en_" + _root.ei, _root.ei, {_x:(_parent._x + this._x) + place2._x, _y:(_parent._y + this._y) + place2._y});
} else if (_parent.health > 1000) {
_root.ei++;
_parent._parent.attachMovie("bossbullet", "en_" + _root.ei, _root.ei, {_x:(_parent._x + this._x) + place._x, _y:(_parent._y + this._y) + place._y});
_root.ei++;
_parent._parent.attachMovie("bossbullet2", "en_" + _root.ei, _root.ei, {_x:(_parent._x + this._x) + place2._x, _y:(_parent._y + this._y) + place2._y});
} else if (_parent.health > 500) {
_root.ei++;
_parent._parent.attachMovie("bossbullet2", "en_" + _root.ei, _root.ei, {_x:(_parent._x + this._x) + place._x, _y:(_parent._y + this._y) + place._y});
_root.ei++;
_parent._parent.attachMovie("bossbullet2", "en_" + _root.ei, _root.ei, {_x:(_parent._x + this._x) + place2._x, _y:(_parent._y + this._y) + place2._y});
} else {
_root.ei++;
_parent._parent.attachMovie("bossbullet2", "en_" + _root.ei, _root.ei, {_x:(_parent._x + this._x) + place._x, _y:(_parent._y + this._y) + place._y});
_root.ei++;
_parent._parent.attachMovie("bossbullet3", "en_" + _root.ei, _root.ei, {_x:(_parent._x + this._x) + place2._x, _y:(_parent._y + this._y) + place2._y});
}
Symbol 320 MovieClip Frame 10
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 320 MovieClip Frame 18
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 320 MovieClip Frame 19
if (_parent.health < 400) {
_root.ei++;
_parent._parent.attachMovie("bossbullet2", "en_" + _root.ei, _root.ei, {_x:(_parent._x + this._x) + place._x, _y:(_parent._y + this._y) + place._y});
}
Symbol 320 MovieClip Frame 24
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 320 MovieClip Frame 26
if (_parent.continuetime > 0) {
gotoAndPlay (1);
} else {
_parent.shooting = false;
_parent.gotoAndStop("still");
}
Symbol 329 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 329 MovieClip Frame 6
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 329 MovieClip Frame 14
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 329 MovieClip Frame 16
_parent._x = _parent._x + 20;
_parent.gotoAndStop("still");
Symbol 337 MovieClip Frame 1
var gr = (4 + random(8));
var br = random(2);
if (_root.f < 30) {
gr = 1;
}
if (gr == 1) {
_root.pi++;
_root.level.attachMovie("particle_rblood_0", "p_" + _root.pi, _root.pi, {_x:_parent._x, _y:_parent._y - 35, _rotation:random(361)});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
}
};
}
i = 1;
while (i < gr) {
_root.pi++;
pgr = 1 + random(4);
pgr2 = 300 + random(500);
_root.level.attachMovie("particle_ggut" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 100) + random(60), _rots:random(20) - random(20), _xs:random(10) - random(10), _ys:random(10) - 15, hitt:false, _xscale:pgr2, _yscale:pgr2, loltime:getTimer() - 250});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha--;
this._x = this._x + this._xs;
this._y = this._y + this._ys;
this._x = this._x + _root.scrollSpeed;
this._rotation = this._rotation + this._rots;
this._ys = this._ys + (_root.gravity * 0.8);
if (this._alpha < 5) {
this.removeMovieClip();
}
while (_root.level["level_" + _root.cpi].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
while (_root.level["level_" + (_root.cpi - 1)].hitTest(this._x + this._xs, (this._y + 10) + this._ys, true)) {
this._y--;
this._alpha--;
}
if ((this.loltime < (getTimer() - 210)) && (_root.f > 25)) {
pgr = random(4);
pgr2 = 80 + random(60);
_root.pi++;
ang = Math.atan2(this._ys, this._xs) * 57.2957795130823;
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(this._x - random(5)) + random(5), _y:this._y, _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._x = this._x + _root.scrollSpeed;
this._rotation = this.pang;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
this.loltime = getTimer();
}
}
};
i++;
}
i = 1;
while (i < br) {
_root.pi++;
pgr = random(4);
pgr2 = 100 + random(15);
ang = random(361);
spd = random(5);
_root.level.attachMovie("particle_blood_" + pgr, "p_" + _root.pi, _root.pi, {_x:(_parent._x - random(5)) + random(5), _y:(_parent._y - 35) + random(30), _ts:spd, pang:ang, hitt:false, _xscale:pgr2, _yscale:pgr2});
_root.level["p_" + _root.pi].onEnterFrame = function () {
if (!_root.gamePaused) {
this._alpha = this._alpha - 2;
if (_root.f < 30) {
this.removeMovieClip();
}
this._x = this._x + (this._ts * Math.cos(pang * (Math.PI/180)));
this._y = this._y + (this._ts * Math.sin(pang * (Math.PI/180)));
this._rotation = this.pang;
this._x = this._x + _root.scrollSpeed;
if (this.pang > 90) {
this.pang = this.pang - 0.5;
}
if (this._alpha < 6) {
this.removeMovieClip();
}
}
};
i++;
}
_global.addscore(5000, _parent._x, _parent._y - 100);
_root.levels_ar[_root.lvcounter].curtime = (_root.levels_ar[_root.lvcounter].time * 60) - 30;
bdrand = 1 + random(3);
_root["bdeath" + bdrand].start(0, 0);
Symbol 337 MovieClip Frame 6
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 337 MovieClip Frame 8
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 337 MovieClip Frame 14
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 337 MovieClip Frame 15
stop();
_parent.removeMovieClip();
Symbol 338 MovieClip [enemy_boss] Frame 1
if (coconut == undefined) {
var _xs = -2;
var _ys = 0;
var health = 2000;
var mehtimer = 420;
var continuetime = 0;
var shooting = false;
var dead = false;
coconut = "bonus";
}
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -7;
while (i5 < 7) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
if ((!dead) && (this._currentframe != 5)) {
if (_xs != 0) {
this.gotoAndStop("walk");
mehtimer--;
if (mehtimer < 0) {
_xs = 0;
if (health > 1500) {
mehtimer = 360;
} else if (health > 700) {
mehtimer = 300;
} else if (health > 400) {
mehtimer = 240;
} else {
mehtimer = 120;
}
}
} else if (!shooting) {
if (health > 1000) {
this.gotoAndStop("shot1");
continuetime = 0;
} else if (health > 700) {
this.gotoAndStop("shot2");
continuetime = 0;
} else if (health > 400) {
this.gotoAndStop("shot2");
continuetime = 1;
} else {
this.gotoAndStop("shot2");
continuetime = 2;
}
shooting = true;
} else {
if (_x < 360) {
_xs = 4;
} else if (_x > 540) {
_xs = -2;
}
if (_currentframe < 3) {
shooting = false;
}
}
}
if (_x < 360) {
_xs = 4;
} else if (_x > 540) {
_xs = -2;
}
_parent.winner.removeMovieClip();
_ys = _ys + _root.gravity;
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health--;
if (this._x > _parent.hero._x) {
_root._hx = _root._hx - 5;
} else {
_root._hx = _root._hx + 5;
}
}
}
while (this._y > 399) {
this._y--;
}
}
};
stop();
Symbol 339 MovieClip [bossbullet2] Frame 1
var _xs = 0.5;
var _ys = 0;
var health = 30;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if ((this._y < _parent.hero._y) && (_ys < 3)) {
_ys = _ys + 0.125;
} else if ((this._y > _parent.hero._y) && (_ys > -3)) {
_ys = _ys - 0.125;
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
if (this._x < -20) {
trace("omgIran");
this.removeMovieClip();
}
}
};
stop();
Symbol 340 MovieClip [bossbullet3] Frame 1
var _xs = -1;
var _ys = 0;
var health = 40;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health = 0;
}
}
if ((this._y < _parent.hero._y) && (_ys < 7)) {
_ys = _ys + 0.03125;
} else if ((this._y > _parent.hero._y) && (_ys > -7)) {
_ys = _ys - 0.03125;
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
if (this._x < -20) {
trace("omgIran");
this.removeMovieClip();
}
}
};
stop();
Symbol 342 MovieClip [pwned] Frame 1
timetolose = 240;
this.onEnterFrame = function () {
timetolose--;
if (timetolose < 0) {
_root.gotogameover = true;
}
};
Symbol 345 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 348 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 348 MovieClip Frame 5
stop();
_parent.removeMovieClip();
Symbol 349 MovieClip [pwup_fast] Frame 1
var _xs = 0;
var _ys = 0;
var health = 15;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y + (this._height / 2), true)) {
this._y--;
_ys = 0;
}
i5++;
}
_parent.winner.removeMovieClip();
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
_root.fastmode_cur = _root.fastmode_max;
_root.fastmode_max = _root.fastmode_max + 60;
_root.pi++;
_root.attachMovie("gun_up", "gun_up", _root.pi);
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
if (this._x < -20) {
trace("omgIran");
this.removeMovieClip();
}
}
};
stop();
Symbol 352 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 357 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 357 MovieClip Frame 8
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 357 MovieClip Frame 9
stop();
_parent.removeMovieClip();
Symbol 358 MovieClip [pwup_bullet] Frame 1
var _xs = 0;
var _ys = 0;
var health = 15;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y + (this._height / 2), true)) {
this._y--;
_ys = 0;
}
i5++;
}
_parent.winner.removeMovieClip();
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (_root.bombpowern < 5) {
_root.bombpowern++;
_root.bombpower = _root.bombpower + 15;
_root.bombdistpower = _root.bombdistpower + 8;
_root.areafactor = _root.areafactor + 20;
_root.explscale = _root.explscale + 15;
_root.delay = _root.delay - 2;
_root.pi++;
_root.attachMovie("gun_up", "gun_up", _root.pi);
}
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
if (this._x < -20) {
trace("omgIran");
this.removeMovieClip();
}
}
};
stop();
Symbol 361 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 364 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 364 MovieClip Frame 5
stop();
_parent.removeMovieClip();
Symbol 365 MovieClip [pwup_god] Frame 1
var _xs = 0;
var _ys = 0;
var health = 15;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y + (this._height / 2), true)) {
this._y--;
_ys = 0;
}
i5++;
}
_parent.winner.removeMovieClip();
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
_root.godmode_cur = _root.godmode_max;
_root.godmode_max = _root.godmode_max + 60;
_root.pi++;
_root.attachMovie("gun_up", "gun_up", _root.pi);
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
if (this._x < -20) {
trace("omgIran");
this.removeMovieClip();
}
}
};
stop();
Symbol 368 MovieClip Frame 2
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 371 MovieClip Frame 4
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 371 MovieClip Frame 5
stop();
_parent.removeMovieClip();
Symbol 372 MovieClip [pwup_life] Frame 1
var _xs = 0;
var _ys = 0;
var health = 15;
var dead = false;
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -2;
while (i5 < 2) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y + (this._height / 2), true)) {
this._y--;
_ys = 0;
}
i5++;
}
_parent.winner.removeMovieClip();
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (_root.hlives < 5) {
_root.hlives++;
_root.pi++;
_root.attachMovie("gun_up", "gun_up", _root.pi);
}
health = 0;
}
}
if (this._y > 440) {
trace("omgIfell");
this.removeMovieClip();
}
if (this._x < -20) {
trace("omgIran");
this.removeMovieClip();
}
}
};
stop();
Symbol 375 MovieClip [levelupmaner] Frame 1
_root.levelup.start(0, 0);
Symbol 375 MovieClip [levelupmaner] Frame 3
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 375 MovieClip [levelupmaner] Frame 7
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 375 MovieClip [levelupmaner] Frame 15
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 375 MovieClip [levelupmaner] Frame 23
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 375 MovieClip [levelupmaner] Frame 29
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 375 MovieClip [levelupmaner] Frame 37
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 375 MovieClip [levelupmaner] Frame 49
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 375 MovieClip [levelupmaner] Frame 55
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 375 MovieClip [levelupmaner] Frame 62
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 375 MovieClip [levelupmaner] Frame 66
stop();
this.removeMovieClip();
Symbol 376 MovieClip [enemy_boss2] Frame 1
if (coconut == undefined) {
var _xs = -2;
var _ys = 0;
var health = 3000;
var mehtimer = 420;
var continuetime = 0;
var shooting = false;
var dead = false;
coconut = "bonus";
}
this.onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = this._x + _root.scrollSpeed;
this._y = this._y + _ys;
this._x = this._x + _xs;
i5 = -7;
while (i5 < 7) {
while (_root.level["level_" + (Number(_root.cpi) - Number(i5))].hitTest(this._x, this._y, true)) {
this._y--;
_ys = 0;
}
i5++;
}
if ((!dead) && (this._currentframe != 5)) {
if (_xs != 0) {
this.gotoAndStop("walk");
mehtimer--;
if (mehtimer < 0) {
_xs = 0;
if (health > 1500) {
mehtimer = 300;
} else if (health > 700) {
mehtimer = 240;
} else if (health > 400) {
mehtimer = 180;
} else {
mehtimer = 120;
}
}
} else if (!shooting) {
if (health > 1000) {
this.gotoAndStop("shot1");
continuetime = 1;
} else if (health > 700) {
this.gotoAndStop("shot2");
continuetime = 0;
} else if (health > 400) {
this.gotoAndStop("shot2");
continuetime = 1;
} else {
this.gotoAndStop("shot2");
continuetime = 2;
}
shooting = true;
} else {
if (_x < 360) {
_xs = 4;
} else if (_x > 540) {
_xs = -2;
}
if (_currentframe < 3) {
shooting = false;
}
}
}
if (_x < 360) {
_xs = 4;
} else if (_x > 540) {
_xs = -2;
}
_parent.winner.removeMovieClip();
_ys = _ys + _root.gravity;
if ((health <= 0) && (!dead)) {
dead = true;
gotoAndStop ("death");
}
if (_parent.hero.hitTest(this._x, this._y - (this._height / 2), true) || (_parent.hero.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true))) {
if (!dead) {
if (!_root.godmode) {
_root.hlives--;
_root.pi++;
_root._hx = this._xs * 2;
_root._hy = this._ys * 2;
_parent.attachMovie("redhero", "dam_" + _root.pi, _root.pi);
}
health--;
if (this._x > _parent.hero._x) {
_root._hx = _root._hx - 5;
} else {
_root._hx = _root._hx + 5;
}
}
}
while (this._y > 399) {
this._y--;
}
}
};
stop();
Symbol 432 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 434 Button
on (release) {
_root.play();
}
Instance of Symbol 432 MovieClip in Symbol 441 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
Symbol 441 MovieClip Frame 349
_root.play();
Symbol 447 MovieClip Frame 235
_root.play();
Symbol 462 Button
on (release) {
menuloop.setVolume(100);
menuloop.stop();
delete menuloop;
gotoAndPlay (7);
}
Symbol 464 Button
on (release) {
getURL ("http://shared2.pldmstudios.com/santas/highscores.php", "_blank");
}
Symbol 466 Button
on (release) {
menuloop.setVolume(100);
menuloop.stop();
delete menuloop;
gotoAndPlay (10);
}
Symbol 469 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 476 Button
on (release) {
if (mname.text == "insert name here") {
mname.text = "player1";
}
_global.username = mname.text;
gotoAndPlay (8);
}
Symbol 486 MovieClip Frame 3
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 486 MovieClip Frame 6
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 486 MovieClip Frame 9
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 486 MovieClip Frame 12
if (_root.gamePaused) {
gotoAndPlay(this._currentframe - 1);
}
Symbol 502 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 1
ttime = getTimer();
this.onEnterFrame = function () {
if ((getTimer() - 500) > ttime) {
cst.text = _global.score;
csn.text = _global.username;
ttime = getTimer();
i = 1;
while (i < 6) {
if (_root.hlives < i) {
this["l" + i].gotoAndStop(2);
} else {
this["l" + i].gotoAndStop(1);
}
i++;
}
if (_root.godmode) {
pw1.gotoAndStop(2);
} else {
pw1.gotoAndStop(1);
}
if (_root.fastmode) {
_root._hxm = 25;
_root._hym = 20;
_root._ha = 0.8;
pw3.gotoAndStop(2);
} else {
_root._hxm = _root._hxmd;
_root._hym = _root._hymd;
_root._ha = _root._had;
pw3.gotoAndStop(1);
}
pw2.gotoAndStop(_root.bombpowern + 1);
}
};
Symbol 528 Button
on (release) {
prep_lv.sendAndLoad("http://shared2.pldmstudios.com/santas/ss.php", get_lv, "POST");
sendtext.text = sendtext.text + "\nsending score, please wait...";
_root.sbt._visible = false;
_root.sbd._visible = false;
get_lv.onLoad = function (success) {
if (success) {
sendtext.text = "highscore sent";
_root.sbd._visible = true;
} else {
sendtext.text = "error while sending score";
_root.sbd._visible = true;
_root.sbt._visible = true;
}
};
}
Symbol 532 Button
on (release) {
gotoAndPlay (6);
}
Symbol 538 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 539 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 541 MovieClip Frame 1200
stop();
Symbol 542 Button
on (release) {
stopAllSounds();
gotoAndPlay (6);
}