Frame 1
function CN_Game_Object() {
this.timedScreenArray = new Array();
this.depth_i = 0;
this.offScreenOffset = 700;
this.curScreen = null;
}
function CN_Timer(screen, parent, endTime) {
this.screen = screen;
this.mc = screen.mc.timer;
this.parent = parent;
this.mc.caller = this;
this.endTime = endTime * 1000;
this.active = false;
}
CN_Game_Object.prototype.Continue = function () {
if (this.curScreen != null) {
this.RemoveScreen(this.curScreen);
}
if (this.timedScreenArray.length == 0) {
gotoAndStop (7);
} else {
this.curScreen = this.timedScreenArray.shift();
this.ShowScreen(this.curScreen);
gotoAndStop (6);
}
};
CN_Game_Object.prototype.ExternalGraphicsAreLoaded = function () {
var allLoaded = true;
var i = 0;
while (i < this.timedScreenArray.length) {
if (!this.timedScreenArray[i].isLoaded) {
allLoaded = false;
break;
}
i++;
}
return(allLoaded);
};
CN_Game_Object.prototype.GetExternalParameters = function () {
if (_root.sw1 != null) {
this.timedScreenArray[0] = new Object();
this.timedScreenArray[0].path = _root.sw1;
this.timedScreenArray[0].duration = _root.sw2;
this.timedScreenArray[0].link = _root.sw4;
}
if (_root.sw5 == 1) {
var array_i = this.timedScreenArray.length;
this.timedScreenArray[array_i] = new Object();
if (_root.sw5 != 1) {
this.timedScreenArray[array_i].path = _root.sw5;
} else {
this.timedScreenArray[array_i].path = "orbitPowered/orbitPowered.swf";
}
if (_root.sw6 != null) {
this.timedScreenArray[array_i].duration = _root.sw6;
} else {
this.timedScreenArray[array_i].duration = "3";
}
if (_root.sw7 != null) {
this.timedScreenArray[array_i].link = _root.sw7;
} else {
this.timedScreenArray[array_i].link = null;
}
}
var array_i = this.timedScreenArray.length;
var next_i = 8;
while (_root["sw" + next_i] != null) {
this.timedScreenArray[array_i] = new Object();
this.timedScreenArray[array_i].path = _root["sw" + next_i];
if (_root.sw6 != null) {
this.timedScreenArray[array_i].duration = _root["sw" + (++next_i)];
} else {
this.timedScreenArray[array_i].duration = "5";
}
if (_root.sw7 != null) {
this.timedScreenArray[array_i].link = _root["sw" + (++next_i)];
} else {
this.timedScreenArray[array_i].link = null;
}
array_i++;
next_i++;
}
};
CN_Game_Object.prototype.LaunchOrbitPopup = function () {
if (_root.sw5 == 1) {
getURL ("javascript:popupOrbitCode( )");
}
};
CN_Game_Object.prototype.LoadExternalGraphic = function (screen, depth) {
_root.attachMovie("externalFileHolder", "holder" + depth, depth);
screen.mc = _root["holder" + depth];
screen.mc.caller = screen;
screen.mc.slot.loadMovie(screen.path);
};
CN_Game_Object.prototype.MainMovieIsLoaded = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
return(true);
}
return(false);
};
CN_Game_Object.prototype.PreloadExternalGraphics = function () {
var i = 0;
while (i < this.timedScreenArray.length) {
this.LoadExternalGraphic(this.timedScreenArray[i], i + 1);
this.timedScreenArray[i].mc._x = this.offScreenOffset;
i++;
}
};
CN_Game_Object.prototype.RemoveScreen = function (screen) {
screen.mc.slot.unloadMovie();
screen.mc.removeMovieClip();
delete screen;
};
CN_Game_Object.prototype.ShowScreen = function (screen) {
screen.mc._x = 0;
screen.mc._y = 0;
screen.timer = new CN_Timer(screen, this, screen.duration);
screen.timer.Start();
};
CN_Game_Object.prototype.toString = function () {
return("CN_Game_Object");
};
CN_Timer.prototype.Start = function () {
this.active = true;
this.startTime = getTimer();
};
CN_Timer.prototype.Tick = function () {
if ((getTimer() - this.startTime) >= this.endTime) {
_root.EndTimerAdapter(this.parent);
this.active = false;
}
};
CN_Timer.prototype.toString = function () {
return("CN_Timer");
};
EndTimerAdapter = function (parent) {
parent.Continue();
};
myGameObject = new CN_Game_Object();
_quality = "low";
loadVariablesNum ("courage_maps/level1.crg", 0);
loadVariablesNum ("courage_maps/level2.crg", 0);
loadVariablesNum ("courage_maps/level3.crg", 0);
loadVariablesNum ("courage_maps/level4.crg", 0);
loadVariablesNum ("courage_maps/level5.crg", 0);
loadVariablesNum ("courage_maps/level6.crg", 0);
Instance of Symbol 14 MovieClip in Frame 1
onClipEvent (enterFrame) {
total = _root.getBytesTotal();
loads = _root.getBytesLoaded();
percent = int(loads / (total / 17));
this.gotoAndStop(percent);
}
Frame 2
play();
Frame 3
if (myGameObject.MainMovieIsLoaded() && (my_ready == true)) {
myGameObject.GetExternalParameters();
myGameObject.PreloadExternalGraphics();
play();
} else {
prevFrame();
}
Frame 4
play();
Frame 5
if (myGameObject.ExternalGraphicsAreLoaded()) {
_root.myGameObject.Continue();
} else {
prevFrame();
}
Frame 7
stop();
Instance of Symbol 557 MovieClip "display" in Frame 7
onClipEvent (load) {
this.swapDepths(9000);
}
Instance of Symbol 559 MovieClip "script" in Frame 7
onClipEvent (load) {
function reset() {
_root.display.snow_left = 50;
controls = false;
map_num = 1;
stop_me = true;
tile_legal = 999;
_root.courage._visible = 0;
_root.shadow.gotoAndStop(2);
_root.display.gotoAndStop(1);
_root.display._y = -86;
_root.menu.gotoAndStop(1);
_root.plane_sh.gotoAndStop(1);
(_root.plane_sh._xscale = 100);
(_root.plane_sh._yscale = 100);
_root.plane._y = plane_y;
_root.plane.gotoAndStop(1);
_root.drop.gotoAndStop(1);
_root.courage.swapDepths(1000);
_root.menu.swapDepths(9001);
removeMovieClip("_root.family_member");
i = 2;
while ((mwidth * mheight) >= i) {
removeMovieClip(eval ("_root.ground.t" + i));
i++;
}
i = 1;
while (30 >= i) {
removeMovieClip(eval ("_root.snow_stacks" + i));
removeMovieClip(eval ("_root.monster" + i));
removeMovieClip(eval ("_root.ice_food" + i));
i++;
}
}
function normal() {
_root.drop.gotoAndStop(1);
_root.display.gotoAndStop(2);
most = 12;
stop_me = false;
tile_legal = 50;
_root.courage._visible = 1;
_root.shadow.gotoAndStop(1);
_root.courage.gotoAndStop(1);
_root.courage.walk.gotoAndStop(3);
controls = true;
}
function end_game() {
i = 1;
while (20 >= i) {
eval ("_root.monster" + i).main.body.stop();
eval ("_root.monster" + i).speed = 0;
i++;
}
stop_me = true;
_root.courage.gotoAndStop("sad");
_root.courage.swapDepths(5000);
}
function next_round() {
stop_me = true;
_root.courage.gotoAndStop("happy");
}
function new_round() {
i = 1;
while (30 >= i) {
removeMovieClip(eval ("_root.snow_stacks" + i));
removeMovieClip(eval ("_root.ice_food" + i));
i++;
}
i = 2;
while ((mwidth * mheight) >= i) {
removeMovieClip(eval ("_root.ground.t" + i));
i++;
}
removeMovieClip("_root.family_member");
map_num++;
start_up();
}
function start_up() {
heat_temp = 0;
_root.courage.gotoAndStop(1);
_root.display.heat.gotoAndStop(1);
_root.xmap_adj = eval ("_root.start_x" + map_num) - 4;
_root.ymap_adj = eval ("_root.start_y" + map_num) - 3;
_root.ground._x = 0;
_root.ground._y = 0;
adj_x = 0;
adj_y = 0;
ax = -24;
ay = -24;
gx = 0;
gy = 0;
ra = _root.xmap_adj;
rb = _root.ymap_adj;
f_x = _root.xmap_adj;
f_y = _root.ymap_adj;
h_chr = _root.xmap_adj;
h_row = _root.ymap_adj;
build_level();
make_ground();
make_snow();
make_monsters();
make_ice_cream();
make_family();
((1 < map_num) ? ((stop_me = false)) : ((i = i)));
}
function build_level() {
temp = eval ("_root.map_chr" + map_num).split(",");
map_width = Number(eval ("_root.map_width" + map_num));
map_height = Number(eval ("_root.map_height" + map_num));
_root.map = new Array();
i = 0;
while (i < map_height) {
_root.map[i] = temp.slice(i * map_width, (i * map_width) + map_width);
i++;
}
}
function make_ground() {
_root.ground.t1.id = 1;
tx = 0;
ys = 0;
ty = 0;
i = 2;
while ((mwidth * mheight) >= i) {
((tx >= ((mwidth * 48) - 48)) ? ((tx = 0)) : ((tx = tx + 48)));
ys = ys + 1;
((ys == mwidth) ? ((ty = ty + 48)(ys = 0)) : ((i = i)));
duplicateMovieClip ("_root.ground.t1", "t" + i, i);
eval ("_root.ground.t" + i)._x = eval ("_root.ground.t" + i)._x + tx;
eval ("_root.ground.t" + i)._y = eval ("_root.ground.t" + i)._y + ty;
eval ("_root.ground.t" + i).id = eval ("_root.ground.t" + i).id + i;
i++;
}
}
function make_monsters() {
monsters_temp = eval ("_root.monsters" + map_num).split(",");
i = 1;
while ((monsters_temp.length / 2) >= i) {
duplicateMovieClip ("_root.monster", "monster" + i, i + 1000);
m_name = eval ("_root.monster" + i);
m_name.start_x = monsters_temp[2 * (i - 1)] - _root.xmap_adj;
m_name.start_y = monsters_temp[(2 * (i - 1)) + 1] - _root.ymap_adj;
m_name.x = (m_name.start_x * 48) + 24;
m_name.y = (m_name.start_y * 48) + 24;
m_name.id = i;
m_name.speed = 1;
m_name.gotoAndStop(2);
i++;
}
monster_amount = monsters_temp.length / 2;
_root.display.monsters_left = monster_amount;
}
function make_snow() {
_root.sn = 0;
snow1_temp = eval ("_root.snow1" + map_num).split(",");
i = 1;
while ((snow1_temp.length / 2) >= i) {
_root.sn++;
duplicateMovieClip ("_root.s_snow", "snow_stacks" + _root.sn, 100 + _root.sn);
m_name = eval ("_root.snow_stacks" + _root.sn);
m_name.id = _root.sn;
m_name.sr = snow1_temp[(2 * (i - 1)) + 1];
m_name.sc = snow1_temp[2 * (i - 1)];
m_name.x = ((snow1_temp[2 * (i - 1)] - _root.xmap_adj) * 48) + 24;
m_name.y = ((snow1_temp[(2 * (i - 1)) + 1] - _root.ymap_adj) * 48) + 24;
m_name.gotoAndStop(2);
i++;
}
snow2_temp = eval ("_root.snow2" + map_num).split(",");
i = 1;
while ((snow1_temp.length / 2) >= i) {
_root.sn++;
duplicateMovieClip ("_root.m_snow", "snow_stacks" + _root.sn, 100 + _root.sn);
m_name = eval ("_root.snow_stacks" + _root.sn);
m_name.id = _root.sn;
m_name.sr = snow2_temp[(2 * (i - 1)) + 1];
m_name.sc = snow2_temp[2 * (i - 1)];
m_name.x = ((snow2_temp[2 * (i - 1)] - _root.xmap_adj) * 48) + 24;
m_name.y = ((snow2_temp[(2 * (i - 1)) + 1] - _root.ymap_adj) * 48) + 24;
m_name.gotoAndStop(2);
i++;
}
snow3_temp = eval ("_root.snow3" + map_num).split(",");
i = 1;
while ((snow3_temp.length / 2) >= i) {
_root.sn++;
duplicateMovieClip ("_root.l_snow", "snow_stacks" + _root.sn, 100 + _root.sn);
m_name = eval ("_root.snow_stacks" + _root.sn);
m_name.id = _root.sn;
m_name.sr = snow3_temp[(2 * (i - 1)) + 1];
m_name.sc = snow3_temp[2 * (i - 1)];
m_name.x = ((snow3_temp[2 * (i - 1)] - _root.xmap_adj) * 48) + 24;
m_name.y = ((snow3_temp[(2 * (i - 1)) + 1] - _root.ymap_adj) * 48) + 24;
m_name.gotoAndStop(2);
i++;
}
}
function make_ice_cream() {
ic = 0;
ice_temp = eval ("_root.ice_cream" + map_num).split(",");
i = 1;
while ((ice_temp.length / 2) >= i) {
ic++;
duplicateMovieClip ("_root.ice", "ice_food" + ic, 200 + ic);
m_name = eval ("_root.ice_food" + ic);
m_name.id = ic;
m_name.sr = ice_temp[(2 * (i - 1)) + 1];
m_name.sc = ice_temp[2 * (i - 1)];
m_name.x = ((ice_temp[2 * (i - 1)] - _root.xmap_adj) * 48) + 24;
m_name.y = ((ice_temp[(2 * (i - 1)) + 1] - _root.ymap_adj) * 48) + 24;
m_name.gotoAndStop(2);
i++;
}
}
function make_family() {
family_temp = eval ("_root.family_placement" + map_num).split(",");
duplicateMovieClip ("_root.family", "family_member", 2);
_root.family_member.x = family_temp[0] - _root.xmap_adj;
_root.family_member.y = family_temp[1] - _root.ymap_adj;
_root.family_member.m_x = (_root.family_member.x * 48) + 24;
_root.family_member.m_y = (_root.family_member.y * 48) + 24;
}
function change_direction(name, row, ch) {
a_left = _root.map[row][ch - 1];
a_right = _root.map[row][ch + 1];
a_up = _root.map[row - 1][ch];
a_down = _root.map[row + 1][ch];
options = new Array(a_left, a_right, a_up, a_down);
temp_o = new Array();
i = 0;
while (3 >= i) {
((tile_legal >= options[i]) ? (temp_o.push(i)) : ((i = i)));
i++;
}
new_dir = temp_o[int(Math.random() * temp_o.length)];
m_name = eval ("_root." + name);
m_name.nd_x = direction[new_dir][0];
m_name.nd_y = direction[new_dir][1];
m_name.main.gotoAndStop(direction[new_dir][2]);
}
function hurt_monster(which) {
((eval ("_root.monster" + which)._currentframe != 4) ? (eval ("_root.monster" + which).main.hurt()) : ((i = i)));
}
function snow_gauge() {
_root.display.snow_left--;
if (_root.display.spray._currentframe != _root.display.spray._totalframes) {
((i = i));// not popped
} else {
(_root.courage.walk.gotoAndPlay(_root.courage.walk._currentframe - 9));// not popped
}
}
function add_snow(amount) {
_root.display.snow_left = _root.display.snow_left + (amount * 5);
_root.display.snow_left = Math.min(199, _root.display.snow_left);
}
function monster_dead() {
_root.display.monsters_left--;
((_root.display.monsters_left == 0) ? (next_round()) : ((i = i)));
}
function heat_on(heat_amount, funny, jumpy) {
((heat_temp >= 38) ? (end_game()) : ((i = i)));
heat_temp = heat_temp + heat_amount;
heat_temp = Math.max(1, heat_temp);
_root.display.heat.gotoAndStop(int(heat_temp));
((!jumpy) ? ((ouchie = true)) : ((i = i)));
if (!((!funny) && (_root.courane.walk._currentframe < 15))) {
((i = i));// not popped
} else {
(_root.courage.walk.gotoAndPlay("ouch"));// not popped
}
}
function fire_snow() {
snow_amount = snow_amount + ((snow_amount < 10) - (9 * (snow_amount == 10)));
duplicateMovieClip ("_root.snow_ball", "snow_ball" + snow_amount, snow_amount + 2000);
snow_ball = eval ("_root.snow_ball" + snow_amount);
snow_ball.x = _root.courage._x - _root.script.adj_x;
snow_ball.y = (_root.courage._y - _root.script.adj_y) + 6;
snow_ball.h_row = h_row;
snow_ball.h_chr = h_chr;
snow_ball.ax = ax;
snow_ball.ay = ay;
snow_ball.dir = _root.courage._currentframe;
snow_ball.rot = (_root.courage._currentframe - 1) * 90;
snow_ball.gotoAndStop(2);
snow_ball.state = snow_amount;
snow_gauge();
}
total_maps = 6;
plane_y = _root.plane._y;
mwidth = 10;
mheight = 8;
direction = new Array([-1, 0, 3], [1, 0, 1], [0, -1, 4], [0, 1, 2]);
}
onClipEvent (enterFrame) {
if (controls == true) {
left = Key.isDown(37) * ((((!right) && (!up)) && (!down)) && (!stop_me));
right = Key.isDown(39) * ((((!left) && (!up)) && (!down)) && (!stop_me));
up = Key.isDown(38) * ((((!left) && (!right)) && (!down)) && (!stop_me));
down = Key.isDown(40) * ((((!left) && (!right)) && (!up)) && (!stop_me));
cheat_01 = Key.isDown(72);
if (cheat_01 == true) {
heat_on(-10, true, true);
}
cheat_02 = Key.isDown(83);
if ((cheat_02 == true) && ((_root.menu._currentframe == 3) || (_root.menu._currentframe == 31))) {
i = 1;
while (30 >= i) {
removeMovieClip(eval ("_root.monster" + i));
i++;
}
next_round();
}
((((Key.isDown(32) && (!shooting)) && (!stop_me)) && (0 < _root.display.snow_left)) ? (fire_snow()(shooting = true)) : ((i = i)));
((!Key.isDown(32)) ? ((shooting = false)) : ((i = i)));
}
gx = gx + x_speed;
gy = gy + y_speed;
ax = ax + x_speed;
ay = ay + y_speed;
adj_x = adj_x + x_speed;
adj_y = adj_y + y_speed;
(h_chr = h_chr + ((1 * (ax < -48)) - (1 * (ax >= 0))));
(h_row = h_row + ((1 * (ay < -48)) - (1 * (ay >= 0))));
(f_x = f_x + ((1 * (ax < -48)) - (1 * (ax >= 0))));
(f_y = f_y + ((1 * (ay < -48)) - (1 * (ay >= 0))));
(ax = ax + ((48 * (ax < -48)) - (48 * (ax >= 0))));
(ay = ay + ((48 * (ay < -48)) - (48 * (ay >= 0))));
tile_mon = _root.map[h_row + 3][h_chr + 4];
left_tile = _root.map[h_row + 3][h_chr + 3];
right_tile = _root.map[h_row + 3][h_chr + 5];
up_tile = _root.map[h_row + 2][h_chr + 4];
down_tile = _root.map[h_row + 4][h_chr + 4];
no_walk = ((((left && (tile_legal < left_tile)) && (ax >= -12)) || ((right && (tile_legal < right_tile)) && (-36 >= ax))) || ((up && (tile_legal < up_tile)) && (ay >= -12))) || ((down && (tile_legal < down_tile)) && (-24 >= ay));
(no_walk ? ((max_speed = 0)) : ((max_speed = most)));
dir = (((1 * right) + (2 * down)) + (3 * left)) + (4 * up);
_root.courage.gotoAndStop(dir);
(((((x_speed + y_speed) != 0) && (stop_me == false)) || (_root.courage.walk._currentframe >= 15)) ? (_root.courage.walk.play()) : (_root.courage.walk.stop()));
x_speed = max_speed * (left - right);
y_speed = max_speed * (up - down);
ms++;
(s_obj = eval ("_root.snow_ball" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_ball" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_ball" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_ball" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_ball" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_ball" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_ball" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_ball" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_ball" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_ball" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
(ms = 0);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.snow_stacks" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
(ms = 0);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.monster" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
(ms = 0);
ms++;
(s_obj = eval ("_root.ice_food" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.ice_food" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.ice_food" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.ice_food" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.ice_food" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.ice_food" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.ice_food" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
ms++;
(s_obj = eval ("_root.ice_food" + ms));
(s_obj._x = adj_x + s_obj.x);
(s_obj._y = adj_y + s_obj.y);
(ms = 0);
_root.family_member._x = adj_x + _root.family_member.m_x;
_root.family_member._y = adj_y + _root.family_member.m_y;
(ra = ra + ((1 * (gx < -48)) - (1 * (gx >= 0))));
(rb = rb + ((1 * (gy < -48)) - (1 * (gy >= 0))));
(gx = gx + ((48 * (gx < -48)) - (48 * (gx >= 0))));
(gy = gy + ((48 * (gy < -48)) - (48 * (gy >= 0))));
_root.ground._y = gy;
_root.ground._x = gx;
_root.ground.t1.gotoAndStop(_root.map[rb][ra]);
_root.ground.t2.gotoAndStop(_root.map[rb][ra + 1]);
_root.ground.t3.gotoAndStop(_root.map[rb][ra + 2]);
_root.ground.t4.gotoAndStop(_root.map[rb][ra + 3]);
_root.ground.t5.gotoAndStop(_root.map[rb][ra + 4]);
_root.ground.t6.gotoAndStop(_root.map[rb][ra + 5]);
_root.ground.t7.gotoAndStop(_root.map[rb][ra + 6]);
_root.ground.t8.gotoAndStop(_root.map[rb][ra + 7]);
_root.ground.t9.gotoAndStop(_root.map[rb][ra + 8]);
_root.ground.t10.gotoAndStop(_root.map[rb][ra + 9]);
_root.ground.t11.gotoAndStop(_root.map[rb + 1][ra]);
_root.ground.t12.gotoAndStop(_root.map[rb + 1][ra + 1]);
_root.ground.t13.gotoAndStop(_root.map[rb + 1][ra + 2]);
_root.ground.t14.gotoAndStop(_root.map[rb + 1][ra + 3]);
_root.ground.t15.gotoAndStop(_root.map[rb + 1][ra + 4]);
_root.ground.t16.gotoAndStop(_root.map[rb + 1][ra + 5]);
_root.ground.t17.gotoAndStop(_root.map[rb + 1][ra + 6]);
_root.ground.t18.gotoAndStop(_root.map[rb + 1][ra + 7]);
_root.ground.t19.gotoAndStop(_root.map[rb + 1][ra + 8]);
_root.ground.t20.gotoAndStop(_root.map[rb + 1][ra + 9]);
_root.ground.t21.gotoAndStop(_root.map[rb + 2][ra]);
_root.ground.t22.gotoAndStop(_root.map[rb + 2][ra + 1]);
_root.ground.t23.gotoAndStop(_root.map[rb + 2][ra + 2]);
_root.ground.t24.gotoAndStop(_root.map[rb + 2][ra + 3]);
_root.ground.t25.gotoAndStop(_root.map[rb + 2][ra + 4]);
_root.ground.t26.gotoAndStop(_root.map[rb + 2][ra + 5]);
_root.ground.t27.gotoAndStop(_root.map[rb + 2][ra + 6]);
_root.ground.t28.gotoAndStop(_root.map[rb + 2][ra + 7]);
_root.ground.t29.gotoAndStop(_root.map[rb + 2][ra + 8]);
_root.ground.t30.gotoAndStop(_root.map[rb + 2][ra + 9]);
_root.ground.t31.gotoAndStop(_root.map[rb + 3][ra]);
_root.ground.t32.gotoAndStop(_root.map[rb + 3][ra + 1]);
_root.ground.t33.gotoAndStop(_root.map[rb + 3][ra + 2]);
_root.ground.t34.gotoAndStop(_root.map[rb + 3][ra + 3]);
_root.ground.t35.gotoAndStop(_root.map[rb + 3][ra + 4]);
_root.ground.t36.gotoAndStop(_root.map[rb + 3][ra + 5]);
_root.ground.t37.gotoAndStop(_root.map[rb + 3][ra + 6]);
_root.ground.t38.gotoAndStop(_root.map[rb + 3][ra + 7]);
_root.ground.t39.gotoAndStop(_root.map[rb + 3][ra + 8]);
_root.ground.t40.gotoAndStop(_root.map[rb + 3][ra + 9]);
_root.ground.t41.gotoAndStop(_root.map[rb + 4][ra]);
_root.ground.t42.gotoAndStop(_root.map[rb + 4][ra + 1]);
_root.ground.t43.gotoAndStop(_root.map[rb + 4][ra + 2]);
_root.ground.t44.gotoAndStop(_root.map[rb + 4][ra + 3]);
_root.ground.t45.gotoAndStop(_root.map[rb + 4][ra + 4]);
_root.ground.t46.gotoAndStop(_root.map[rb + 4][ra + 5]);
_root.ground.t47.gotoAndStop(_root.map[rb + 4][ra + 6]);
_root.ground.t48.gotoAndStop(_root.map[rb + 4][ra + 7]);
_root.ground.t49.gotoAndStop(_root.map[rb + 4][ra + 8]);
_root.ground.t50.gotoAndStop(_root.map[rb + 4][ra + 9]);
_root.ground.t51.gotoAndStop(_root.map[rb + 5][ra]);
_root.ground.t52.gotoAndStop(_root.map[rb + 5][ra + 1]);
_root.ground.t53.gotoAndStop(_root.map[rb + 5][ra + 2]);
_root.ground.t54.gotoAndStop(_root.map[rb + 5][ra + 3]);
_root.ground.t55.gotoAndStop(_root.map[rb + 5][ra + 4]);
_root.ground.t56.gotoAndStop(_root.map[rb + 5][ra + 5]);
_root.ground.t57.gotoAndStop(_root.map[rb + 5][ra + 6]);
_root.ground.t58.gotoAndStop(_root.map[rb + 5][ra + 7]);
_root.ground.t59.gotoAndStop(_root.map[rb + 5][ra + 8]);
_root.ground.t60.gotoAndStop(_root.map[rb + 5][ra + 9]);
_root.ground.t61.gotoAndStop(_root.map[rb + 6][ra]);
_root.ground.t62.gotoAndStop(_root.map[rb + 6][ra + 1]);
_root.ground.t63.gotoAndStop(_root.map[rb + 6][ra + 2]);
_root.ground.t64.gotoAndStop(_root.map[rb + 6][ra + 3]);
_root.ground.t65.gotoAndStop(_root.map[rb + 6][ra + 4]);
_root.ground.t66.gotoAndStop(_root.map[rb + 6][ra + 5]);
_root.ground.t67.gotoAndStop(_root.map[rb + 6][ra + 6]);
_root.ground.t68.gotoAndStop(_root.map[rb + 6][ra + 7]);
_root.ground.t69.gotoAndStop(_root.map[rb + 6][ra + 8]);
_root.ground.t70.gotoAndStop(_root.map[rb + 6][ra + 9]);
_root.ground.t71.gotoAndStop(_root.map[rb + 7][ra]);
_root.ground.t72.gotoAndStop(_root.map[rb + 7][ra + 1]);
_root.ground.t73.gotoAndStop(_root.map[rb + 7][ra + 2]);
_root.ground.t74.gotoAndStop(_root.map[rb + 7][ra + 3]);
_root.ground.t75.gotoAndStop(_root.map[rb + 7][ra + 4]);
_root.ground.t76.gotoAndStop(_root.map[rb + 7][ra + 5]);
_root.ground.t77.gotoAndStop(_root.map[rb + 7][ra + 6]);
_root.ground.t78.gotoAndStop(_root.map[rb + 7][ra + 7]);
_root.ground.t79.gotoAndStop(_root.map[rb + 7][ra + 8]);
_root.ground.t80.gotoAndStop(_root.map[rb + 7][ra + 9]);
}
Instance of Symbol 623 MovieClip "courage" in Frame 7
onClipEvent (enterFrame) {
if ((((_root.script.tile_mon == 3) || (_root.script.tile_mon == 27)) || (_root.script.ouchie)) && (_root.script.stop_me != true)) {
oldy = y;
y = this._y;
vy = vy + (g / 10);
y = y + (vy / 10);
if (low_y < y) {
_root.script.heat_on(0.2, true);
y = low_y;
vy = new_un;
d = d + ((d < 10) - (9 * (d == 10)));
duplicateMovieClip ("_root.smoke", "smoke" + d, d + 3000);
_root.fx.fx_play(11);
o_name = eval ("_root.smoke" + d);
rnd = Math.random() * 12;
o_name._x = (this._x - 6) + rnd;
o_name._y = this._y + 20;
o_name.gotoAndStop(3);
_root.script.ouchie = false;
}
this._y = y;
} else {
this._y = low_y;
}
}
onClipEvent (load) {
vy = 100;
g = 340;
new_un = -vy;
elastic = 1;
low_y = this._y;
}
Instance of Symbol 855 MovieClip "fx" in Frame 7
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
((i = i));// not popped
} else {
(this.gotoAndStop(1));// not popped
}
}
onClipEvent (load) {
function fx_play(piece) {
this.gotoAndStop(piece);
}
}
Instance of Symbol 858 MovieClip "music" in Frame 7
onClipEvent (load) {
function start_music() {
l.comp.setVolume(0);
l.comp.stop("loop1");
l.comp.start(0, 99999);
fader = false;
vol = 100;
l.comp.setVolume(vol);
}
function stop_music() {
fader = true;
}
duplicateMovieClip ("original", "l", 1);
l.comp = new Sound("l");
l.comp.attachsound("loop1");
l.comp.setVolume(0);
}
onClipEvent (enterFrame) {
((fader && (0 < vol)) ? ((vol = vol - 2)l.comp.setVolume(vol)) : ((fader = false)));
}
Instance of Symbol 928 MovieClip "family" in Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.script.map_num + 1);
}
Symbol 4 MovieClip [externalFileHolder] Frame 1
stop();
Instance of Symbol 2 MovieClip "slot" in Symbol 4 MovieClip [externalFileHolder] Frame 1
onClipEvent (data) {
_parent.caller.isLoaded = true;
}
onClipEvent (mouseUp) {
if ((_parent.caller.link != null) && (this.hitTest(_xmouse, _ymouse, false))) {
getURL (_parent.caller.link, "_blank");
}
}
Instance of Symbol 3 MovieClip "timer" in Symbol 4 MovieClip [externalFileHolder] Frame 1
onClipEvent (enterFrame) {
if (caller.active) {
caller.Tick();
}
}
Symbol 13 Button
on (release, keyPress "<Space>") {
_root.my_ready = true;
}
Symbol 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 17
nextFrame();
Symbol 500 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 1
stop();
Instance of Symbol 556 MovieClip in Symbol 557 MovieClip Frame 2
onClipEvent (enterFrame) {
y = y - 2;
if (_parent._y >= 4) {
(_parent._y = 4);
(_parent.gotoAndStop(3));// not popped
} else {
((_parent._y = _parent._y + Math.max(1, y)));// not popped
}
}
onClipEvent (load) {
y = 20;
}
Symbol 562 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 5
gotoAndPlay (1);
Symbol 580 MovieClip Frame 14
gotoAndPlay (1);
Symbol 580 MovieClip Frame 15
play();
Symbol 580 MovieClip Frame 21
gotoAndStop (1);
Symbol 591 MovieClip Frame 5
gotoAndPlay (1);
Symbol 591 MovieClip Frame 14
gotoAndPlay (1);
Symbol 591 MovieClip Frame 15
play();
Symbol 591 MovieClip Frame 21
gotoAndStop (1);
Symbol 602 MovieClip Frame 5
gotoAndPlay (1);
Symbol 602 MovieClip Frame 14
gotoAndPlay (1);
Symbol 602 MovieClip Frame 15
play();
Symbol 602 MovieClip Frame 21
gotoAndStop (1);
Symbol 613 MovieClip Frame 50
_root.menu.gotoAndStop("bad_game");
this.stop();
_root.courage.swapDepths(1000);
Symbol 622 MovieClip Frame 9
if (a != 10) {
a++;
(this.gotoAndPlay(1));// not popped
} else {
(((_root.script.map_num == _root.script.total_maps) ? (_root.menu.gotoAndStop("you_win")this.stop()) : (_root.menu.gotoAndStop("round_end")this.stop())));// not popped
}
Symbol 623 MovieClip Frame 1
stop();
Symbol 629 MovieClip Frame 20
stop();
Symbol 633 MovieClip Frame 21
stop();
Symbol 634 MovieClip Frame 1
stop();
Instance of Symbol 627 MovieClip in Symbol 634 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!(((_root.script.f_y + 3) == _parent.sr) && ((_root.script.f_x + 4) == _parent.sc))) {
((i = i));// not popped
} else {
_root.script.add_snow(1);
(_parent.gotoAndStop(3));// not popped
}
}
Symbol 634 MovieClip Frame 3
_root.fx.fx_play(8);
Instance of Symbol 630 MovieClip in Symbol 634 MovieClip Frame 3
onClipEvent (enterFrame) {
if (t != 500) {
(t++);// not popped
} else {
(_parent.gotoAndStop(2));// not popped
}
}
Symbol 672 MovieClip Frame 9
gotoAndPlay (1);
Symbol 672 MovieClip Frame 26
stop();
_parent._parent.gotoAndStop(5);
Symbol 673 MovieClip Frame 1
stop();
Symbol 690 MovieClip Frame 5
_root.fx.fx_play(10);
Symbol 690 MovieClip Frame 13
_root.fx.fx_play(10);
Symbol 690 MovieClip Frame 17
gotoAndPlay (1);
Symbol 707 MovieClip Frame 5
_root.fx.fx_play(10);
Symbol 707 MovieClip Frame 13
_root.fx.fx_play(10);
Symbol 707 MovieClip Frame 17
gotoAndPlay (1);
Symbol 724 MovieClip Frame 5
_root.fx.fx_play(10);
Symbol 724 MovieClip Frame 13
_root.fx.fx_play(10);
Symbol 724 MovieClip Frame 17
gotoAndPlay (1);
Symbol 773 MovieClip Frame 1
stop();
Instance of Symbol 673 MovieClip "main" in Symbol 773 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.nd_y = 0;
_parent.nd_x = 0;
if (!((((-36 < _parent._x) && (_parent._x < 468)) && (0 < _parent._y)) && (_parent._y < 372))) {
((i = i));// not popped
} else {
(_parent.gotoAndStop(3));// not popped
}
}
Instance of Symbol 673 MovieClip "main" in Symbol 773 MovieClip Frame 3
onClipEvent (enterFrame) {
(_parent.dy = _root.courage._y - (_parent._y - 25));
(_parent.dx = _root.courage._x - _parent._x);
bash = (((-27 < _parent.dx) && (_parent.dx < 45)) && (-10 < _parent.dy)) && (_parent.dy < 10);
((bash && (_parent._alpha == 100)) ? (_root.script.heat_on(0.4)) : ((i = i)));
((0 < _parent.dy) ? (_parent.swapDepths(1000 - _parent.id)) : (_parent.swapDepths(1000 + _parent.id)));
rnd = int(Math.random() * 200);
if (!((rnd == 1) && (_parent._alpha == 100))) {
((i = i));// not popped
} else {
(_parent.dir = this._currentframe);
(_parent.gotoAndStop(4));// not popped
}
if (!(((_parent._x < -36) || (468 < _parent._x)) || ((_parent._y < 0) || (372 < _parent._y)))) {
((i = i));// not popped
} else {
(_parent.gotoAndStop(2));// not popped
}
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:red * (_parent._alpha == 100), ga:"100", gb:green * (_parent._alpha == 100), ba:"100", bb:blue, aa:"100", ab:"0"};
myColor.setTransform(myColorTransform);
green = green - (10 * (green >= 0));
red = red - (10 * (green >= 0));
(((70 < _parent._alpha) && (80 >= _parent._alpha)) ? (_root.fx.fx_play(9)) : ((i = i)));
((0 >= _parent._alpha) ? (remove()) : ((_parent._alpha = _parent._alpha - (10 * (_parent.j_damage >= 3)))));
blue = 250 - (_parent._alpha * 2.5);
_parent.speed = _parent.speed * (_parent._alpha == 100);
_parent.x = _parent.x + (_parent.nd_x * _parent.speed);
_parent.y = _parent.y + (_parent.nd_y * _parent.speed);
_parent.ax = _parent.ax + (_parent.nd_x * _parent.speed);
_parent.ay = _parent.ay + (_parent.nd_y * _parent.speed);
_parent.ax = _parent.ax + ((48 * (_parent.ax < -48)) - (48 * (0 < _parent.ax)));
_parent.ay = _parent.ay + ((48 * (_parent.ay < -48)) - (48 * (0 < _parent.ay)));
_parent.mt_c = Math.floor(_parent.x / 48) + _root.xmap_adj;
_parent.mt_r = Math.floor(_parent.y / 48) + _root.ymap_adj;
((_parent.speed == 0) ? (body.stop()) : (body.play()));
my_tile = _root.map[_parent.mt_r][_parent.mt_c];
left_tile = _root.map[_parent.mt_r][_parent.mt_c - 1];
right_tile = _root.map[_parent.mt_r][_parent.mt_c + 1];
up_tile = _root.map[_parent.mt_r - 1][_parent.mt_c];
down_tile = _root.map[_parent.mt_r][_parent.mt_c];
((((_root.script.tile_legal < left_tile) && (-46 >= _parent.ax)) && (_parent.nd_x == -1)) ? (change()) : ((i = i)));
((((_root.script.tile_legal < right_tile) && (_parent.ax >= -10)) && (_parent.nd_x == 1)) ? (change()) : ((i = i)));
((((_root.script.tile_legal < up_tile) && (-46 >= _parent.ay)) && (_parent.nd_y == -1)) ? (change()) : ((i = i)));
((((_root.script.tile_legal < down_tile) && (-24 >= _parent.ay)) && (_parent.nd_y == 1)) ? (change()) : ((i = i)));
_parent.mmx = _parent.mmx + (_parent.nd_x * _parent.speed);
_parent.mmx = (_parent.mmx + 48) % 48;
_parent.mmy = _parent.mmy + (_parent.nd_y * _parent.speed);
_parent.mmy = (_parent.mmy + 48) % 48;
}
onClipEvent (load) {
function remove() {
_parent.nd_y = 0;
_parent.nd_x = 0;
_root.script.monster_dead();
_parent.removeMovieClip(_parent);
}
function hurt() {
red = 100;
green = 100;
_parent.j_damage++;
}
function change() {
_parent.nd_x = 0;
_parent.nd_y = 0;
_root.script.change_direction("monster" + _parent.id, _parent.mt_r, _parent.mt_c);
}
red = 0;
green = 0;
blue = 0;
change();
}
Symbol 773 MovieClip Frame 4
_root.fx.fx_play(14);
Instance of Symbol 673 MovieClip "main" in Symbol 773 MovieClip Frame 4
onClipEvent (load) {
_parent.nd_y = 0;
_parent.nd_x = 0;
this.gotoAndStop(_parent.dir);
body.gotoAndPlay("change");
}
onClipEvent (enterFrame) {
(_parent.dy = _root.courage._y - (_parent._y - 25));
(_parent.dx = _root.courage._x - _parent._x);
bash = (((-27 < _parent.dx) && (_parent.dx < 45)) && (-10 < _parent.dy)) && (_parent.dy < 10);
((bash && (_parent._alpha == 100)) ? (_root.script.heat_on(0.4)) : ((i = i)));
((0 < _parent.dy) ? (_parent.swapDepths(1000 - _parent.id)) : (_parent.swapDepths(1000 + _parent.id)));
}
Instance of Symbol 772 MovieClip "main" in Symbol 773 MovieClip Frame 5
onClipEvent (enterFrame) {
(_parent.dy = _root.courage._y - (_parent._y - 25));
(_parent.dx = _root.courage._x - _parent._x);
bash = (((-45 < _parent.dx) && (_parent.dx < 45)) && (-18 < _parent.dy)) && (_parent.dy < 18);
((bash && (_parent._alpha == 100)) ? (_root.script.heat_on(0.6)(_parent.speed = 0)) : ((_parent.speed = 4)));
((0 < _parent.dy) ? (_parent.swapDepths(1000 - _parent.id)) : (_parent.swapDepths(1000 + _parent.id)));
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:red * (_parent._alpha == 100), ga:"100", gb:green * (_parent._alpha == 100), ba:"80", bb:blue, aa:"100", ab:"0"};
myColor.setTransform(myColorTransform);
green = green - (10 * (green >= 0));
red = red - (10 * (green >= 0));
(((70 < _parent._alpha) && (80 >= _parent._alpha)) ? (_root.fx.fx_play(9)) : ((i = i)));
((0 >= _parent._alpha) ? (remove()) : ((_parent._alpha = _parent._alpha - (10 * (_parent.m_damage >= 10)))));
blue = 250 - (_parent._alpha * 2.5);
_parent.speed = _parent.speed * (_parent._alpha == 100);
_parent.x = _parent.x + (_parent.nd_x * _parent.speed);
_parent.y = _parent.y + (_parent.nd_y * _parent.speed);
_parent.ax = _parent.ax + (_parent.nd_x * _parent.speed);
_parent.ay = _parent.ay + (_parent.nd_y * _parent.speed);
(_parent.ax = _parent.ax + ((48 * (_parent.ax < -48)) - (48 * (0 < _parent.ax))));
(_parent.ay = _parent.ay + ((48 * (_parent.ay < -48)) - (48 * (0 < _parent.ay))));
_parent.mt_c = Math.floor(_parent.x / 48) + _root.xmap_adj;
_parent.mt_r = Math.floor(_parent.y / 48) + _root.ymap_adj;
my_tile = _root.map[_parent.mt_r][_parent.mt_c];
left_tile = _root.map[_parent.mt_r][_parent.mt_c - 1];
right_tile = _root.map[_parent.mt_r][_parent.mt_c + 1];
up_tile = _root.map[_parent.mt_r - 1][_parent.mt_c];
down_tile = _root.map[_parent.mt_r][_parent.mt_c];
cx = _root.courage._x - _parent._x;
cy = (_root.courage._y + 32) - _parent._y;
dir_frame = ((((1 * (_parent.nd_x == 1)) + (2 * (_parent.nd_y == 1))) + (3 * (_parent.nd_x == -1))) + (4 * (_parent.nd_y == -1))) + (4 * (_parent.speed == 0));
this.gotoAndStop(dir_frame);
if (chase_x) {
chase_y = Math.abs(cx) < 20;
chase_x = Math.abs(cx) >= 20;
_parent.nd_y = 0;
_parent.nd_x = (0 < cx) - (0 >= cx);
if ((((_root.script.tile_legal < right_tile) && (_parent.ax >= -14)) && (_parent.nd_x == 1)) || (((_root.script.tile_legal < left_tile) && (-34 >= _parent.ax)) && (_parent.nd_x == -1))) {
bored++;
_parent.nd_x = 0;
}
}
if (chase_y) {
chase_x = Math.abs(cy) < 20;
chase_y = Math.abs(cy) >= 20;
_parent.nd_x = 0;
_parent.nd_y = (0 < cy) - (0 >= cy);
if (((_root.script.tile_legal < up_tile) && (_parent.nd_y == -1)) || ((_root.script.tile_legal < down_tile) && (_parent.nd_y == 1))) {
bored++;
_parent.nd_y = 0;
}
}
if (!((bored == 31) && (_parent._alpha == 100))) {
((i = i));// not popped
} else {
(_parent.gotoAndStop(6));// not popped
}
}
onClipEvent (load) {
function hurt() {
red = 100;
green = 100;
_parent.m_damage++;
}
function remove() {
_parent.nd_y = 0;
_parent.nd_x = 0;
_root.script.monster_dead();
_parent.removeMovieClip(_parent);
}
red = 0;
green = 0;
blue = 0;
chase_x = true;
_parent.speed = 4;
}
Instance of Symbol 772 MovieClip "main" in Symbol 773 MovieClip Frame 6
onClipEvent (enterFrame) {
(_parent.dy = _root.courage._y - (_parent._y - 25));
(_parent.dx = _root.courage._x - _parent._x);
bash = (((-45 < _parent.dx) && (_parent.dx < 45)) && (-18 < _parent.dy)) && (_parent.dy < 18);
((bash && (_parent._alpha == 100)) ? (_root.script.heat_on(0.6)) : ((i = i)));
((0 < _parent.dy) ? (_parent.swapDepths(1000 - _parent.id)) : (_parent.swapDepths(1000 + _parent.id)));
rnd = int(Math.random() * 100);
if (rnd != 1) {
((i = i));// not popped
} else {
(_parent.dir = this._currentframe);
(_parent.gotoAndStop(5));// not popped
}
if (!(((_parent._x < -46) || (478 < _parent._x)) || (((_parent._y < 10) || (442 < _parent._y)) && (_parent._alpha == 100)))) {
((i = i));// not popped
} else {
(_parent.gotoAndStop(7));// not popped
}
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:red * (_parent._alpha == 100), ga:"100", gb:green * (_parent._alpha == 100), ba:"100", bb:blue, aa:"100", ab:"0"};
myColor.setTransform(myColorTransform);
green = green - (10 * (green >= 0));
red = red - (10 * (green >= 0));
(((70 < _parent._alpha) && (80 >= _parent._alpha)) ? (_root.fx.fx_play(9)) : ((i = i)));
((0 >= _parent._alpha) ? (remove()) : ((_parent._alpha = _parent._alpha - (10 * (_parent.m_damage >= 10)))));
blue = 250 - (_parent._alpha * 2.5);
_parent.speed = _parent.speed * (_parent._alpha == 100);
_parent.x = _parent.x + (_parent.nd_x * _parent.speed);
_parent.y = _parent.y + (_parent.nd_y * _parent.speed);
_parent.ax = _parent.ax + (_parent.nd_x * _parent.speed);
_parent.ay = _parent.ay + (_parent.nd_y * _parent.speed);
_parent.ax = _parent.ax + ((48 * (_parent.ax < -48)) - (48 * (0 < _parent.ax)));
_parent.ay = _parent.ay + ((48 * (_parent.ay < -48)) - (48 * (0 < _parent.ay)));
_parent.mt_c = Math.floor(_parent.x / 48) + _root.xmap_adj;
_parent.mt_r = Math.floor(_parent.y / 48) + _root.ymap_adj;
((_parent.speed == 0) ? (body.stop()) : (body.play()));
my_tile = _root.map[_parent.mt_r][_parent.mt_c];
left_tile = _root.map[_parent.mt_r][_parent.mt_c - 1];
right_tile = _root.map[_parent.mt_r][_parent.mt_c + 1];
up_tile = _root.map[_parent.mt_r - 1][_parent.mt_c];
down_tile = _root.map[_parent.mt_r][_parent.mt_c];
((((_root.script.tile_legal < left_tile) && (-34 >= _parent.ax)) && (_parent.nd_x == -1)) ? (change()) : ((i = i)));
((((_root.script.tile_legal < right_tile) && (_parent.ax >= -14)) && (_parent.nd_x == 1)) ? (change()) : ((i = i)));
(((_root.script.tile_legal < up_tile) && (_parent.nd_y == -1)) ? (change()) : ((i = i)));
(((_root.script.tile_legal < down_tile) && (_parent.nd_y == 1)) ? (change()) : ((i = i)));
_parent.mmx = _parent.mmx + (_parent.nd_x * _parent.speed);
_parent.mmx = (_parent.mmx + 48) % 48;
_parent.mmy = _parent.mmy + (_parent.nd_y * _parent.speed);
_parent.mmy = (_parent.mmy + 48) % 48;
rnd = 5;
}
onClipEvent (load) {
function remove() {
_parent.nd_y = 0;
_parent.nd_x = 0;
_root.script.monster_dead();
_parent.removeMovieClip(_parent);
}
function hurt() {
red = 100;
green = 100;
_parent.m_damage++;
}
function change() {
_parent.nd_x = 0;
_parent.nd_y = 0;
_root.script.change_direction("monster" + _parent.id, _parent.mt_r, _parent.mt_c);
}
this.stop();
red = 0;
green = 0;
blue = 0;
change();
}
Instance of Symbol 772 MovieClip "main" in Symbol 773 MovieClip Frame 7
onClipEvent (enterFrame) {
_parent.nd_y = 0;
_parent.nd_x = 0;
if (!((((-46 < _parent._x) && (_parent._x < 478)) && (10 < _parent._y)) && (_parent._y < 442))) {
((i = i));// not popped
} else {
(_parent.gotoAndStop(6));// not popped
}
}
Symbol 807 MovieClip Frame 15
_parent.removeMovieClip(_parent);
Symbol 808 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 2
_root.fx.fx_play(7);
Instance of Symbol 778 MovieClip "ball" in Symbol 808 MovieClip Frame 2
onClipEvent (load) {
_parent._rotation = _parent.rot;
(h_chr = _parent.h_chr);
(h_row = _parent.h_row);
(ax = _parent.ax);
(ay = _parent.ay);
x = _root.courage._x - _root.script.adj_x;
y = (_root.courage._y - _root.script.adj_y) + 6;
_parent.x = _root.courage._x - _root.script.adj_x;
_parent.y = _root.courage._y - _root.script.adj_y;
x_vel = 18 + Math.abs(_root.script.x_speed);
y_vel = 18 + Math.abs(_root.script.y_speed);
direction = new Array([x_vel, 0], [0, y_vel], [-x_vel, 0], [0, -y_vel]);
d = 5;
}
onClipEvent (enterFrame) {
(ax = ax - direction[_parent.dir - 1][0]);
(ay = ay - direction[_parent.dir - 1][1]);
(h_chr = h_chr + ((1 * (ax < -48)) - (1 * (0 < ax))));
(h_row = h_row + ((1 * (ay < -48)) - (1 * (0 < ay))));
(ax = ax + ((48 * (ax < -48)) - (48 * (0 < ax))));
(ay = ay + ((48 * (ay < -48)) - (48 * (0 < ay))));
(x = x + direction[_parent.dir - 1][0]);
(y = y + direction[_parent.dir - 1][1]);
(_parent.x = x + _root.script.x_speed);
(_parent.y = y + _root.script.y_speed);
tile_mon = _root.map[h_row + 3][h_chr + 4];
in_air = ((((((((((((((((((tile_mon >= 1) && (71 >= tile_mon)) || ((tile_mon >= 72) && (78 >= tile_mon))) || ((tile_mon >= 80) && (89 >= tile_mon))) || ((tile_mon >= 151) && (155 >= tile_mon))) || ((tile_mon >= 162) && (164 >= tile_mon))) || ((tile_mon >= 171) && (177 >= tile_mon))) || ((tile_mon >= 179) && (181 >= tile_mon))) || ((tile_mon >= 186) && (187 >= tile_mon))) || ((tile_mon >= 190) && (201 >= tile_mon))) || ((tile_mon >= 205) && (210 >= tile_mon))) || ((tile_mon >= 212) && (217 >= tile_mon))) || ((tile_mon >= 224) && (235 >= tile_mon))) || ((tile_mon >= 241) && (254 >= tile_mon))) || ((tile_mon >= 256) && (259 >= tile_mon))) || ((tile_mon >= 262) && (267 >= tile_mon))) || ((tile_mon >= 275) && (276 >= tile_mon))) || ((tile_mon >= 283) && (301 >= tile_mon))) || (tile_mon == 306);
(in_air ? ((i = i)) : (_parent.nextFrame()));
if (!_parent.hitTest(_root.monster1._x - 2, _root.monster1._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(1);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster2._x - 2, _root.monster2._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(2);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster3._x - 2, _root.monster3._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(3);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster4._x - 2, _root.monster4._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(4);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster5._x - 2, _root.monster5._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(5);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster6._x - 2, _root.monster6._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(6);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster7._x - 2, _root.monster7._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(7);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster8._x - 2, _root.monster8._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(8);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster9._x - 2, _root.monster9._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(9);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster10._x - 2, _root.monster10._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(10);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster11._x - 2, _root.monster11._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(11);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster12._x - 2, _root.monster12._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(12);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster13._x - 2, _root.monster13._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(13);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster14._x - 2, _root.monster14._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(14);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster15._x - 2, _root.monster15._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(15);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster16._x - 2, _root.monster16._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(16);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster17._x - 2, _root.monster17._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(17);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster18._x - 2, _root.monster18._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(18);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster19._x - 2, _root.monster19._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(19);
(_parent.gotoAndStop(4));// not popped
}
if (!_parent.hitTest(_root.monster20._x - 2, _root.monster20._y - 30, true)) {
((i = i));// not popped
} else {
_root.script.hurt_monster(20);
(_parent.gotoAndStop(4));// not popped
}
}
Symbol 808 MovieClip Frame 3
_root.fx.fx_play(6);
Instance of Symbol 807 MovieClip in Symbol 808 MovieClip Frame 3
onClipEvent (enterFrame) {
(_parent._x = _parent._x + _root.script.x_speed);
(_parent._x = _parent._x + _root.script.y_speed);
}
onClipEvent (load) {
_parent._rotation = 0;
}
Symbol 808 MovieClip Frame 4
_root.fx.fx_play(6);
Symbol 813 MovieClip Frame 1
stop();
Instance of Symbol 812 MovieClip in Symbol 813 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!(((_root.script.f_y + 3) == _parent.sr) && ((_root.script.f_x + 4) == _parent.sc))) {
((i = i));// not popped
} else {
_root.script.add_snow(2);
(_parent.gotoAndStop(3));// not popped
}
}
Symbol 813 MovieClip Frame 3
_root.fx.fx_play(8);
Instance of Symbol 630 MovieClip in Symbol 813 MovieClip Frame 3
onClipEvent (enterFrame) {
if (t != 1000) {
(t++);// not popped
} else {
(_parent.gotoAndStop(2));// not popped
}
}
Symbol 818 MovieClip Frame 1
stop();
Instance of Symbol 817 MovieClip in Symbol 818 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!(((_root.script.f_y + 3) == _parent.sr) && ((_root.script.f_x + 4) == _parent.sc))) {
((i = i));// not popped
} else {
_root.script.add_snow(3);
(_parent.gotoAndStop(3));// not popped
}
}
Symbol 818 MovieClip Frame 3
_root.fx.fx_play(8);
Instance of Symbol 630 MovieClip in Symbol 818 MovieClip Frame 3
onClipEvent (enterFrame) {
if (t != 1500) {
(t++);// not popped
} else {
(_parent.gotoAndStop(2));// not popped
}
}
Symbol 820 MovieClip Frame 1
stop();
Instance of Symbol 820 MovieClip in Symbol 824 MovieClip Frame 1
onClipEvent (enterFrame) {
rnd = int(Math.random() * 31);
(((rnd == 0) && (_parent.a < 200)) ? (this.play()) : ((i = i)));
}
Symbol 824 MovieClip Frame 6
gotoAndPlay (1);
Symbol 835 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 16
stop();
Symbol 836 MovieClip Frame 1
stop();
Instance of Symbol 835 MovieClip in Symbol 836 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._alpha = _parent._alpha - 7;
_parent._xscale = _parent._xscale + 15;
_parent._yscale = _parent._yscale + 15;
_parent._y = _parent._y - 8;
((0 >= _parent._alpha) ? (_parent.removeMovieClip()) : (this.play()));
}
Instance of Symbol 835 MovieClip in Symbol 836 MovieClip Frame 3
onClipEvent (enterFrame) {
_alpha = (_alpha - 5);
_parent._xscale = _parent._xscale + 15;
_parent._yscale = _parent._yscale + 15;
_parent._y = _parent._y - 2;
_parent._y = _parent._y + _root.script.y_speed;
_parent._x = _parent._x + _root.script.x_speed;
((0 >= _alpha) ? (_parent.removeMovieClip()) : (this.play()));
}
Symbol 839 MovieClip Frame 1
stop();
Instance of Symbol 824 MovieClip in Symbol 839 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.script.down = a < 112;
_parent._y = _parent._y + (3 * (a < 76));
a++;
((!_root.script.down) ? (_parent.nextFrame()) : ((i = i)));
s = s - (0.5 * (a < 76));
_root.plane_sh._xscale = s;
_root.plane_sh._yscale = s;
((q == 1) ? (make_smoke()(q = 0)) : (q++));
}
onClipEvent (load) {
function make_smoke() {
n++;
duplicateMovieClip ("_parent.smoke", "smoke" + n, n);
s_name = eval ("_parent.smoke" + n);
s_name._x = 30 + (Math.random() * 20);
s_name.gotoAndStop(2);
}
_root.fx.fx_play(3);
s = 140;
_root.script.most = 3;
}
Instance of Symbol 838 MovieClip in Symbol 839 MovieClip Frame 3
onClipEvent (enterFrame) {
_parent._y = _parent._y + _root.script.y_speed;
_parent._x = _parent._x + _root.script.x_speed;
a++;
_root.script.down = a < 55;
((a >= 55) ? (_parent.nextFrame()) : ((i = i)));
}
onClipEvent (load) {
_root.plane_sh.gotoAndStop(2);
_root.script.most = 8;
}
Symbol 839 MovieClip Frame 4
_root.drop.gotoAndStop(2);
Symbol 842 MovieClip Frame 1
stop();
Symbol 842 MovieClip Frame 2
play();
Symbol 842 MovieClip Frame 50
stop();
_root.script.normal();
Symbol 855 MovieClip Frame 1
stop();
Symbol 864 MovieClip Frame 42
stop();
Symbol 865 MovieClip Frame 1
stop();
Instance of Symbol 862 MovieClip in Symbol 865 MovieClip Frame 2
onClipEvent (enterFrame) {
((((_root.script.f_y + 3) == _parent.sr) && ((_root.script.f_x + 4) == _parent.sc)) ? (_root.script.heat_on(-10, true, true)_parent.nextFrame()) : ((i = i)));
}
Symbol 865 MovieClip Frame 3
_root.fx.fx_play(15);
Instance of Symbol 862 MovieClip in Symbol 865 MovieClip Frame 3
onClipEvent (enterFrame) {
this._y = this._y - 7;
this._alpha = this._alpha - 5;
((0 >= this._alpha) ? (_parent.removeMovieClip(_parent)) : ((i = i)));
}
onClipEvent (enterFrame) {
this.stop();
}
Symbol 868 MovieClip Frame 1
_root.script.reset();
Symbol 868 MovieClip Frame 2
_root.script.start_up();
stop();
Symbol 874 Button
on (release, keyPress "<Space>") {
_root.fx.fx_play(4);
this.nextFrame();
}
Symbol 884 Button
on (release, keyPress "<Space>") {
_root.fx.fx_play(5);
this.nextFrame();
}
Symbol 905 Button
on (release, keyPress "<Space>") {
_root.script.new_round();
this.gotoAndStop("clear");
}
Symbol 910 Button
on (release, keyPress "<Space>") {
_root.fx.fx_play(4);
if (1 < _root.script.map_num) {
_root.display.snow_left = 50;
_root.script.map_num--;
_root.script.new_round();
this.gotoAndStop("clear");
} else {
_root.script.reset();
_root.script.start_up();
this.gotoAndStop(3);
}
}
Symbol 914 Button
on (release, keyPress "<Space>") {
_root.fx.fx_play(4);
this.gotoAndStop("begin");
}
Symbol 916 MovieClip Frame 1
stop();
_root.music.start_music();
Instance of Symbol 876 MovieClip in Symbol 916 MovieClip Frame 1
onClipEvent (load) {
this.holder.loadMovie((_root.trackerPath + "?id=") + new Date().valueOf());
}
Symbol 916 MovieClip Frame 3
_root.plane.gotoAndStop(2);
Symbol 916 MovieClip Frame 7
_root.music.stop_music();
Instance of Symbol 903 MovieClip in Symbol 916 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.script.map_num);
}
Symbol 916 MovieClip Frame 15
_root.fx.fx_play(13);
_root.music.stop_music();
Symbol 916 MovieClip Frame 23
_root.music.stop_music();
_root.myGameObject.LaunchOrbitPopup();
Symbol 916 MovieClip Frame 31
_root.music.start_music();