Frame 1
stop();
mochi.MochiServices.connect("a1806effcc6fe3ea");
musicIsOn = false;
muted = false;
function deadClick() {
}
function gotoMySite() {
getURL ("http://www.rjgam.es", "_blank");
}
function gotoHisSite() {
if (_root.localization_portal == "game_com_cn") {
getURL (_root.localization_url1, "_blank");
} else {
getURL (_root.localization_url1 + "&utm_content=button_highscore_3000games", "_blank");
}
}
function Skyline() {
stopAllSounds();
sound = new Sound(this);
sound.attachSound("Skyline");
sound.start(0, 1500);
}
function NoMusic() {
if (musicIsOn) {
stopAllSounds();
musicIsOn = false;
muted = true;
} else {
sound = new Sound(this);
sound.attachSound("Skyline");
sound.start(0, 1500);
musicIsOn = true;
muted = false;
}
}
gamename = "bango";
_root.localization_url1 = "http://www.a10.com/moregames/?utm_medium=brandedgames_as2&utm_campaign=" + gamename;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 46;
_root.localization_portal = "teen";
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var MusicOff = new ContextMenuItem("Music ON/OFF", NoMusic);
MusicOff.separatorBefore = true;
var Skyline = new ContextMenuItem("Paradise on E (Remix), by API", Skyline);
var mySiteLink = new ContextMenuItem("Developed by RJGames", gotoMySite);
var hisSiteLink = new ContextMenuItem("Sponsored by SPIL GAMES", gotoHisSite);
myMenu.customItems.push(mySiteLink, hisSiteLink, Skyline, MusicOff);
_root.menu = myMenu;
Frame 3
stop();
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);
}
__com_mochibot__("fd8b0e08", this, 10301, true);
Frame 4
function reset() {
lev.removeMovieClip();
effects_mc.removeMovieClip();
i = 0;
while (i < 20) {
_root["bala" + i].removeMovieClip();
i++;
}
total = 0;
maximo = 0;
levelCrear();
player._x = xstart;
player._y = ystart;
colour = "white";
_root.muertes++;
musico = new Sound(this);
musico.attachSound("diesound");
musico.start(0, 1);
}
function faced() {
id = effects_mc.getNextHighestDepth();
var _local2 = effects_mc.attachMovie("pl_effect", "pl_effect" + id, id);
_local2._x = player._x;
_local2._y = (player._y + (Math.random() * 10)) - (Math.random() * 10);
_local2._rotation = Math.random() * 360;
if ((Key.isDown(39) or Key.isDown(68)) and ((!player.currentFrame) == 1)) {
player._xscale = 100;
player.mov.gotoAndStop(1);
}
if ((Key.isDown(37) or Key.isDown(65)) and ((!player.currentFrame) == 1)) {
player._xscale = -100;
player.mov.gotoAndStop(1);
}
if ((((!Key.isDown(39)) and (!Key.isDown(37))) and (!Key.isDown(65))) and (!Key.isDown(68))) {
player.mov.gotoAndStop(2);
}
if (_root.muertes == 5) {
_root.attachMovie("ayuda", "ayuda", _root.getNextHighestDepth());
_root.ayuda._x = 240;
_root.ayuda._y = 165;
_root.muertes = 6;
}
if (_root.muertes == 10) {
if (!_root.guardar.data.awbr_1) {
award();
_root.guardar.data.awbr_1 = true;
}
}
if (_root.muertes == 20) {
if (!_root.guardar.data.awsi_1) {
award();
_root.guardar.data.awsi_1 = true;
}
}
if (_root.player._y > 390) {
s = 0;
while (s < 20) {
if (_root["bala" + s]) {
nadaHacer = true;
}
s++;
}
if (!nadaHacer) {
if (_root.ready == true) {
reset();
if (_root._currentframe > 36) {
score = score - 100;
_root.attachMovie("menos100", "menos100", _root.getNextHighestDepth(), {_x:25, _y:260});
}
}
_root.ready = true;
}
nadaHacer = false;
} else {
_root.ready = false;
}
player.gotoAndStop(colour);
}
function gana() {
_root.attachMovie("ganas", "ganas", 1000000, {x:0, y:0});
lev.removeMovieClip();
player.removeMovieClip();
effects_mc.removeMovieClip();
i = 0;
while (i < 20) {
_root["bala" + i].removeMovieClip();
i++;
}
bspos = 0;
colour = "white";
muertes = 0;
guardar.data.nivelmax = _currentframe + 1;
}
function ganach() {
_root.attachMovie("ganas_ch", "ganas_ch", 1000000, {x:0, y:0});
lev.removeMovieClip();
player.removeMovieClip();
effects_mc.removeMovieClip();
i = 0;
while (i < 20) {
_root["bala" + i].removeMovieClip();
i++;
}
bspos = 0;
muertes = 0;
colour = "white";
}
function soundfx() {
musico = new Sound(this);
musico.attachSound("Ding");
musico.start(0, 1);
}
function award() {
createExplosion(100, 325);
_root.attachMovie("awarder", "awarder", _root.getNextHighestDepth(), {_x:0, _y:305});
}
function createExplosion(targetX, targetY) {
var _local6 = 0;
while (_local6 < pTtl) {
var _local5 = flash.display.BitmapData.loadBitmap("fire");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth() + 1);
var _local4 = _local3.createEmptyMovieClip("int_hldr", _local3.getNextHighestDepth() + 2);
_local4._x = (-_local5.width) / 2;
_local4._y = (-_local5.height) / 2;
_local4.attachBitmap(_local5, _local4.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3._alpha = random(50) + 50;
_local3.boundyLeft = targetX - pRng;
_local3.boundyTop = targetY - pRng;
_local3.boundyRight = targetX + pRng;
_local3.boundyBottom = targetY + pRng;
_local3.speedX = Math.random(pMxSp) - Math.random(pMxSp);
_local3.speedY = Math.random(pMxSp) - Math.random(pMxSp);
_local3.speedX = _local3.speedX * pMxSp;
_local3.speedY = _local3.speedY * pMxSp;
_local3.fadeSpeed = Math.random(pFdSp) * pFdSp;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._alpha = this._alpha - this.fadeSpeed;
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (((((this._alpha <= 0) || (this._x < this.boundyLeft)) || (this._x > this.boundyRight)) || (this._y < this.boundyTop)) || (this._y > this.boundyBottom)) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local6++;
}
}
stop();
ready = false;
espera = false;
var getGameUrl = "http://www.bangoworld.com/onyoursite";
var guiaLink = "http://www.bangoworld.com/walkthrough";
framesAntes = _currentframe;
guardar = SharedObject.getLocal("bango");
if (guardar.data.newgames == undefined) {
guardar.data.newgames = 0;
}
var pMxSp = 7.5;
var pFdSp = 5;
var pTtl = 35;
var pRng = 150;
if ((!musicIsOn) & (!muted)) {
sound = new Sound(this);
sound.attachSound("Skyline");
sound.start(0, 1500);
musicIsOn = true;
}
btn_mute.onRelease = function () {
if (musicIsOn) {
stopAllSounds();
musicIsOn = false;
muted = true;
} else {
sound = new Sound(this);
sound.attachSound("Skyline");
sound.start(0, 1500);
musicIsOn = true;
muted = false;
}
};
Frame 5
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
if (guardar.data.nivelmax == undefined) {
guardar.data.nivelmax = _root._currentframe;
}
guardar.data.nivelmax = _currentframe;
_root.guardar.data.savescore = 0;
muertes = 0;
nivel_actual = 1;
score = 0;
bspos = 0;
bsresta = 0.75;
colour = "white";
_root.attachMovie("lvlname", "lvlname", 5, {_x:0, _y:0});
ystart = 230;
xstart = 30;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
nivel = "LEVEL1: Easy peasy";
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 6
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0);
level[8] = new Array(0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL2: Still easy";
lvlname.nombre.text = nivel;
ystart = 230;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 7
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL3: Back and forth";
lvlname.nombre.text = nivel;
ystart = 230;
xstart = 255;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
xspeed = 0;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 8
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL4: Three towers";
lvlname.nombre.text = nivel;
ystart = 220;
xstart = 45;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 9
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL5: Get your brain moving";
lvlname.nombre.text = nivel;
ystart = 100;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 10
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL6: What do these do?";
lvlname.nombre.text = nivel;
ystart = 100;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 11
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL7: Jump!";
lvlname.nombre.text = nivel;
ystart = 230;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 12
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 1, 1, 2, 0, 1, 0, 0, 1, 0, 3, 1, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL8: Tricky";
lvlname.nombre.text = nivel;
ystart = 240;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 13
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(1, 1, 2, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 5, 0, 0, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 2, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 4, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL9: Beat the bullet";
lvlname.nombre.text = nivel;
ystart = 70;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 14
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(1, 1, 0, 0, 1, 1, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 0, 0, 1, 1, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL10: Third floor";
lvlname.nombre.text = nivel;
ystart = 0;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 15
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(5, 0, 3, 0, 0, 5, 0, 0, 0, 3, 0, 0, 5, 0, 0, 0, 3);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(1, 0, 4, 0, 0, 3, 0, 0, 0, 4, 0, 0, 3, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL11: Fun's above";
lvlname.nombre.text = nivel;
ystart = 200;
xstart = 260;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 16
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(1, 0, 0, 2, 2, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL12: Left shot";
lvlname.nombre.text = nivel;
ystart = 60;
xstart = 260;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 17
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL13: Up and down";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 10;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 18
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4);
level[2] = new Array(2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 4);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4);
level[7] = new Array(0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4);
level[9] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL14: Light the fuse";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 10;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 19
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL15: The cube";
lvlname.nombre.text = nivel;
ystart = 0;
xstart = 260;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
if (!_root.guardar.data.awbr_3) {
award();
_root.guardar.data.awbr_3 = true;
}
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 20
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL16: Hmm...timed blocks?";
lvlname.nombre.text = nivel;
ystart = 50;
xstart = 260;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 21
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL17: Too simple";
lvlname.nombre.text = nivel;
ystart = 20;
xstart = 10;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 22
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL18: Run!!";
lvlname.nombre.text = nivel;
ystart = 20;
xstart = 10;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 23
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 4, 1);
level[8] = new Array(0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL19: Be fast";
lvlname.nombre.text = nivel;
ystart = 240;
xstart = 195;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 24
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 3);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0);
level[9] = new Array(0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 4);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL20: Crazy";
lvlname.nombre.text = nivel;
ystart = 240;
xstart = 165;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 25
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(8, 8, 8, 8, 7, 8, 8, 8, 10, 10, 10, 9, 10, 10, 10, 10, 10);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL21: Color Fun";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 10;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
if (!_root.guardar.data.awsi_4) {
award();
_root.guardar.data.awsi_4 = true;
}
ganao = true;
_root.guardar.data.chuno = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 26
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 7, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 8, 8, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL22: More color";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 250;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 27
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 7, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(8, 8, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL23: Climb up";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 10;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 28
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 1, 0, 1, 8, 0, 0, 0, 0, 0, 0, 1, 0, 10, 10, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 0, 0, 9, 1, 7, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL24: Difficult jumps";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 255;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 29
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 6, 0, 0, 6, 7, 0, 0);
level[3] = new Array(0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL25: Mix!";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 250;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 30
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 8, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 10, 1, 1, 7, 1, 0, 0, 0, 0, 0, 0, 0, 6, 0, 9, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL26: Color confusion";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 75;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 31
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0);
level[4] = new Array(0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0);
level[5] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0);
level[7] = new Array(0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 6);
level[9] = new Array(0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL27: Jump!(2)";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 75;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 32
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(7, 0, 0, 6, 0, 0, 6, 0, 0, 6, 0, 0, 6, 0, 9, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 8, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL28: 3 to go";
lvlname.nombre.text = nivel;
ystart = 160;
xstart = 195;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 33
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(2, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(4, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 10);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 4, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 8);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL29: Stepping stones";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 105;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 34
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 5, 0, 0, 0, 0);
level[3] = new Array(0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0);
level[5] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0);
level[7] = new Array(0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0);
level[9] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
nivel = "LEVEL30: Burn The Rope";
lvlname.nombre.text = nivel;
ystart = 260;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
if (!_root.guardar.data.awsi_3) {
award();
_root.guardar.data.awsi_3 = true;
}
ganao = true;
lvlname.removeMovieClip();
gana();
}
if (!ganao) {
if (bspos > -508) {
bspos = bspos - bsresta;
}
bscore = bspos + 509;
bonus.fill._x = bspos;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 35
stop();
finalscore.text = score;
if (score > 54524) {
if (!_root.guardar.data.awgo_1) {
award();
_root.guardar.data.awgo_1 = true;
}
}
btn_submit.onRelease = function () {
_root.gotoAndPlay("normalsubmit");
_root.soundfx();
};
btn_menuwin.onRelease = function () {
_root.gotoAndPlay("main_menu");
_root.soundfx();
};
if (_root.localization_portal == "game_com_cn") {
btn_3000games.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
btn_3000games.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_highscore_3000games", "_blank");
};
}
Frame 36
mochi.MochiScores.showLeaderboard({boardID:"99e27ee1ffec7b24", score:score});
Frame 37
gotoAndPlay ("main_menu");
Frame 38
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 1, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
score = 100000 /* 0x0186A0 */;
colour = "white";
muertes = 0;
ystart = 230;
xstart = 45;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
penal = 0;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE: " + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
ganach();
}
if (!ganao) {
penal++;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
score = score - 100;
_root.attachMovie("menos100", "menos100", _root.getNextHighestDepth(), {_x:25, _y:260});
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 39
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 8, 0, 0, 8, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 4, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 6, 0, 0, 0, 10, 0, 0, 10, 0, 0, 10, 0, 0, 9, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
ystart = 30;
xstart = 255;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
penal = 0;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE: " + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
ganach();
}
if (!ganao) {
penal++;
}
};
Frame 40
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1, 8, 0, 0, 0, 6, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 1, 8, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 1, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 1, 8, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 1, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 1, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 1, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
ystart = 230;
xstart = 75;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
penal = 0;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE: " + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
ganach();
}
if (!ganao) {
penal++;
}
};
Frame 41
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
ystart = -50;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
penal = 0;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE: " + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
ganach();
}
if (!ganao) {
penal++;
}
};
Frame 42
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
ystart = 230;
xstart = 45;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
penal = 0;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE: " + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
_root.guardar.data.chdos = true;
if (!_root.guardar.data.awsi_2) {
award();
_root.guardar.data.awsi_2 = true;
}
ganao = true;
ganach();
}
if (!ganao) {
penal++;
}
};
Frame 43
stop();
finalscore.text = score;
if (score >= 96000) {
if (!_root.guardar.data.awgo_2) {
award();
_root.guardar.data.awgo_2 = true;
}
}
btn_submit.onRelease = function () {
_root.soundfx();
_root.gotoAndPlay("chunosubmit");
};
btn_menuwin.onRelease = function () {
_root.soundfx();
_root.gotoAndPlay("main_menu");
};
if (_root.localization_portal == "game_com_cn") {
btn_3000games.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
btn_3000games.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_highscore_3000games", "_blank");
};
}
Frame 44
mochi.MochiScores.showLeaderboard({boardID:"31f8d9fe9b548df0", score:score});
Frame 45
gotoAndPlay ("main_menu");
Frame 46
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
ystart = 230;
xstart = 15;
colour = "white";
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
score = 0;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
_root.attachMovie("tutorial", "tutorial", 1999999, {_x:0, _y:0});
player.onEnterFrame = function () {
if (!_root.pausa) {
if (Key.isDown(37)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if ((((Key.isDown(38) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE:" + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
if (!_root.guardar.data.awbr_2) {
_root.guardar.data.awbr_2 = true;
award();
}
ganao = true;
lev.removeMovieClip();
player.removeMovieClip();
effects_mc.removeMovieClip();
bala.removeMovieClip();
tutorial.removeMovieClip();
_root.gotoAndPlay("niveluno");
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 500, {_x:0, _y:0});
};
Frame 47
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 1, 8, 0, 0, 10, 0, 0, 0, 6, 0, 0, 0, 9, 7, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
score = 100000 /* 0x0186A0 */;
colour = "white";
muertes = 0;
ystart = 230;
xstart = 45;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
penal = 0;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE: " + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
ganach();
}
if (!ganao) {
penal++;
}
};
reseteador.onRelease = function () {
if (!_root.ganao) {
reset();
score = score - 100;
_root.attachMovie("menos100", "menos100", _root.getNextHighestDepth(), {_x:25, _y:260});
}
};
btn_menu.onRelease = function () {
_root.attachMovie("options_menu", "options_menu", 9999999, {_x:0, _y:0});
};
Frame 48
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 0, 0, 0, 8, 8, 10, 8, 8, 10, 8, 8, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
ystart = 80;
xstart = 45;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
penal = 0;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE: " + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
ganach();
}
if (!ganao) {
penal++;
}
};
Frame 49
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 8, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 3);
level[5] = new Array(0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8);
level[9] = new Array(0, 0, 0, 1, 7, 0, 9, 7, 0, 9, 7, 0, 9, 7, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
ystart = 180;
xstart = 45;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
penal = 0;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE: " + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
ganach();
}
if (!ganao) {
penal++;
}
};
Frame 50
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[2] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0);
level[5] = new Array(0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0);
level[9] = new Array(0, 0, 0, 10, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
ystart = 15;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
penal = 0;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE: " + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
ganao = true;
ganach();
}
if (!ganao) {
penal++;
}
};
Frame 51
function levelCrear() {
_root.createEmptyMovieClip("effects_mc", 4);
_root.createEmptyMovieClip("lev", 3);
level[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[1] = new Array(7, 8, 9, 10, 7, 8, 9, 10, 7, 8, 9, 10, 7, 8, 9, 10, 7);
level[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level[9] = new Array(4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4);
y = 0;
while (y <= 9) {
x = 0;
while (x <= 16) {
if (level[y][x] >= 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 30) + 15, _y:(y * 30) + 15});
place_brick.gotoAndStop(level[y][x]);
_root.total++;
_root.maximo++;
}
x++;
}
y++;
}
}
function level_under_my_feet() {
return(_root.lev.hitTest(player._x, player._y + (player._height / 2), true));
}
stop();
ystart = 215;
xstart = 15;
xspeed = 0;
yspeed = 0;
max_yspeed = 19;
walk_speed = 4;
jumping = false;
can_jump = true;
gravity = 1.5;
jump_power = 18;
walking_while_jumping = true;
depth = 20;
total = 0;
maximo = 0;
ganao = false;
penal = 0;
level = new Array();
levelCrear();
_root.attachMovie("player", "player", 999999, {_x:xstart, _y:ystart});
player.onEnterFrame = function () {
if (Key.isDown(37) or Key.isDown(65)) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
}
if (Key.isDown(39) or Key.isDown(68)) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
if (((((Key.isDown(38) or Key.isDown(87)) or Key.isDown(32)) and can_jump) and (!jumping)) and _root.lev.hitTest(this._x, (this._y + (this._height / 2)) + 1, true)) {
yspeed = yspeed - jump_power;
jumping = true;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((level_under_my_feet() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true)) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest(forecast_x - (this._width / 2), forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
};
onEnterFrame = function () {
faced();
scoretext.text = "SCORE: " + score;
txt.contador.text = ((_root.maximo - _root.total) + "/") + _root.maximo;
if ((_root.total <= 0) and (!ganao)) {
if (!_root.guardar.data.awsi_2) {
award();
_root.guardar.data.awsi_2 = true;
}
ganao = true;
ganach();
}
if (!ganao) {
penal++;
}
};
Frame 52
stop();
finalscore.text = score;
if (score >= 95000) {
if (!_root.guardar.data.awgo_3) {
award();
_root.guardar.data.awgo_3 = true;
}
}
btn_submit.onRelease = function () {
_root.soundfx();
_root.gotoAndPlay("chdossubmit");
};
btn_menuwin.onRelease = function () {
_root.soundfx();
_root.gotoAndPlay("main_menu");
};
if (_root.localization_portal == "game_com_cn") {
btn_3000games.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
btn_3000games.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_highscore_3000games", "_blank");
};
}
Frame 53
mochi.MochiScores.showLeaderboard({boardID:"e3ed61ef9e545463", score:score});
Frame 54
gotoAndPlay ("main_menu");
Symbol 26 MovieClip Frame 1
stop();
if (_root.guardar.data.awgo_1) {
gotoAndStop (2);
}
Symbol 26 MovieClip Frame 2
stop();
Symbol 32 MovieClip Frame 1
stop();
if (_root.guardar.data.awgo_2) {
gotoAndStop (2);
}
Symbol 32 MovieClip Frame 2
stop();
Symbol 37 MovieClip Frame 1
stop();
if (_root.guardar.data.awgo_3) {
gotoAndStop (2);
}
Symbol 37 MovieClip Frame 2
stop();
Symbol 42 MovieClip Frame 1
stop();
if ((((((((((_root.guardar.data.awbr_1 && (_root.guardar.data.awbr_2)) && (_root.guardar.data.awbr_3)) && (_root.guardar.data.awbr_4)) && (_root.guardar.data.awsi_1)) && (_root.guardar.data.awsi_2)) && (_root.guardar.data.awsi_3)) && (_root.guardar.data.awsi_4)) && (_root.guardar.data.awgo_1)) && (_root.guardar.data.awgo_2)) && (_root.guardar.data.awgo_3)) {
gotoAndStop (2);
}
Symbol 42 MovieClip Frame 2
stop();
Symbol 49 MovieClip [menu_disgold] Frame 31
stop();
menu_butclose.onRelease = function () {
gotoAndPlay ("close");
};
Symbol 49 MovieClip [menu_disgold] Frame 53
this.removeMovieClip();
Symbol 64 MovieClip Frame 1
stop();
if (_root.guardar.data.awsi_1) {
gotoAndStop (2);
}
Symbol 64 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 1
stop();
if (_root.guardar.data.awsi_2) {
gotoAndStop (2);
}
Symbol 69 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 1
stop();
if (_root.guardar.data.awsi_3) {
gotoAndStop (2);
}
Symbol 76 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 1
stop();
if (_root.guardar.data.awsi_4) {
gotoAndStop (2);
}
Symbol 81 MovieClip Frame 2
stop();
Symbol 86 MovieClip [menu_disilver] Frame 19
stop();
menu_butclose.onRelease = function () {
gotoAndPlay ("close");
};
Symbol 86 MovieClip [menu_disilver] Frame 35
this.removeMovieClip();
Symbol 100 MovieClip Frame 1
stop();
if (_root.guardar.data.awbr_2) {
gotoAndStop (2);
}
Symbol 100 MovieClip Frame 2
stop();
Symbol 105 MovieClip Frame 1
stop();
if (_root.guardar.data.awbr_3) {
gotoAndStop (2);
}
Symbol 105 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 1
stop();
if (_root.guardar.data.awbr_4) {
gotoAndStop (2);
}
Symbol 110 MovieClip Frame 2
stop();
Symbol 116 MovieClip Frame 1
stop();
if (_root.guardar.data.awbr_1) {
gotoAndStop (2);
}
Symbol 116 MovieClip Frame 2
stop();
Symbol 120 MovieClip [menu_disbronze] Frame 31
stop();
menu_butclose.onRelease = function () {
gotoAndPlay ("close");
};
Symbol 120 MovieClip [menu_disbronze] Frame 53
this.removeMovieClip();
Symbol 122 MovieClip [pl_effect] Frame 30
this.removeMovieClip();
Symbol 128 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
play();
Symbol 149 MovieClip Frame 105
_parent.explotaya = true;
Symbol 154 MovieClip [block] Frame 1
this.explotara = false;
onEnterFrame = function () {
if (this.explotara) {
this.bloque.gotoAndPlay(2);
}
if (_root.player.hitTest(this.choque)) {
this.explotara = true;
}
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
this.explotara = true;
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
i++;
}
if (this.explotara and (!_root.player.hitTest(this.choque))) {
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
};
Symbol 154 MovieClip [block] Frame 2
this.explotara = false;
attached = false;
onEnterFrame = function () {
if (this.explotara) {
this.bloque.gotoAndPlay(2);
}
if (_root.player.hitTest(this.choque)) {
this.explotara = true;
}
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
this.explotara = true;
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
_root.depth++;
i = 0;
while (i < 20) {
if ((!_root["bala" + i]) && (!attached)) {
bala = _root.attachMovie("bala", "bala" + i, _root.depth, {_x:this._x, _y:this._y});
bala.xspeed = 8;
bala.yspeed = 0;
attached = true;
}
i++;
}
attached = false;
this.removeMovieClip();
}
i++;
}
if (this.explotara and (!_root.player.hitTest(this.choque))) {
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
_root.depth++;
i = 0;
while (i < 20) {
if ((!_root["bala" + i]) && (!attached)) {
bala = _root.attachMovie("bala", "bala" + i, _root.depth, {_x:this._x, _y:this._y});
bala.xspeed = 8;
bala.yspeed = 0;
attached = true;
}
i++;
}
attached = false;
this.removeMovieClip();
}
};
Symbol 154 MovieClip [block] Frame 3
this.explotara = false;
onEnterFrame = function () {
if (this.explotara) {
this.bloque.gotoAndPlay(2);
}
if (_root.player.hitTest(this.choque)) {
this.explotara = true;
}
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
this.explotara = true;
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
_root.depth++;
i = 0;
while (i < 20) {
if ((!_root["bala" + i]) && (!attached)) {
bala = _root.attachMovie("bala", "bala" + i, _root.depth, {_x:this._x, _y:this._y});
bala._rotation = 180;
bala.xspeed = -8;
bala.yspeed = 0;
attached = true;
}
i++;
}
attached = false;
this.removeMovieClip();
}
i++;
}
if (this.explotara and (!_root.player.hitTest(this.choque))) {
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
_root.depth++;
i = 0;
while (i < 20) {
if ((!_root["bala" + i]) && (!attached)) {
bala = _root.attachMovie("bala", "bala" + i, _root.depth, {_x:this._x, _y:this._y});
bala._rotation = 180;
bala.xspeed = -8;
bala.yspeed = 0;
attached = true;
}
i++;
}
attached = false;
this.removeMovieClip();
}
};
Symbol 154 MovieClip [block] Frame 4
this.explotara = false;
onEnterFrame = function () {
if (this.explotara) {
this.bloque.gotoAndPlay(2);
}
if (_root.player.hitTest(this.choque)) {
this.explotara = true;
}
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
this.explotara = true;
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
_root.depth++;
i = 0;
while (i < 20) {
if ((!_root["bala" + i]) && (!attached)) {
bala = _root.attachMovie("bala", "bala" + i, _root.depth, {_x:this._x, _y:this._y});
bala._rotation = -90;
bala.xspeed = 0;
bala.yspeed = -8;
attached = true;
}
i++;
}
attached = false;
this.removeMovieClip();
}
i++;
}
if (this.explotara and (!_root.player.hitTest(this.choque))) {
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
_root.depth++;
i = 0;
while (i < 20) {
if ((!_root["bala" + i]) && (!attached)) {
bala = _root.attachMovie("bala", "bala" + i, _root.depth, {_x:this._x, _y:this._y});
bala._rotation = -90;
bala.xspeed = 0;
bala.yspeed = -8;
attached = true;
}
i++;
}
attached = false;
this.removeMovieClip();
}
};
Symbol 154 MovieClip [block] Frame 5
this.explotara = false;
onEnterFrame = function () {
if (this.explotara) {
this.bloque.gotoAndPlay(2);
}
if (_root.player.hitTest(this.choque)) {
this.explotara = true;
}
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
this.explotara = true;
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
_root.depth++;
i = 0;
while (i < 20) {
if ((!_root["bala" + i]) && (!attached)) {
bala = _root.attachMovie("bala", "bala" + i, _root.depth, {_x:this._x, _y:this._y});
bala._rotation = 90;
bala.xspeed = 0;
bala.yspeed = 8;
attached = true;
}
i++;
}
attached = false;
this.removeMovieClip();
}
i++;
}
if (this.explotara and (!_root.player.hitTest(this.choque))) {
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
_root.depth++;
i = 0;
while (i < 20) {
if ((!_root["bala" + i]) && (!attached)) {
bala = _root.attachMovie("bala", "bala" + i, _root.depth, {_x:this._x, _y:this._y});
bala._rotation = 90;
bala.xspeed = 0;
bala.yspeed = 8;
attached = true;
}
i++;
}
attached = false;
this.removeMovieClip();
}
};
Symbol 154 MovieClip [block] Frame 6
this.explotara = false;
this.explotaya = false;
this.movien = false;
onEnterFrame = function () {
if (_root.player.hitTest(this.choque)) {
this.explotara = true;
this.bloque.gotoAndPlay(2);
}
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
this.explotaya = true;
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
i++;
}
if ((this.explotara and (!this.movien)) and (!_root.player.hitTest(this.choque))) {
this.bloqueatras.gotoAndPlay(2);
this.movien = true;
}
if (this.explotaya) {
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
};
Symbol 154 MovieClip [block] Frame 7
this.explotara = false;
onEnterFrame = function () {
if (this.explotara) {
this.bloque.gotoAndPlay(2);
}
if (_root.player.hitTest(this.choque)) {
this.explotara = true;
}
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
this.explotara = true;
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
i++;
}
if (this.explotara and (!_root.player.hitTest(this.choque))) {
_root.colour = "green";
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
};
Symbol 154 MovieClip [block] Frame 8
this.explotara = false;
onEnterFrame = function () {
if (this.explotara) {
this.bloque.gotoAndPlay(2);
}
if (_root.player.hitTest(this.choque) && (_root.colour == "green")) {
this.explotara = true;
}
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
this.explotara = true;
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
i++;
}
if (this.explotara and (!_root.player.hitTest(this.choque))) {
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
};
Symbol 154 MovieClip [block] Frame 9
this.explotara = false;
onEnterFrame = function () {
if (this.explotara) {
this.bloque.gotoAndPlay(2);
}
if (_root.player.hitTest(this.choque)) {
this.explotara = true;
}
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
this.explotara = true;
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
i++;
}
if (this.explotara and (!_root.player.hitTest(this.choque))) {
_root.colour = "blue";
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
};
Symbol 154 MovieClip [block] Frame 10
this.explotara = false;
onEnterFrame = function () {
if (this.explotara) {
this.bloque.gotoAndPlay(2);
}
if (_root.player.hitTest(this.choque) && (_root.colour == "blue")) {
this.explotara = true;
}
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
this.explotara = true;
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
i++;
}
if (this.explotara and (!_root.player.hitTest(this.choque))) {
_root.depth++;
_root.total--;
_root.attachMovie("adios", "adios", _root.depth, {_x:this._x, _y:this._y});
this.removeMovieClip();
}
};
Symbol 154 MovieClip [block] Frame 11
onEnterFrame = function () {
i = 0;
while (i < 20) {
if (_root["bala" + i].hitTest(this)) {
_root["bala" + i].removeMovieClip();
_root.depth++;
_root.total--;
this.removeMovieClip();
}
i++;
}
};
Symbol 168 MovieClip Frame 26
gotoAndPlay (1);
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
stop();
Symbol 181 MovieClip Frame 3
stop();
Symbol 181 MovieClip Frame 4
stop();
Symbol 186 MovieClip [adios] Frame 20
this.removeMovieClip();
Symbol 199 Button
on (keyPress "<Space>") {
ir = _root.nextFrame();
_root.gotoAndPlay(ir);
_root.ganas.removeMovieClip();
}
Symbol 203 MovieClip [ganas] Frame 1
bstext.text = "TIME BONUS: " + Math.floor(_root.bscore);
lvlscoretext.text = "LEVEL SCORE: " + (_root.nivel_actual * 100);
totaltext.text = "TOTAL: " + (Math.floor(_root.bscore) + (_root.nivel_actual * 100));
_root.score = _root.score + ((_root.nivel_actual * 100) + Math.floor(_root.bscore));
_root.nivel_actual = _root.nivel_actual + 1;
_root.guardar.data.savescore = _root.score;
nxt.onRelease = function () {
ir = _root.nextFrame();
_root.gotoAndPlay(ir);
_root.ganas.removeMovieClip();
};
Symbol 205 MovieClip [bala] Frame 1
onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if ((((this._x > 510) or (this._x < 0)) or (this._y > 300)) or (this._y < 0)) {
this.removeMovieClip();
}
id = _root.effects_mc.getNextHighestDepth();
var _local3 = _root.effects_mc.attachMovie("effect", "effect" + id, id);
_local3._x = this._x;
_local3._y = this._y;
_local3._rotation = Math.random() * 360;
};
Symbol 209 MovieClip [effect] Frame 10
this.removeMovieClip();
Symbol 216 MovieClip [lvlname] Frame 1
stop();
nombre.text = _root.nivel;
upbtn.onRelease = function () {
gotoAndStop (2);
};
Symbol 216 MovieClip [lvlname] Frame 2
stop();
upbtn.onRelease = function () {
gotoAndStop (1);
nombre.text = _root.nivel;
};
Symbol 231 MovieClip [options_menu] Frame 1
_root.soundfx();
btn_resume.onRelease = function () {
_root.options_menu.removeMovieClip();
_root.soundfx();
};
btn_music.onRelease = function () {
_root.soundfx();
if (_root.musicIsOn) {
stopAllSounds();
_root.musicIsOn = false;
_root.muted = true;
} else {
_root.sound = new Sound(this);
_root.sound.attachSound("Skyline");
_root.sound.start(0, 1500);
_root.musicIsOn = true;
_root.muted = false;
}
};
btn_walk.onRelease = function () {
_root.soundfx();
getURL (_root.guiaLink, "_blank");
};
btn_optmenu.onRelease = function () {
_root.soundfx();
_root.lev.removeMovieClip();
_root.player.removeMovieClip();
_root.effects_mc.removeMovieClip();
_root.bala.removeMovieClip();
_root.lvlname.removeMovieClip();
_root.tutorial.removeMovieClip();
_root.bspos = 0;
_root.colour = "white";
_root.gotoAndPlay("main_menu");
_root.options_menu.removeMovieClip();
};
Symbol 234 Button
on (keyPress "<Space>") {
ir = _root.nextFrame();
_root.gotoAndPlay(ir);
_root.ganas_ch.removeMovieClip();
}
Symbol 238 MovieClip [ganas_ch] Frame 1
penaltext.text = "TIME PENALTY: " + _root.penal;
_root.score = _root.score - _root.penal;
remaintext.text = _root.score;
nxt.onRelease = function () {
ir = _root.nextFrame();
_root.gotoAndPlay(ir);
_root.ganas_ch.removeMovieClip();
};
Symbol 241 MovieClip [menos100] Frame 25
this.removeMovieClip();
Symbol 278 MovieClip [tutorial] Frame 1
stop();
_root.pausa = false;
onEnterFrame = function () {
if (Key.isDown(39)) {
gotoAndPlay (2);
}
};
Symbol 278 MovieClip [tutorial] Frame 2
stop();
onEnterFrame = function () {
if (_root.player._x >= 120) {
gotoAndPlay (3);
}
};
Symbol 278 MovieClip [tutorial] Frame 3
onEnterFrame = function () {
};
Symbol 278 MovieClip [tutorial] Frame 21
stop();
onEnterFrame = function () {
if ((_root.player._x >= 240) && (_root.player._y <= 230)) {
gotoAndPlay (22);
}
};
Symbol 278 MovieClip [tutorial] Frame 22
_root.pausa = true;
onEnterFrame = function () {
};
Symbol 278 MovieClip [tutorial] Frame 110
stop();
_root.pausa = false;
Symbol 288 MovieClip [ayuda] Frame 1
onEnterFrame = function () {
if (Key.isDown(40) or Key.isDown(83)) {
_root.ayuda.removeMovieClip();
}
if (Key.isDown(13)) {
getURL (_root.guiaLink, "_blank");
_root.ayuda.removeMovieClip();
}
};
btn_yesplease.onRelease = function () {
getURL (_root.guiaLink, "_blank");
_root.ayuda.removeMovieClip();
};
Symbol 298 MovieClip [awarder] Frame 63
this.removeMovieClip();
Symbol 306 MovieClip [menu_sure] Frame 1
btn_no.onRelease = function () {
_x = 510;
};
btn_yes.onRelease = function () {
_root.guardar.data.newgames++;
if (_root.guardar.data.newgames == 5) {
if (!_root.guardar.data.awbr_4) {
_root.award();
_root.guardar.data.awbr_4 = true;
}
}
_root.gotoAndPlay("niveluno");
};
Symbol 318 MovieClip Frame 20
gotoAndPlay (1);
Symbol 327 MovieClip Frame 1
stop();
Symbol 341 Button
on (press) {
_quality = "HIGH";
_root.gotoAndPlay("intro");
MochiAd.unload(clickawayad_mc);
}
Symbol 342 MovieClip Frame 1
stop();
MochiAd.showClickAwayAd({clip:clickawayad_mc, id:"a1806effcc6fe3ea"});
Instance of Symbol 327 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (enterFrame) {
loaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
this.barra._xscale = loaded;
if (loaded == 100) {
_parent.play();
}
}
Symbol 342 MovieClip Frame 9
stop();
Symbol 642 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.43");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 643 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
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 644 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.MochiServices.clip;
}
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 645 MovieClip [__Packages.mochi.MochiDigits] Frame 0
class mochi.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 447 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 453 MovieClip Frame 89
_root.gotoAndPlay("main_menu");
Symbol 455 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 455 MovieClip Frame 90
stop();
Symbol 504 MovieClip Frame 1
btn_resume.onRelease = function () {
_x = 510;
};
Symbol 506 MovieClip Frame 1
btn_resume.onRelease = function () {
_x = 510;
};
Symbol 508 MovieClip Frame 1
btn_resume.onRelease = function () {
_x = 510;
};
Symbol 534 MovieClip Frame 1
btn_dual.onRelease = function () {
getURL ("http://www.rjgam.es/dual", "_blank");
};
btn_nitro.onRelease = function () {
getURL ("http://www.rjgam.es/nitroplatform", "_blank");
};
btn_nitro2.onRelease = function () {
getURL ("http://www.rjgam.es/nitro2", "_blank");
};
Symbol 544 MovieClip Frame 76
stop();
btn_main.onRelease = function () {
_parent.gotoAndPlay("main");
};
Symbol 555 MovieClip Frame 21
stop();
Symbol 569 MovieClip Frame 25
stop();
Symbol 577 MovieClip Frame 50
stop();
Symbol 579 MovieClip Frame 1
stop();
btn_link.onRelease = function () {
getURL ("http://www.rjgam.es", "_blank");
};
btn_forward.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
Symbol 579 MovieClip Frame 2
stop();
btn_invisible.onRelease = function () {
getURL ("http://www.flashgamelicense.com", "_blank");
};
btn_forward.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
btn_back.onRelease = function () {
gotoAndPlay(_currentframe - 1);
};
Symbol 579 MovieClip Frame 3
stop();
btn_invisible.onRelease = function () {
getURL ("https://www.mochiads.com/r/c9c32460fb524bd9", "_blank");
};
btn_forward.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
btn_back.onRelease = function () {
gotoAndPlay(_currentframe - 1);
};
Symbol 579 MovieClip Frame 4
stop();
btn_forward.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
btn_back.onRelease = function () {
gotoAndPlay(_currentframe - 1);
};
Symbol 585 MovieClip Frame 1
stop();
btn_play.onRelease = function () {
gotoAndPlay ("playopt");
_root.soundfx();
};
btn_extras.onRelease = function () {
gotoAndPlay ("awards");
_root.soundfx();
};
btn_credits.onRelease = function () {
gotoAndPlay ("credits");
_root.soundfx();
};
btn_onyoursite.onRelease = function () {
getURL (_root.getGameUrl, "_blank");
_root.soundfx();
};
if (_root.localization_portal == "game_com_cn") {
btn_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
btn_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_gameover_moregames", "_blank");
};
}
Symbol 585 MovieClip Frame 2
stop();
btn_main.onRelease = function () {
gotoAndPlay ("main");
_root.soundfx();
};
btn_new.onRelease = function () {
_root.soundfx();
if (_root.guardar.data.nivelmax == undefined) {
_root.gotoAndPlay("tuto");
} else {
menu_sure._x = 0;
}
};
btn_continue.onRelease = function () {
_root.soundfx();
if (((_root.guardar.data.nivelmax - _root.framesAntes) > 30) && (!(_root.guardar.data.nivelmax === undefined))) {
menu_queja._x = 0;
} else if (!(_root.guardar.data.nivelmax === undefined)) {
_root.score = _root.guardar.data.savescore;
_root.bspos = 0;
_root.bsresta = 0.75;
_root.colour = "white";
_root.nivel_actual = _root.guardar.data.nivelmax - _root.framesAntes;
_root.attachMovie("lvlname", "lvlname", 5, {_x:0, _y:0});
_root.gotoAndPlay(_root.guardar.data.nivelmax);
}
};
btn_chuno.onRelease = function () {
_root.soundfx();
if (_root.guardar.data.chuno == true) {
_root.gotoAndPlay("chuno");
} else {
menu_chuno._x = 0;
}
};
btn_chdos.onRelease = function () {
_root.soundfx();
if (_root.guardar.data.chuno == true) {
_root.gotoAndPlay("chdos");
} else {
menu_chdos._x = 0;
}
};
Symbol 585 MovieClip Frame 3
stop();
btn_main.onRelease = function () {
gotoAndPlay ("main");
_root.soundfx();
};
btn_phloura.onRelease = function () {
gotoAndPlay ("phloura");
_root.soundfx();
};
Symbol 585 MovieClip Frame 4
stop();
Symbol 585 MovieClip Frame 5
stop();
btn_main.onRelease = function () {
gotoAndPlay ("main");
_root.soundfx();
};
Symbol 585 MovieClip Frame 6
stop();
btn_main.onRelease = function () {
gotoAndPlay ("main");
_root.soundfx();
disgold.removeMovieClip();
disilver.removeMovieClip();
disbronze.removeMovieClip();
};
goldbut.onRelease = function () {
attachMovie("menu_disgold", "disgold", 5, {_x:goldbut._x, _y:goldbut._y});
};
silverbut.onRelease = function () {
attachMovie("menu_disilver", "disilver", 5, {_x:silverbut._x, _y:silverbut._y});
};
bronzebut.onRelease = function () {
attachMovie("menu_disbronze", "disbronze", 5, {_x:bronzebut._x, _y:bronzebut._y});
};
Symbol 601 Button
on (keyPress "<Enter>") {
if (!_root.ganao) {
reset();
}
}
Symbol 630 Button
on (keyPress "<Enter>") {
if (!_root.ganao) {
reset();
_root.score = _root.score - 100;
_root.attachMovie("menos100", "menos100", _root.getNextHighestDepth(), {_x:25, _y:260});
}
}
Symbol 638 Button
on (keyPress "<Enter>") {
reset();
}