Frame 1
function return_to_title() {
_root.background.removeMovieClip();
_root.zamboni.removeMovieClip();
amt_of_babies_splat = 0;
total_babies = 50;
amt_rescued = 0;
_root.attachMovie("title", "title", 2);
}
function load_title() {
_root.disclaimer.removeMovieClip();
_root.attachMovie("title", "title", 1);
}
function start_game() {
_root.title.removeMovieClip();
game_on = true;
game();
}
function game() {
_root.attachMovie("background", "background", 1);
_root.attachMovie("firemen", "firemen", 2);
_root.firemen._y = 225;
_root.attachMovie("nun", "nun", 3);
}
function baby_splat() {
amt_of_babies_splat = amt_of_babies_splat + 1;
if (amt_of_babies_splat >= max_babies_splat) {
zamboni_time();
}
}
function count_babies() {
total_babies = total_babies - 1;
_root.background.status.remain.calc(total_babies);
if (total_babies == 0) {
zamboni_time();
}
}
function zamboni_time() {
if (game_on) {
_root.firemen.removeMovieClip();
_root.nun.removeMovieClip();
if (total_babies != 0) {
_root.background.status.gotoAndStop("game_over");
} else {
_root.background.status.gotoAndStop("you_win");
}
_root.attachMovie("zamboni", "zamboni", 100);
_root.zamboni._y = 210;
_root.zamboni._x = -130;
zamboni_sound.start();
_root.background.reset_fire();
game_on = false;
}
}
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
_quality = "low";
stop();
max_babies_splat = 4;
amt_of_babies_splat = 0;
total_babies = 50;
amt_rescued = 0;
splat = new Sound();
splat.attachSound("splat");
baby_laugh = new Sound();
baby_laugh.attachSound("baby_laugh");
zamboni_sound = new Sound();
zamboni_sound.attachSound("zamboni_sound");
game_on = false;
amt_of_babies = 10;
_root.attachMovie("disclaimer", "disclaimer", 1);
Symbol 11 MovieClip [background] Frame 1
function reset_fire() {
this.t_fire1._visible = true;
this.t_fire2._visible = true;
this.t_fire3._visible = true;
this.t_fire4._visible = true;
this.t_fire5._visible = true;
this.t_fire6._visible = true;
}
this.attachMovie("orphanage", "orphanage", 1);
this.orphanage._x = 180 - (this.orphanage._width / 2);
this.orphanage._y = 50;
this.attachMovie("pavement", "pavement", 2);
this.pavement._y = this.orphanage._y + this.orphanage._height;
this.attachMovie("trees", "trees", 7);
this.trees._y = this.orphanage._y - 4;
this.attachMovie("status", "status", 8);
this.attachMovie("fire", "fire1", 3);
this.attachMovie("fire", "fire2", 4);
this.attachMovie("fire", "fire3", 5);
this.attachMovie("fire", "fire4", 6);
this.fire2.gotoAndPlay(45);
this.fire3.gotoAndPlay(30);
this.fire4.gotoAndPlay(65);
this.fire1._x = this.orphanage._x + 18;
this.fire1._y = this.orphanage._y + 122;
this.fire2._x = this.orphanage._x + 70;
this.fire2._y = this.orphanage._y + 122;
this.fire3._x = this.orphanage._x + 226;
this.fire3._y = this.orphanage._y + 122;
this.fire4._x = this.orphanage._x + 278;
this.fire4._y = this.orphanage._y + 122;
this.attachMovie("top_fire", "t_fire1", 9);
this.t_fire1._x = this.orphanage._x + 20;
this.t_fire1._y = this._orphanage._y + 64;
this.attachMovie("top_fire", "t_fire2", 10);
this.t_fire2._x = this.orphanage._x + 72;
this.t_fire2._y = this._orphanage._y + 64;
this.attachMovie("top_fire", "t_fire3", 11);
this.t_fire3._x = this.orphanage._x + 124;
this.t_fire3._y = this._orphanage._y + 64;
this.attachMovie("top_fire", "t_fire4", 12);
this.t_fire4._x = this.orphanage._x + 176;
this.t_fire4._y = this._orphanage._y + 64;
this.attachMovie("top_fire", "t_fire5", 13);
this.t_fire5._x = this.orphanage._x + 228;
this.t_fire5._y = this._orphanage._y + 64;
this.attachMovie("top_fire", "t_fire6", 14);
this.t_fire6._x = this.orphanage._x + 280;
this.t_fire6._y = this._orphanage._y + 64;
this.t_fire2.gotoAndPlay(40);
this.t_fire3.gotoAndPlay(10);
this.t_fire4.gotoAndPlay(30);
this.t_fire5.gotoAndPlay(50);
Symbol 19 MovieClip [fireman2] Frame 1
this.gotoAndStop("still");
Symbol 23 MovieClip [fireman2] Frame 1
this.gotoAndStop("still");
Symbol 31 MovieClip Frame 1
this.gotoAndStop("still");
Symbol 33 MovieClip [firemen] Frame 1
function waiting_to_move() {
if (Key.isDown(Key.LEFT) or Key.isDown(Key.RIGHT)) {
this.fireman1.gotoAndStop("walk");
this.fireman2.gotoAndStop("walk");
}
}
function move() {
if (Key.isDown(Key.LEFT) or Key.isDown(Key.RIGHT)) {
if (Key.isDown(Key.LEFT)) {
if (0 < this._x) {
this._x = this._x - move_speed;
}
} else if (this._x < (360 - this._width)) {
this._x = this._x + move_speed;
}
} else {
this.fireman1.gotoAndStop("still");
this.fireman2.gotoAndStop("still");
}
}
this.pad._width = 38;
move_speed = 4;
gotoAndStop (1);
Instance of Symbol 32 MovieClip in Symbol 33 MovieClip [firemen] Frame 1
onClipEvent (enterFrame) {
_parent.waiting_to_move();
_parent.move();
}
Symbol 43 MovieClip Frame 1
if (_root.game_on) {
_root.attachMovie("w_baby", "w_baby" + _root.amt_of_babies, _root.amt_of_babies);
_root["w_baby" + _root.amt_of_babies]._x = _parent._x + 8;
_root["w_baby" + _root.amt_of_babies]._y = _parent._y + 14;
_root["w_baby" + _root.amt_of_babies].id = _root.amt_of_babies;
_root.amt_of_babies = _root.amt_of_babies + 1;
}
Symbol 43 MovieClip Frame 10
_parent.gotoAndStop("wait_to_move");
Symbol 49 MovieClip Frame 40
_parent.gotoAndStop("wait_to_move");
Symbol 50 MovieClip [nun] Frame 1
function speed_up() {
if (_root.amt_rescued == 10) {
drop_delay = 0.8;
} else if (_root.amt_rescued == 20) {
drop_delay = 0.7;
} else if (_root.amt_rescued == 30) {
drop_delay = 0.6;
} else if (_root.amt_rescued == 40) {
drop_delay = 0.5;
}
}
function wait_to_drop() {
speed_up();
if (((getTimer() / 1000) - at_window_time) >= drop_delay) {
gotoAndStop (3);
}
}
function select_random_num() {
window = random(6);
if (last_window == window) {
select_random_num();
}
}
function randomly_move() {
last_window = window;
select_random_num();
last_move = getTimer() / 1000;
move();
}
function move() {
if (window == 0) {
this._x = _root.background.orphanage._x + 21;
this._y = _root.background.orphanage._y + 44;
} else if (window == 1) {
this._x = _root.background.orphanage._x + 73;
this._y = _root.background.orphanage._y + 44;
} else if (window == 2) {
this._x = _root.background.orphanage._x + 125;
this._y = _root.background.orphanage._y + 44;
} else if (window == 3) {
this._x = _root.background.orphanage._x + 177;
this._y = _root.background.orphanage._y + 44;
} else if (window == 4) {
this._x = _root.background.orphanage._x + 229;
this._y = _root.background.orphanage._y + 44;
} else if (window == 5) {
this._x = _root.background.orphanage._x + 281;
this._y = _root.background.orphanage._y + 44;
}
control_fire();
}
function control_fire() {
_root.background.t_fire1._visible = true;
_root.background.t_fire2._visible = true;
_root.background.t_fire3._visible = true;
_root.background.t_fire4._visible = true;
_root.background.t_fire5._visible = true;
_root.background.t_fire6._visible = true;
if (window == 0) {
_root.background.t_fire1._visible = false;
} else if (window == 1) {
_root.background.t_fire2._visible = false;
} else if (window == 2) {
_root.background.t_fire3._visible = false;
} else if (window == 3) {
_root.background.t_fire4._visible = false;
} else if (window == 4) {
_root.background.t_fire5._visible = false;
} else if (window == 5) {
_root.background.t_fire6._visible = false;
}
}
wait_time = 0;
window = random(6);
last_window = window;
last_move = getTimer() / 1000;
drop_delay = 1;
at_window_time = getTimer() / 1000;
move();
gotoAndStop (2);
Instance of Symbol 37 MovieClip in Symbol 50 MovieClip [nun] Frame 1
onClipEvent (enterFrame) {
_parent.randomly_move();
}
Instance of Symbol 38 MovieClip in Symbol 50 MovieClip [nun] Frame 2
onClipEvent (enterFrame) {
_parent.wait_to_drop();
}
Instance of Symbol 44 MovieClip in Symbol 50 MovieClip [nun] Frame 4
onClipEvent (enterFrame) {
_parent.at_window_time = getTimer() / 1000;
_parent.randomly_move();
_parent.gotoAndStop("white_baby");
}
Symbol 67 MovieClip Frame 25
_root.baby_splat();
_root.count_babies();
_parent.gotoAndStop("blink");
Symbol 79 MovieClip [w_baby] Frame 1
function fall() {
if ((this._y + this._height) < 275) {
this._y = this._y + fall_speed;
} else {
_root.splat.start();
gotoAndStop (3);
}
if (_root.firemen.pad.hitTest(this) and (this._y < (_root.firemen._y + 10))) {
_root.baby_laugh.start();
_root.amt_rescued = _root.amt_rescued + 1;
gotoAndStop (5);
}
}
function bounce() {
if (count < 20) {
this._y = this._y - 1;
count = count + 1;
}
if (count >= 20) {
this._y = this._y + fall_speed;
if (_root.background.pavement.hitTest(this._x, this._y + 12, true)) {
pick_dir();
gotoAndStop (6);
}
}
}
function pick_dir() {
if ((id % 2) == 0) {
this.move_speed = this.move_speed * -1;
}
}
function move() {
this._x = this._x + move_speed;
if ((400 < this._x) or (this._x < -20)) {
_root.count_babies();
this.removeMovieClip();
}
}
fall_speed = 2;
move_speed = 2;
count = 0;
gotoAndStop (2);
Instance of Symbol 56 MovieClip in Symbol 79 MovieClip [w_baby] Frame 2
onClipEvent (enterFrame) {
_parent.fall();
}
Instance of Symbol 68 MovieClip in Symbol 79 MovieClip [w_baby] Frame 3
onClipEvent (enterFrame) {
}
Instance of Symbol 72 MovieClip in Symbol 79 MovieClip [w_baby] Frame 5
onClipEvent (enterFrame) {
_parent.bounce();
}
Instance of Symbol 78 MovieClip in Symbol 79 MovieClip [w_baby] Frame 6
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 114 MovieClip Frame 1
function calc(x) {
s100 = Math.floor(x / 100);
if ((x / 100) < 1) {
s100 = 0;
} else {
x = x - (s100 * 100);
}
s10 = Math.floor(x / 10);
if ((x / 10) < 1) {
s10 = 0;
} else {
x = x - (s10 * 10);
}
s1 = x % 10;
if (s100 == 0) {
this.hundreds._visible = false;
} else {
this.hundreds._visible = true;
}
if (s10 == 0) {
this.tens._visible = false;
} else {
this.tens._visible = true;
}
this.hundreds.gotoAndStop("num_" + s100);
this.tens.gotoAndStop("num_" + s10);
this.ones.gotoAndStop("num_" + s1);
}
calc(_root.total_babies);
Symbol 117 MovieClip [status] Frame 1
stop();
Symbol 118 Button
on (press) {
goto_logo();
}
Symbol 130 MovieClip [disclaimer] Frame 1
function switch_to_logo() {
if (((getTimer() / 1000) - start_time) >= wait_time) {
goto_logo();
}
}
function goto_logo() {
wait_time = 2;
start_time = getTimer() / 1000;
gotoAndStop (2);
}
function switch_to_title() {
if (((getTimer() / 1000) - start_time) >= wait_time) {
_root.load_title();
}
}
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
_quality = "low";
start_time = getTimer() / 1000;
wait_time = 25;
stop();
Instance of Symbol 123 MovieClip in Symbol 130 MovieClip [disclaimer] Frame 1
onClipEvent (enterFrame) {
_parent.switch_to_logo();
}
Instance of Symbol 129 MovieClip in Symbol 130 MovieClip [disclaimer] Frame 2
onClipEvent (enterFrame) {
_parent.switch_to_title();
}
Symbol 134 Button
on (press) {
_root.start_game();
}
Symbol 137 MovieClip [title] Frame 50
stop();
_root.splat.start();
Symbol 157 MovieClip [zamboni] Frame 1
function move() {
this._x = this._x + move_speed;
if (400 < this._x) {
_root.return_to_title();
}
}
function remove_babies() {
i = 0;
while (i < _root.amt_of_babies) {
if (_root["w_baby" + i].hitTest(this._x + 5, this._y + this._height, true)) {
_root["w_baby" + i].removeMovieClip();
}
i++;
}
}
move_speed = 0.65;
Instance of Symbol 156 MovieClip in Symbol 157 MovieClip [zamboni] Frame 1
onClipEvent (enterFrame) {
_parent.move();
_parent.remove_babies();
}