Frame 1
Stage.showMenu = false;
Instance of Symbol 122 MovieClip in Frame 1
onClipEvent (load) {
_root.stop();
this.loadBar.stop();
}
onClipEvent (enterFrame) {
if (_root.getBytesTotal() > 0) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play();
} else {
var percentage = Math.round(10 * (_root.getBytesLoaded() / _root.getBytesTotal()));
this.loadBar.gotoAndStop(percentage);
this.percentText = percentage + "/10";
}
}
}
on (press) {
_root.getURL("http://www.SnubbyLand.com/", "_blank");
}
Instance of Symbol 122 MovieClip in Frame 2
onClipEvent (load) {
this.loadBar.gotoAndStop(10);
this.percentText = "10/10";
}
Frame 3
function build_m() {
attachMovie("empty", "c", 1);
c._x = 25;
c._y = 50;
var _local7 = 0;
var _local6 = (t_hor * t_ver) + 2;
if ((_root["e5_pos_" + current_l_num].length == undefined) && (_root["ch_pos_" + current_l_num].length == undefined)) {
var _local5 = _local6 + 1;
} else if ((_root["e5_pos_" + current_l_num].length != undefined) && (_root["ch_pos_" + current_l_num].length == undefined)) {
var _local5 = (_local6 + _root["e5_pos_" + current_l_num].length) + 1;
} else if ((_root["e5_pos_" + current_l_num].length == undefined) && (_root["ch_pos_" + current_l_num].length != undefined)) {
var _local5 = (_local6 + _root["ch_pos_" + current_l_num].length) + 1;
} else if ((_root["e5_pos_" + current_l_num].length != undefined) && (_root["ch_pos_" + current_l_num].length != undefined)) {
var _local5 = ((_local6 + _root["e5_pos_" + current_l_num].length) + _root["ch_pos_" + current_l_num].length) + 1;
}
var _local3 = 0;
while (_local3 < t_ver) {
var _local2 = 0;
while (_local2 < t_hor) {
c.attachMovie("t", (("t_" + _local2) + "_") + _local3, _local7);
c[(("t_" + _local2) + "_") + _local3]._x = _local2 * t_size;
c[(("t_" + _local2) + "_") + _local3]._y = _local3 * t_size;
c[(("t_" + _local2) + "_") + _local3].gotoAndStop(current_m[_local3][_local2] + 1);
_local7++;
var _local4 = 0;
while (_local4 < _root["e1_pos_" + current_l_num].length) {
if ((_local2 == _root["e1_pos_" + current_l_num][_local4][0]) && (_local3 == _root["e1_pos_" + current_l_num][_local4][1])) {
c.attachMovie("e1", "e1_" + _local4, _local5);
c["e1_" + _local4]._x = (_local2 * t_size) + (t_size / 2);
c["e1_" + _local4]._y = (_local3 * t_size) + (t_size / 2);
_local5++;
}
_local4++;
}
_local4 = 0;
while (_local4 < _root["e2_pos_" + current_l_num].length) {
if ((_local2 == _root["e2_pos_" + current_l_num][_local4][0]) && (_local3 == _root["e2_pos_" + current_l_num][_local4][1])) {
c.attachMovie("e2", "e2_" + _local4, _local5);
c["e2_" + _local4]._x = (_local2 * t_size) + (t_size / 2);
c["e2_" + _local4]._y = (_local3 * t_size) + (t_size / 2);
_local5++;
}
_local4++;
}
_local4 = 0;
while (_local4 < _root["e3_pos_" + current_l_num].length) {
if ((_local2 == _root["e3_pos_" + current_l_num][_local4][0]) && (_local3 == _root["e3_pos_" + current_l_num][_local4][1])) {
c.attachMovie("e3", "e3_" + _local4, _local5);
c["e3_" + _local4]._x = (_local2 * t_size) + (t_size / 2);
c["e3_" + _local4]._y = (_local3 * t_size) + (t_size / 2);
_local5++;
}
_local4++;
}
_local4 = 0;
while (_local4 < _root["e4_pos_" + current_l_num].length) {
if ((_local2 == _root["e4_pos_" + current_l_num][_local4][0]) && (_local3 == _root["e4_pos_" + current_l_num][_local4][1])) {
c.attachMovie("e4", "e4_" + _local4, _local5);
c["e4_" + _local4]._x = (_local2 * t_size) + (t_size / 2);
c["e4_" + _local4]._y = (_local3 * t_size) + (t_size / 2);
_local5++;
}
_local4++;
}
_local4 = 0;
while (_local4 < _root["e5_pos_" + current_l_num].length) {
if ((_local2 == _root["e5_pos_" + current_l_num][_local4][0]) && (_local3 == _root["e5_pos_" + current_l_num][_local4][1])) {
c.attachMovie("e5", "e5_" + _local4, _local6);
c["e5_" + _local4]._x = (_local2 * t_size) + (t_size / 2);
c["e5_" + _local4]._y = (_local3 * t_size) + (t_size / 2);
_local6++;
}
_local4++;
}
_local4 = 0;
while (_local4 < _root["ch_pos_" + current_l_num].length) {
if ((_local2 == _root["ch_pos_" + current_l_num][_local4][0]) && (_local3 == _root["ch_pos_" + current_l_num][_local4][1])) {
c.attachMovie("ch", "ch_" + _local4, _local6);
c["ch_" + _local4]._x = (_local2 * t_size) + (t_size / 2);
c["ch_" + _local4]._y = (_local3 * t_size) + (t_size / 2);
_local6++;
}
_local4++;
}
if ((_local2 == _root["mh_pos_" + current_l_num][0]) && (_local3 == _root["mh_pos_" + current_l_num][1])) {
c.attachMovie("mh", "mh", _local6);
c.mh._x = (_local2 * t_size) + (t_size / 2);
c.mh._y = (_local3 * t_size) + (t_size / 2);
_local6++;
}
_local2++;
}
_local3++;
}
if (c.p._x == null) {
c.attachMovie("p", "p", _local5);
c.p._x = (_root["p_pos_" + current_l_num][0] * t_size) + (t_size / 2);
c.p._y = (_root["p_pos_" + current_l_num][1] * t_size) + (t_size / 2);
}
}
function break_m() {
removeMovieClip(c);
}
function write_texts() {
stats = ((((((("Level: " + current_l_num) + "/") + total_l) + " ") + "Cheese: ") + ch_amt) + "/") + _root["ch_pos_" + current_l_num].length;
if (_root["ch_pos_" + current_l_num].length == undefined) {
stats = (((((("Level: " + current_l_num) + "/") + total_l) + " ") + "Cheese: ") + ch_amt) + "/0";
}
}
function die() {
ch_amt = 0;
break_m();
removeMovieClip(c.p);
gotoAndStop ("pregame");
}
function win() {
current_l_num++;
current_m = _root["m_" + current_l_num];
ch_amt = 0;
break_m();
removeMovieClip(c.p);
gotoAndStop ("pregame");
}
var total_l = 15;
stop();
_quality = "high";
var t_size = 20;
var m_width = 300;
var m_height = 300;
var t_hor = (m_width / t_size);
var t_ver = (m_height / t_size);
var p_action = null;
var ch_amt = 0;
Instance of Symbol 143 MovieClip "s" in Frame 3
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 4
lastinfo = ("Complete all " + total_l) + " levels to beat the game!";
Frame 5
p_action = null;
_quality = "high";
if (current_l_num > total_l) {
gotoAndStop ("beatgame");
}
var m_1 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 30, 4, 29, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 31, 45, 51, 44, 33, 0, 0, 0, 0, 0], [0, 0, 0, 30, 4, 7, 51, 51, 51, 8, 4, 29, 0, 0, 0], [0, 0, 31, 45, 51, 51, 51, 51, 51, 51, 51, 44, 33, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 10, 13, 9, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 32, 42, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0, 0], [0, 0, 0, 28, 3, 5, 51, 51, 51, 6, 3, 27, 0, 0, 0], [0, 0, 0, 0, 0, 32, 42, 51, 43, 34, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 28, 3, 27, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var p_pos_1 = new Array(7, 3);
var mh_pos_1 = new Array(7, 11);
var ch_pos_1 = new Array([6, 5], [8, 5], [6, 9], [8, 9]);
var m_2 = new Array([0, 0, 0, 0, 0, 30, 4, 4, 4, 29, 0, 0, 0, 0, 0], [0, 0, 0, 0, 31, 45, 51, 51, 51, 44, 33, 0, 0, 0, 0], [0, 0, 0, 0, 1, 51, 51, 51, 51, 51, 2, 0, 0, 0, 0], [0, 0, 0, 0, 1, 51, 51, 51, 51, 51, 2, 0, 0, 0, 0], [0, 30, 4, 4, 7, 51, 51, 51, 51, 51, 8, 4, 4, 29, 0], [31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 44, 33], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [1, 51, 51, 51, 51, 10, 13, 13, 13, 9, 51, 51, 51, 51, 2], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 43, 34], [0, 28, 3, 3, 5, 51, 51, 51, 51, 51, 6, 3, 3, 27, 0], [0, 0, 0, 0, 1, 51, 51, 51, 51, 51, 2, 0, 0, 0, 0], [0, 0, 0, 0, 1, 51, 51, 51, 51, 51, 2, 0, 0, 0, 0], [0, 0, 0, 0, 32, 42, 51, 51, 51, 43, 34, 0, 0, 0, 0], [0, 0, 0, 0, 0, 28, 3, 3, 3, 27, 0, 0, 0, 0, 0]);
var p_pos_2 = new Array(7, 13);
var e1_pos_2 = new Array([5, 3, 2], [7, 4, 2], [5, 10, 2], [7, 11, 2]);
var e5_pos_2 = new Array([2, 7], [3, 7], [11, 7], [12, 7]);
var mh_pos_2 = new Array(7, 1);
var ch_pos_2 = new Array([1, 6], [1, 7], [1, 8], [13, 6], [13, 7], [13, 8]);
var m_3 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 30, 4, 4, 4, 4, 4, 4, 4, 29, 0, 0, 0], [0, 0, 31, 45, 51, 51, 51, 51, 51, 51, 51, 44, 33, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 32, 42, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0, 0], [0, 0, 0, 28, 3, 3, 3, 3, 3, 3, 3, 27, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var p_pos_3 = new Array(3, 3);
var mh_pos_3 = new Array(8, 11);
var e5_pos_3 = new Array([4, 3], [5, 3], [6, 3], [6, 4], [8, 4], [9, 4], [10, 4], [3, 5], [4, 5], [6, 5], [8, 5], [3, 6], [6, 6], [8, 6], [10, 6], [11, 6], [3, 7], [5, 7], [6, 7], [8, 7], [3, 8], [5, 8], [8, 8], [9, 8], [10, 8], [3, 9], [5, 9], [7, 9], [8, 9], [3, 10], [7, 10], [10, 10], [11, 10], [3, 11], [4, 11], [5, 11], [6, 11], [7, 11], [9, 11], [10, 11], [11, 11]);
var m_4 = new Array([0, 30, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 29, 0], [31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 44, 33], [1, 51, 6, 3, 3, 3, 5, 51, 6, 3, 3, 3, 5, 51, 2], [1, 51, 2, 0, 0, 0, 1, 51, 2, 0, 0, 0, 1, 51, 2], [1, 51, 2, 0, 0, 0, 1, 51, 2, 0, 0, 0, 1, 51, 2], [1, 51, 2, 0, 0, 0, 1, 51, 2, 0, 0, 0, 1, 51, 2], [1, 51, 8, 4, 4, 4, 7, 51, 8, 4, 4, 4, 7, 51, 2], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [1, 51, 6, 3, 3, 3, 5, 51, 6, 3, 3, 3, 5, 51, 2], [1, 51, 2, 0, 0, 0, 1, 51, 2, 0, 0, 0, 1, 51, 2], [1, 51, 2, 0, 0, 0, 1, 51, 2, 0, 0, 0, 1, 51, 2], [1, 51, 2, 0, 0, 0, 1, 51, 2, 0, 0, 0, 1, 51, 2], [1, 51, 8, 4, 4, 4, 7, 51, 8, 4, 4, 4, 7, 51, 2], [32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 43, 34], [0, 28, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 27, 0]);
var mh_pos_4 = new Array(7, 7);
var p_pos_4 = new Array(7, 7);
var ch_pos_4 = new Array([1, 1], [13, 13], [1, 13], [13, 1]);
var e4_pos_4 = new Array([1, 1, 0, 2], [7, 1, -2, 0], [1, 13, 2, 0], [1, 7, 0, 2], [13, 1, -2, 0], [13, 7, 0, -2], [13, 13, 0, -2], [7, 13, 2, 0]);
var m_5 = new Array([0, 30, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 29, 0], [31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 44, 33], [32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [0, 28, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 51, 2], [0, 30, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 7, 51, 2], [31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 43, 34], [0, 28, 3, 3, 5, 51, 6, 3, 3, 3, 3, 3, 3, 27, 0], [0, 0, 0, 30, 7, 51, 8, 29, 0, 0, 0, 0, 0, 0, 0], [0, 0, 31, 45, 51, 51, 51, 44, 33, 0, 0, 0, 0, 0, 0], [0, 0, 32, 42, 51, 51, 51, 43, 34, 0, 0, 0, 0, 0, 0], [0, 0, 0, 15, 9, 51, 10, 16, 0, 0, 0, 0, 0, 0, 0], [0, 0, 31, 45, 51, 51, 51, 44, 33, 0, 0, 0, 0, 0, 0], [0, 0, 32, 42, 51, 51, 51, 43, 34, 0, 0, 0, 0, 0, 0], [0, 0, 0, 28, 3, 3, 3, 27, 0, 0, 0, 0, 0, 0, 0]);
var mh_pos_5 = new Array(1, 1);
var p_pos_5 = new Array(5, 13);
var ch_pos_5 = new Array([1, 5], [2, 5], [1, 6], [2, 6], [7, 1], [7, 2]);
var e1_pos_5 = new Array([1, 5, 2.5], [1, 6, 2.5], [1, 1, 3], [13, 2, -3]);
var e4_pos_5 = new Array([3, 9, 0, 2], [7, 10, 0, -2]);
var m_6 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 30, 4, 4, 4, 4, 4, 4, 4, 4, 4, 29, 0, 0, 0], [31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 44, 33, 0, 0], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 8, 29, 0], [0, 15, 13, 13, 13, 13, 13, 13, 13, 13, 9, 51, 51, 46, 40], [31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 6, 27, 0], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0, 0], [0, 28, 3, 3, 3, 3, 3, 3, 3, 3, 3, 27, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var mh_pos_6 = new Array(13, 7);
var p_pos_6 = new Array(13, 7);
var e1_pos_6 = new Array([11, 2, -2], [11, 3, -2], [11, 4, -2], [11, 5, -2], [11, 6, -2], [11, 8, -2], [11, 9, -2], [11, 10, -2], [11, 11, -2], [11, 12, -2]);
var ch_pos_6 = new Array([7, 2], [7, 12], [2, 6], [2, 8]);
var m_7 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 30, 4, 4, 4, 4, 4, 4, 4, 29, 0, 0, 0], [0, 0, 31, 45, 51, 51, 51, 51, 51, 51, 51, 44, 33, 0, 0], [0, 30, 7, 51, 51, 51, 51, 51, 51, 51, 51, 51, 8, 29, 0], [31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 44, 33], [1, 51, 51, 51, 51, 51, 51, 41, 51, 51, 51, 51, 51, 51, 2], [32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 43, 34], [0, 28, 5, 51, 51, 51, 51, 51, 51, 51, 51, 51, 6, 27, 0], [0, 0, 32, 42, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0, 0], [0, 0, 0, 28, 3, 3, 3, 3, 3, 3, 3, 27, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var p_pos_7 = new Array(13, 7);
var mh_pos_7 = new Array(13, 7);
var ch_pos_7 = new Array([1, 6], [2, 6], [1, 7], [2, 7], [1, 8], [2, 8]);
var e2_pos_7 = new Array([3, 4, 2], [5, 4, 2], [9, 4, 2], [11, 4, 2], [4, 10, -2], [6, 10, -2], [8, 10, -2], [10, 10, -2]);
var m_8 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 30, 4, 29, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 31, 45, 51, 44, 33, 0, 0, 0, 0, 0], [0, 0, 0, 30, 4, 7, 51, 51, 51, 8, 4, 29, 0, 0, 0], [0, 0, 31, 45, 51, 51, 51, 51, 51, 51, 51, 44, 33, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 32, 42, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0, 0], [0, 0, 0, 28, 3, 5, 51, 51, 51, 6, 3, 27, 0, 0, 0], [0, 0, 0, 0, 0, 32, 42, 51, 43, 34, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 28, 3, 27, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var p_pos_8 = new Array(7, 12);
var mh_pos_8 = new Array(7, 2);
var ch_pos_8 = new Array([7, 10], [7, 9], [7, 8], [7, 7], [7, 6], [7, 5], [7, 4]);
var e1_pos_8 = new Array([3, 4, 2.75], [4, 5, 2.75], [5, 6, 2.75], [6, 7, 2.75], [7, 8, 2.75], [8, 9, 2.75], [9, 10, 2.75], [9, 4, -2.75], [8, 5, -2.75], [7, 6, -2.75], [6, 7, -2.75], [5, 8, -2.75], [4, 9, -2.75], [3, 10, -2.75]);
var m_9 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 30, 4, 4, 4, 4, 4, 4, 4, 4, 4, 29, 0, 0], [0, 31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 44, 33, 0], [0, 1, 51, 6, 3, 3, 3, 3, 3, 3, 3, 5, 51, 2, 0], [0, 1, 51, 2, 0, 30, 4, 4, 4, 29, 0, 1, 51, 2, 0], [0, 1, 51, 2, 31, 45, 51, 51, 51, 44, 33, 1, 51, 2, 0], [0, 1, 51, 2, 1, 51, 51, 51, 51, 51, 2, 1, 51, 2, 0], [0, 1, 51, 2, 1, 51, 51, 51, 51, 51, 2, 1, 51, 2, 0], [0, 1, 51, 2, 1, 51, 51, 51, 51, 51, 2, 1, 51, 2, 0], [0, 1, 51, 2, 32, 42, 51, 51, 51, 43, 34, 1, 51, 2, 0], [0, 1, 51, 2, 0, 28, 5, 51, 6, 27, 0, 1, 51, 2, 0], [0, 1, 51, 8, 4, 4, 7, 51, 8, 4, 4, 7, 51, 2, 0], [0, 32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0], [0, 0, 28, 3, 3, 3, 3, 3, 3, 3, 3, 3, 27, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var e5_pos_9 = new Array([6, 6], [8, 6], [6, 7], [8, 7], [6, 8], [7, 8], [8, 8]);
var p_pos_9 = new Array(7, 7);
var mh_pos_9 = new Array(7, 7);
var ch_pos_9 = new Array([2, 2], [12, 2], [12, 12], [2, 12], [5, 5], [5, 9], [9, 5], [9, 9]);
var e1_pos_9 = new Array([5, 5, 2.5], [9, 9, -2.5]);
var e3_pos_9 = new Array([2, 2, 2.5, 0], [12, 2, 0, -2.5], [12, 12, -2.5, 0], [2, 12, -2.5, 0]);
var m_10 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 39, 0, 30, 4, 4, 4, 4, 4, 29, 0, 0, 0], [0, 0, 31, 48, 38, 45, 51, 51, 51, 51, 51, 44, 33, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 41, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 41, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 32, 42, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0, 0], [0, 0, 0, 28, 3, 3, 3, 3, 3, 3, 3, 27, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var p_pos_10 = new Array(3, 3);
var mh_pos_10 = new Array(11, 11);
var ch_pos_10 = new Array([5, 3], [11, 3]);
var e1_pos_10 = new Array([11, 3, -2.5], [5, 6, 3], [5, 8, 3]);
var e5_pos_10 = new Array([4, 4], [5, 4], [6, 4], [8, 4], [10, 4], [11, 4], [4, 5], [5, 5], [6, 5], [8, 5], [11, 5], [8, 6], [9, 6], [11, 6], [4, 7], [6, 7], [7, 7], [8, 7], [11, 7], [7, 8], [10, 8], [11, 8], [4, 9], [5, 9], [7, 9], [9, 9], [10, 9], [11, 9], [4, 10], [7, 10], [6, 11], [7, 11], [8, 11], [9, 11], [10, 11]);
var m_11 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 30, 4, 4, 4, 4, 4, 4, 4, 29, 0, 0, 0], [0, 0, 31, 45, 51, 51, 51, 51, 51, 51, 51, 44, 33, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 32, 42, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0, 0], [0, 0, 0, 28, 3, 3, 3, 3, 3, 3, 3, 27, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var p_pos_11 = new Array(11, 6);
var mh_pos_11 = new Array(11, 6);
var ch_pos_11 = new Array([3, 6], [7, 6]);
var e2_pos_11 = new Array([3, 6, 2], [4, 8, -2], [5, 6, 2], [6, 8, -2], [7, 6, 2], [8, 8, -2], [9, 6, 2], [10, 8, -2]);
var e5_pos_11 = new Array([3, 7], [4, 7], [5, 7], [6, 7], [7, 7], [8, 7], [9, 7], [10, 7], [11, 7], [3, 8], [4, 8], [5, 8], [6, 8], [7, 8], [8, 8], [9, 8], [10, 8], [11, 8]);
var m_12 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 30, 4, 4, 4, 4, 4, 4, 4, 4, 4, 29, 0, 0], [0, 31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 44, 33, 0], [0, 1, 51, 41, 51, 41, 51, 41, 51, 41, 51, 41, 51, 2, 0], [0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0], [0, 1, 51, 41, 51, 41, 51, 41, 51, 41, 51, 41, 51, 2, 0], [0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0], [0, 1, 51, 41, 51, 41, 51, 51, 51, 41, 51, 41, 51, 2, 0], [0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0], [0, 1, 51, 41, 51, 41, 51, 41, 51, 41, 51, 41, 51, 2, 0], [0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0], [0, 1, 51, 41, 51, 41, 51, 41, 51, 41, 51, 41, 51, 2, 0], [0, 32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0], [0, 0, 28, 3, 3, 3, 3, 3, 3, 3, 3, 3, 27, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var p_pos_12 = new Array(7, 7);
var mh_pos_12 = new Array(7, 7);
var ch_pos_12 = new Array([2, 2], [4, 4], [6, 6], [8, 8], [6, 8], [8, 6], [12, 12], [10, 10], [2, 12], [4, 10], [12, 2], [10, 4]);
var e2_pos_12 = new Array([2, 2, 2.5], [2, 12, -2.5], [4, 2, 2.5], [4, 12, -2.5], [6, 2, 2.5], [6, 12, -2.5], [8, 2, 2.5], [8, 12, -2.5], [10, 2, 2.5], [10, 12, -2.5], [12, 2, 2.5], [12, 12, -2.5]);
var m_13 = new Array([0, 30, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 29, 0], [31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 44, 33], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2], [32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 43, 34], [0, 28, 3, 3, 3, 3, 3, 3, 3, 3, 5, 51, 10, 16, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 42, 51, 46, 40], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 3, 27, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var p_pos_13 = new Array(13, 12);
var mh_pos_13 = new Array(13, 12);
var ch_pos_13 = new Array([5, 1], [7, 7], [1, 8], [1, 1], [13, 5], [11, 3], [10, 9]);
var e1_pos_13 = new Array([4, 1, -1.5], [10, 1, 3], [3, 3, -2.75], [11, 5, 1], [12, 6, 2], [1, 8, 2], [11, 9, 3]);
var e2_pos_13 = new Array([1, 1, 1.5], [2, 7, -3], [4, 9, 2], [8, 10, 1.5], [9, 1, -2], [12, 6, -2], [8, 4, 4]);
var e5_pos_13 = new Array([5, 2], [4, 1], [6, 9], [12, 6], [3, 7], [10, 4], [9, 6], [10, 8]);
var m_14 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 30, 4, 4, 4, 4, 4, 4, 4, 4, 4, 29, 0, 0], [0, 31, 45, 51, 51, 51, 51, 51, 51, 51, 51, 51, 44, 33, 0], [0, 1, 51, 51, 41, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0], [0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 41, 51, 2, 0], [0, 1, 51, 51, 51, 51, 51, 41, 51, 51, 51, 51, 51, 2, 0], [0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0], [0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0], [0, 1, 51, 41, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0], [0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 41, 51, 51, 2, 0], [0, 32, 42, 51, 51, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0], [0, 0, 28, 3, 3, 3, 3, 3, 3, 3, 3, 3, 27, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var p_pos_14 = new Array(7, 4);
var mh_pos_14 = new Array(7, 11);
var e2_pos_14 = new Array([7, 7, 2]);
var e3_pos_14 = new Array([4, 5, 2, 0], [10, 5, 0, 2], [10, 9, -2, 0], [4, 10, 0, -2], [2, 3, 2.25, 0], [12, 3, 0, 2.25], [2, 11, 0, -2.25], [12, 11, -2.25, 0]);
var ch_pos_14 = new Array([2, 3], [12, 3], [12, 11], [2, 11], [4, 5], [10, 5], [10, 9], [4, 9], [6, 7], [8, 7]);
var e5_pos_14 = new Array([3, 4], [5, 4], [6, 4], [8, 4], [9, 4], [10, 4], [11, 4], [3, 5], [3, 6], [5, 6], [6, 6], [8, 6], [9, 6], [11, 6], [3, 7], [5, 7], [9, 7], [11, 7], [3, 8], [5, 8], [6, 8], [8, 8], [9, 8], [11, 8], [11, 9], [3, 10], [4, 10], [5, 10], [6, 10], [7, 10], [8, 10], [9, 10], [11, 10]);
var m_15 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 30, 4, 4, 4, 4, 4, 4, 4, 29, 0, 0, 0], [0, 0, 31, 45, 51, 51, 51, 51, 51, 51, 51, 44, 33, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 1, 51, 51, 51, 51, 51, 51, 51, 51, 51, 2, 0, 0], [0, 0, 32, 42, 51, 51, 51, 51, 51, 51, 51, 43, 34, 0, 0], [0, 0, 0, 28, 3, 3, 3, 3, 3, 3, 3, 27, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
var p_pos_15 = new Array(11, 11);
var mh_pos_15 = new Array(7, 7);
var ch_pos_15 = new Array([3, 3], [3, 11], [11, 3], [5, 9], [5, 5], [7, 9]);
var e5_pos_15 = new Array([4, 4], [5, 4], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [4, 5], [10, 5], [4, 6], [6, 6], [7, 6], [8, 6], [10, 6], [4, 7], [6, 7], [8, 7], [10, 7], [4, 8], [6, 8], [8, 8], [10, 8], [4, 9], [8, 9], [10, 9], [4, 10], [5, 10], [6, 10], [7, 10], [8, 10], [10, 10], [10, 11]);
var e1_pos_15 = new Array([3, 11, 0.5], [11, 10, -2], [3, 9, 2], [11, 8, -2], [3, 7, 2], [11, 6, -2], [3, 5, 0.5], [11, 4, -2]);
var e2_pos_15 = new Array([4, 3, 2], [6, 3, 2], [7, 11, -2], [8, 3, 2], [10, 3, 2]);
if ((current_m == undefined) && (current_l_num == undefined)) {
var current_l_num = 1;
var current_m = m_1;
}
intro = ("CLICK TO TRY LEVEL " + current_l_num) + "!";
Frame 6
build_m();
write_texts();
_quality = "best";
Instance of Symbol 96 MovieClip [empty] in Frame 6
onClipEvent (enterFrame) {
var a = 0;
while (a < _root["e1_pos_" + _root.current_l_num].length) {
var right = Math.floor(((_root.c["e1_" + a]._x + (_root.c["e1_" + a]._width / 2)) + 5) / _root.t_size);
var left = Math.floor(((_root.c["e1_" + a]._x - (_root.c["e1_" + a]._width / 2)) - 5) / _root.t_size);
var x_center = Math.floor(_root.c["e1_" + a]._x / _root.t_size);
var y_center = Math.floor(_root.c["e1_" + a]._y / _root.t_size);
_root.c["e1_" + a]._x = _root.c["e1_" + a]._x + _root["e1_pos_" + _root.current_l_num][a][2];
if ((_root["e1_pos_" + _root.current_l_num][a][2] > 0) && (_root.current_m[y_center][right] < 42)) {
_root["e1_pos_" + _root.current_l_num][a][2] = _root["e1_pos_" + _root.current_l_num][a][2] * -1;
} else if ((_root["e1_pos_" + _root.current_l_num][a][2] < 0) && (_root.current_m[y_center][left] < 42)) {
_root["e1_pos_" + _root.current_l_num][a][2] = _root["e1_pos_" + _root.current_l_num][a][2] * -1;
}
if (_root.c["e1_" + a].hitTest(_root.c.p) && (_root.p_action != "win")) {
_root.s.gotoAndStop("die");
_root.p_action = "die";
_root.c.p.play();
}
if (_root["e1_pos_" + _root.current_l_num][a][2] > 0) {
_root.c["e1_" + a].gotoAndStop("right");
} else if (_root["e1_pos_" + _root.current_l_num][a][2] < 0) {
_root.c["e1_" + a].gotoAndStop("left");
}
a++;
}
var a = 0;
while (a < _root["e2_pos_" + _root.current_l_num].length) {
var top = Math.floor(((_root.c["e2_" + a]._y - (_root.c["e2_" + a]._height / 2)) - 5) / _root.t_size);
var bottom = Math.floor(((_root.c["e2_" + a]._y + (_root.c["e2_" + a]._height / 2)) + 5) / _root.t_size);
var x_center = Math.floor(_root.c["e2_" + a]._x / _root.t_size);
var y_center = Math.floor(_root.c["e2_" + a]._y / _root.t_size);
_root.c["e2_" + a]._y = _root.c["e2_" + a]._y + _root["e2_pos_" + _root.current_l_num][a][2];
if ((_root["e2_pos_" + _root.current_l_num][a][2] < 0) && (_root.current_m[top][x_center] < 42)) {
_root["e2_pos_" + _root.current_l_num][a][2] = _root["e2_pos_" + _root.current_l_num][a][2] * -1;
} else if ((_root["e2_pos_" + _root.current_l_num][a][2] > 0) && (_root.current_m[bottom][x_center] < 42)) {
_root["e2_pos_" + _root.current_l_num][a][2] = _root["e2_pos_" + _root.current_l_num][a][2] * -1;
}
if (_root.c["e2_" + a].hitTest(_root.c.p) && (_root.p_action != "win")) {
_root.s.gotoAndStop("die");
_root.p_action = "die";
_root.c.p.play();
}
if (_root["e2_pos_" + _root.current_l_num][a][2] > 0) {
_root.c["e2_" + a].gotoAndStop("down");
} else if (_root["e2_pos_" + _root.current_l_num][a][2] < 0) {
_root.c["e2_" + a].gotoAndStop("up");
}
a++;
}
var a = 0;
while (a < _root["e3_pos_" + _root.current_l_num].length) {
var top = Math.floor(((_root.c["e3_" + a]._y - (_root.c["e3_" + a]._height / 2)) - 5) / _root.t_size);
var bottom = Math.floor(((_root.c["e3_" + a]._y + (_root.c["e3_" + a]._height / 2)) + 5) / _root.t_size);
var right = Math.floor(((_root.c["e3_" + a]._x + (_root.c["e3_" + a]._width / 2)) + 5) / _root.t_size);
var left = Math.floor(((_root.c["e3_" + a]._x - (_root.c["e3_" + a]._width / 2)) - 5) / _root.t_size);
var x_center = Math.floor(_root.c["e3_" + a]._x / _root.t_size);
var y_center = Math.floor(_root.c["e3_" + a]._y / _root.t_size);
_root.c["e3_" + a]._x = _root.c["e3_" + a]._x + _root["e3_pos_" + _root.current_l_num][a][2];
_root.c["e3_" + a]._y = _root.c["e3_" + a]._y + _root["e3_pos_" + _root.current_l_num][a][3];
if ((_root["e3_pos_" + _root.current_l_num][a][2] > 0) && (_root.current_m[y_center][right] < 42)) {
_root["e3_pos_" + _root.current_l_num][a][3] = _root["e3_pos_" + _root.current_l_num][a][2];
_root["e3_pos_" + _root.current_l_num][a][2] = 0;
} else if ((_root["e3_pos_" + _root.current_l_num][a][2] < 0) && (_root.current_m[y_center][left] < 42)) {
_root["e3_pos_" + _root.current_l_num][a][3] = _root["e3_pos_" + _root.current_l_num][a][2];
_root["e3_pos_" + _root.current_l_num][a][2] = 0;
} else if ((_root["e3_pos_" + _root.current_l_num][a][3] < 0) && (_root.current_m[top][x_center] < 42)) {
_root["e3_pos_" + _root.current_l_num][a][2] = _root["e3_pos_" + _root.current_l_num][a][3] * -1;
_root["e3_pos_" + _root.current_l_num][a][3] = 0;
} else if ((_root["e3_pos_" + _root.current_l_num][a][3] > 0) && (_root.current_m[bottom][x_center] < 42)) {
_root["e3_pos_" + _root.current_l_num][a][2] = _root["e3_pos_" + _root.current_l_num][a][3] * -1;
_root["e3_pos_" + _root.current_l_num][a][3] = 0;
}
if (_root.c["e3_" + a].hitTest(_root.c.p) && (_root.p_action != "win")) {
_root.s.gotoAndStop("die");
_root.p_action = "die";
_root.c.p.play();
}
if (_root["e3_pos_" + _root.current_l_num][a][2] > 0) {
_root.c["e3_" + a].gotoAndStop("right");
} else if (_root["e3_pos_" + _root.current_l_num][a][2] < 0) {
_root.c["e3_" + a].gotoAndStop("left");
} else if (_root["e3_pos_" + _root.current_l_num][a][3] > 0) {
_root.c["e3_" + a].gotoAndStop("down");
} else if (_root["e3_pos_" + _root.current_l_num][a][3] < 0) {
_root.c["e3_" + a].gotoAndStop("up");
}
a++;
}
var a = 0;
while (a < _root["e4_pos_" + _root.current_l_num].length) {
var top = Math.floor(((_root.c["e4_" + a]._y - (_root.c["e4_" + a]._height / 2)) - 5) / _root.t_size);
var bottom = Math.floor(((_root.c["e4_" + a]._y + (_root.c["e4_" + a]._height / 2)) + 5) / _root.t_size);
var right = Math.floor(((_root.c["e4_" + a]._x + (_root.c["e4_" + a]._width / 2)) + 5) / _root.t_size);
var left = Math.floor(((_root.c["e4_" + a]._x - (_root.c["e4_" + a]._width / 2)) - 5) / _root.t_size);
var x_center = Math.floor(_root.c["e4_" + a]._x / _root.t_size);
var y_center = Math.floor(_root.c["e4_" + a]._y / _root.t_size);
_root.c["e4_" + a]._x = _root.c["e4_" + a]._x + _root["e4_pos_" + _root.current_l_num][a][2];
_root.c["e4_" + a]._y = _root.c["e4_" + a]._y + _root["e4_pos_" + _root.current_l_num][a][3];
if ((_root["e4_pos_" + _root.current_l_num][a][2] > 0) && (_root.current_m[y_center][right] < 42)) {
_root["e4_pos_" + _root.current_l_num][a][3] = _root["e4_pos_" + _root.current_l_num][a][2] * -1;
_root["e4_pos_" + _root.current_l_num][a][2] = 0;
} else if ((_root["e4_pos_" + _root.current_l_num][a][2] < 0) && (_root.current_m[y_center][left] < 42)) {
_root["e4_pos_" + _root.current_l_num][a][3] = _root["e4_pos_" + _root.current_l_num][a][2] * -1;
_root["e4_pos_" + _root.current_l_num][a][2] = 0;
} else if ((_root["e4_pos_" + _root.current_l_num][a][3] < 0) && (_root.current_m[top][x_center] < 42)) {
_root["e4_pos_" + _root.current_l_num][a][2] = _root["e4_pos_" + _root.current_l_num][a][3];
_root["e4_pos_" + _root.current_l_num][a][3] = 0;
} else if ((_root["e4_pos_" + _root.current_l_num][a][3] > 0) && (_root.current_m[bottom][x_center] < 42)) {
_root["e4_pos_" + _root.current_l_num][a][2] = _root["e4_pos_" + _root.current_l_num][a][3];
_root["e4_pos_" + _root.current_l_num][a][3] = 0;
}
if (_root.c["e4_" + a].hitTest(_root.c.p) && (_root.p_action != "win")) {
_root.s.gotoAndStop("die");
_root.p_action = "die";
_root.c.p.play();
}
if (_root["e4_pos_" + _root.current_l_num][a][2] > 0) {
_root.c["e4_" + a].gotoAndStop("right");
} else if (_root["e4_pos_" + _root.current_l_num][a][2] < 0) {
_root.c["e4_" + a].gotoAndStop("left");
} else if (_root["e4_pos_" + _root.current_l_num][a][3] > 0) {
_root.c["e4_" + a].gotoAndStop("down");
} else if (_root["e4_pos_" + _root.current_l_num][a][3] < 0) {
_root.c["e4_" + a].gotoAndStop("up");
}
a++;
}
var a = 0;
while (a < _root["e5_pos_" + _root.current_l_num].length) {
if (_root.c["e5_" + a].hitTest(_root.c.p) && (_root.p_action != "win")) {
_root.s.gotoAndStop("die");
_root.p_action = "die";
_root.c.p.play();
}
a++;
}
}
Frame 7
_root.ch_amt = 0;
_root.current_l_num = 1;
_root.current_m_num = 1;
_root.current_m = _root.m_1_1;
Symbol 66 MovieClip Frame 1
stop();
Symbol 67 MovieClip [p] Frame 1
stop();
Instance of Symbol 66 MovieClip "movement" in Symbol 67 MovieClip [p] Frame 1
onClipEvent (load) {
var speed = 2;
var dir = "stand";
}
onClipEvent (enterFrame) {
var right = Math.floor((_root.c.p._x + (_root.c.p._width / 2)) / _root.t_size);
var left = Math.floor((_root.c.p._x - (_root.c.p._width / 2)) / _root.t_size);
var top = Math.floor((_root.c.p._y - (_root.c.p._height / 2)) / _root.t_size);
var bottom = Math.floor((_root.c.p._y + (_root.c.p._height / 2)) / _root.t_size);
var x_center = Math.floor(_root.c.p._x / _root.t_size);
var y_center = Math.floor(_root.c.p._y / _root.t_size);
if (Key.isDown(39)) {
dir = "right";
} else if (Key.isDown(37)) {
dir = "left";
} else if (Key.isDown(38)) {
dir = "up";
} else if (Key.isDown(40)) {
dir = "down";
} else {
dir = "front";
}
this.gotoAndStop(dir);
if ((dir == "right") && (_root.current_m[y_center][right] >= 42)) {
_root.c.p._x = _root.c.p._x + speed;
} else if ((dir == "left") && (_root.current_m[y_center][left] >= 42)) {
_root.c.p._x = _root.c.p._x - speed;
} else if ((dir == "up") && (_root.current_m[top][x_center] >= 42)) {
_root.c.p._y = _root.c.p._y - speed;
} else if ((dir == "down") && (_root.current_m[bottom][x_center] >= 42)) {
_root.c.p._y = _root.c.p._y + speed;
}
var a = 0;
while (a < _root["ch_pos_" + _root.current_l_num].length) {
if (_root.c.p.hitTest(_root.c["ch_" + a])) {
_root.s.gotoAndPlay("cheese");
_root.ch_amt++;
_root.write_texts();
removeMovieClip(_root.c["ch_" + a]);
}
a++;
}
if (_root.c.p.hitTest(_root.c.mh)) {
if (_root["ch_pos_" + _root.current_l_num].length != undefined) {
if (_root.ch_amt == _root["ch_pos_" + _root.current_l_num].length) {
_root.s.gotoAndStop("win");
_root.p_action = "win";
_root.c.p.play();
}
} else {
_root.s.gotoAndStop("win");
_root.p_action = "win";
_root.c.p.play();
}
}
}
Symbol 67 MovieClip [p] Frame 20
if (_root.p_action == "die") {
_root.die();
} else if (_root.p_action == "win") {
_root.win();
}
Symbol 128 Button
on (press) {
getURL ("http://www.snubbyland.com/", "_blank");
}
Symbol 138 Button
on (press) {
_root.s.gotoAndPlay("menu");
_root.gotoAndStop("inst");
}
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 4
this.gotoAndStop(1);
Symbol 143 MovieClip Frame 7
this.gotoAndStop(1);
Symbol 147 Button
on (press) {
_root.s.gotoAndPlay("menu");
_root.gotoAndStop("menu");
}
Symbol 155 Button
on (press) {
_root.s.gotoAndPlay("menu");
_root.gotoAndStop("pregame");
}
Symbol 158 Button
on (press) {
_root.s.gotoAndPlay("menu");
_root.current_l_num = 1;
_root.cheese_amt = 0;
_root.current_m = m_1;
_root.break_m();
_root.gotoAndStop("menu");
}
Symbol 161 Button
on (press) {
if (_root.current_l_num < _root.total_l) {
_root.current_l_num++;
_root.current_m = _root["m_" + _root.current_l_num];
_root.intro = ("CLICK TO TRY LEVEL " + _root.current_l_num) + "!";
if (_root.current_l_num == _root.total_l) {
_root.sb._y = -28;
}
}
}
Symbol 162 Button
on (press) {
_root.s.gotoAndPlay("menu");
_root.gotoAndStop("game");
}
Symbol 165 Button
on (press) {
_root.s.gotoAndPlay("menu");
_root.current_l_num = 1;
_root.cheese_amt = 0;
_root.current_m = m_1;
_root.gotoAndStop("menu");
}
Symbol 170 Button
on (press) {
_root.s.gotoAndPlay("menu");
_root.current_l_num = 1;
_root.cheese_amt = 0;
_root.current_m = m_1;
_root.gotoAndStop("menu");
}