Frame 1
_lockroot = true;
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
var _mochiads_game_id = "183078cd051d3e52";
MochiAd.showPreGameAd({id:"183078cd051d3e52", res:"500x300"});
__com_mochibot__("0112b769", this, 10301, true);
Frame 3
stop();
global = new Sound();
sound_on = true;
play_btn.onPress = function () {
nextFrame();
};
instructions.onPress = function () {
gotoAndStop ("instructions");
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
};
Instance of Symbol 348 MovieClip "sound_btn" in Frame 3
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Frame 4
stop();
var level1 = true;
var level2 = false;
var level3 = false;
var level4 = false;
var level5 = false;
var level6 = false;
var level7 = false;
var level8 = false;
var level9 = false;
var level10 = false;
var drop_bomb = true;
var life = 30;
var maxlife = 30;
var money = 0;
var diamond_count = 0;
var economy_times = 0;
var gravity = true;
var gravityd = false;
var keys = false;
var won = false;
var yellow_key_icon = false;
vx_yu = 0;
vx_yd = 0;
a_yu = 0.5;
a_yd = 0.4;
dc_yu = 0.95;
dc_yd = 0.9;
vx_xl = 0;
vx_xr = 0;
a_xl = 0.4;
a_xr = 0.4;
dc_xl = 0.9;
dc_xr = 0.9;
i = 0;
n = 0;
level = new Array();
createEmptyMovieClip("lev", getNextHighestDepth());
level[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level[1] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[2] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[3] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[4] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[5] = new Array(4, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[6] = new Array(4, 0, 0, 0, 0, 0, 0, 13, 10, 10, 10, 10, 10, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[7] = new Array(4, 0, 0, 0, 0, 0, 0, 13, 10, 10, 10, 10, 10, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[8] = new Array(4, 0, 0, 0, 0, 0, 0, 13, 10, 10, 10, 10, 10, 14, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 3);
level[9] = new Array(4, 0, 0, 0, 0, 0, 0, 13, 12, 12, 12, 12, 12, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[10] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[11] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[12] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[13] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 3);
level[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 14) {
x = 0;
while (x <= 60) {
if (level[y][x] != 0) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 20) + 10, _y:(y * 20) + 10});
place_brick.gotoAndStop(level[y][x]);
}
x++;
}
y++;
}
attachMovie("pacman", "pacman", 150, {_x:50, _y:100});
attachMovie("level_1_artwork", "level_1_artwork", 149, {_x:0, _y:0});
attachMovie("red", "red", 250, {_x:0, _y:0});
pacman.onEnterFrame = function () {
if (yellow_key_icon == true) {
level_1_artwork.goldpot.gotoAndStop(2);
}
if (this._x >= 503) {
life = 0;
}
if (this._x <= -3) {
life = 0;
}
if (this._y >= 303) {
life = 0;
}
if (this._y <= -3) {
life = 0;
}
replay = false;
if (gravityd == true) {
vx_yd = vx_yd + (a_yd * 0.5);
}
this.gotoAndStop(1);
if (Key.isDown(38)) {
vx_yu = vx_yu - a_yu;
gravityd = true;
}
if (Key.isDown(40)) {
vx_yd = vx_yd + a_yd;
gravityd = true;
}
if (Key.isDown(39)) {
vx_xr = vx_xr + a_xr;
gravityd = true;
this.gotoAndStop(3);
}
if (Key.isDown(37)) {
vx_xl = vx_xl - a_xl;
gravityd = true;
this.gotoAndStop(2);
}
if (vx_xl <= -8) {
vx_xl = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_xr <= -8) {
vx_xr = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_yd <= -8) {
vx_yd = -8;
}
if (vx_yd >= 8) {
vx_yd = 8;
}
if (vx_yu <= -8) {
vx_yu = -8;
}
if (vx_yu >= 8) {
vx_yu = 8;
}
pacman._x = pacman._x + vx_xl;
pacman._x = pacman._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
pacman._y = pacman._y + vx_yu;
pacman._y = pacman._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (drop_bomb == true) {
if (Key.isDown(32)) {
attachMovie("bomb", "bomb", 200, {_x:pacman._x, _y:pacman._y});
drop_bomb = false;
}
}
};
onEnterFrame = function () {
if (life <= 0) {
life = 0;
pacman.removeMovieClip();
level_1_artwork.removeMovieClip();
lev.removeMovieClip();
gotoAndStop ("gameover");
}
if (won == true) {
level_1_artwork.unloadMovie();
}
};
Frame 5
stop();
var speed = 1;
vx_yu = 0;
vx_yd = 0;
a_yu = 0.5;
a_yd = 0.4;
dc_yu = 0.95;
dc_yd = 0.9;
vx_xl = 0;
vx_xr = 0;
a_xl = 0.4;
a_xr = 0.4;
dc_xl = 0.9;
dc_xr = 0.9;
onEnterFrame = function () {
if (life >= maxlife) {
life = maxlife;
if (Key.isDown(32)) {
nextFrame();
}
}
};
nextt.onPress = function () {
nextFrame();
};
repair.onPress = function () {
if (life <= (_maxlife - 1)) {
if (money >= 10) {
money = money - 10;
life = life + 10;
}
}
};
plus_life.onPress = function () {
if (money >= 75) {
money = money - 75;
maxlife = maxlife + 75;
}
};
plus_speed.onPress = function () {
if (money >= 50) {
if (speed < 5) {
speed = speed + 1;
money = money - 50;
a_yd = a_yd + 0.1;
a_xl = a_xl + 0.1;
a_xr = a_xr + 0.1;
}
}
};
plus_economy.onPress = function () {
if (money >= 200) {
if (economy <= 9) {
economy++;
economy_times = economy_times + 5;
money = money - 200;
}
}
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
};
Instance of Symbol 348 MovieClip "sound_btn" in Frame 5
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Frame 6
stop();
vx_yu = 0;
vx_yd = 0;
vx_xl = 0;
vx_xr = 0;
var level1 = false;
var level2 = true;
var level3 = false;
var level4 = false;
var level5 = false;
var level6 = false;
var level7 = false;
var level8 = false;
var level9 = false;
var level10 = false;
var drop_bomb = true;
var gravity = true;
i = 0;
n = 0;
var keys = false;
var won = false;
var gravityd = false;
var yellow_key_icon = false;
level = new Array();
createEmptyMovieClip("lev", getNextHighestDepth());
level[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level[1] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[2] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[3] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 1, 1, 1, 1, 1, 0, 0, 3);
level[4] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 12, 12, 12, 12, 14, 0, 0, 3);
level[5] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 3);
level[6] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 15, 0, 0, 5, 0, 3);
level[7] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 3);
level[8] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 13, 1, 1, 1, 1, 14, 0, 0, 3);
level[9] = new Array(4, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 12, 12, 12, 12, 14, 0, 0, 3);
level[10] = new Array(4, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[11] = new Array(4, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 5, 0, 0, 3);
level[12] = new Array(4, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[13] = new Array(4, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 3);
level[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 14) {
x = 0;
while (x <= 60) {
if (level[y][x] != 0) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 20) + 10, _y:(y * 20) + 10});
place_brick.gotoAndStop(level[y][x]);
}
x++;
}
y++;
}
attachMovie("pacman", "pacman", 150, {_x:50, _y:100});
attachMovie("level_2_artwork", "level_2_artwork", 149, {_x:0, _y:0});
attachMovie("red", "red", 250, {_x:0, _y:0});
pacman.onEnterFrame = function () {
if (yellow_key_icon == true) {
level_2_artwork.goldpot.gotoAndStop(2);
}
if (this._x >= 503) {
life = 0;
}
if (this._x <= -3) {
life = 0;
}
if (this._y >= 303) {
life = 0;
}
if (this._y <= -3) {
life = 0;
}
replay = false;
if (gravityd == true) {
vx_yd = vx_yd + (a_yd * 0.5);
}
this.gotoAndStop(1);
if (Key.isDown(38)) {
vx_yu = vx_yu - a_yu;
gravityd = true;
}
if (Key.isDown(40)) {
vx_yd = vx_yd + a_yd;
gravityd = true;
}
if (Key.isDown(39)) {
vx_xr = vx_xr + a_xr;
gravityd = true;
this.gotoAndStop(3);
}
if (Key.isDown(37)) {
vx_xl = vx_xl - a_xl;
gravityd = true;
this.gotoAndStop(2);
}
if (vx_xl <= -8) {
vx_xl = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_xr <= -8) {
vx_xr = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_yd <= -8) {
vx_yd = -8;
}
if (vx_yd >= 8) {
vx_yd = 8;
}
if (vx_yu <= -8) {
vx_yu = -8;
}
if (vx_yu >= 8) {
vx_yu = 8;
}
pacman._x = pacman._x + vx_xl;
pacman._x = pacman._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
pacman._y = pacman._y + vx_yu;
pacman._y = pacman._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (drop_bomb == true) {
if (Key.isDown(32)) {
attachMovie("bomb", "bomb", 200, {_x:pacman._x, _y:pacman._y});
drop_bomb = false;
}
}
};
onEnterFrame = function () {
if (life <= 0) {
life = 0;
pacman.removeMovieClip();
level_2_artwork.removeMovieClip();
lev.removeMovieClip();
gotoAndStop ("gameover");
}
if (won == true) {
level_2_artwork.unloadMovie();
}
};
Frame 7
stop();
onEnterFrame = function () {
if (life >= maxlife) {
life = maxlife;
if (Key.isDown(32)) {
nextFrame();
}
}
};
nextt.onPress = function () {
nextFrame();
};
repair.onPress = function () {
if (life <= (maxlife - 1)) {
if (money >= 10) {
money = money - 10;
life = life + 10;
}
}
};
plus_life.onPress = function () {
if (money >= 75) {
money = money - 75;
maxlife = maxlife + 10;
}
};
plus_speed.onPress = function () {
if (money >= 50) {
if (speed < 5) {
speed = speed + 1;
money = money - 50;
a_yd = a_yd + 0.1;
a_yu = a_yd;
a_xl = a_xl + 0.1;
a_xr = a_xr + 0.1;
}
}
};
plus_economy.onPress = function () {
if (money >= 200) {
if (economy <= 9) {
economy++;
economy_times = economy_times + 5;
money = money - 200;
}
}
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
};
Instance of Symbol 348 MovieClip "sound_btn" in Frame 7
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Frame 8
stop();
vx_yu = 0;
vx_yd = 0;
vx_xl = 0;
vx_xr = 0;
var level1 = false;
var level2 = false;
var level3 = true;
var level4 = false;
var level5 = false;
var level6 = false;
var level7 = false;
var level8 = false;
var level9 = false;
var level10 = false;
var drop_bomb = true;
var gravity = true;
i = 0;
n = 0;
var keys = false;
var gravityd = false;
var won = false;
var yellow_key_icon = false;
level = new Array();
createEmptyMovieClip("lev", getNextHighestDepth());
level[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level[1] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[2] = new Array(4, 0, 0, 5, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 3);
level[3] = new Array(4, 0, 0, 0, 7, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 3);
level[4] = new Array(4, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[5] = new Array(4, 0, 7, 0, 0, 15, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[6] = new Array(4, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[7] = new Array(4, 0, 5, 0, 7, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[8] = new Array(4, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[9] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[10] = new Array(4, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[11] = new Array(4, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[12] = new Array(4, 0, 0, 5, 0, 0, 0, 0, 0, 0, 7, 0, 5, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[13] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 3);
level[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 14) {
x = 0;
while (x <= 60) {
if (level[y][x] != 0) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 20) + 10, _y:(y * 20) + 10});
place_brick.gotoAndStop(level[y][x]);
}
x++;
}
y++;
}
attachMovie("pacman", "pacman", 150, {_x:250, _y:60});
attachMovie("level_3_artwork", "level_3_artwork", 149, {_x:0, _y:0});
attachMovie("red", "red", 250, {_x:0, _y:0});
pacman.onEnterFrame = function () {
if (yellow_key_icon == true) {
level_3_artwork.goldpot.gotoAndStop(2);
}
if (this._x >= 503) {
life = 0;
}
if (this._x <= -3) {
life = 0;
}
if (this._y >= 303) {
life = 0;
}
if (this._y <= -3) {
life = 0;
}
replay = false;
if (gravityd == true) {
vx_yd = vx_yd + (a_yd * 0.5);
}
this.gotoAndStop(1);
if (Key.isDown(38)) {
vx_yu = vx_yu - a_yu;
gravityd = true;
}
if (Key.isDown(40)) {
vx_yd = vx_yd + a_yd;
gravityd = true;
}
if (Key.isDown(39)) {
vx_xr = vx_xr + a_xr;
gravityd = true;
this.gotoAndStop(3);
}
if (Key.isDown(37)) {
vx_xl = vx_xl - a_xl;
gravityd = true;
this.gotoAndStop(2);
}
if (vx_xl <= -8) {
vx_xl = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_xr <= -8) {
vx_xr = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_yd <= -8) {
vx_yd = -8;
}
if (vx_yd >= 8) {
vx_yd = 8;
}
if (vx_yu <= -8) {
vx_yu = -8;
}
if (vx_yu >= 8) {
vx_yu = 8;
}
pacman._x = pacman._x + vx_xl;
pacman._x = pacman._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
pacman._y = pacman._y + vx_yu;
pacman._y = pacman._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (drop_bomb == true) {
if (Key.isDown(32)) {
attachMovie("bomb", "bomb", 200, {_x:pacman._x, _y:pacman._y});
drop_bomb = false;
}
}
};
onEnterFrame = function () {
if (life <= 0) {
life = 0;
pacman.removeMovieClip();
level_3_artwork.removeMovieClip();
lev.removeMovieClip();
gotoAndStop ("gameover");
}
if (won == true) {
level_3_artwork.unloadMovie();
}
};
Frame 9
stop();
onEnterFrame = function () {
if (life >= maxlife) {
life = maxlife;
if (Key.isDown(32)) {
nextFrame();
}
}
};
nextt.onPress = function () {
nextFrame();
};
repair.onPress = function () {
if (life <= (maxlife - 1)) {
if (money >= 10) {
money = money - 10;
life = life + 10;
}
}
};
plus_life.onPress = function () {
if (money >= 75) {
money = money - 75;
maxlife = maxlife + 10;
}
};
plus_speed.onPress = function () {
if (money >= 50) {
if (speed < 5) {
speed = speed + 1;
money = money - 50;
a_yd = a_yd + 0.1;
a_yu = a_yd;
a_xl = a_xl + 0.1;
a_xr = a_xr + 0.1;
}
}
};
plus_economy.onPress = function () {
if (money >= 200) {
if (economy <= 9) {
economy++;
economy_times = economy_times + 5;
money = money - 200;
}
}
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
};
Instance of Symbol 348 MovieClip "sound_btn" in Frame 9
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Frame 10
stop();
vx_yu = 0;
vx_yd = 0;
vx_xl = 0;
vx_xr = 0;
var level1 = false;
var level2 = false;
var level3 = false;
var level4 = true;
var level5 = false;
var level6 = false;
var level7 = false;
var level8 = false;
var level9 = false;
var level10 = false;
var drop_bomb = true;
var gravity = true;
i = 0;
n = 0;
var keys = false;
var gravityd = false;
var won = false;
var bubbleok = false;
var yellow_key_icon = false;
level = new Array();
createEmptyMovieClip("lev", getNextHighestDepth());
level[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level[1] = new Array(4, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[2] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[3] = new Array(4, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 7, 0, 9, 0, 3);
level[4] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 1, 1, 1, 1, 1, 1, 3);
level[5] = new Array(4, 0, 5, 7, 5, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 14, 3);
level[6] = new Array(4, 0, 0, 5, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 3);
level[7] = new Array(4, 0, 5, 0, 5, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 3);
level[8] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 3);
level[9] = new Array(4, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 3);
level[10] = new Array(4, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 3);
level[11] = new Array(4, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 8, 8, 8, 8, 8, 8, 8, 7, 8, 8, 8, 8, 8, 3);
level[12] = new Array(4, 8, 8, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 5, 8, 8, 7, 8, 8, 15, 8, 8, 3);
level[13] = new Array(4, 8, 8, 8, 8, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 3);
level[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 14) {
x = 0;
while (x <= 60) {
if (level[y][x] != 0) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 20) + 10, _y:(y * 20) + 10});
place_brick.gotoAndStop(level[y][x]);
}
x++;
}
y++;
}
attachMovie("pacman", "pacman", 151, {_x:250, _y:60});
attachMovie("water", "water", 152, {_x:-1.8, _y:165.8});
attachMovie("level_4_artwork", "level_4_artwork", 149, {_x:0, _y:0});
attachMovie("red", "red", 250, {_x:0, _y:0});
pacman.onEnterFrame = function () {
if (yellow_key_icon == true) {
level_4_artwork.goldpot.gotoAndStop(2);
}
if (this._x >= 503) {
life = 0;
}
if (this._x <= -3) {
life = 0;
}
if (this._y >= 303) {
life = 0;
}
if (this._y <= -3) {
life = 0;
}
replay = false;
if (gravityd == true) {
vx_yd = vx_yd + (a_yd * 0.5);
}
this.gotoAndStop(1);
if (Key.isDown(38)) {
vx_yu = vx_yu - a_yu;
gravityd = true;
}
if (Key.isDown(40)) {
vx_yd = vx_yd + a_yd;
gravityd = true;
}
if (Key.isDown(39)) {
vx_xr = vx_xr + a_xr;
gravityd = true;
this.gotoAndStop(3);
}
if (Key.isDown(37)) {
vx_xl = vx_xl - a_xl;
gravityd = true;
this.gotoAndStop(2);
}
if (vx_xl <= -8) {
vx_xl = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_xr <= -8) {
vx_xr = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_yd <= -8) {
vx_yd = -8;
}
if (vx_yd >= 8) {
vx_yd = 8;
}
if (vx_yu <= -8) {
vx_yu = -8;
}
if (vx_yu >= 8) {
vx_yu = 8;
}
pacman._x = pacman._x + vx_xl;
pacman._x = pacman._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
pacman._y = pacman._y + vx_yu;
pacman._y = pacman._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (drop_bomb == true) {
if (Key.isDown(32)) {
attachMovie("bomb", "bomb", 150, {_x:pacman._x, _y:pacman._y});
drop_bomb = false;
}
}
};
onEnterFrame = function () {
if (life <= 0) {
life = 0;
pacman.removeMovieClip();
level_4_artwork.removeMovieClip();
lev.removeMovieClip();
water.unloadMovie();
gotoAndStop ("gameover");
}
if (won == true) {
level_4_artwork.unloadMovie();
water.unloadMovie();
}
};
Frame 11
stop();
onEnterFrame = function () {
if (life >= maxlife) {
life = maxlife;
}
if (Key.isDown(32)) {
nextFrame();
}
};
nextt.onPress = function () {
nextFrame();
};
repair.onPress = function () {
if (life <= (maxlife - 1)) {
if (money >= 10) {
money = money - 10;
life = life + 10;
}
}
};
plus_life.onPress = function () {
if (money >= 75) {
money = money - 75;
maxlife = maxlife + 10;
}
};
plus_speed.onPress = function () {
if (money >= 50) {
if (speed < 5) {
speed = speed + 1;
money = money - 50;
a_yd = a_yd + 0.1;
a_yu = a_yd;
a_xl = a_xl + 0.1;
a_xr = a_xr + 0.1;
}
}
};
plus_economy.onPress = function () {
if (money >= 200) {
if (economy <= 9) {
economy++;
economy_times = economy_times + 5;
money = money - 200;
}
}
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
};
Instance of Symbol 348 MovieClip "sound_btn" in Frame 11
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Frame 12
stop();
vx_yu = 0;
vx_yd = 0;
vx_xl = 0;
vx_xr = 0;
var level1 = false;
var level2 = false;
var level3 = false;
var level4 = false;
var level5 = true;
var level6 = false;
var level7 = false;
var level8 = false;
var level9 = false;
var level10 = false;
var drop_bomb = true;
var gravity = true;
i = 0;
n = 0;
var keys = false;
var gravityd = false;
var won = false;
var yellow_key_icon = false;
level = new Array();
createEmptyMovieClip("lev", getNextHighestDepth());
level[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level[1] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[2] = new Array(4, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 3);
level[3] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 13, 1, 14, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[4] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 13, 0, 14, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 3);
level[5] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 13, 12, 14, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 5, 0, 0, 3);
level[6] = new Array(4, 0, 0, 5, 7, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 3);
level[7] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 13, 14, 0, 7, 0, 0, 0, 3);
level[8] = new Array(4, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 0, 0, 0, 0, 0, 3);
level[9] = new Array(4, 0, 0, 18, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 17, 17, 0, 0, 0, 0, 0, 3);
level[10] = new Array(4, 0, 0, 18, 13, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[11] = new Array(4, 0, 15, 18, 12, 12, 12, 12, 12, 12, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[12] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[13] = new Array(4, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 3);
level[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 14) {
x = 0;
while (x <= 60) {
if (level[y][x] != 0) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 20) + 10, _y:(y * 20) + 10});
place_brick.gotoAndStop(level[y][x]);
}
x++;
}
y++;
}
attachMovie("pacman", "pacman", 150, {_x:250, _y:60});
attachMovie("level_5_artwork", "level_5_artwork", 149, {_x:0, _y:0});
attachMovie("red", "red", 250, {_x:0, _y:0});
pacman.onEnterFrame = function () {
if (yellow_key_icon == true) {
level_5_artwork.goldpot.gotoAndStop(2);
}
if (this._x >= 503) {
life = 0;
}
if (this._x <= -3) {
life = 0;
}
if (this._y >= 303) {
life = 0;
}
if (this._y <= -3) {
life = 0;
}
replay = false;
if (gravityd == true) {
vx_yd = vx_yd + (a_yd * 0.5);
}
this.gotoAndStop(1);
if (Key.isDown(38)) {
vx_yu = vx_yu - a_yu;
gravityd = true;
}
if (Key.isDown(40)) {
vx_yd = vx_yd + a_yd;
gravityd = true;
}
if (Key.isDown(39)) {
vx_xr = vx_xr + a_xr;
gravityd = true;
this.gotoAndStop(3);
}
if (Key.isDown(37)) {
vx_xl = vx_xl - a_xl;
gravityd = true;
this.gotoAndStop(2);
}
if (vx_xl <= -8) {
vx_xl = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_xr <= -8) {
vx_xr = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_yd <= -8) {
vx_yd = -8;
}
if (vx_yd >= 8) {
vx_yd = 8;
}
if (vx_yu <= -8) {
vx_yu = -8;
}
if (vx_yu >= 8) {
vx_yu = 8;
}
pacman._x = pacman._x + vx_xl;
pacman._x = pacman._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
pacman._y = pacman._y + vx_yu;
pacman._y = pacman._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (drop_bomb == true) {
if (Key.isDown(32)) {
attachMovie("bomb", "bomb", 200, {_x:pacman._x, _y:pacman._y});
drop_bomb = false;
}
}
};
onEnterFrame = function () {
if (life <= 0) {
life = 0;
pacman.removeMovieClip();
level_5_artwork.removeMovieClip();
lev.removeMovieClip();
gotoAndStop ("gameover");
}
if (won == true) {
level_5_artwork.unloadMovie();
}
};
Frame 13
stop();
onEnterFrame = function () {
if (life >= maxlife) {
life = maxlife;
}
if (Key.isDown(32)) {
nextFrame();
}
};
nextt.onPress = function () {
nextFrame();
};
repair.onPress = function () {
if (life <= (maxlife - 1)) {
if (money >= 10) {
money = money - 10;
life = life + 10;
}
}
};
plus_life.onPress = function () {
if (money >= 75) {
money = money - 75;
maxlife = maxlife + 10;
}
};
plus_speed.onPress = function () {
if (money >= 50) {
if (speed < 5) {
speed = speed + 1;
money = money - 50;
a_yd = a_yd + 0.1;
a_yu = a_yd;
a_xl = a_xl + 0.1;
a_xr = a_xr + 0.1;
}
}
};
plus_economy.onPress = function () {
if (money >= 200) {
if (economy <= 9) {
economy++;
economy_times = economy_times + 5;
money = money - 200;
}
}
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
};
Instance of Symbol 348 MovieClip "sound_btn" in Frame 13
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Frame 14
stop();
vx_yu = 0;
vx_yd = 0;
vx_xl = 0;
vx_xr = 0;
var level1 = false;
var level2 = false;
var level3 = false;
var level4 = false;
var level5 = false;
var level6 = true;
var level7 = false;
var level8 = false;
var level9 = false;
var level10 = false;
var drop_bomb = true;
var gravity = true;
i = 0;
n = 0;
var keys = false;
var gravityd = false;
var won = false;
var lock_1 = false;
var blue_key_icon = false;
var yellow_key_icon = false;
level = new Array();
createEmptyMovieClip("lev", getNextHighestDepth());
level[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level[1] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 0, 3);
level[2] = new Array(4, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 3);
level[3] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 3);
level[4] = new Array(4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 0, 0, 0, 13, 1, 1, 1, 1, 1, 1, 3);
level[5] = new Array(4, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 14, 0, 0, 0, 13, 12, 12, 12, 12, 12, 12, 3);
level[6] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 3);
level[7] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 15, 0, 0, 3);
level[8] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 3);
level[9] = new Array(4, 5, 0, 0, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3);
level[10] = new Array(4, 0, 0, 0, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 3);
level[11] = new Array(4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[12] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 3);
level[13] = new Array(4, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 3);
level[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 14) {
x = 0;
while (x <= 60) {
if (level[y][x] != 0) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 20) + 10, _y:(y * 20) + 10});
place_brick.gotoAndStop(level[y][x]);
}
x++;
}
y++;
}
attachMovie("pacman", "pacman", 150, {_x:50, _y:60});
attachMovie("level_6_artwork", "level_6_artwork", 149, {_x:0, _y:0});
attachMovie("red", "red", 250, {_x:0, _y:0});
pacman.onEnterFrame = function () {
if (yellow_key_icon == true) {
level_6_artwork.goldpot.gotoAndStop(2);
}
if (this._x >= 503) {
life = 0;
}
if (this._x <= -3) {
life = 0;
}
if (this._y >= 303) {
life = 0;
}
if (this._y <= -3) {
life = 0;
}
replay = false;
if (gravityd == true) {
vx_yd = vx_yd + (a_yd * 0.5);
}
this.gotoAndStop(1);
if (Key.isDown(38)) {
vx_yu = vx_yu - a_yu;
gravityd = true;
}
if (Key.isDown(40)) {
vx_yd = vx_yd + a_yd;
gravityd = true;
}
if (Key.isDown(39)) {
vx_xr = vx_xr + a_xr;
gravityd = true;
this.gotoAndStop(3);
}
if (Key.isDown(37)) {
vx_xl = vx_xl - a_xl;
gravityd = true;
this.gotoAndStop(2);
}
if (vx_xl <= -8) {
vx_xl = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_xr <= -8) {
vx_xr = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_yd <= -8) {
vx_yd = -8;
}
if (vx_yd >= 8) {
vx_yd = 8;
}
if (vx_yu <= -8) {
vx_yu = -8;
}
if (vx_yu >= 8) {
vx_yu = 8;
}
pacman._x = pacman._x + vx_xl;
pacman._x = pacman._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
pacman._y = pacman._y + vx_yu;
pacman._y = pacman._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (drop_bomb == true) {
if (Key.isDown(32)) {
attachMovie("bomb", "bomb", 200, {_x:pacman._x, _y:pacman._y});
drop_bomb = false;
}
}
};
onEnterFrame = function () {
if (life <= 0) {
life = 0;
pacman.removeMovieClip();
level_6_artwork.removeMovieClip();
lev.removeMovieClip();
gotoAndStop ("gameover");
}
if (won == true) {
level_6_artwork.unloadMovie();
}
};
Frame 15
stop();
onEnterFrame = function () {
if (life >= maxlife) {
life = maxlife;
}
if (Key.isDown(32)) {
nextFrame();
}
};
nextt.onPress = function () {
nextFrame();
};
if (Key.isDown(32)) {
nextFrame();
}
repair.onPress = function () {
if (life <= (maxlife - 1)) {
if (money >= 10) {
money = money - 10;
life = life + 10;
}
}
};
plus_life.onPress = function () {
if (money >= 75) {
money = money - 75;
maxlife = maxlife + 10;
}
};
plus_speed.onPress = function () {
if (money >= 50) {
if (speed < 5) {
speed = speed + 1;
money = money - 50;
a_yd = a_yd + 0.1;
a_yu = a_yd;
a_xl = a_xl + 0.1;
a_xr = a_xr + 0.1;
}
}
};
plus_economy.onPress = function () {
if (money >= 200) {
if (economy <= 9) {
economy++;
economy_times = economy_times + 5;
money = money - 200;
}
}
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
};
Instance of Symbol 348 MovieClip "sound_btn" in Frame 15
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Frame 16
stop();
vx_yu = 0;
vx_yd = 0;
vx_xl = 0;
vx_xr = 0;
var level1 = false;
var level2 = false;
var level3 = false;
var level4 = false;
var level5 = false;
var level6 = false;
var level7 = true;
var level8 = false;
var level9 = false;
var level10 = false;
var drop_bomb = true;
var gravity = true;
i = 0;
n = 0;
var keys = false;
var gravityd = false;
var won = false;
var yellow_key_icon = false;
var lock_1 = false;
level = new Array();
createEmptyMovieClip("lev", getNextHighestDepth());
level[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level[1] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[2] = new Array(4, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 3);
level[3] = new Array(4, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 3);
level[4] = new Array(4, 0, 0, 13, 14, 0, 7, 0, 13, 14, 0, 0, 0, 13, 14, 0, 0, 0, 13, 14, 0, 0, 0, 0, 3);
level[5] = new Array(4, 0, 0, 12, 12, 0, 0, 0, 12, 12, 0, 7, 0, 12, 12, 0, 0, 0, 12, 12, 0, 0, 0, 0, 3);
level[6] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[7] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 5, 0, 0, 7, 0, 0, 0, 0, 23, 3);
level[8] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[9] = new Array(4, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 3);
level[10] = new Array(4, 0, 0, 13, 14, 0, 7, 0, 13, 14, 0, 7, 0, 13, 14, 0, 0, 0, 13, 14, 0, 0, 0, 0, 3);
level[11] = new Array(4, 0, 0, 12, 12, 0, 0, 0, 12, 12, 0, 0, 0, 12, 12, 0, 0, 0, 12, 12, 0, 0, 0, 0, 3);
level[12] = new Array(4, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 3);
level[13] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 3);
level[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 14) {
x = 0;
while (x <= 60) {
if (level[y][x] != 0) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 20) + 10, _y:(y * 20) + 10});
place_brick.gotoAndStop(level[y][x]);
}
x++;
}
y++;
}
attachMovie("pacman", "pacman", 150, {_x:25, _y:25});
attachMovie("level_65_artwork", "level_65_artwork", 149, {_x:0, _y:0});
attachMovie("red", "red", 250, {_x:0, _y:0});
pacman.onEnterFrame = function () {
if (yellow_key_icon == true) {
level_65_artwork.goldpot.gotoAndStop(2);
}
if (this._x >= 503) {
life = 0;
}
if (this._x <= -3) {
life = 0;
}
if (this._y >= 303) {
life = 0;
}
if (this._y <= -3) {
life = 0;
}
replay = false;
if (gravityd == true) {
vx_yd = vx_yd + (a_yd * 0.5);
}
this.gotoAndStop(1);
if (Key.isDown(38)) {
vx_yu = vx_yu - a_yu;
gravityd = true;
}
if (Key.isDown(40)) {
vx_yd = vx_yd + a_yd;
gravityd = true;
}
if (Key.isDown(39)) {
vx_xr = vx_xr + a_xr;
gravityd = true;
this.gotoAndStop(3);
}
if (Key.isDown(37)) {
vx_xl = vx_xl - a_xl;
gravityd = true;
this.gotoAndStop(2);
}
if (vx_xl <= -8) {
vx_xl = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_xr <= -8) {
vx_xr = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_yd <= -8) {
vx_yd = -8;
}
if (vx_yd >= 8) {
vx_yd = 8;
}
if (vx_yu <= -8) {
vx_yu = -8;
}
if (vx_yu >= 8) {
vx_yu = 8;
}
pacman._x = pacman._x + vx_xl;
pacman._x = pacman._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
pacman._y = pacman._y + vx_yu;
pacman._y = pacman._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (drop_bomb == true) {
if (Key.isDown(32)) {
attachMovie("bomb", "bomb", 200, {_x:pacman._x, _y:pacman._y});
drop_bomb = false;
}
}
};
onEnterFrame = function () {
if (life <= 0) {
life = 0;
pacman.removeMovieClip();
level_65_artwork.removeMovieClip();
lev.removeMovieClip();
gotoAndStop ("gameover");
}
if (won == true) {
level_65_artwork.unloadMovie();
}
};
Frame 17
stop();
onEnterFrame = function () {
trace(level_65_artwork);
if (life >= maxlife) {
life = maxlife;
}
if (Key.isDown(32)) {
nextFrame();
}
};
nextt.onPress = function () {
nextFrame();
};
repair.onPress = function () {
if (life <= (maxlife - 1)) {
if (money >= 10) {
money = money - 10;
life = life + 10;
}
}
};
plus_life.onPress = function () {
if (money >= 75) {
money = money - 75;
maxlife = maxlife + 10;
}
};
plus_speed.onPress = function () {
if (money >= 50) {
if (speed < 5) {
speed = speed + 1;
money = money - 50;
a_yd = a_yd + 0.1;
a_yu = a_yd;
a_xl = a_xl + 0.1;
a_xr = a_xr + 0.1;
}
}
};
plus_economy.onPress = function () {
if (money >= 200) {
if (economy <= 9) {
economy++;
economy_times = economy_times + 5;
money = money - 200;
}
}
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
};
Instance of Symbol 348 MovieClip "sound_btn" in Frame 17
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Frame 18
stop();
vx_yu = 0;
vx_yd = 0;
vx_xl = 0;
vx_xr = 0;
var level1 = false;
var level2 = false;
var level3 = false;
var level4 = false;
var level5 = false;
var level6 = false;
var level7 = false;
var level8 = true;
var level9 = false;
var level10 = false;
var drop_bomb = true;
var gravity = true;
i = 0;
n = 0;
var keys = false;
var gravityd = false;
var won = false;
var yellow_key_icon = false;
level = new Array();
createEmptyMovieClip("lev", getNextHighestDepth());
level[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level[1] = new Array(4, 0, 0, 13, 14, 0, 0, 7, 0, 0, 0, 5, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 3);
level[2] = new Array(4, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 3);
level[3] = new Array(4, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 5, 0, 0, 7, 0, 0, 0, 0, 3);
level[4] = new Array(4, 0, 0, 13, 14, 0, 5, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 3);
level[5] = new Array(4, 0, 0, 13, 14, 0, 0, 0, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 14, 0, 0, 0, 3);
level[6] = new Array(4, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 3);
level[7] = new Array(4, 0, 0, 13, 14, 0, 0, 0, 15, 0, 0, 0, 5, 0, 0, 0, 24, 0, 9, 13, 14, 0, 5, 0, 3);
level[8] = new Array(4, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 3);
level[9] = new Array(4, 0, 5, 13, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 0, 0, 0, 3);
level[10] = new Array(4, 0, 0, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 0, 3);
level[11] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[12] = new Array(4, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 3);
level[13] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 14) {
x = 0;
while (x <= 60) {
if (level[y][x] != 0) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 20) + 10, _y:(y * 20) + 10});
place_brick.gotoAndStop(level[y][x]);
}
x++;
}
y++;
}
attachMovie("pacman", "pacman", 150, {_x:25, _y:25});
attachMovie("level_7_artwork", "level_7_artwork", 149, {_x:0, _y:0});
attachMovie("red", "red", 250, {_x:0, _y:0});
pacman.onEnterFrame = function () {
if (yellow_key_icon == true) {
level_7_artwork.goldpot.gotoAndStop(2);
}
if (this._x >= 503) {
life = 0;
}
if (this._x <= -3) {
life = 0;
}
if (this._y >= 303) {
life = 0;
}
if (this._y <= -3) {
life = 0;
}
replay = false;
if (gravityd == true) {
vx_yd = vx_yd + (a_yd * 0.5);
}
this.gotoAndStop(1);
if (Key.isDown(38)) {
vx_yu = vx_yu - a_yu;
gravityd = true;
}
if (Key.isDown(40)) {
vx_yd = vx_yd + a_yd;
gravityd = true;
}
if (Key.isDown(39)) {
vx_xr = vx_xr + a_xr;
gravityd = true;
this.gotoAndStop(3);
}
if (Key.isDown(37)) {
vx_xl = vx_xl - a_xl;
gravityd = true;
this.gotoAndStop(2);
}
if (vx_xl <= -8) {
vx_xl = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_xr <= -8) {
vx_xr = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_yd <= -8) {
vx_yd = -8;
}
if (vx_yd >= 8) {
vx_yd = 8;
}
if (vx_yu <= -8) {
vx_yu = -8;
}
if (vx_yu >= 8) {
vx_yu = 8;
}
pacman._x = pacman._x + vx_xl;
pacman._x = pacman._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
pacman._y = pacman._y + vx_yu;
pacman._y = pacman._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (drop_bomb == true) {
if (Key.isDown(32)) {
attachMovie("bomb", "bomb", 200, {_x:pacman._x, _y:pacman._y});
drop_bomb = false;
}
}
};
onEnterFrame = function () {
if (life <= 0) {
life = 0;
pacman.removeMovieClip();
level_7_artwork.removeMovieClip();
lev.removeMovieClip();
gotoAndStop ("gameover");
}
if (won == true) {
level_7_artwork.unloadMovie();
}
};
Frame 19
stop();
onEnterFrame = function () {
if (life >= maxlife) {
life = maxlife;
}
};
nextt.onPress = function () {
nextFrame();
};
if (Key.isDown(32)) {
nextFrame();
}
repair.onPress = function () {
if (life <= (maxlife - 1)) {
if (money >= 10) {
money = money - 10;
life = life + 10;
}
}
};
plus_life.onPress = function () {
if (money >= 75) {
money = money - 75;
maxlife = maxlife + 10;
}
};
plus_speed.onPress = function () {
if (money >= 50) {
if (speed < 5) {
speed = speed + 1;
money = money - 50;
a_yd = a_yd + 0.1;
a_yu = a_yd;
a_xl = a_xl + 0.1;
a_xr = a_xr + 0.1;
}
}
};
plus_economy.onPress = function () {
if (money >= 200) {
if (economy <= 9) {
economy++;
economy_times = economy_times + 5;
money = money - 200;
}
}
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
};
Instance of Symbol 348 MovieClip "sound_btn" in Frame 19
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Frame 20
stop();
vx_yu = 0;
vx_yd = 0;
vx_xl = 0;
vx_xr = 0;
var level1 = false;
var level2 = false;
var level3 = false;
var level4 = false;
var level5 = false;
var level6 = false;
var level7 = false;
var level8 = false;
var level9 = true;
var level10 = false;
var drop_bomb = true;
var gravity = true;
i = 0;
n = 0;
var keys = false;
var gravityd = false;
var won = false;
var yellow_key_icon = false;
level = new Array();
createEmptyMovieClip("lev", getNextHighestDepth());
level[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level[1] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[2] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 5, 0, 0, 0, 0, 0, 5, 0, 3);
level[3] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[4] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 3);
level[5] = new Array(4, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 3);
level[6] = new Array(4, 14, 14, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[7] = new Array(4, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[8] = new Array(4, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[9] = new Array(4, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 3);
level[10] = new Array(4, 12, 12, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 3);
level[11] = new Array(4, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 12, 12, 0, 0, 7, 0, 0, 3);
level[12] = new Array(4, 0, 15, 0, 5, 0, 0, 13, 1, 1, 1, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[13] = new Array(4, 0, 0, 0, 0, 0, 0, 13, 1, 1, 1, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 3);
level[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 14) {
x = 0;
while (x <= 60) {
if (level[y][x] != 0) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 20) + 10, _y:(y * 20) + 10});
place_brick.gotoAndStop(level[y][x]);
}
x++;
}
y++;
}
attachMovie("pacman", "pacman", 150, {_x:25, _y:25});
attachMovie("level_8_artwork", "level_8_artwork", 149, {_x:0, _y:0});
attachMovie("red", "red", 250, {_x:0, _y:0});
pacman.onEnterFrame = function () {
if (yellow_key_icon == true) {
level_8_artwork.goldpot.gotoAndStop(2);
}
if (this._x >= 503) {
life = 0;
}
if (this._x <= -3) {
life = 0;
}
if (this._y >= 303) {
life = 0;
}
if (this._y <= -3) {
life = 0;
}
replay = false;
if (gravityd == true) {
vx_yd = vx_yd + (a_yd * 0.5);
}
this.gotoAndStop(1);
if (Key.isDown(38)) {
vx_yu = vx_yu - a_yu;
gravityd = true;
}
if (Key.isDown(40)) {
vx_yd = vx_yd + a_yd;
gravityd = true;
}
if (Key.isDown(39)) {
vx_xr = vx_xr + a_xr;
gravityd = true;
this.gotoAndStop(3);
}
if (Key.isDown(37)) {
vx_xl = vx_xl - a_xl;
gravityd = true;
this.gotoAndStop(2);
}
if (vx_xl <= -8) {
vx_xl = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_xr <= -8) {
vx_xr = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_yd <= -8) {
vx_yd = -8;
}
if (vx_yd >= 8) {
vx_yd = 8;
}
if (vx_yu <= -8) {
vx_yu = -8;
}
if (vx_yu >= 8) {
vx_yu = 8;
}
pacman._x = pacman._x + vx_xl;
pacman._x = pacman._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
pacman._y = pacman._y + vx_yu;
pacman._y = pacman._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (drop_bomb == true) {
if (Key.isDown(32)) {
attachMovie("bomb", "bomb", 200, {_x:pacman._x, _y:pacman._y});
drop_bomb = false;
}
}
};
onEnterFrame = function () {
if (life <= 0) {
life = 0;
pacman.removeMovieClip();
level_8_artwork.removeMovieClip();
lev.removeMovieClip();
gotoAndStop ("gameover");
}
if (won == true) {
level_8_artwork.unloadMovie();
}
};
Frame 21
stop();
onEnterFrame = function () {
if (life >= maxlife) {
life = maxlife;
}
};
nextt.onPress = function () {
nextFrame();
};
if (Key.isDown(32)) {
nextFrame();
}
repair.onPress = function () {
if (life <= (maxlife - 1)) {
if (money >= 10) {
money = money - 10;
life = life + 10;
}
}
};
plus_life.onPress = function () {
if (money >= 75) {
money = money - 75;
maxlife = maxlife + 10;
}
};
plus_speed.onPress = function () {
if (money >= 50) {
if (speed < 5) {
speed = speed + 1;
money = money - 50;
a_yd = a_yd + 0.1;
a_yu = a_yd;
a_xl = a_xl + 0.1;
a_xr = a_xr + 0.1;
}
}
};
plus_economy.onPress = function () {
if (money >= 200) {
if (economy <= 9) {
economy++;
economy_times = economy_times + 5;
money = money - 200;
}
}
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
};
Instance of Symbol 348 MovieClip "sound_btn" in Frame 21
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Frame 22
stop();
vx_yu = 0;
vx_yd = 0;
vx_xl = 0;
vx_xr = 0;
var level1 = false;
var level2 = false;
var level3 = false;
var level4 = false;
var level5 = false;
var level6 = false;
var level7 = false;
var level8 = false;
var level9 = false;
var level10 = true;
var drop_bomb = true;
var gravity = true;
i = 0;
n = 0;
var keys = false;
var gravityd = false;
var won = false;
var yellow_key_icon = false;
level = new Array();
createEmptyMovieClip("lev", getNextHighestDepth());
level[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level[1] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[2] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 15, 0, 7, 0, 3);
level[3] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[4] = new Array(4, 1, 1, 1, 1, 1, 0, 0, 13, 14, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[5] = new Array(4, 12, 12, 12, 12, 12, 0, 0, 13, 14, 0, 0, 0, 12, 12, 0, 0, 0, 0, 25, 0, 0, 0, 0, 3);
level[6] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[7] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level[8] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 3);
level[9] = new Array(4, 0, 0, 1, 1, 1, 1, 1, 13, 14, 0, 0, 5, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 3);
level[10] = new Array(4, 0, 0, 12, 12, 12, 12, 12, 12, 12, 0, 0, 0, 0, 0, 13, 14, 0, 0, 7, 0, 0, 0, 0, 3);
level[11] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 3);
level[12] = new Array(4, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 3);
level[13] = new Array(4, 26, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 9, 0, 3);
level[14] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 14) {
x = 0;
while (x <= 60) {
if (level[y][x] != 0) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 20) + 10, _y:(y * 20) + 10});
place_brick.gotoAndStop(level[y][x]);
}
x++;
}
y++;
}
attachMovie("pacman", "pacman", 150, {_x:25, _y:25});
attachMovie("level_9_artwork", "level_9_artwork", 149, {_x:0, _y:0});
attachMovie("red", "red", 250, {_x:0, _y:0});
pacman.onEnterFrame = function () {
if (yellow_key_icon == true) {
level_9_artwork.goldpot.gotoAndStop(2);
}
if (this._x >= 503) {
life = 0;
}
if (this._x <= -3) {
life = 0;
}
if (this._y >= 303) {
life = 0;
}
if (this._y <= -3) {
life = 0;
}
replay = false;
if (gravityd == true) {
vx_yd = vx_yd + (a_yd * 0.5);
}
this.gotoAndStop(1);
if (Key.isDown(38)) {
vx_yu = vx_yu - a_yu;
gravityd = true;
}
if (Key.isDown(40)) {
vx_yd = vx_yd + a_yd;
gravityd = true;
}
if (Key.isDown(39)) {
vx_xr = vx_xr + a_xr;
gravityd = true;
this.gotoAndStop(3);
}
if (Key.isDown(37)) {
vx_xl = vx_xl - a_xl;
gravityd = true;
this.gotoAndStop(2);
}
if (vx_xl <= -8) {
vx_xl = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_xr <= -8) {
vx_xr = -8;
}
if (vx_xl >= 8) {
vx_xl = 8;
}
if (vx_yd <= -8) {
vx_yd = -8;
}
if (vx_yd >= 8) {
vx_yd = 8;
}
if (vx_yu <= -8) {
vx_yu = -8;
}
if (vx_yu >= 8) {
vx_yu = 8;
}
pacman._x = pacman._x + vx_xl;
pacman._x = pacman._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
pacman._y = pacman._y + vx_yu;
pacman._y = pacman._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (drop_bomb == true) {
if (Key.isDown(32)) {
attachMovie("bomb", "bomb", 200, {_x:pacman._x, _y:pacman._y});
drop_bomb = false;
}
}
};
onEnterFrame = function () {
if (life <= 0) {
life = 0;
pacman.removeMovieClip();
level_9_artwork.removeMovieClip();
lev.removeMovieClip();
gotoAndStop ("gameover");
}
if (won == true) {
level_9_artwork.unloadMovie();
}
};
Frame 23
stop();
ScoreAPI = new LocalConnection();
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", _root.money);
onEnterFrame = function () {
if (life >= maxlife) {
life = maxlife;
}
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
};
Frame 24
stop();
ScoreAPI = new LocalConnection();
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", _root.money);
tryagain.onPress = function () {
life = maxlife;
vx_yu = 0;
vx_yd = 0;
vx_xl = 0;
vx_xr = 0;
money = 0;
if (level1 == true) {
gotoAndStop ("mainmenu");
}
if (level2 == true) {
gotoAndStop ("level__2");
}
if (level3 == true) {
gotoAndStop ("level__3");
}
if (level4 == true) {
gotoAndStop ("level__4");
}
if (level5 == true) {
gotoAndStop ("level__5");
}
if (level6 == true) {
gotoAndStop ("level__6");
}
if (level7 == true) {
gotoAndStop ("level__7");
}
if (level8 == true) {
gotoAndStop ("level__8");
}
if (level9 == true) {
gotoAndStop ("level__9");
}
if (level10 == true) {
gotoAndStop ("level__10");
}
};
Frame 25
stop();
mainmenu_btn.onPress = function () {
gotoAndStop ("mainmenu");
};
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
};
if (sound_on == true) {
sound_btn.gotoAndStop(2);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
}
Instance of Symbol 348 MovieClip "sound_btn" in Frame 25
onClipEvent (enterFrame) {
if (sound_on == true) {
this.gotoAndStop(2);
}
if (sound_on == false) {
this.gotoAndStop(1);
}
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 22
this.unloadMovie();
Symbol 43 MovieClip Frame 1
stop();
Symbol 73 MovieClip [enemy_1_boom] Frame 1
stop();
Symbol 73 MovieClip [enemy_1_boom] Frame 3
this.unloadMovie();
Symbol 73 MovieClip [enemy_1_boom] Frame 23
this.unloadMovie();
Symbol 97 MovieClip [enemy_2_boom] Frame 1
stop();
Symbol 97 MovieClip [enemy_2_boom] Frame 3
this.unloadMovie();
Symbol 97 MovieClip [enemy_2_boom] Frame 23
this.unloadMovie();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
stop();
this.unloadMovie();
Symbol 193 MovieClip Frame 22
stop();
this.unloadMovie();
Symbol 194 MovieClip Frame 305
_root.asteroid_dead = true;
Symbol 206 MovieClip [block] Frame 1
stop();
black.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_yd = _root.vx_yd + -2;
_root.life = _root.life - 1;
_root.red.gotoAndPlay(2);
}
if (this.hitTest(_root.bomb)) {
_root.bomb.gotoAndStop(2);
}
};
Symbol 206 MovieClip [block] Frame 2
stop();
blue.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_yu = _root.vx_yu + 2;
}
};
Symbol 206 MovieClip [block] Frame 3
stop();
red.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_xr = _root.vx_xr + -2;
_root.life = _root.life - 1;
_root.red.gotoAndPlay(2);
}
};
Symbol 206 MovieClip [block] Frame 4
stop();
purple.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_xl = _root.vx_xl + 2;
_root.life = _root.life - 1;
_root.red.gotoAndPlay(2);
}
};
Symbol 206 MovieClip [block] Frame 5
var okk = true;
stop();
diamond.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
if (okk == true) {
_root.diamond_count++;
_root.money = _root.money + (10 + _root.economy_times);
diamond.diamond_dust.gotoAndPlay(2);
okk = false;
}
}
};
Symbol 206 MovieClip [block] Frame 6
var remove = false;
var exploded = true;
stop();
enemy_1.onEnterFrame = function () {
if (_root.bomb.hitTest(enemy_1)) {
_root.diamond_count++;
_root.money = _root.money + (10 + _root.economy_times);
enemy_1.enemy_1_boom.gotoAndPlay(2);
_root.bomb.gotoAndStop(2);
}
if (_root.pacman.hitTest(enemy_1)) {
_root.red.gotoAndPlay(2);
if (exploded == true) {
exploded = false;
_root.vx_xl = _root.vx_xl - (_root.vx_xl * -2);
_root.vx_xr = _root.vx_xr + (_root.vx_xr * -2);
_root.vx_yu = _root.vx_yu - (_root.vx_yu * -2);
_root.vx_yd = _root.vx_yd + (_root.vx_yd * -2);
_root.life = _root.life - 5;
enemy_1.enemy_1_boom.gotoAndPlay(4);
}
}
};
Symbol 206 MovieClip [block] Frame 7
var remove = false;
var exploded = true;
stop();
enemy_2.onEnterFrame = function () {
if (_root.bomb.hitTest(enemy_2)) {
_root.diamond_count++;
_root.money = _root.money + (10 + _root.economy_times);
enemy_2.enemy_2_boom.gotoAndPlay(2);
_root.bomb.gotoAndStop(2);
}
if (_root.pacman.hitTest(enemy_2)) {
_root.red.gotoAndPlay(2);
if (exploded == true) {
exploded = false;
_root.vx_xl = _root.vx_xl - (_root.vx_xl * -2);
_root.vx_xr = _root.vx_xr + (_root.vx_xr * -2);
_root.vx_yu = _root.vx_yu - (_root.vx_yu * -2);
_root.vx_yd = _root.vx_yd + (_root.vx_yd * -2);
_root.life = _root.life - 5;
enemy_2.enemy_2_boom.gotoAndPlay(4);
}
}
};
Symbol 206 MovieClip [block] Frame 8
water_block.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
if (_root.vx_xl <= -1) {
_root.vx_xl = -1;
}
if (_root.vx_xr >= 1) {
_root.vx_xr = 1;
}
if (_root.vx_yd >= 1) {
_root.vx_yd = 1;
}
if (_root.vx_yu <= -2) {
_root.vx_yu = -2;
}
}
if (this.hitTest(_root.bomb)) {
if (_root.vx_yd_bomb >= 0.5) {
_root.vx_yd_bomb = 0.5;
}
}
};
Symbol 206 MovieClip [block] Frame 9
stop();
treasure.onEnterFrame = function () {
if (_root.yellow_key_icon == true) {
_root.treasure.gotoAndStop(2);
}
if (_root.keys == true) {
this.gotoAndStop(2);
if (this.hitTest(_root.pacman)) {
_root.pacman.removeMovieClip();
_root.lev.unloadMovie();
_root.nextFrame();
_root.won = true;
}
}
};
Symbol 206 MovieClip [block] Frame 10
stop();
Symbol 206 MovieClip [block] Frame 11
stop();
purple.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_xl = _root.vx_xl * 1.5;
_root.life = _root.life - 1;
_root.red.gotoAndPlay(2);
}
};
red.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_xr = _root.vx_xr * -1.5;
_root.life = _root.life - 1;
_root.red.gotoAndPlay(2);
}
};
blue.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_yu = _root.vx_yu * 1.5;
_root.red.gotoAndPlay(2);
}
};
black.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_yd = _root.vx_yd * -1.5;
_root.red.gotoAndPlay(2);
}
};
Symbol 206 MovieClip [block] Frame 12
stop();
blue.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_yu = _root.vx_yu + 2;
_root.life = _root.life - 1;
_root.red.gotoAndPlay(2);
}
};
Symbol 206 MovieClip [block] Frame 13
stop();
red.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_xr = _root.vx_xr + -2;
_root.life = _root.life - 1;
_root.red.gotoAndPlay(2);
}
};
Symbol 206 MovieClip [block] Frame 14
stop();
purple.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_xl = _root.vx_xl + 2;
_root.life = _root.life - 1;
_root.red.gotoAndPlay(2);
}
};
Symbol 206 MovieClip [block] Frame 15
stop();
key.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.keys = true;
_root.yellow_key_icon = true;
this.unloadMovie();
}
};
Symbol 206 MovieClip [block] Frame 16
stop();
laser.onEnterFrame = function () {
if (_root.pacman.hitTest(laser)) {
_root.vx_xl = _root.vx_xl - (_root.vx_xl * -2);
_root.vx_xr = _root.vx_xr + (_root.vx_xr * -2);
_root.vx_yu = _root.vx_yu - (_root.vx_yu * -2);
_root.vx_yd = _root.vx_yd + (_root.vx_yd * -2);
_root.life = _root.life - 5;
}
};
Symbol 206 MovieClip [block] Frame 17
stop();
stakes.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_yu = _root.vx_yu + 2;
_root.life = _root.life - 4;
_root.red.gotoAndPlay(2);
}
};
Symbol 206 MovieClip [block] Frame 18
stop();
stakes_2.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.vx_xr = _root.vx_xr + -2;
_root.life = _root.life - 4;
_root.red.gotoAndPlay(2);
}
};
Symbol 206 MovieClip [block] Frame 19
just_one = false;
stop();
tank.onEnterFrame = function () {
if (_root.pacman.hitTest(tank.snowball)) {
_root.red.gotoAndPlay(2);
_root.vx_xl = _root.vx_xl - (_root.vx_xl * -1.5);
_root.vx_xr = _root.vx_xr + (_root.vx_xr * -1.5);
_root.vx_yu = _root.vx_yu - (_root.vx_yu * -1.5);
_root.vx_yd = _root.vx_yd + (_root.vx_yd * -1.5);
_root.life = _root.life - 5;
tank.gotoAndPlay(1);
_root.just_one = true;
_root.just_one = false;
}
};
Symbol 206 MovieClip [block] Frame 20
just_one_1 = false;
stop();
tank_1.onEnterFrame = function () {
if (_root.pacman.hitTest(tank_1.snowball_1)) {
_root.red.gotoAndPlay(2);
_root.vx_xl = _root.vx_xl - (_root.vx_xl * -1.5);
_root.vx_xr = _root.vx_xr + (_root.vx_xr * -1.5);
_root.vx_yu = _root.vx_yu - (_root.vx_yu * -1.5);
_root.vx_yd = _root.vx_yd + (_root.vx_yd * -1.5);
_root.life = _root.life - 5;
tank_1.gotoAndPlay(1);
_root.just_one_1 = true;
_root.just_one_1 = false;
}
};
Symbol 206 MovieClip [block] Frame 21
stop();
blue_lock_block.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
if (_root.lock_1 == false) {
_root.vx_xr = _root.vx_xr + -2;
_root.life = _root.life - 1;
_root.red.gotoAndPlay(2);
}
}
if (_root.lock_1 == true) {
this.gotoAndStop(2);
}
};
Symbol 206 MovieClip [block] Frame 22
stop();
key_blue.onEnterFrame = function () {
if (this.hitTest(_root.pacman)) {
_root.blue_key_icon = true;
_root.lock_1 = true;
this.unloadMovie();
}
};
Symbol 206 MovieClip [block] Frame 23
just_one = false;
stop();
tank_2.onEnterFrame = function () {
if (_root.pacman.hitTest(tank_2.snowball_2)) {
_root.red.gotoAndPlay(2);
_root.vx_xl = _root.vx_xl - (_root.vx_xl * -1.5);
_root.vx_xr = _root.vx_xr + (_root.vx_xr * -1.5);
_root.vx_yu = _root.vx_yu - (_root.vx_yu * -1.5);
_root.vx_yd = _root.vx_yd + (_root.vx_yd * -1.5);
_root.life = _root.life - 5;
tank_2.gotoAndPlay(1);
_root.just_one = true;
_root.just_one = false;
}
};
Symbol 206 MovieClip [block] Frame 24
var follow = true;
var blowup = true;
var asteroid_dead = false;
stop();
asteroid.onEnterFrame = function () {
if (_root.asteroid_dead == true) {
asteroid.gotoAndPlay(2);
}
if (_root.bomb.hitTest(asteroid)) {
_root.diamond_count++;
_root.money = _root.money + (10 + _root.economy_times);
asteroid.gotoAndPlay(2);
_root.bomb.gotoAndStop(2);
}
if (_root.pacman.hitTest(asteroid)) {
if (blowup == true) {
_root.red.gotoAndPlay(2);
_root.vx_xl = _root.vx_xl - (_root.vx_xl * -1.5);
_root.vx_xr = _root.vx_xr + (_root.vx_xr * -1.5);
_root.vx_yu = _root.vx_yu - (_root.vx_yu * -1.5);
_root.vx_yd = _root.vx_yd + (_root.vx_yd * -1.5);
_root.life = _root.life - 5;
asteroid.gotoAndPlay(3);
blowup = false;
}
}
};
Instance of Symbol 193 MovieClip "asteroid" in Symbol 206 MovieClip [block] Frame 24
onClipEvent (enterFrame) {
if (_root.gravityd == true) {
mx = _root.pacman._x;
if (mx < _x) {
dx = _x - mx;
} else {
dx = mx - _x;
}
moveSpeedx = dx / 20;
if (mx < _x) {
_x = (_x - moveSpeedx);
} else {
_x = (_x + moveSpeedx);
}
my = _root.pacman._y;
if (my < _y) {
dy = _y - my;
} else {
dy = my - _y;
}
moveSpeedy = dy / 20;
if (my < _y) {
_y = (_y - moveSpeedy);
} else {
_y = (_y + moveSpeedy);
}
}
}
Symbol 206 MovieClip [block] Frame 25
stop();
onEnterFrame = function () {
if (_root.pacman.hitTest(razor_all.razor_bottom)) {
_root.red.gotoAndPlay(2);
_root.vx_yu = _root.vx_yu + 2.6;
_root.life = _root.life - 5;
}
if (_root.pacman.hitTest(razor_all.razor_top)) {
_root.red.gotoAndPlay(2);
_root.vx_yd = _root.vx_yd + -2.6;
_root.life = _root.life - 5;
}
if (_root.pacman.hitTest(razor_all.razor_left)) {
_root.red.gotoAndPlay(2);
_root.vx_xl = _root.vx_xl + -2.6;
_root.life = _root.life - 5;
}
if (_root.pacman.hitTest(razor_all.razor_right)) {
_root.red.gotoAndPlay(2);
_root.vx_xr = _root.vx_xr - (_root.vx_xr * -1.3);
_root.life = _root.life - 5;
}
};
Symbol 206 MovieClip [block] Frame 26
just_one = false;
stop();
tank.onEnterFrame = function () {
if (_root.pacman.hitTest(tank.snowball)) {
_root.red.gotoAndPlay(2);
_root.vx_xl = _root.vx_xl - (_root.vx_xl * -1.5);
_root.vx_xr = _root.vx_xr + (_root.vx_xr * -1.5);
_root.vx_yu = _root.vx_yu - (_root.vx_yu * -1.5);
_root.vx_yd = _root.vx_yd + (_root.vx_yd * -1.5);
_root.life = _root.life - 5;
tank.gotoAndPlay(1);
_root.just_one = true;
_root.just_one = false;
}
};
Symbol 206 MovieClip [block] Frame 27
just_one_1 = false;
stop();
tank_1.onEnterFrame = function () {
if (_root.pacman.hitTest(tank_1.snowball_1)) {
_root.red.gotoAndPlay(2);
_root.vx_xl = _root.vx_xl - (_root.vx_xl * -1.5);
_root.vx_xr = _root.vx_xr + (_root.vx_xr * -1.5);
_root.vx_yu = _root.vx_yu - (_root.vx_yu * -1.5);
_root.vx_yd = _root.vx_yd + (_root.vx_yd * -1.5);
_root.life = _root.life - 5;
tank_1.gotoAndPlay(1);
_root.just_one_1 = true;
_root.just_one_1 = false;
}
};
Symbol 250 MovieClip [bomb_hit] Frame 25
_root.drop_bomb = true;
this.unloadMovie();
Symbol 251 MovieClip [bomb] Frame 1
stop();
vx_yd_bomb = 0;
a_yd_bomb = 0.4;
dc_yd_bomb = 0.9;
onEnterFrame = function () {
vx_yd_bomb = vx_yd_bomb + a_yd_bomb;
_root.bomb._y = _root.bomb._y + vx_yd_bomb;
vx_yd_bomb = vx_yd_bomb * dc_yd_bomb;
};
Symbol 251 MovieClip [bomb] Frame 2
stop();
onEnterFrame = function () {
vx_yd_bomb = vx_yd_bomb - a_yd_bomb;
};
Symbol 253 MovieClip [sparks] Frame 10
_root.removeMovieClip();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 2
stop();
Symbol 293 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.lock_1 == true) {
this.gotoAndPlay(3);
}
};
Symbol 293 MovieClip Frame 15
stop();
Symbol 295 MovieClip [level_6_artwork] Frame 1
tank_2.onEnterFrame = function () {
if (_root.just_one == true) {
tank_2.gotoAndPlay(1);
}
};
onEnterFrame = function () {
if (_root.blue_key_icon == true) {
trace("fasdf");
_root.block_block.gotoAndPlay(3);
}
};
Symbol 306 MovieClip [level_5_artwork] Frame 1
tank_2.onEnterFrame = function () {
if (_root.just_one == true) {
tank_2.gotoAndPlay(1);
trace("faadf");
}
};
Symbol 324 MovieClip [pacman] Frame 1
stop();
Symbol 324 MovieClip [pacman] Frame 2
stop();
Symbol 324 MovieClip [pacman] Frame 3
stop();
Symbol 327 MovieClip [red] Frame 1
stop();
Symbol 470 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.6");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 348 MovieClip Frame 1
this.stop();
_root.sound_on = true;
Symbol 348 MovieClip Frame 2
this.stop();
_root.sound_on = false;
Symbol 356 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.yellow_key_icon == true) {
this.gotoAndStop(2);
}
};
Symbol 356 MovieClip Frame 2
stop();
Symbol 425 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.blue_key_icon == true) {
this.gotoAndStop(2);
}
};
Symbol 425 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (_root.blue_key_icon == false) {
this.gotoAndStop(1);
}
};