Frame 1
stop();
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", deadClick);
var hisSiteLink = new ContextMenuItem("Sponsored by SPIL GAMES", gotoHisSite);
myMenu.customItems.push(mySiteLink, Skyline, MusicOff);
_root.menu = myMenu;
onEnterFrame = function () {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "armorgames.com") {
_root.attachMovie("siteLock", "siteLock", 99999999);
}
};
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 == 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 () {
if (guardar.data.hscore == undefined) {
guardar.data.hscore = 0;
}
if (score > guardar.data.hscore) {
guardar.data.hscore = score;
}
_root.gotoAndPlay("normalsubmit");
};
btn_menuwin.onRelease = function () {
_root.gotoAndPlay("main_menu");
_root.soundfx();
};
btn_3000games.onRelease = function () {
getURL ("http://www.armorgames.com/", "_blank");
};
Frame 36
stop();
lastscore.text = score;
highscore.text = _root.guardar.data.hscore;
btn_menu.onRelease = function () {
_root.gotoAndPlay("main_menu");
};
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 > 54524) {
if (!_root.guardar.data.awgo_1) {
award();
_root.guardar.data.awgo_1 = true;
}
}
btn_submit.onRelease = function () {
if (guardar.data.ch1score == undefined) {
guardar.data.ch1score = 0;
}
if (score > guardar.data.ch1score) {
guardar.data.ch1score = score;
}
_root.gotoAndPlay("chunosubmit");
};
btn_menuwin.onRelease = function () {
_root.gotoAndPlay("main_menu");
_root.soundfx();
};
btn_3000games.onRelease = function () {
getURL ("http://www.armorgames.com/", "_blank");
};
Frame 44
stop();
lastscore.text = score;
highscore.text = _root.guardar.data.ch1score;
btn_menu.onRelease = function () {
_root.gotoAndPlay("main_menu");
};
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 > 54524) {
if (!_root.guardar.data.awgo_1) {
award();
_root.guardar.data.awgo_1 = true;
}
}
btn_submit.onRelease = function () {
if (guardar.data.ch2score == undefined) {
guardar.data.ch2score = 0;
}
if (score > guardar.data.ch2score) {
guardar.data.ch2score = score;
}
_root.gotoAndPlay("chdosubmit");
};
btn_menuwin.onRelease = function () {
_root.gotoAndPlay("main_menu");
_root.soundfx();
};
btn_3000games.onRelease = function () {
getURL ("http://www.armorgames.com/", "_blank");
};
Frame 53
stop();
lastscore.text = score;
highscore.text = _root.guardar.data.ch2score;
btn_menu.onRelease = function () {
_root.gotoAndPlay("main_menu");
};
Frame 54
gotoAndPlay ("main_menu");
Symbol 10 MovieClip [siteLock] Frame 1
btn_invisible.onRelease = function () {
_root.getURL("http://www.bangoworld.com/onyoursite", "_blank");
_root.soundfx();
};
Symbol 31 MovieClip Frame 1
stop();
if (_root.guardar.data.awgo_1) {
gotoAndStop (2);
}
Symbol 31 MovieClip Frame 2
stop();
Symbol 37 MovieClip Frame 1
stop();
if (_root.guardar.data.awgo_2) {
gotoAndStop (2);
}
Symbol 37 MovieClip Frame 2
stop();
Symbol 42 MovieClip Frame 1
stop();
if (_root.guardar.data.awgo_3) {
gotoAndStop (2);
}
Symbol 42 MovieClip Frame 2
stop();
Symbol 47 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 47 MovieClip Frame 2
stop();
Symbol 54 MovieClip [menu_disgold] Frame 31
stop();
menu_butclose.onRelease = function () {
gotoAndPlay ("close");
};
Symbol 54 MovieClip [menu_disgold] Frame 53
this.removeMovieClip();
Symbol 69 MovieClip Frame 1
stop();
if (_root.guardar.data.awsi_1) {
gotoAndStop (2);
}
Symbol 69 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 1
stop();
if (_root.guardar.data.awsi_2) {
gotoAndStop (2);
}
Symbol 74 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 1
stop();
if (_root.guardar.data.awsi_3) {
gotoAndStop (2);
}
Symbol 81 MovieClip Frame 2
stop();
Symbol 86 MovieClip Frame 1
stop();
if (_root.guardar.data.awsi_4) {
gotoAndStop (2);
}
Symbol 86 MovieClip Frame 2
stop();
Symbol 91 MovieClip [menu_disilver] Frame 19
stop();
menu_butclose.onRelease = function () {
gotoAndPlay ("close");
};
Symbol 91 MovieClip [menu_disilver] Frame 35
this.removeMovieClip();
Symbol 105 MovieClip Frame 1
stop();
if (_root.guardar.data.awbr_2) {
gotoAndStop (2);
}
Symbol 105 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 1
stop();
if (_root.guardar.data.awbr_3) {
gotoAndStop (2);
}
Symbol 110 MovieClip Frame 2
stop();
Symbol 115 MovieClip Frame 1
stop();
if (_root.guardar.data.awbr_4) {
gotoAndStop (2);
}
Symbol 115 MovieClip Frame 2
stop();
Symbol 121 MovieClip Frame 1
stop();
if (_root.guardar.data.awbr_1) {
gotoAndStop (2);
}
Symbol 121 MovieClip Frame 2
stop();
Symbol 125 MovieClip [menu_disbronze] Frame 31
stop();
menu_butclose.onRelease = function () {
gotoAndPlay ("close");
};
Symbol 125 MovieClip [menu_disbronze] Frame 53
this.removeMovieClip();
Symbol 127 MovieClip [pl_effect] Frame 30
this.removeMovieClip();
Symbol 133 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
play();
Symbol 154 MovieClip Frame 105
_parent.explotaya = true;
Symbol 159 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 159 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 159 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 159 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 159 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 159 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 159 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 159 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 159 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 159 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 159 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 173 MovieClip Frame 26
gotoAndPlay (1);
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 3
stop();
Symbol 186 MovieClip Frame 4
stop();
Symbol 191 MovieClip [adios] Frame 20
this.removeMovieClip();
Symbol 204 Button
on (keyPress "<Space>") {
ir = _root.nextFrame();
_root.gotoAndPlay(ir);
_root.ganas.removeMovieClip();
}
Symbol 208 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 210 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 214 MovieClip [effect] Frame 10
this.removeMovieClip();
Symbol 221 MovieClip [lvlname] Frame 1
stop();
nombre.text = _root.nivel;
upbtn.onRelease = function () {
gotoAndStop (2);
};
Symbol 221 MovieClip [lvlname] Frame 2
stop();
upbtn.onRelease = function () {
gotoAndStop (1);
nombre.text = _root.nivel;
};
Symbol 235 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 238 Button
on (keyPress "<Space>") {
ir = _root.nextFrame();
_root.gotoAndPlay(ir);
_root.ganas_ch.removeMovieClip();
}
Symbol 242 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 245 MovieClip [menos100] Frame 25
this.removeMovieClip();
Symbol 282 MovieClip [tutorial] Frame 1
stop();
_root.pausa = false;
onEnterFrame = function () {
if (Key.isDown(39)) {
gotoAndPlay (2);
}
};
Symbol 282 MovieClip [tutorial] Frame 2
stop();
onEnterFrame = function () {
if (_root.player._x >= 120) {
gotoAndPlay (3);
}
};
Symbol 282 MovieClip [tutorial] Frame 3
onEnterFrame = function () {
};
Symbol 282 MovieClip [tutorial] Frame 21
stop();
onEnterFrame = function () {
if ((_root.player._x >= 240) && (_root.player._y <= 230)) {
gotoAndPlay (22);
}
};
Symbol 282 MovieClip [tutorial] Frame 22
_root.pausa = true;
onEnterFrame = function () {
};
Symbol 282 MovieClip [tutorial] Frame 110
stop();
_root.pausa = false;
Symbol 292 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 302 MovieClip [awarder] Frame 63
this.removeMovieClip();
Symbol 310 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 320 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 327 MovieClip Frame 20
gotoAndPlay (1);
Symbol 336 MovieClip Frame 1
stop();
Symbol 350 Button
on (press) {
_quality = "HIGH";
_root.gotoAndPlay("intro");
}
Symbol 351 MovieClip Frame 1
stop();
Instance of Symbol 336 MovieClip in Symbol 351 MovieClip Frame 1
onClipEvent (enterFrame) {
loaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
this.barra._xscale = loaded;
if (loaded == 100) {
_parent.play();
}
}
Symbol 351 MovieClip Frame 9
stop();
Symbol 363 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 366 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 366 MovieClip Frame 218
_root.nextFrame();
Symbol 410 MovieClip Frame 1
btn_resume.onRelease = function () {
_x = 510;
};
Symbol 412 MovieClip Frame 1
btn_resume.onRelease = function () {
_x = 510;
};
Symbol 414 MovieClip Frame 1
btn_resume.onRelease = function () {
_x = 510;
};
Symbol 440 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 450 MovieClip Frame 76
stop();
btn_main.onRelease = function () {
_parent.gotoAndPlay("main");
};
Symbol 461 MovieClip Frame 21
stop();
Symbol 475 MovieClip Frame 25
stop();
Symbol 482 MovieClip Frame 50
stop();
Symbol 484 MovieClip Frame 1
stop();
btn_link.onRelease = function () {
getURL ("http://www.rjgam.es", "_blank");
};
btn_forward.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
Symbol 484 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 484 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 484 MovieClip Frame 4
stop();
btn_forward.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
btn_back.onRelease = function () {
gotoAndPlay(_currentframe - 1);
};
Symbol 490 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();
};
btn_moregames.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
logo.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
Symbol 490 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 490 MovieClip Frame 3
stop();
btn_main.onRelease = function () {
gotoAndPlay ("main");
_root.soundfx();
};
btn_phloura.onRelease = function () {
gotoAndPlay ("phloura");
_root.soundfx();
};
Symbol 490 MovieClip Frame 4
stop();
Symbol 490 MovieClip Frame 5
stop();
btn_main.onRelease = function () {
gotoAndPlay ("main");
_root.soundfx();
};
Symbol 490 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 506 Button
on (keyPress "<Enter>") {
if (!_root.ganao) {
reset();
}
}
Symbol 538 Button
on (keyPress "<Enter>") {
if (!_root.ganao) {
reset();
_root.score = _root.score - 100;
_root.attachMovie("menos100", "menos100", _root.getNextHighestDepth(), {_x:25, _y:260});
}
}
Symbol 549 Button
on (keyPress "<Enter>") {
reset();
}