Frame 98
gotoAndPlay (99);
Frame 99
function cacheDate() {
var _local2 = new Date();
var _local1 = "?anticache=" + Math.round(_local2.getTime());
return(_local1);
}
function submitScore(name, score) {
gotoAndStop ("score");
}
function cacheDate() {
var _local2 = new Date();
var _local1 = "?anticache=" + Math.round(_local2.getTime());
return(_local1);
}
function submitScore(name, score) {
}
function updateScores() {
}
globalsound = new Sound();
sndIntroMusic = new Sound();
sndIntroMusic.attachSound("sndIntroMusic");
sndGameMusic = new Sound();
sndGameMusic.attachSound("sndGameMusic");
sndMove = new Sound();
sndMove.attachSound("sndMove");
sndGameMusicHurry = new Sound();
sndGameMusicHurry.attachSound("sndGameMusicHurry");
_quality = "high";
level = 0;
Frame 101
sndIntroMusic.start(0, 0);
Frame 273
if (notFirstGo) {
sndIntroMusic.start(0, 0);
}
notFirstGo = true;
stop();
Frame 274
function buildMap() {
txtLevel = levelCounter;
txtScore = score;
if (!((++level) === total)) {
go = true;
goals = 0;
steps = 0;
map = this["map" + levelCounter];
tempArray = map.arrayCopy();
levelHolder = emptyClip("levelHolder", 16, 48, 1);
j = 0;
while (j < tempArray.length) {
i = 0;
while (i < tempArray[0].length) {
tile = levelHolder.attachMovie("tile", (("t_" + i) + "_") + j, ++d);
tile._x = i * tileW;
tile._y = j * tileH;
tile.gotoAndStop(tempArray[j][i][0] + 1);
if (tempArray[j][i][1] > 0) {
tile = levelHolder.attachMovie("block", (("b_" + i) + "_") + j, (++d) * 100);
tile._x = i * tileW;
tile._y = j * tileH;
}
if (tempArray[j][i][0] == 5) {
goals++;
}
i++;
}
j++;
}
attChar();
beginTimer(map.time);
} else {
trace("game complete");
}
}
function attChar() {
pengo = levelHolder.attachMovie("pengo", "hero", d * 100);
pengo._x = map.startPos[0] * tileW;
pengo._y = map.startPos[1] * tileH;
}
function move() {
if (go) {
if (Key.getCode() == 39) {
pengo.move("right");
pengo.gotoAndStop("right");
} else if (Key.getCode() == 37) {
pengo.move("left");
pengo.gotoAndStop("left");
} else if (Key.getCode() == 38) {
pengo.move("up");
pengo.gotoAndStop("up");
} else if (Key.getCode() == 40) {
pengo.move("down");
pengo.gotoAndStop("down");
}
sndMove.start(0, 0);
}
}
function checkMap() {
var _local1 = 0;
j = 0;
while (j < tempArray.length) {
i = 0;
while (i < tempArray[0].length) {
if ((tempArray[j][i][0] == 5) && (tempArray[j][i][1] == 1)) {
_local1++;
}
i++;
}
j++;
}
if (_local1 >= goals) {
levelProg();
}
}
function levelProg() {
if (go) {
sndGameMusic.stop();
sndGameMusicHurry.stop();
sndGameMusic.start(0, 100000);
hurryUpMusicStarted = false;
pushTimer.stop();
pushTimer.reset();
go = false;
this.attachMovie("panel", "panel", 99);
panel.gotoAndStop("level_clear");
panel.timeLeft = dis;
panel.stepDone = steps;
panel._y = 100;
panel._x = 104;
disableButs();
levelCounter++;
}
}
function gameOver() {
if (go) {
pushTimer.stop();
pushTimer.reset();
go = false;
getScores = false;
levelHolder.removeMovieClip();
panel.removeMovieClip();
disableButs();
sndGameMusicHurry.stop();
sndGameMusic.stop();
_root.gotoAndStop("score");
}
}
function timeUp() {
if (go) {
sndGameMusic.stop();
sndGameMusicHurry.stop();
sndGameMusic.start(0, 100000);
hurryUpMusicStarted = false;
pushTimer.stop();
pushTimer.reset();
go = false;
this.attachMovie("panel", "panel", 99);
panel.gotoAndStop("time_up");
panel._y = 100;
panel._x = 104;
disableButs();
}
}
function disableButs() {
resetBut.enabled = false;
pauseBut.enabled = false;
soundBut.enabled = false;
}
function enableButs() {
resetBut.enabled = true;
pauseBut.enabled = true;
soundBut.enabled = true;
}
function reset() {
level--;
buildMap();
}
function pause() {
if (!paused) {
paused = true;
pushTimer.stop();
go = false;
disableButs();
this.attachMovie("panel", "panel", 99);
panel.gotoAndStop("pause");
panel._y = 100;
panel._x = 104;
} else {
paused = false;
pushTimer.start();
go = true;
enableButs();
panel.removeMovieClip();
}
}
function beginTimer(sec) {
pushTimer.reset();
secs = sec;
pushTimer.start();
}
levelCounter = 1;
map1 = [[[0, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [0, 0], [0, 0]], [[0, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0], [3, 0], [0, 0], [0, 0]], [[0, 0], [3, 0], [3, 0], [1, 0], [3, 0], [1, 1], [1, 0], [1, 0], [3, 0], [3, 0], [3, 0], [3, 0]], [[3, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 1], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [3, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [5, 0], [3, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 1], [1, 0], [1, 0], [1, 0], [5, 0], [3, 0], [3, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [1, 0], [1, 0], [3, 0], [3, 0], [3, 0], [5, 0], [3, 0], [3, 0]], [[0, 0], [0, 0], [0, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]]];
map1.startPos = [4, 6];
map1.time = 30;
map2 = [[[0, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [0, 0], [0, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [5, 0], [3, 0], [5, 0], [3, 0], [3, 0], [0, 0], [0, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [3, 0], [3, 0], [3, 0], [1, 0], [3, 0], [3, 0], [0, 0], [0, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 1], [1, 0], [1, 0], [3, 0], [0, 0], [0, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [3, 0], [1, 0], [3, 0], [1, 0], [1, 0], [3, 0], [0, 0], [0, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 1], [1, 0], [1, 0], [1, 0], [3, 0], [0, 0], [0, 0]], [[3, 0], [1, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0], [0, 0], [0, 0]], [[0, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [0, 0], [0, 0]]];
map2.startPos = [1, 6];
map2.time = 40;
map3 = [[[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [3, 0], [3, 0], [3, 0], [3, 0]], [[0, 0], [0, 0], [0, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [1, 0], [5, 0], [3, 0]], [[0, 0], [0, 0], [0, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[0, 0], [0, 0], [0, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[0, 0], [0, 0], [0, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [1, 0], [1, 1], [3, 0], [3, 0], [3, 0], [3, 0], [1, 1], [3, 0]], [[3, 0], [1, 0], [5, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]]];
map3.startPos = [5, 4];
map3.time = 30;
map4 = [[[0, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [0, 0]], [[0, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0], [0, 0]], [[3, 0], [3, 0], [2, 0], [2, 0], [2, 0], [2, 0], [2, 0], [2, 0], [3, 0], [3, 0], [3, 0], [3, 0]], [[3, 0], [1, 0], [2, 0], [2, 0], [2, 0], [2, 0], [2, 1], [2, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [2, 0], [2, 0], [2, 1], [2, 0], [2, 0], [2, 0], [1, 0], [1, 0], [5, 0], [3, 0]], [[3, 0], [1, 0], [2, 0], [2, 0], [2, 0], [2, 0], [2, 0], [2, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [3, 0], [3, 0], [1, 0], [1, 0], [5, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[0, 0], [0, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [0, 0]]];
map4.startPos = [6, 4];
map4.time = 30;
map5 = [[[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [1, 1], [1, 1], [1, 1], [1, 1], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [5, 0], [5, 0], [5, 0], [1, 1], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [1, 1], [3, 0], [3, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [2, 0], [5, 0], [5, 0], [5, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [2, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]]];
map5.startPos = [2, 6];
map5.time = 30;
map6 = [[[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]], [[3, 0], [5, 0], [1, 0], [1, 0], [1, 0], [3, 0], [1, 0], [3, 0], [3, 0], [1, 0], [3, 0], [3, 0]], [[3, 0], [5, 0], [1, 0], [1, 0], [1, 0], [3, 0], [3, 0], [3, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [5, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 1], [1, 1], [1, 0], [3, 0]], [[3, 0], [5, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 1], [1, 0], [3, 0]], [[3, 0], [5, 0], [1, 1], [1, 0], [1, 0], [3, 0], [3, 0], [3, 0], [3, 0], [1, 1], [1, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]]];
map6.startPos = [9, 1];
map6.time = 30;
map7 = [[[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [5, 0], [1, 1], [5, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [3, 0], [1, 0], [3, 0], [3, 0], [1, 0], [3, 0], [2, 0], [3, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [2, 0], [2, 0], [2, 0], [2, 0], [1, 1], [1, 0], [2, 0], [3, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [3, 0], [3, 0], [3, 0], [3, 0], [5, 0], [3, 0], [2, 0], [3, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 1], [3, 0], [2, 0], [3, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [3, 0], [3, 0], [3, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]]];
map7.startPos = [10, 1];
map7.time = 30;
map8 = [[[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]], [[3, 0], [1, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [1, 0], [1, 0], [1, 0], [3, 0], [3, 0]], [[3, 0], [3, 0], [1, 0], [2, 0], [2, 0], [2, 0], [2, 0], [5, 0], [3, 0], [1, 0], [3, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [2, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [3, 0], [2, 0], [2, 0], [2, 0], [2, 0], [2, 0], [2, 0], [1, 1], [1, 0], [3, 0]], [[3, 0], [1, 0], [3, 0], [1, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]]];
map8.startPos = [5, 6];
map8.time = 30;
map9 = [[[0, 0], [0, 0], [0, 0], [3, 0], [3, 0], [3, 0], [3, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [1, 0], [1, 0], [3, 0], [3, 0], [0, 0], [0, 0], [0, 0], [0, 0]], [[3, 0], [1, 0], [1, 1], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0], [0, 0], [0, 0], [0, 0], [0, 0]], [[3, 0], [1, 0], [1, 0], [3, 0], [1, 1], [1, 1], [1, 0], [3, 0], [0, 0], [0, 0], [0, 0], [0, 0]], [[3, 0], [5, 0], [1, 0], [1, 0], [1, 0], [2, 0], [2, 0], [3, 0], [3, 0], [0, 0], [0, 0], [0, 0]], [[3, 0], [3, 0], [1, 0], [3, 0], [1, 0], [2, 0], [2, 0], [5, 0], [3, 0], [0, 0], [0, 0], [0, 0]], [[3, 0], [5, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0], [3, 0], [0, 0], [0, 0], [0, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [0, 0], [0, 0], [0, 0], [0, 0]]];
map9.startPos = [6, 6];
map9.time = 30;
map10 = [[[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [3, 0], [3, 0], [3, 0], [3, 0]], [[0, 0], [0, 0], [0, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [1, 0], [5, 0], [3, 0]], [[0, 0], [0, 0], [0, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[0, 0], [0, 0], [0, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[0, 0], [0, 0], [0, 0], [3, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [1, 0], [1, 1], [3, 0], [3, 0], [3, 0], [3, 0], [1, 1], [3, 0]], [[3, 0], [1, 0], [5, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [3, 0]], [[3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0], [3, 0]]];
map10.startPos = [5, 4];
map10.time = 30;
resetBut.onPress = function () {
if (life > 0) {
life--;
reset();
} else {
gameOver();
}
};
pauseBut.onPress = function () {
pause();
};
soundBut.onPress = function () {
if (soundOn) {
globalsound.setVolume(100);
soundOn = false;
} else {
globalsound.setVolume(0);
soundOn = true;
}
};
MovieClip.prototype.emptyClip = function (name, xPos, yPos, depth) {
var _local1 = this.createEmptyMovieClip(name, depth);
_local1._x = xPos;
_local1._y = yPos;
return(_local1);
};
Array.prototype.arrayCopy = function () {
var _local2 = this;
var _local3 = new Array();
var _local1;
for (_local1 in _local2) {
if (_local2[_local1] instanceof Array) {
_local3[_local1] = _local2[_local1].arraycopy();
} else {
_local3[_local1] = _local2[_local1];
}
}
return(_local3);
};
tileW = 32;
tileH = 32;
cnt = 0;
total = 8;
life = 3;
score = 0;
d = 0;
paused = false;
onEnterFrame = function () {
cnt++;
if (cnt > 5) {
if ((secs - pushTimer.getSecs()) < 0) {
if (life > 0) {
life--;
timeUp();
} else {
gameOver();
}
}
if (((secs - pushTimer.getSecs()) < 6) && (!hurryUpMusicStarted)) {
sndGameMusic.stop();
sndGameMusicHurry.start(0, 100000);
hurryUpMusicStarted = true;
}
if (!pushTimer.pause) {
dis = secs - pushTimer.getSecs();
}
checkMap();
cnt = 0;
}
};
if (!keyInit) {
keyLis = new Object();
keyLis.onKeyDown = move;
Key.addListener(keyLis);
keyInit = true;
}
sndGameMusic.start(0, 100000);
mbenneyTimer = function () {
this.reset();
};
mT = mbenneyTimer.prototype;
mT.reset = function () {
var _local1 = this;
_local1.oldTime = 0;
_local1.pause = true;
_local1.totalTime = 0;
};
mT.stop = function () {
var _local1 = this;
if (!_local1.pause) {
_local1.pause = true;
_local1.totalTime = _local1.totalTime + (getTimer() - _local1.oldTime);
}
};
mT.start = function () {
var _local1 = this;
if (_local1.pause) {
_local1.pause = false;
_local1.oldTime = getTimer();
}
};
mT.getMili = function () {
var _local2 = this;
var _local1 = _local2.totalTime;
if (!_local2.pause) {
_local1 = _local1 + (getTimer() - _local2.oldTime);
}
return(_local1);
};
mT.getSecs = function () {
var _local2 = this;
var _local1 = _local2.totalTime / 1000;
if (!_local2.pause) {
_local1 = _local1 + ((getTimer() - _local2.oldTime) / 1000);
}
return(Math.round(_local1));
};
mT.getMins = function () {
var _local2 = this;
var _local1 = _local2.totalTime / 1000;
if (!_local2.pause) {
_local1 = _local1 + (((getTimer() - _local2.oldTime) / 1000) / 60);
}
return(Math.round(_local1));
};
pushTimer = new mbenneyTimer();
buildMap();
stop();
Frame 275
stop();
Instance of Symbol 84 MovieClip "returnBut" in Frame 275
onClipEvent (load) {
this.onPress = function () {
_parent.gotoAndStop(1);
};
}
Instance of Symbol 203 MovieClip in Frame 275
//component parameters
onClipEvent (initialize) {
scoreLocation = "_root.score";
gamename = "penguinpush";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 12 Button
on (release, keyPress "<Enter>") {
this.preventcache = getTime();
this.username = username;
this.gamename = this.gamename;
this.score = _parent.score;
this.formaction = "sethighscore";
play();
}
Symbol 26 Button
on (release) {
_parent.gotoAndStop("mainMenu");
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
pos = parseInt(_parent.position) - 1;
records = parseInt(_parent.records) - 1;
unit = 330 / records;
distance = parseInt(unit * pos);
Symbol 39 MovieClip Frame 4
if (distance <= parseInt(arrow._x)) {
stop();
} else {
arrow._x = arrow._x + 2;
gotoAndPlay (3);
}
Symbol 50 MovieClip Frame 1
x = this._name.substring(4, this._name.length);
this.user_name.txt = _parent["user_name" + x];
this.score.txt = _parent["score" + x];
this.date.txt = " " + _parent["date" + x];
this.num.txt = parseInt(x) + 1;
Symbol 50 MovieClip Frame 32
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
slider.play();
Symbol 51 MovieClip Frame 11
stop();
Symbol 52 MovieClip [hstable] Frame 1
if (_parent.getScores) {
gotoAndPlay ("getScores");
} else {
this.score = _parent.score;
txtScoreBottom = _parent.score;
txtScoreTop = _parent.score;
}
stop();
Symbol 52 MovieClip [hstable] Frame 2
function getHighScores(returnTarget, gamename, low, high) {
var _local1 = this;
_local1.low = low;
_local1.high = high;
_local1.gamename = gamename;
_local1.formaction = "gethighscores";
loadVariables ("http://www.miniclip.com/proxy.php", returnTarget, "GET");
}
getHighScores(hs, this.gamename, 0, 10);
play();
Symbol 52 MovieClip [hstable] Frame 3
if (hs.user_name0 != null) {
gotoAndPlay ("displayHS");
} else {
this.loading = "Contacting highscore igloo...";
play();
}
Symbol 52 MovieClip [hstable] Frame 5
this.loading = "Contacting highscore igloo...";
gotoAndPlay ("loop1");
Symbol 52 MovieClip [hstable] Frame 6
hs.play();
stop();
Symbol 69 MovieClip [pengo] Frame 1
MovieClip.prototype.downSlide = function () {
var _local1 = _parent._parent;
_local1.go = false;
var _local3 = Math.floor(this._x / _local1.tileH);
var _local2 = Math.floor(this._y / _local1.tileH);
if (((_local1.tempArray[_local2][_local3][0] == 2) && (!(_local1.tempArray[_local2 + 1][_local3][1] === 1))) && (!(_local1.tempArray[_local2 + 1][_local3][0] === 3))) {
this._y = this._y + _local1.tileW;
} else {
delete this.onEnterFrame;
_local1.go = true;
}
};
MovieClip.prototype.upSlide = function () {
var _local1 = _parent._parent;
_local1.go = false;
var _local3 = Math.floor(this._x / _local1.tileH);
var _local2 = Math.floor(this._y / _local1.tileH);
if (((_local1.tempArray[_local2][_local3][0] == 2) && (!(_local1.tempArray[_local2 - 1][_local3][1] === 1))) && (!(_local1.tempArray[_local2 - 1][_local3][0] === 3))) {
this._y = this._y - _local1.tileW;
} else {
delete this.onEnterFrame;
_local1.go = true;
}
};
MovieClip.prototype.rightSlide = function () {
var _local1 = _parent._parent;
_local1.go = false;
var _local3 = Math.floor(this._x / _local1.tileH);
var _local2 = Math.floor(this._y / _local1.tileH);
if (((_local1.tempArray[_local2][_local3][0] == 2) && (!(_local1.tempArray[_local2][_local3 + 1][1] === 1))) && (!(_local1.tempArray[_local2][_local3 + 1][0] === 3))) {
this._x = this._x + _local1.tileW;
} else {
delete this.onEnterFrame;
_local1.go = true;
}
};
MovieClip.prototype.leftSlide = function () {
var _local1 = _parent._parent;
_local1.go = false;
var _local3 = Math.floor(this._x / _local1.tileH);
var _local2 = Math.floor(this._y / _local1.tileH);
if (((_local1.tempArray[_local2][_local3][0] == 2) && (!(_local1.tempArray[_local2][_local3 - 1][1] === 1))) && (!(_local1.tempArray[_local2][_local3 - 1][0] === 3))) {
this._x = this._x - _local1.tileW;
} else {
delete this.onEnterFrame;
_local1.go = true;
}
};
MovieClip.prototype.righticeSlide = function () {
var _local1 = _parent._parent;
var _local3 = Math.floor(this._x / _local1.tileH);
var _local2 = Math.floor(this._y / _local1.tileH);
if (((_local1.tempArray[_local2][_local3][0] == 2) && (!(_local1.tempArray[_local2][_local3 + 1][1] === 1))) && (!(_local1.tempArray[_local2][_local3 + 1][0] === 3))) {
_local1.tempArray[_local2][_local3][1] = 0;
_local1.tempArray[_local2][_local3 + 1][1] = 1;
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._name = (("b_" + (_local3 + 1)) + "_") + _local2;
this._x = this._x + _local1.tileW;
} else {
delete this.onEnterFrame;
}
};
MovieClip.prototype.lefticeSlide = function () {
var _local1 = _parent._parent;
var _local3 = Math.floor(this._x / _local1.tileH);
var _local2 = Math.floor(this._y / _local1.tileH);
if (((_local1.tempArray[_local2][_local3][0] == 2) && (!(_local1.tempArray[_local2][_local3 - 1][1] === 1))) && (!(_local1.tempArray[_local2][_local3 - 1][0] === 3))) {
_local1.tempArray[_local2][_local3][1] = 0;
_local1.tempArray[_local2][_local3 - 1][1] = 1;
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._name = (("b_" + (_local3 - 1)) + "_") + _local2;
this._x = this._x - _local1.tileW;
} else {
delete this.onEnterFrame;
}
};
MovieClip.prototype.upiceSlide = function () {
var _local1 = _parent._parent;
var _local3 = Math.floor(this._x / _local1.tileH);
var _local2 = Math.floor(this._y / _local1.tileH);
if (((_local1.tempArray[_local2][_local3][0] == 2) && (!(_local1.tempArray[_local2 - 1][_local3][1] === 1))) && (!(_local1.tempArray[_local2 - 1][_local3][0] === 3))) {
_local1.tempArray[_local2][_local3][1] = 0;
_local1.tempArray[_local2 - 1][_local3][1] = 1;
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._name = (("b_" + _local3) + "_") + (_local2 - 1);
this._y = this._y - _local1.tileW;
} else {
delete this.onEnterFrame;
}
};
MovieClip.prototype.downiceSlide = function () {
var _local1 = _parent._parent;
var _local3 = Math.floor(this._x / _local1.tileH);
var _local2 = Math.floor(this._y / _local1.tileH);
if (((_local1.tempArray[_local2][_local3][0] == 2) && (!(_local1.tempArray[_local2 + 1][_local3][1] === 1))) && (!(_local1.tempArray[_local2 + 1][_local3][0] === 3))) {
_local1.tempArray[_local2][_local3][1] = 0;
_local1.tempArray[_local2 + 1][_local3][1] = 1;
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._name = (("b_" + _local3) + "_") + (_local2 + 1);
this._y = this._y + _local1.tileW;
} else {
delete this.onEnterFrame;
}
};
MovieClip.prototype.move = function (dir) {
var _local1 = _parent._parent;
if (dir == "down") {
var tempx = _x;
var tempy = (_y + _local1.tileH);
var tempy2 = (_y + (2 * _local1.tileH));
var _local3 = Math.floor(tempx / _local1.tileH);
var _local2 = Math.floor(tempy / _local1.tileH);
var bcheck = Math.floor(tempy2 / _local1.tileH);
if (!(_local1.tempArray[_local2][_local3][1] === 1)) {
if (!(_local1.tempArray[_local2][_local3][0] === 3)) {
if (_local1.tempArray[_local2][_local3][0] == 2) {
this.onEnterFrame = downSlide;
}
_y = (_y + _local1.tileH);
_local1.steps++;
}
} else if (!(_local1.tempArray[bcheck][_local3][0] === 3)) {
if (!(_local1.tempArray[bcheck][_local3][1] === 1)) {
_local1.tempArray[_local2][_local3][1] = 0;
_local1.tempArray[bcheck][_local3][1] = 1;
if (_local1.tempArray[bcheck][_local3][0] == 2) {
_local1.levelHolder[(("b_" + _local3) + "_") + _local2].onEnterFrame = downiceSlide;
_local1.steps++;
}
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._y = _local1.levelHolder[(("b_" + _local3) + "_") + _local2]._y + _local1.tileW;
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._name = (("b_" + _local3) + "_") + (_local2 + 1);
_y = (_y + _local1.tileW);
_local1.steps++;
}
}
}
if (dir == "up") {
var tempx = _x;
var tempy = (_y - _local1.tileH);
var tempy2 = (_y - (2 * _local1.tileH));
var _local3 = Math.floor(tempx / _local1.tileH);
var _local2 = Math.floor(tempy / _local1.tileW);
var bcheck = Math.floor(tempy2 / _local1.tileH);
if (!(_local1.tempArray[_local2][_local3][1] === 1)) {
if (!(_local1.tempArray[_local2][_local3][0] === 3)) {
if (_local1.tempArray[_local2][_local3][0] == 2) {
this.onEnterFrame = upSlide;
}
_y = (_y - _local1.tileH);
_local1.steps++;
}
} else if (!(_local1.tempArray[bcheck][_local3][0] === 3)) {
if (!(_local1.tempArray[bcheck][_local3][1] === 1)) {
_local1.tempArray[_local2][_local3][1] = 0;
_local1.tempArray[bcheck][_local3][1] = 1;
if (_local1.tempArray[bcheck][_local3][0] == 2) {
_local1.levelHolder[(("b_" + _local3) + "_") + _local2].onEnterFrame = upiceSlide;
}
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._y = _local1.levelHolder[(("b_" + _local3) + "_") + _local2]._y - _local1.tileW;
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._name = (("b_" + _local3) + "_") + (_local2 - 1);
_y = (_y - _local1.tileW);
_local1.steps++;
}
}
}
if (dir == "left") {
var tempx = (_x - _local1.tileW);
var tempx2 = (_x - (2 * _local1.tileW));
var tempy = _y;
var _local3 = Math.floor(tempx / _local1.tileW);
var _local2 = Math.floor(tempy / _local1.tileH);
var bcheck = Math.floor(tempx2 / _local1.tileW);
if (!(_local1.tempArray[_local2][_local3][1] === 1)) {
if (!(_local1.tempArray[_local2][_local3][0] === 3)) {
if (_local1.tempArray[_local2][_local3][0] == 2) {
this.onEnterFrame = leftSlide;
}
_x = (_x - _local1.tileW);
_local1.steps++;
}
} else if (!(_local1.tempArray[_local2][bcheck][0] === 3)) {
if (!(_local1.tempArray[_local2][bcheck][1] === 1)) {
_local1.tempArray[_local2][_local3][1] = 0;
_local1.tempArray[_local2][bcheck][1] = 1;
if (_local1.tempArray[_local2][bcheck][0] == 2) {
_local1.levelHolder[(("b_" + _local3) + "_") + _local2].onEnterFrame = lefticeSlide;
}
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._x = _local1.levelHolder[(("b_" + _local3) + "_") + _local2]._x - _local1.tileW;
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._name = (("b_" + (_local3 - 1)) + "_") + _local2;
_x = (_x - _local1.tileW);
_local1.steps++;
}
}
}
if (dir == "right") {
var tempx = (_x + _local1.tileW);
var tempx2 = (_x + (2 * _local1.tileW));
var tempy = _y;
var _local3 = Math.floor(tempx / _local1.tileW);
var _local2 = Math.floor(tempy / _local1.tileH);
var bcheck = Math.floor(tempx2 / _local1.tileW);
if (!(_local1.tempArray[_local2][_local3][1] === 1)) {
if (!(_local1.tempArray[_local2][_local3][0] === 3)) {
if (_local1.tempArray[_local2][_local3][0] == 2) {
this.onEnterFrame = rightSlide;
}
_x = (_x + _local1.tileW);
_local1.steps++;
}
} else if (!(_local1.tempArray[_local2][bcheck][0] === 3)) {
if (!(_local1.tempArray[_local2][bcheck][1] === 1)) {
_local1.tempArray[_local2][_local3][1] = 0;
_local1.tempArray[_local2][bcheck][1] = 1;
if (_local1.tempArray[_local2][bcheck][0] == 2) {
_local1.levelHolder[(("b_" + _local3) + "_") + _local2].onEnterFrame = righticeSlide;
}
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._x = _local1.levelHolder[(("b_" + _local3) + "_") + _local2]._x + _local1.tileW;
_local1.levelHolder[(("b_" + _local3) + "_") + _local2]._name = (("b_" + (_local3 + 1)) + "_") + _local2;
_x = (_x + _local1.tileW);
_local1.steps++;
}
}
}
};
stop();
Symbol 69 MovieClip [pengo] Frame 2
stop();
Symbol 69 MovieClip [pengo] Frame 3
stop();
Symbol 69 MovieClip [pengo] Frame 4
stop();
Symbol 72 MovieClip [block] Frame 1
stop();
Symbol 102 MovieClip [panel] Frame 1
function levUp() {
var _local1 = _parent;
_local1.level++;
if (_local1.levelCounter >= 10) {
_local1.levelCounter = 0;
_local1.level = 0;
_local1.go = true;
_local1.gameOver();
_local1.panel.removeMovieClip();
} else {
_local1.buildMap();
_local1.enableButs();
_local1.panel.removeMovieClip();
}
}
this.onMouseDown = function () {
levUp();
};
this.onEnterFrame = function () {
if (Key.isDown(32)) {
levUp();
}
};
var reserve = 1000;
var timescore = Math.round(this.timeLeft * 10);
var stepminus = Math.round(this.stepDone * 2);
cscore = Math.round((reserve + timescore) - stepminus);
_parent.score = _parent.score + cscore;
Symbol 102 MovieClip [panel] Frame 2
function levUp() {
var _local1 = _parent;
_local1.reset();
_local1.enableButs();
_local1.panel.removeMovieClip();
}
delete this.onEnterFrame;
this.onMouseDown = function () {
levUp();
};
this.onEnterFrame = function () {
if (Key.isDown(32)) {
levUp();
}
};
Symbol 102 MovieClip [panel] Frame 3
Symbol 102 MovieClip [panel] Frame 4
function ffsubmit() {
_parent.submitScore(nameEnt, fscore);
}
function sub() {
gotoAndStop (5);
}
delete this.onMouseDown;
delete this.onEnterFrame;
submitBut.onPress = function () {
ffsubmit();
};
fscore = _parent.score;
Symbol 102 MovieClip [panel] Frame 5
function success() {
var _local1 = _parent;
_local1.gotoAndStop(3);
_local1.levelHolder.removeMovieClip();
_local1.updateScores();
_local1.panel.removeMovieClip();
}
function fail() {
nextFrame();
}
delete this.onEnterFrame;
Symbol 102 MovieClip [panel] Frame 6
delete this.onEnterFrame;
bCancel.onPress = function () {
var _local1 = _parent;
_local1.gotoAndStop(3);
_local1.levelHolder.removeMovieClip();
_local1.updateScores();
_local1.panel.removeMovieClip();
};
bResend.onPress = function () {
gotoAndStop (4);
};
Symbol 102 MovieClip [panel] Frame 7
delete this.onMouseDown;
delete this.onEnterFrame;
onMouseDown = function () {
_parent.pause();
};
Symbol 110 MovieClip [instructions] Frame 1
onMouseDown = function () {
_parent.gotoAndStop(1);
};
Symbol 125 MovieClip Frame 99
stop();
Symbol 138 Button
on (release) {
gotoAndStop (1);
}
Symbol 139 MovieClip Frame 1
function ins() {
disableBut();
_parent.attachMovie("instructions", "inst", 50);
}
function disableBut() {
begin_game.enabled = false;
highscores.enabled = false;
instructions.enabled = false;
}
function enableBut() {
begin_game.enabled = true;
highscores.enabled = true;
instructions.enabled = true;
}
stop();
begin_game.onPress = function () {
nextFrame();
};
highscores.onPress = function () {
var _local1 = _parent;
_local1.updateScores();
_local1.getScores = true;
_local1.gotoAndStop("score");
};
instructions.onPress = function () {
gotoAndStop (3);
};
Symbol 139 MovieClip Frame 2
new_game.onPress = function () {
_parent.nextFrame();
};
Symbol 139 MovieClip Frame 3
stop();
Symbol 149 Button
on (release) {
getURL ("http://www.miniclip.com/download_penguinpush.htm", "_blank");
}
Symbol 153 Button
on (release) {
getURL ("http://www.miniclip.com/Homepage.htm", "_blank");
}
Symbol 157 Button
on (release) {
getURL ("http://www.miniclip.com/signup.htm", "_blank");
}
Symbol 182 MovieClip Frame 1
this._visible = false;
Symbol 197 Button
on (release) {
gameURL = ("http://www.miniclip.com/" + gamename) + ".htm";
getURL (gameURL, "_blank");
}
Instance of Symbol 182 MovieClip "mcHighscores" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 203 MovieClip Frame 2
if ((_url.indexOf("miniclip.com") == -1) and (_url.indexOf("mclip.vo.llnwd.net") == -1)) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?" + noCache);
stop();
}
Symbol 203 MovieClip Frame 3
stop();
Symbol 206 Button
on (press) {
gotoAndPlay (273);
}