Frame 1
function f_cursor() {
tellTarget (_root.cursor) {
if (_root.advert != true) {
Mouse.hide();
} else {
Mouse.show();
}
_x = _root._xmouse;
_y = _root._ymouse;
};
}
_root.NewgroundsAPI_id = 2281;
System.security.allowDomain("api.fanbox.com");
System.security.allowDomain("profile.fanbox.com");
System.security.allowDomain("www.sms.ac");
var FANBOXAPI:Object;
if (FANBOXAPI == undefined) {
FANBOXAPI = new Object();
FANBOXAPI.GamingAPI = new Object();
}
FANBOXAPI.DeveloperKey = "0B7577F3-4B31-43E6-8F31-046C831AFCC7";
if ((_url.substr(7, 10) == "diverge.ws") || (_url.substr(7, 14) == "www.diverge.ws")) {
stop();
} else if (_url.substr(0, 1) == "f") {
stop();
} else {
demo = true;
stop();
}
option_quality = "MEDIUM";
option_music = true;
option_fullscreen = false;
option_screenshake = true;
cheat_accessory = false;
cheat_upsidedown = false;
cheat_mirrored = false;
mode = "title";
stop();
Instance of Symbol 342 MovieClip "cursor" in Frame 1
onClipEvent (enterFrame) {
_root.f_cursor();
}
Frame 2
if (demo == true) {
stop();
} else {
nextFrame();
}
Frame 3
stop();
Frame 4
function level_results() {
first_name = new Array();
last_name = new Array();
first_name = ["king", "mr.", "ms.", "major", "sir", "madam", "general", "stinky", "leaking", "rotting", "carious", "bloody", "bloated", "dead", "juicy", "wet", "sexy", "secret", "engorged", "twitchy", "sketchy", "nefarious", "seedy", "cagey"];
last_name = ["fracture", "cancer", "belly", "canker", "pinky", "scar", "clot", "weltling", "scab", "pimple", "skinling", "hole", "dump", "birdy", "baby", "member", "puddle", "blob", "nub", "log", "gash"];
rand_name = (first_name[random(first_name.length)] + " ") + last_name[random(last_name.length)];
cheats = new Array();
cheats = ["cheney", "kabob", "sideshow", "jholmes", "headstand", "sliders"];
rand_cheat = cheats[random(cheats.length)];
total_score = ((score + (kills * 10)) + (eats * 7)) + (combos * 20);
FANBOXAPI.GameAPI.GameOver(total_score);
}
mode = "title";
level = 1;
lives = 5;
cheat_accessory = "";
cheat_upsidedown = false;
cheat_levelskip = false;
m_intro = new Sound();
m_intro.attachSound("intro");
m_boss = new Sound();
m_boss.attachSound("boss");
m_level1 = new Sound();
m_level1.attachSound("level1");
m_level2 = new Sound();
m_level2.attachSound("level2");
s_finish_level = new Sound();
s_finish_level.attachSound("finish_level");
s_new_wave = new Sound();
s_new_wave.attachSound("new_wave");
s_new_hour = new Sound();
s_new_hour.attachSound("new_hour");
s_morning = new Sound();
s_morning.attachSound("morning");
s_night = new Sound();
s_night.attachSound("night");
s_alert = new Sound();
s_alert.attachSound("alert");
s_mega = new Sound();
s_mega.attachSound("mega");
s_doublekill = new Sound();
s_doublekill.attachSound("doublekill");
s_1up = new Sound();
s_1up.attachSound("get_1up");
s_beep = new Sound();
s_beep.attachSound("beep");
s_barf = new Sound();
s_barf.attachSound("barf");
s_bite = new Sound();
s_bite.attachSound("bite");
s_spit1 = new Sound();
s_spit1.attachSound("spit1");
s_spit2 = new Sound();
s_spit2.attachSound("spit2");
s_gulp1 = new Sound();
s_gulp1.attachSound("gulp1");
s_gulp2 = new Sound();
s_gulp2.attachSound("gulp2");
s_heartbeat = new Sound();
s_heartbeat.attachSound("heartbeat");
s_stun = new Sound();
s_stun.attachSound("stun");
s_squawk1 = new Sound();
s_squawk1.attachSound("squawk1");
s_squawk2 = new Sound();
s_squawk2.attachSound("squawk2");
s_fart = new Sound();
s_fart.attachSound("fart");
s_groan = new Sound();
s_groan.attachSound("groan");
s_boss_die = new Sound();
s_boss_die.attachSound("boss_die");
s_dimkin_growl1 = new Sound();
s_dimkin_growl1.attachSound("dimkin_growl1");
s_dimkin_die = new Sound();
s_dimkin_die.attachSound("dimkin_die");
s_bloodflow = new Sound();
s_bloodflow.attachSound("bloodflow");
s_slice = new Sound();
s_slice.attachSound("slice");
s_throw = new Sound();
s_throw.attachSound("throw");
s_hit1 = new Sound();
s_hit1.attachSound("hit1");
s_hit2 = new Sound();
s_hit2.attachSound("hit2");
s_splat1 = new Sound();
s_splat1.attachSound("splat1");
s_splat2 = new Sound();
s_splat2.attachSound("splat2");
s_splat3 = new Sound();
s_splat3.attachSound("splat3");
s_splat4 = new Sound();
s_splat4.attachSound("splat4");
s_explode = new Sound();
s_explode.attachSound("explode");
s_rand_name = new Sound();
s_rand_name.attachSound("rand_name");
s_medal = new Sound();
s_medal.attachSound("medal");
s_maggot_bounce1 = new Sound();
s_maggot_bounce1.attachSound("maggot_bounce1");
c_nada = new Object();
c_nada.ra = 100;
c_nada.rb = 0;
c_nada.ga = 100;
c_nada.gb = 0;
c_nada.ba = 100;
c_nada.bb = 0;
c_red = new Object();
c_red.ra = 70;
c_red.rb = 255;
c_red.ga = 70;
c_red.gb = 45;
c_red.ba = 100;
c_red.bb = 0;
c_morning = new Object();
c_morning.ra = 90;
c_morning.rb = 0;
c_morning.ga = 90;
c_morning.gb = 0;
c_morning.ba = 90;
c_morning.bb = 10;
c_dusk = new Object();
c_dusk.ra = 80;
c_dusk.rb = 85;
c_dusk.ga = 80;
c_dusk.gb = 50;
c_dusk.ba = 80;
c_dusk.bb = 0;
c_dusk2 = new Object();
c_dusk2.ra = 100;
c_dusk2.rb = 55;
c_dusk2.ga = 100;
c_dusk2.gb = 0;
c_dusk2.ba = 100;
c_dusk2.bb = 0;
c_dusk3 = new Object();
c_dusk3.ra = 90;
c_dusk3.rb = 60;
c_dusk3.ga = 90;
c_dusk3.gb = 4;
c_dusk3.ba = 90;
c_dusk3.bb = 15;
c_night = new Object();
c_night.ra = 50;
c_night.rb = 0;
c_night.ga = 50;
c_night.gb = 0;
c_night.ba = 50;
c_night.bb = 26;
stopAllSounds();
m_intro.start(0, 999999);
Mouse.show();
Frame 7
cinema = false;
paused = false;
intro = false;
limit_right = 385;
limit_left = -385;
limit_bottom = 225;
screen_x = (100 / game._xscale) * game._x;
screen_y = (100 / game._xscale) * game._y;
Frame 9
prevFrame();
Frame 10
stopAllSounds();
Frame 11
Mouse.show();
Frame 12
level_results();
stopAllSounds();
Frame 13
level_results();
stopAllSounds();
Frame 15
function screen_zoom(speed) {
game._xscale = game._xscale + speed;
if (game._yscale < 0) {
game._yscale = -game._xscale;
} else {
game._yscale = game._xscale;
}
game._y = game._y - (speed * 1.5);
game_y = game._y;
game.background._xscale = game.background._xscale - (speed * 1.5);
game.background._yscale = game.background._xscale;
}
function screen_shake(dir, speed) {
if ((_root.option_screenshake == true) && (_root.mode != "title")) {
if (dir == "x") {
game._x = game._x + speed;
} else {
game._y = game._y + speed;
}
}
}
function set_daytime() {
if (hour > 24) {
hour = 1;
}
if (hour <= 2) {
new_tint = _root.c_morning;
_root.s_morning.start();
} else if (hour < 6) {
new_tint = _root.c_nada;
} else if (hour < 8) {
new_tint = _root.c_dusk;
} else if (hour < 10) {
new_tint = _root.c_dusk2;
} else if (hour < 12) {
new_tint = _root.c_dusk3;
} else {
new_tint = _root.c_night;
_root.s_night.start();
}
if ((hour > 6) && (hour < 13)) {
sun_y = sunrise_limit_high + (((hour - 6) / 6) * (sunrise_limit_low - sunrise_limit_high));
} else if (hour <= 6) {
sun_y = sunrise_limit_low - ((hour / 6) * (sunrise_limit_low - sunrise_limit_high));
}
}
function spawn_object(name, x, y, xscale, rotation) {
game.i++;
if ((substring(name, 0, 3)) == "bg:") {
name = substring(name, 4, -1);
game.bg.attachMovie(name, (name + "_") + game.i, game.i);
obj = game.bg[(name + "_") + game.i];
x = x - game.bg._x;
y = y - game.bg._y;
} else if ((substring(name, 0, 6)) == "glass:") {
name = substring(name, 7, -1);
glass.attachMovie(name, (name + "_") + game.i, game.i);
obj = glass[(name + "_") + game.i];
x = x - glass._x;
y = y - glass._y;
} else {
game.foreground.swapDepths(game.i + 2);
game.fg.swapDepths(game.i + 1);
game.attachMovie(name, (name + "_") + game.i, game.i);
obj = game[(name + "_") + game.i];
}
obj._xscale = xscale;
obj._rotation = rotation;
obj._x = x;
obj._y = y;
}
function manage_objects(action, obj, type) {
if (action == "add") {
eval ("active_" + type).push(obj);
} else {
i = 0;
while (i < eval ("active_" + type).length) {
if (eval ("active_" + type)[i] == obj) {
eval ("active_" + type).splice(i, 1);
}
i++;
}
}
}
function new_wave() {
enemies = false;
enemy_hopdump = false;
enemy_dimkin = false;
enemy_dimkin_far = false;
enemy_peashy = false;
if (wave == 1) {
if (level == 1) {
biggest_enemy = 1;
total_enemies = 2;
enemies = true;
} else if (level == 2) {
biggest_enemy = 2;
total_enemies = 2;
enemies = true;
} else if (level == 3) {
biggest_enemy = 2;
total_enemies = 2;
enemies = true;
enemy_dimkin_far = true;
} else if (level == 4) {
total_enemies_dimkin = 1;
enemy_dimkin = true;
total_enemies_hopdump = 2;
enemy_hopdump = true;
} else {
total_enemies_dimkin = 1;
enemy_dimkin = true;
total_enemies_hopdump = 2;
enemy_hopdump = true;
biggest_enemy = 2;
total_enemies = 1;
enemies = true;
}
} else if (wave == 2) {
if (level == 1) {
total_enemies_hopdump = 2;
enemy_hopdump = true;
} else if (level == 2) {
biggest_enemy = 2;
total_enemies = 1;
enemies = true;
enemy_peashy = true;
} else if (level == 3) {
biggest_enemy = 3;
total_enemies = 2;
enemies = true;
} else if (level == 4) {
total_enemies_dimkin = 1;
enemy_dimkin = true;
biggest_enemy = 2;
total_enemies = 2;
enemies = true;
} else {
enemy_peashy = true;
total_enemies_hopdump = 1;
enemy_hopdump = true;
biggest_enemy = 2;
total_enemies = 2;
}
} else if (wave == 3) {
if (level == 1) {
speed_bean++;
speed_beanfall++;
biggest_enemy = 1;
total_enemies = 2;
enemies = true;
total_enemies_hopdump = 1;
enemy_hopdump = true;
} else if (level == 2) {
speed_beanfall++;
biggest_enemy = 2;
total_enemies = 2;
enemies = true;
speed_peashy++;
enemy_peashy = true;
} else if (level == 3) {
biggest_enemy = 3;
total_enemies = 2;
enemies = true;
enemy_dimkin_far = true;
} else if (level == 4) {
total_enemies_dimkin = 1;
enemy_dimkin = true;
speed_beanfall = speed_beanfall + 2;
biggest_enemy = 3;
total_enemies = 2;
enemies = true;
} else {
speed_beanfall = speed_beanfall + 2.5;
biggest_enemy = 3;
total_enemies = 4;
enemies = true;
}
} else if (wave == 4) {
if (level == 5) {
boss = true;
}
}
_root.s_new_hour.start();
}
function new_hour() {
hour++;
total_hours++;
set_daytime();
speed_beanfall = speed_beanfall + 0.1;
if (total_hours > 2) {
biggest_enemy = 2;
}
if (total_hours > 3) {
enemy_hopdump = true;
total_enemies_hopdump = 1;
}
if (total_hours > 4) {
enemy_peashy = true;
}
if (total_hours > 6) {
biggest_enemy = 3;
total_enemies_hopdump = 2;
}
if (total_hours > 7) {
enemy_dimkin = true;
total_enemies_dimkin = 1;
}
if (total_hours > 9) {
total_enemies = 3;
}
if (total_hours > 12) {
total_enemies_dimkin = 1;
}
if (total_hours > 15) {
total_enemies = 4;
}
if (hour == 1) {
_root.s_morning.start();
} else if (hour == 12) {
_root.s_night.start();
}
_root.blood = _root.blood + 25;
_root.score = _root.score + 200;
_root.spawn_object("fx_points", center_x, center_y, 200, 0);
_root.s_new_hour.start();
}
function new_intensity() {
speed_beanfall = speed_beanfall + 0.2;
increase_enemy_size = increase_enemy_size + 0.3;
biggest_enemy = Math.floor(increase_enemy_size);
}
function count_combo() {
count_kills++;
combo_timer = 20;
if (count_kills > 1) {
_root.combo++;
_root.score = _root.score + 80;
_root.spawn_object("fx_points", _root.center_x, _root.center_y, 80, 0);
_root.messages.doublekill.play();
}
}
function welt_controls() {
tellTarget (game.welt) {
if (_root.cinema != true) {
if (Key.isDown(68)) {
key_right++;
} else {
key_right = 0;
}
if (Key.isDown(65)) {
key_left++;
} else {
key_left = 0;
}
if ((Key.isDown(68) && ((key_left > key_right) || (key_left == 0))) && (stun_timer < 1)) {
if (speed_x < _root.speed) {
speed_x = speed_x + 1.7;
}
if (body._xscale < 0) {
body._xscale = body._xscale * -1;
}
}
if ((Key.isDown(65) && ((key_right > key_left) || (key_right == 0))) && (stun_timer < 1)) {
if (speed_x > (-_root.speed)) {
speed_x = speed_x - 1.7;
}
if (body._xscale > 0) {
body._xscale = body._xscale * -1;
}
}
}
_x = (_x + speed_x);
_x = (_x + speed_slide);
if (sliding == false) {
if (speed_slide > 0) {
speed_slide = speed_slide - 0.5;
} else if (speed_slide < 0) {
speed_slide = speed_slide + 0.5;
}
} else if (sliding == true) {
_root.spawn_object("fx_slip", _x, _y, 100, 0);
}
if ((((Key.isDown(68) || (Key.isDown(65))) && (stun_timer < 1)) && (_root.cinema != true)) || (cinema_walk == true)) {
walking = true;
} else {
if (speed_x > 2) {
speed_x = (speed_x = speed_x - 1.7);
} else if (speed_x < -2) {
speed_x = (speed_x = speed_x + 1.7);
} else {
speed_x = 0;
}
if (speed_x == 0) {
walking = false;
}
}
if (((walking != true) || (sliding == true)) || (stun_timer > 0)) {
if (body.body._currentFrame == 1) {
body.area.gotoAndStop(1);
body.gotoAndStop("stand");
}
} else {
body.area.play();
body.gotoAndStop("walk");
}
if (stunned == true) {
if (stun_timer > -60) {
stun_timer--;
} else {
stunned = false;
head.gotoAndStop(1);
}
}
if (_root.cinema != true) {
if (_x > _root.limit_right) {
_x = _root.limit_right;
} else if (_x < _root.limit_left) {
_x = _root.limit_left;
}
}
if ((m_click == true) && (_root.cinema != true)) {
if ((m_hold < 1) && (head.head._currentFrame == 8)) {
head.head.gotoAndStop("munch_bite");
} else if (((m_hold > 10) && (head.head._currentFrame < 3)) && (stun_timer < 1)) {
_root.welt_attack("barf");
}
m_hold++;
} else {
if ((stun_timer < 1) && (headless != true)) {
if (barf == true) {
head.head.gotoAndStop("normal");
} else if (m_hold > 0) {
if ((head.head._currentFrame < 3) && (_root.active_bloodballs.length < 5)) {
head.head.gotoAndStop("spit");
}
}
}
m_hold = 0;
}
};
}
function welt_attack(action) {
welt = _root.game.welt;
if (welt.headless != true) {
if (action == "spit") {
if (welt.alive != false) {
_root.blood = _root.blood - 2;
}
spit_x = welt._x + welt.head._rotation;
spit_y = (((welt._y + welt.head._y) - welt.head._height) + 35) + Math.abs(welt.head._rotation);
_root.spawn_object("bloodball", spit_x, spit_y, 100, welt.head._rotation);
} else if (action == "barf") {
if (welt.respawn != true) {
welt.head.head.gotoAndStop("barf");
}
} else if ((welt.head.head._currentFrame < 3) || (welt.head.head._currentFrame == 8)) {
if (_root.munch == true) {
welt.head.head.gotoAndStop("munch_bite");
}
}
}
}
function welt_head() {
tellTarget (_root.game.welt) {
if (stun_timer < 1) {
mouse_x = ((100 / _root.game._xscale) * _root._xmouse) - _root.screen_x;
if (_root.cheat_upsidedown == true) {
mouse_y = ((100 / _root.game._xscale) * (-_root._ymouse)) + _root.screen_y;
} else {
mouse_y = ((100 / _root.game._xscale) * _root._ymouse) - _root.screen_y;
}
head_rotation = (Math.atan((mouse_y - _y) / (mouse_x - _x)) * 57.2957795130823) - 90;
if (mouse_x > _x) {
head_rotation = head_rotation + 180;
}
if (_root.munch == true) {
r_limit = 70;
} else {
r_limit = 85;
}
if (head_rotation > r_limit) {
head_rotation = r_limit;
} else if (head_rotation < (-r_limit)) {
head_rotation = -r_limit;
}
speed_r = (head_rotation - head._rotation) / _root.speed_head;
if (((mouse_x > _x) && (head.head._xscale < 0)) || ((mouse_x < _x) && (head.head._xscale > 0))) {
if (_root.munch == true) {
if (head.head._currentFrame == 8) {
head.head.gotoAndStop("turn_munch");
} else if (head.head._currentFrame != 9) {
head.head._xscale = head.head._xscale * -1;
}
} else if (head.head._currentFrame == 1) {
head.head.gotoAndStop("turn");
} else if (head.head._currentFrame != 2) {
head.head._xscale = head.head._xscale * -1;
}
}
head._rotation = head._rotation + speed_r;
head_r = head._rotation;
} else if (head_wobble == "right") {
head._rotation++;
if (head._rotation > (head_r + 5)) {
head_wobble = "left";
}
} else {
head._rotation--;
if (head._rotation < (head_r - 5)) {
head_wobble = "right";
}
}
};
}
function welt_die() {
_root.blood = 0;
_root.game.welt.m_hold = 0;
_root.munch = false;
_root.game.welt.bite = false;
_root.game.welt.alive = false;
}
function welt_respawn() {
if (_root.lives > 0) {
_root.lives--;
_root.game.welt.respawn = true;
_root.game.welt.headless = false;
_root.game.welt.stun_timer = -100;
_root.game.welt.speed_x = 0;
_root.game.welt._x = _root.center_x;
_root.game.welt.gotoAndStop("alive");
} else {
_root.gameover = true;
_root.game.welt.gotoAndStop("nada");
_root.game_end.play();
}
}
function enemy_attacked(attack, w, h, x, y) {
if (attack == "bloodball") {
i = 0;
while (i < _root.active_bloodballs.length) {
obj = _root.game[_root.active_bloodballs[i]];
if (obj._currentFrame == 1) {
if ((obj._x + obj.w) > (x - w)) {
if ((obj._x - obj.w) < (x + w)) {
if (obj._y > (y - h)) {
if ((obj._y - obj.h) < y) {
_root.bloodball_r = obj._rotation;
obj.gotoAndStop("splat");
return(true);
}
}
}
}
}
i++;
}
} else if (_root.game.welt.barf == true) {
i = 1;
while (i <= 10) {
geyser_x = _root.game["geyser_area" + i]._x;
if ((x + w) > (geyser_x - 35)) {
if ((x - w) < (geyser_x + 35)) {
geyser_y = _root.game["geyser_area" + i]._y;
if (y > (geyser_y - 35)) {
if ((y - h) < (geyser_y + 35)) {
return(true);
}
}
}
}
i++;
}
} else if ((_root.munch == true) && (_root.game.welt.bite == true)) {
hit_x = x + _root.game._x;
hit_y = y + _root.game._y;
if ((_root.game.welt.head.hitTest(hit_x, hit_y, true) || (_root.game.welt.head.hitTest(hit_x + w, hit_y - (h / 2), true))) || (_root.game.welt.head.hitTest(hit_x - w, hit_y - h, true))) {
return(true);
}
}
}
function boss1() {
tellTarget (_root.game.boss) {
_y = (_y + speed);
if ((_y < (_root.limit_top + 50)) && (intro != false)) {
speed = _root.speed_boss1;
if (speed_screen_shake > 0) {
speed_screen_shake = -5;
} else {
speed_screen_shake = 5;
}
_root.screen_shake("x", speed_screen_shake);
_root.screen_shake("y", speed_screen_shake);
if (_root.game._xscale > 70) {
speed_screen_zoom = 2;
} else if (speed_screen_zoom > 0) {
speed_screen_zoom = speed_screen_zoom - 0.2;
}
if (speed_screen_zoom > 0) {
_root.screen_zoom(-speed_screen_zoom);
}
} else {
if (intro != false) {
_root.game._x = _root.game_x;
_root.game._y = _root.game_y;
}
intro = false;
if (float == "down") {
if (speed < _root.speed_boss1) {
speed = speed + 0.5;
} else {
float = "up";
}
} else if (speed > (-_root.speed_boss1)) {
speed = speed - 0.5;
} else {
float = "down";
}
if (fetus_timer == 0) {
fetus_timer = -1;
eval ("sore" + (random(3) + 1)).play();
} else if (fetus_timer > 0) {
fetus_timer--;
} else {
fetus_timer = 20 + random(60);
}
if ((eye1.dead == true) && (eye2.dead == true)) {
if (veins != true) {
veins = true;
i = 1;
while (i <= 5) {
eval ("vein" + i).play();
i++;
}
}
if (hp <= 20) {
if (dir == "left") {
if (speed_x > (-_root.speed_boss1)) {
speed_x = speed_x - 0.5;
}
if ((_x - (body._width / 2)) < _root.limit_left) {
dir = "right";
}
} else {
if (speed_x < _root.speed_boss1) {
speed_x = speed_x + 0.5;
}
if ((_x + (body._width / 2)) > _root.limit_right) {
dir = "left";
}
}
_x = (_x + speed_x);
}
if ((_root.enemy_attacked("bloodball", body._width / 2, body._height, _x, _y + 260) || (_root.enemy_attacked("", body._width / 2, body._height, body._x + _x, _y, body._target))) && (body._currentFrame == 1)) {
hp--;
if (hp > 0) {
body.play();
} else {
_root.cinema = true;
gotoAndStop ("die");
}
}
if (bleed_timer == 0) {
bleed_timer = -1;
eval ("sore" + (random(3) + 1)).gotoAndPlay("bleed");
} else if (bleed_timer > 0) {
bleed_timer--;
} else {
bleed_timer = 20 + random(60);
}
i = 1;
while (i < 4) {
if (eval ("sore" + i).geyser == true) {
sore_x = eval ("sore" + i)._x + _x;
if ((((_root.game.welt._x + _root.w_welt) > (sore_x - 40)) && ((_root.game.welt._x - _root.w_welt) < (sore_x + 40))) && (_root.game.welt.alive != false)) {
_root.game.welt.gotoAndStop("die");
}
}
i++;
}
} else {
if (eye1._currentFrame == 1) {
if (_root.enemy_attacked("bloodball", eye1._width / 2, eye1._height, eye1._x + _x, eye1._y + _y) || (_root.enemy_attacked("", eye1._width / 2, eye1._height, eye1._x + _x, eye1._y + _y, eye1._target))) {
obj.gotoAndStop("splat");
eye1.hp--;
if (eye1.hp > 0) {
eye1.gotoAndPlay("hit");
} else {
eye1.play();
}
}
}
if (eye2._currentFrame == 1) {
if (_root.enemy_attacked("bloodball", eye2._width / 2, eye2._height, eye2._x + _x, eye2._y + _y) || (_root.enemy_attacked("", eye2._width / 2, eye2._height, eye2._x + _x, eye2._y + _y, eye2._target))) {
obj.gotoAndStop("splat");
eye2.hp--;
if (eye2.hp > 0) {
eye2.gotoAndPlay("hit");
} else {
eye2.play();
}
}
}
}
}
};
}
function bean(name) {
tellTarget (_root.game[name]) {
w = _width / 2;
h = _height;
if (clr_timer < 1) {
clr.setTransform(_root.c_nada);
} else {
clr_timer--;
}
if (_y > _root.floor_y) {
_y = _root.floor_y;
_root.kill_misses++;
gotoAndStop ("die");
} else {
_y = (_y + speed_y);
}
if (_root.enemy_attacked("bloodball", w, h, _x, _y)) {
if (type == 1) {
_rotation = _root.bloodball_r;
}
obj.gotoAndStop("splat");
hits--;
if (hits == 0) {
_root.score = _root.score + value;
_root.spawn_object("fx_points", _x, _y - (h / 2), value, 0);
gotoAndStop ("die_air1");
} else {
clr.setTransform(_root.c_red);
clr_timer = 2;
_root.s_splat3.start();
}
}
if (_root.enemy_attacked("", w, h, _x, _y)) {
_root.count_combo();
_root.kills++;
_root.score = _root.score + value;
_root.spawn_object("fx_points", _x, _y - (h / 2), value, 0);
gotoAndStop ("die_air2");
}
if (((((((((_x + w) > (_root.game.welt._x - _root.w_welt)) && ((_x - w) < (_root.game.welt._x + _root.w_welt))) && (_y > (_root.game.welt._y - _root.h_welt))) && ((_y - h) < _root.game.welt._y)) && (_root.game.welt.alive != false)) && (_root.munch != true)) && (_root.game.welt.stunned != true)) && (_root.game.welt.headless != true)) {
if (_root.mode == "bombard") {
_root.blood = _root.blood - (5 * type);
}
_root.game.welt.head.head.gotoAndStop("stunned");
_root.kill_misses++;
gotoAndStop ("die_air1");
}
};
}
function bean2(name) {
tellTarget (_root.game[name]) {
w = _width / 2;
h = _height;
if (_root.enemy_attacked("bloodball", w, h, _x, _y)) {
_root.kills++;
_root.score = _root.score + 15;
_root.spawn_object("fx_points", _x, _y - (h / 2), 15, 0);
gotoAndStop ("die");
}
if (_root.enemy_attacked("", w, h, _x, _y)) {
_root.count_combo();
_root.kills++;
_root.score = _root.score + 15;
_root.spawn_object("fx_points", _x, _y - (h / 2), 15, 0);
gotoAndStop ("die");
}
if (((((((((_x + w) > (_root.game.welt._x - _root.w_welt)) && ((_x - w) < (_root.game.welt._x + _root.w_welt))) && (_y > (_root.game.welt._y - _root.h_welt))) && ((_y - h) < _root.game.welt._y)) && (_root.game.welt.alive != false)) && (_root.munch != true)) && (_root.game.welt.stunned != true)) && (_root.game.welt.headless != true)) {
_root.game.welt.head.head.gotoAndStop("stunned");
_root.kill_misses++;
gotoAndStop ("die");
}
};
}
function dimkin(name) {
tellTarget (_root.game[name]) {
_x = (_x + speed);
_y = _root.floor_y;
if (_currentframe == 1) {
if (((((_x + 250) > _root.game.welt._x) && ((_x - 250) < _root.game.welt._x)) && (_root.game.welt.alive != false)) && (hit != true)) {
gotoAndStop ("surprise");
}
} else if (_currentframe == 3) {
if ((((((((_x + _root.w_dimkin) > (_root.game.welt._x - _root.w_welt)) && (_x < _root.game.welt._x)) && (speed > 0)) || ((((_x - _root.w_dimkin) < (_root.game.welt._x + _root.w_welt)) && (_x > _root.game.welt._x)) && (speed < 0))) && (_root.game.welt.alive != false)) && (_root.game.welt.headless != true)) && (_root.munch != true)) {
_root.game.welt.head.head.gotoAndStop("headless");
}
}
if (hit != true) {
if (_root.enemy_attacked("bloodball", _root.w_dimkin, _root.h_dimkin, _x, _y)) {
obj.gotoAndStop("splat");
hit = true;
_root.s_splat3.start();
gotoAndStop ("surprise");
dimkin.dimkin.gotoAndStop(2);
}
}
if (_root.enemy_attacked("", _root.w_dimkin, _root.h_dimkin, _x, _y) && (_root.game.welt.headless != true)) {
_root.count_combo();
if (_root.munch == true) {
_root.blood = _root.blood + 10;
}
_root.score = _root.score + 100;
_root.spawn_object("fx_points", _x, _y - (_root.h_dimkin / 2), 100, 0);
_root.kills++;
gotoAndStop ("die");
}
if ((((_x - _root.w_dimkin) > _root.limit_right) && (speed > 0)) || (((_x + _root.w_dimkin) < _root.limit_left) && (speed < 0))) {
if (hit != true) {
_root.kill_misses++;
}
gotoAndStop ("respawn");
}
};
}
function dimkin_far() {
tellTarget (_root.game.background.dimkin_far) {
x = _x - _parent._x;
speed = _root.speed_dimkin / 3;
if (_x != dest_x) {
gotoAndStop ("walk");
} else if (_currentframe == 2) {
gotoAndStop ("stand");
}
if ((_x + speed) < dest_x) {
_xscale = 100;
_x = (_x + speed);
if (x > (_root.limit_right + 50)) {
gotoAndStop ("respawn");
}
} else if ((_x - speed) > dest_x) {
_xscale = -100;
_x = (_x - speed);
if (x < (_root.limit_left - 50)) {
gotoAndStop ("respawn");
}
} else {
_x = dest_x;
}
};
}
function peashy() {
tellTarget (_root.game.peashy) {
_x = (_x + speed_x);
if (Math.abs(speed_x) > 0) {
if (_currentframe == 1) {
gotoAndStop ("walk");
}
} else if (_currentframe == 2) {
gotoAndStop ("stand");
}
if ((_x + speed_x) < (_root.limit_left + 150)) {
speed_x = _root.speed_peashy;
_xscale = 100;
} else if ((_x - speed_x) > (_root.limit_right - 150)) {
speed_x = -_root.speed_peashy;
_xscale = -100;
} else {
if (speed_x > 0) {
speed_x--;
} else if (speed_x < 0) {
speed_x++;
}
if (_x > _root.game.welt._x) {
_xscale = -100;
} else {
_xscale = 100;
}
if ((_root.game.welt.alive != false) && (_root.game.welt.stunned != true)) {
if (attack_timer == 0) {
attack_timer = -1;
gotoAndStop ("attack");
} else if (attack_timer > 0) {
attack_timer--;
} else {
attack_timer = 10 + random(30);
}
}
}
if (_root.enemy_attacked("bloodball", _root.w_peashy, _root.h_peashy, _x, _y)) {
_root.s_splat2.start();
_root.spawn_object("fx_bloodsplat" + (random(2) + 1), _x, _y, 100, 0);
if (mask == true) {
mask = false;
gotoAndStop ("hit");
} else {
_root.kills++;
_root.score = _root.score + 75;
_root.spawn_object("fx_points", _x, _y - (_root.h_peashy / 2), 75, 0);
gotoAndStop ("die");
}
} else if (_root.enemy_attacked("", _root.w_peashy, _root.h_peashy, _x, _y)) {
_root.count_combo();
gotoAndStop ("die");
}
};
}
function spike(name) {
tellTarget (_root.game[name]) {
if (_xscale > 0) {
speed_x = _root.speed_spike;
if (_x > (_root.limit_right + 80)) {
_root.game[name].removeMovieClip();
}
} else {
speed_x = -_root.speed_spike;
if (_x < (_root.limit_left - 80)) {
_root.game[name].removeMovieClip();
}
}
if (speed_y < 0) {
speed_y = speed_y + 2;
} else {
speed_y++;
}
_rotation = (_rotation + (speed_x * 2));
_x = (_x + speed_x);
_y = (_y + speed_y);
if (_y > _root.floor_y) {
_y = _root.floor_y;
gotoAndStop ("stick_ground");
}
welt = _root.game.welt;
if ((((((((_x > (welt._x - _root.w_welt)) && (_x < (welt._x + _root.w_welt))) && (_y > (welt._y - _root.h_welt))) && (_y < welt._y)) && (welt.alive != false)) && (welt.stunned != true)) && (welt.headless != true)) && (_root.munch != true)) {
welt.head.head.gotoAndStop("stunned");
}
};
}
function fetus(name) {
tellTarget (_root.game[name]) {
_x = (_x + speed_x);
_y = (_y + _root.speed_fetus);
if (_y > _root.floor_y) {
_y = _root.floor_y;
_root.kill_misses++;
gotoAndStop ("die");
}
if (_root.enemy_attacked("", 25, 50, _x, _y)) {
_rotation = fetus._rotation;
_root.kills++;
_root.score = _root.score + 5;
_root.spawn_object("fx_points", _x, _y, 5, 0);
gotoAndStop ("die_air");
} else if (_root.enemy_attacked("bloodball", 25, 50, _x, _y)) {
_root.count_combo();
_rotation = fetus._rotation;
_root.kills++;
_root.score = _root.score + 5;
_root.spawn_object("fx_points", _x, _y, 5, 0);
gotoAndStop ("die_air");
}
h = 10;
if ((((((((_x > (_root.game.welt._x - _root.w_welt)) && (_x < (_root.game.welt._x + _root.w_welt))) && (_y > (_root.game.welt._y - _root.h_welt))) && ((_y - h) < _root.game.welt._y)) && (_root.game.welt.alive != false)) && (_root.munch != true)) && (_root.game.welt.headless != true)) && (_root.game.welt.stunned != true)) {
_root.game.welt.head.head.gotoAndStop("stunned");
_rotation = fetus._rotation;
_root.kill_misses++;
gotoAndStop ("die_air");
}
};
}
function bloodball(name) {
tellTarget (_root.game[name]) {
ball._rotation = ball._rotation + speed_x;
_x = (_x + speed_x);
_y = (_y + speed_y);
speed_y = speed_y + 0.4;
if (((_x > (_root.limit_right + 100)) || (_x < (_root.limit_left - 100))) || (_y < (_root.limit_top - 100))) {
gotoAndStop ("remove");
} else if (_y > _root.floor_y) {
_y = _root.floor_y;
gotoAndStop ("splat_ground");
}
if (particle_timer == 0) {
particle_timer = -1;
if (_root.particle_num < _root.particle_limit) {
_root.spawn_object("blood_particle", (_x - 10) + random(20), (_y - 10) + random(20), 100, 0);
}
} else if (particle_timer > 0) {
particle_timer--;
if (particle_timer == 1) {
if (_root.particle_num < _root.particle_limit) {
_root.spawn_object("blood_particle", (_x - 10) + random(20), (_y - 10) + random(20), 70, 0);
}
}
} else {
particle_timer = 2;
}
welt = _root.game.welt;
if (_root.munch == true) {
if (_root.enemy_attacked("", _x, _y, 10, 10) && (_root.game.welt.bite == true)) {
_root.blood = _root.blood + 2;
gotoAndStop ("remove");
}
} else if (((welt.alive != false) && (welt.stun_timer < 1)) && (welt.headless != true)) {
if (((((_x > (welt._x - _root.w_welt)) && (_x < (welt._x + _root.w_welt))) && (((_y + Math.abs(speed_y)) > (welt._y - _root.h_welt)) && (_y < (welt._y - _root.h_welt)))) && ((welt.head._rotation > -30) && (welt.head._rotation < 30))) && (speed_y > 0)) {
_root.blood = _root.blood + 2;
_root.game.welt.head.head.gotoAndStop("eat");
gotoAndStop ("remove");
}
}
};
}
function _1up(name) {
tellTarget (_root.game[name]) {
_y = (_y + _root.speed_1up);
if (_y > (_root.limit_bottom + 100)) {
_root.game[name].removeMovieClip();
}
welt = _root.game.welt;
if (((welt.alive != false) && (welt.stun_timer < 1)) && (welt.headless != true)) {
if (((_x > (welt._x - _root.w_welt)) && (_x < (welt._x + _root.w_welt))) && ((((((_y + _root.speed_meatfall) > (welt._y - _root.h_welt)) && (_y < (welt._y - _root.h_welt))) && ((welt.head._rotation > -30) && (welt.head._rotation < 30))) && (_root.munch != true)) || (_root.enemy_attacked("", 10, 10, _x, _y) && (_root.munch == true)))) {
if (_root.munch != true) {
_root.game.welt.head.head.gotoAndStop("eat");
}
_root.s_1up.start();
_root.lives++;
_root.game[name].removeMovieClip();
}
}
};
}
function meat(name) {
tellTarget (game[name]) {
w = 20;
_y = (_y + _root.speed_meatfall);
if ((_y - _height) > _root.limit_bottom) {
_root.game[name].removeMovieClip();
}
welt = _root.game.welt;
if (((welt.alive != false) && (welt.stun_timer < 1)) && (welt.headless != true)) {
if (((((_x + w) > (welt._x - _root.w_welt)) && ((_x - w) < (welt._x + _root.w_welt))) && (((_y + _root.speed_meatfall) > (welt._y - _root.h_welt)) && (_y < (welt._y - _root.h_welt)))) && ((welt.head._rotation > -30) && (welt.head._rotation < 30))) {
_root.messages.munch.play();
if (_root.munch != true) {
_root.game.welt.head.head.gotoAndStop("eat");
_root.game.welt.eat = "munch";
}
_root.munch_timer = 350;
_root.game[name].removeMovieClip();
}
}
};
}
function maggot(name) {
tellTarget (_root.game[name]) {
h = _height;
w = 10;
_x = (_x + speed_x);
_y = (_y + speed_y);
if (_xscale > 100) {
_xscale = (_xscale - 4);
} else {
_xscale = 100;
}
if (_yscale < 100) {
_yscale = (_yscale + 4);
} else {
_yscale = 100;
}
if (_y > _root.floor_y) {
_y = _root.floor_y;
if ((type == 1) && (bounces < 2)) {
bounces++;
if (bounces == 1) {
speed_fall = _root.speed_maggotfall * 2;
speed_y = speed_fall;
} else {
speed_y = speed_y / 1.2;
}
if (speed_x == 0) {
if (_x < _root.center_x) {
speed_x = speed_y / 5;
} else {
speed_x = (-speed_y) / 5;
}
}
_xscale = 135;
_yscale = 75;
speed_y = -speed_y;
_root.s_maggot_bounce1.start();
} else {
_root.eat_misses++;
gotoAndStop ("die");
}
} else {
if (bounces == 0) {
speed_fall = _root.speed_maggotfall;
}
if (speed_y < speed_fall) {
speed_y = speed_y + 0.5;
}
}
if (type == 1) {
if (speed_x < 0) {
maggot._rotation = maggot._rotation - Math.abs(speed_y);
} else {
maggot._rotation = maggot._rotation + Math.abs(speed_y);
}
}
welt = _root.game.welt;
if (welt.alive != false) {
if (_root.enemy_attacked("", 10, 10, _x, _y)) {
_root.s_splat2.start();
_root.spawn_object("fx_bloodsplat" + (random(2) + 1), _x, _y, 100, 0);
if (_root.game.welt.barf == true) {
_root.eat_misses++;
_root.score = _root.score - value;
_root.spawn_object("fx_points", _x, _y, -value, 0);
} else {
_root.blood = _root.blood + value;
_root.eats++;
}
_root.game[name].removeMovieClip();
} else if (((welt.alive != false) && (welt.stun_timer < 1)) && (welt.headless != true)) {
if ((((_x + w) > (welt._x - _root.w_welt)) && ((_x - w) < (welt._x + _root.w_welt))) && (((((_y + speed_y) > (welt._y - _root.h_welt)) && (_y < (welt._y - _root.h_welt))) && ((welt.head._rotation > -30) && (welt.head._rotation < 30))) && (_root.munch != true))) {
_root.game.welt.head.head.gotoAndStop("eat");
_root.blood = _root.blood + value;
_root.eats++;
_root.game[name].removeMovieClip();
}
}
}
if (_root.enemy_attacked("bloodball", 10, 10, _x, _y)) {
_root.s_splat2.start();
_root.spawn_object("fx_bloodsplat" + (random(2) + 1), _x, _y, 100, 0);
_root.eat_misses++;
_root.score = _root.score - value;
_root.spawn_object("fx_points", _x, _y, -value, 0);
_root.game[name].removeMovieClip();
}
};
}
function gib(name) {
tellTarget (_root.game[name]) {
if (active != false) {
_x = (_x + speed_x);
_y = (_y + speed_y);
speed_y++;
_rotation = (_rotation + speed_x);
h = _height / 3;
if ((_y + h) > _root.floor_y) {
_y = (_root.floor_y - h);
if (speed_y > (_root.speed_gib / 2)) {
speed_x = speed_x / 1.5;
speed_y = speed_y / 3;
speed_y = speed_y * -1;
air = true;
} else {
active = false;
_root.spawn_object("bg:fx_bloodsplat", _x, _y + h, 100, 0);
}
}
} else if (timer == 0) {
_alpha = (_alpha - 3);
} else if (timer > 0) {
timer--;
} else {
timer = 60;
}
if (_alpha < 1) {
_root.game[name].removeMovieClip();
}
};
}
function flies() {
tellTarget (_root.game.flies) {
if (_root.game.welt.alive == false) {
if (((_x + _root.speed_flies) > dest_x) && ((_x - _root.speed_flies) < dest_x)) {
dest_x = _root.limit_left + random(_root.limit_right - _root.limit_left);
}
dest_y = (_root.limit_top / 2) + random(100);
} else {
dest_x = _root.game.welt._x;
dest_y = _root.game.welt._y - (_root.h_welt / 2);
}
_x = (_x + ((dest_x - _x) / _root.speed_flies));
_y = (_y + ((dest_y - _y) / _root.speed_flies));
};
}
function engine(action) {
scr_size_x = (100 / game._xscale) * 640;
scr_size_y = (100 / game._xscale) * 480;
screen_x = (100 / game._xscale) * game._x;
screen_y = (100 / game._xscale) * game._y;
limit_left = -screen_x;
limit_right = scr_size_x - screen_x;
limit_top = -screen_y;
limit_bottom = scr_size_y - screen_y;
center_x = _root.limit_left + (_root.scr_size_x / 2);
center_y = _root.limit_top + (_root.scr_size_y / 2);
_root.game.background.sun.flair._alpha = ((_root.sunrise_limit_low - _root.game.background.sun._y) / (_root.sunrise_limit_low - _root.sunrise_limit_high)) * 100;
if (action == "init") {
if (_root.level > 5) {
_root.level = 5;
}
if (_root.mode == "survival") {
_root.level = 4;
}
if (_root.cheat_upsidedown == true) {
game._yscale = -100;
}
game_x = game._x;
game_y = game._y;
game.gotoAndStop(_root.level);
if (_root.level == 1) {
hour = 2;
} else if (_root.level == 2) {
hour = 5;
} else if (_root.level == 3) {
hour = 7;
} else if (_root.level == 4) {
hour = 9;
} else {
hour = 11;
}
_root.set_daytime();
game_tint = new Color(game);
current_tint = new Object();
_root.game_tint.setTransform(new_tint);
_root.game.background.sun._y = sun_y;
hud_combo["2"]._visible = false;
hud_blood.gotoAndStop(_root.blood);
game.welt.clr = new Color(game.welt);
timer_respawn = -1;
i = 1;
while (i < 6) {
_root.game["enemy" + i].clr = new Color(_root.game["enemy" + i].bean);
_root.game["enemy" + i].gotoAndStop("respawn");
i++;
}
_root.game.bean1.gotoAndStop("respawn");
_root.game.bean2.gotoAndStop("respawn");
_root.game.dimkin1.gotoAndStop("respawn");
_root.game.dimkin2.gotoAndStop("respawn");
_root.game.background.dimkin_far.gotoAndStop("respawn");
_root.game.peashy.gotoAndStop("respawn");
if ((cinema != true) && (option_music != false)) {
_root["m_level" + (random(2) + 1)].start(0, 999999);
}
if ((mode == "story") && (level == 1)) {
cinema = true;
intro = true;
_root.screen_zoom(-40);
_root.game.welt._x = _root.limit_left - 300;
}
} else {
if ((pause == true) && (_root.game.welt.alive != false)) {
if (Key.isDown(13) || (Key.isDown(27) && (_root.paused != true))) {
if (!press_pause) {
_root.pause_screen.play();
}
press_pause = true;
} else {
press_pause = false;
}
}
if (_root.paused != true) {
if (_root.mode == "story") {
if (intro == true) {
new_zoom = 60 + (((_root.center_x - 200) / (_root.game.welt._x - 200)) * 40);
if (_root.game.welt._x > (_root.center_x - 200)) {
if (_root.game._xscale < new_zoom) {
_root.screen_zoom(1);
}
if ((_root.game._xscale >= 100) && (_root.game.welt.speed_x == 0)) {
cinema = false;
intro = false;
_root.game.welt.alive = true;
}
}
if (_root.game.welt._x < _root.center_x) {
_root.game.welt.speed_x = _root.speed;
_root.game.welt.cinema_walk = true;
} else {
_root.game.welt.speed_x = 0;
_root.game.welt.cinema_walk = false;
}
}
if ((wave < 4) && (cinema != true)) {
if (millisecs == 0) {
millisecs = 30;
if (secs == 0) {
if (mins == 0) {
wave++;
new_wave();
if (wave < 4) {
messages.wave.play();
mins = 1;
}
} else {
mins--;
secs = 59;
}
} else {
secs--;
}
} else {
millisecs--;
}
}
} else if (_root.mode == "classic") {
if (millisecs == 0) {
millisecs = 30;
if (secs == 0) {
if (mins == 0) {
new_hour();
messages.level_up.play();
_root.s_new_hour.start();
mins = 1;
} else {
mins--;
secs = 59;
}
} else {
secs--;
}
}
millisecs--;
if (game.background.sun._y != sun_y) {
current_tint = game_tint.getTransform();
current_tint.ra = current_tint.ra + ((new_tint.ra - current_tint.ra) / _root.speed_day_change);
current_tint.rb = current_tint.rb + ((new_tint.rb - current_tint.rb) / _root.speed_day_change);
current_tint.ga = current_tint.ga + ((new_tint.ga - current_tint.ga) / _root.speed_day_change);
current_tint.gb = current_tint.gb + ((new_tint.gb - current_tint.gb) / _root.speed_day_change);
current_tint.ba = current_tint.ba + ((new_tint.ba - current_tint.ba) / _root.speed_day_change);
current_tint.bb = current_tint.bb + ((new_tint.bb - current_tint.bb) / _root.speed_day_change);
game_tint.setTransform(current_tint);
if ((game.background.sun._y + (_root.speed_day_change / 4)) < sun_y) {
game.background.sun._y = game.background.sun._y + (_root.speed_day_change / 4);
} else if ((game.background.sun._y - (_root.speed_day_change / 4)) > sun_y) {
game.background.sun._y = game.background.sun._y - (_root.speed_day_change / 4);
} else {
game.background.sun._y = sun_y;
}
}
} else if (_root.mode == "survival") {
millisecs++;
if (millisecs == 30) {
millisecs = 0;
if (secs == 59) {
secs = 0;
mins++;
new_intensity();
} else {
secs++;
}
}
} else if (_root.mode == "bombard") {
if (speed_beanfall < 20) {
speed_beanfall = speed_beanfall + 0.001;
}
}
if (_root.lives > 99) {
_root.lives = 99;
}
if (_root.score < 0) {
_root.score = 0;
}
if (combo_timer > 0) {
combo_timer--;
} else {
count_kills = 0;
}
if (_root.cinema == true) {
_root.game.welt.alive = false;
}
if (_root.game.welt.respawn == true) {
if (_root.blood < 100) {
_root.blood++;
if (_root.game.welt._alpha == 100) {
_root.game.welt._alpha = 0;
} else {
_root.game.welt._alpha = 100;
}
} else {
_root.blood = 100;
_root.game.welt.respawn = false;
_root.game.welt.alive = true;
_root.game.welt._alpha = 100;
}
} else {
tellTarget (_root.game.welt) {
clr.setTransform(_root.c_nada);
if ((_root.blood <= 0) && (_currentframe == 1)) {
xscale = body._xscale;
gotoAndStop ("die");
welt._xscale = xscale;
} else if (_root.blood < 20) {
if ((flash == 0) && (_root.game.welt.alive != false)) {
clr.setTransform(_root.c_red);
_root.s_heartbeat.start();
flash = -1;
} else if (flash > 0) {
flash--;
} else {
flash = int(_root.blood);
}
} else if (_root.blood > 100) {
_root.blood = 100;
}
};
if (_root.munch != true) {
_root.blood = _root.blood - 0.02;
}
}
if (_root.game.welt.barf == true) {
_root.blood = _root.blood - 2.5;
i = 1;
while (i <= 10) {
_root.spawn_object("geyser_area", _root.game.welt._x + (Math.sin((Math.PI/180) * _root.game.welt.head._rotation) * (70 * i)), (_root.game.welt._y - 50) - (Math.cos((Math.PI/180) * _root.game.welt.head._rotation) * (70 * i)), 100, 0);
_root.game["geyser_area_" + _root.game.i]._name = "geyser_area" + i;
i++;
}
}
if (_root.munch == true) {
if (_root.munch_timer == 0) {
_root.game.welt.head.head.gotoAndStop("go_normal");
} else if (_root.munch_timer > 0) {
_root.munch_timer--;
}
}
if (((_root.game.welt.head.head._currentFrame != 5) && (_root.game.welt.head.head._currentFrame != 12)) && (_root.game.welt.barf == true)) {
tellTarget (_root.game.welt) {
barf = false;
_root.spawn_object("fx_geyser_end", _x + (head_r / 1.5), (_y - _root.h_welt) + Math.abs(head_r / 1.5), 100, head_r);
};
_root.s_barf.stop("barf");
_root.s_bloodflow.stop("bloodflow");
}
if ((_root.eats >= (20 * (_root._1up_drops + 1))) && (_root.cinema != true)) {
_root._1up_drops++;
_root.spawn_object("1up", 0, _root.limit_top, 100, 0);
}
if ((_root.score >= (1000 * (_root.meat_drops + 1))) && (_root.cinema != true)) {
_root.meat_drops++;
_root.spawn_object("meat", 0, _root.limit_top, 100, 0);
}
if (_root.cinema != true) {
if (timer_maggot == 0) {
timer_maggot = -1;
_root.spawn_object("maggot", _root.limit_left + random((_root.limit_right - 50) - (_root.limit_left + 50)), _root.limit_top - 50, 100, 0);
} else if (timer_maggot > 0) {
timer_maggot--;
} else {
timer_maggot = random(200) + 100;
}
}
}
if (_root.enemy_num < 0) {
_root.enemy_num = 0;
}
if ((_root.cinema != true) && (_root.wave < 4)) {
if (enemies == true) {
if (timer_respawn == 0) {
i = 1;
while (i <= _root.total_enemies) {
obj = _root.game["enemy" + i];
if ((obj.idle == true) && (_root.enemy_num < 4)) {
_root.enemy_num++;
obj.idle = false;
obj.gotoAndStop(1);
}
timer_respawn = -1;
i++;
}
} else if (timer_respawn > 0) {
timer_respawn--;
} else {
timer_respawn = 40 + random(40);
}
}
if (enemy_hopdump == true) {
if (timer_respawn_hopdump == 0) {
i = 1;
while (i <= _root.total_enemies_hopdump) {
obj = _root.game["bean" + i];
if ((obj.idle == true) && (_root.enemy_num < 4)) {
_root.enemy_num++;
obj.idle = false;
obj.gotoAndStop(1);
}
timer_respawn_hopdump = -1;
i++;
}
} else if (timer_respawn_hopdump > 0) {
timer_respawn_hopdump--;
} else {
timer_respawn_hopdump = random(100);
}
}
if (enemy_dimkin == true) {
if (timer_respawn_dimkin == 0) {
i = 1;
while (i <= _root.total_enemies_dimkin) {
obj = _root.game["dimkin" + i];
if ((obj.idle == true) && (_root.enemy_num < 4)) {
if (random(2) == 1) {
obj._x = (_root.limit_right + _root.w_dimkin) + random(50);
obj._xscale = -100;
obj.speed = -_root.speed_dimkin;
} else {
obj._x = (_root.limit_left - _root.w_dimkin) - random(50);
obj._xscale = 100;
obj.speed = _root.speed_dimkin;
}
_root.enemy_num++;
obj.idle = false;
obj.gotoAndStop(1);
}
i++;
}
timer_respawn_dimkin = -1;
} else if (timer_respawn_dimkin > 0) {
timer_respawn_dimkin--;
} else {
timer_respawn_dimkin = random(100);
}
}
if (enemy_dimkin_far == true) {
if (timer_respawn_dimkin_far == 0) {
if (random(4) == 1) {
tellTarget (_root.game.background.dimkin_far) {
if (idle == true) {
_root.enemy_num++;
idle = false;
if (random(2) == 1) {
_x = (_root.limit_right + 50);
} else {
_x = (_root.limit_left - 50);
}
_x = (_x - _root.game.background._x);
dest_x = 150 - random(300);
gotoAndStop (1);
}
};
}
} else if (timer_respawn_dimkin_far > 0) {
timer_respawn_dimkin_far--;
} else {
timer_respawn_dimkin_far = 100 + random(100);
}
}
if (enemy_peashy == true) {
if (timer_respawn_peashy == 0) {
obj = _root.game.peashy;
if ((obj.idle == true) && (_root.enemy_num < 4)) {
if (_root.game.welt._x < 0) {
obj._x = _root.limit_right + _root.w_peashy;
} else {
obj._x = _root.limit_left - _root.w_peashy;
}
_root.enemy_num++;
obj.idle = false;
obj.gotoAndStop(1);
}
timer_respawn_peashy = -1;
} else if (timer_respawn_peashy > 0) {
timer_respawn_peashy--;
} else {
timer_respawn_peashy = random(100);
}
}
} else if (_root.mode == "story") {
if (_root.enemy_num == 0) {
if (_root.boss == true) {
if (_root.game.boss._currentFrame == 1) {
_root.game.boss.gotoAndStop(2);
}
} else if (intro != true) {
_root.pause = false;
_root.cinema = true;
_root.level_end.play();
}
}
}
}
process_lives = String(_root.lives);
showlives = process_lives.charAt(0);
showlives++;
hud_lives["1"].gotoAndStop(showlives);
if (_root.lives >= 10) {
showlives = process_lives.charAt(0);
showlives++;
hud_lives["2"].gotoAndStop(showlives);
hud_lives["2"]._visible = true;
} else {
hud_lives["2"]._visible = false;
}
if (_root.mode == "survival") {
_root.hud_score["1"].gotoAndStop(mins + 1);
process_secs = String(secs);
if (process_secs.length < 2) {
process_secs = "0" + process_secs;
}
show_secs = process_secs.charAt(0);
show_secs++;
_root.hud_score["2"].gotoAndStop(show_secs);
show_secs = process_secs.charAt(1);
show_secs++;
_root.hud_score["3"].gotoAndStop(show_secs);
} else {
if (int(process_score) > _root.score) {
_root.hud_score.score.play();
}
process_score = String(_root.score);
while (process_score.length < 8) {
process_score = "0" + process_score;
}
i = 0;
while (i < 9) {
showscore = process_score.charAt(i);
showscore++;
i++;
_root.hud_score.score[i].gotoAndStop(showscore);
}
}
process_eats = String(_root.eats);
while (process_eats.length < 3) {
process_eats = "0" + process_eats;
}
i = 0;
while (i < 4) {
showeats = process_eats.charAt(i);
showeats++;
i++;
if ((showeats == 1) && (i < 3)) {
_root.hud_eats[i]._visible = false;
} else {
_root.hud_eats[i].gotoAndStop(showeats);
_root.hud_eats[i]._visible = true;
}
}
process_combo = String(_root.combo);
showcombo = process_combo.charAt(0);
showcombo++;
hud_combo["1"].gotoAndStop(showcombo);
if (_root.combo >= 10) {
showcombo = process_combo.charAt(0);
showcombo++;
hud_combo["2"].gotoAndStop(showcombo);
hud_combo["2"]._visible = true;
} else {
hud_combo["2"]._visible = false;
}
if (hud_blood._currentFrame < Math.round(_root.blood)) {
hud_blood.fill.play();
hud_blood.nextFrame();
} else {
_root.hud_blood.gotoAndStop(Math.round(_root.blood) + 1);
}
}
gameover = false;
cinema = false;
pause = true;
paused = false;
intro = false;
boss = false;
enemy_num = 0;
score = 0;
combo = 0;
kills = 0;
kill_misses = 0;
eats = 0;
eat_misses = 0;
process_score = 0;
process_secs = 0;
process_combo = 0;
process_eats = 0;
blood = 100;
blood_change = blood;
sunrise_limit_high = -50;
sunrise_limit_low = 190;
_1up_drops = 0;
meat_drops = 0;
munch = false;
speed = 9;
speed_slide = 4;
speed_head = 6;
speed_flies = 11;
speed_gib = 8;
speed_boss1 = 3;
speed_boss_eye_fall = 13;
speed_bean = 5;
speed_beanfall = 6;
speed_beanhop = 13;
speed_dimkin = 3;
speed_peashy = 3;
speed_fetus = 9;
speed_spike = 12;
speed_maggotfall = 7;
speed_meatfall = 5;
speed_bloodball = 18;
speed_1up = 4;
speed_day_change = 8;
particle_limit = 10;
particle_num = 0;
w_welt = 45;
h_welt = 100;
w_dimkin = 90;
h_dimkin = 125;
w_peashy = 30;
h_peashy = 70;
floor_y = 200;
hour = 1;
total_hours = 1;
enemies = false;
biggest_enemy = 1;
total_enemies = 0;
enemy_hopdump = false;
total_enemies_hopdump = 0;
enemy_dimkin = false;
total_enemies_dimkin = 0;
enemy_dimkin_far = false;
enemy_peashy = false;
gib_set1 = new Array();
gib_set1 = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
gib_set2 = new Array();
gib_set2 = [3, 6, 9, 10, 11];
active_bloodballs = new Array();
if (_root.mode != "title") {
stopAllSounds();
_quality = _root.option_quality;
}
gotoAndStop(_root.mode);
Frame 16
millisecs = 0;
secs = 0;
mins = 0;
wave = 0;
Instance of Symbol 1270 MovieClip "game" in Frame 16
onClipEvent (load) {
_root.engine("init");
}
onClipEvent (enterFrame) {
_root.engine();
}
Instance of Symbol 342 MovieClip "cursor" in Frame 16
onClipEvent (enterFrame) {
_root.f_cursor();
}
Frame 17
millisecs = 0;
secs = 0;
mins = 1;
enemies = true;
biggest_enemy = 1;
total_enemies = 2;
Frame 18
millisecs = 0;
secs = 0;
mins = 0;
increase_enemy_size = 1;
enemies = true;
total_enemies = 4;
enemy_hopdump = true;
total_enemies_hopdump = 2;
enemy_dimkin = true;
total_enemies_dimkin = 2;
enemy_dimkin_far = true;
enemy_peashy = true;
Frame 19
lives = 0;
millisecs = 0;
secs = 0;
mins = 0;
biggest_enemy = 3;
enemies = true;
total_enemies = 5;
enemy_hopdump = false;
enemy_dimkin = false;
enemy_dimkin_far = false;
enemy_peashy = false;
speed_beanfall = 7;
Instance of Symbol 1398 MovieClip "game" in Frame 19
onClipEvent (load) {
_root.engine("init");
}
onClipEvent (enterFrame) {
_root.engine();
}
Symbol 46 MovieClip Frame 1
if (_root.paused == true) {
_parent.paused = true;
_parent.stop();
} else if (_parent.paused == true) {
_parent.paused = false;
_parent.play();
}
Symbol 46 MovieClip Frame 2
gotoAndPlay (1);
Symbol 49 MovieClip [fx_dust4] Frame 7
this.removeMovieClip();
Symbol 54 MovieClip [fx_dust2] Frame 9
this.removeMovieClip();
Symbol 57 MovieClip Frame 1
if (_root.paused != true) {
_root.spike(_parent._name);
}
Symbol 57 MovieClip Frame 2
gotoAndPlay (1);
Symbol 59 MovieClip Frame 71
_parent.removeMovieClip();
Symbol 60 MovieClip [spike] Frame 1
speed_y = -(Math.abs((_root.game.welt._x - _x) / 320) * ((_root.speed_spike - random(3)) * 2));
stop();
Symbol 60 MovieClip [spike] Frame 2
_rotation = 0;
Symbol 66 MovieClip Frame 11
_root.spawn_object("glass:screensplat" + _parent._currentFrame, _parent._x + _parent._parent._x, _parent._y + _parent._parent._y, 100, 0);
_parent.removeMovieClip();
Symbol 72 MovieClip Frame 11
_root.spawn_object("glass:screensplat" + _parent._currentFrame, _parent._x + _parent._parent._x, _parent._y + _parent._parent._y, 100, 0);
_parent.removeMovieClip();
Symbol 78 MovieClip Frame 11
_root.spawn_object("glass:screensplat" + _parent._currentFrame, _parent._x + _parent._parent._x, _parent._y + _parent._parent._y, 100, 0);
_parent.removeMovieClip();
Symbol 84 MovieClip Frame 11
_root.spawn_object("glass:screensplat" + _parent._currentFrame, _parent._x + _parent._parent._x, _parent._y + _parent._parent._y, 100, 0);
_parent.removeMovieClip();
Symbol 85 MovieClip [fx_blood_screensplat] Frame 1
_alpha = 90;
this.swapDepths(_root.game.i + 1000);
gotoAndStop(random(4) + 1);
Symbol 88 MovieClip Frame 1
if (_root.paused != true) {
_root.gib(_parent._name);
}
Symbol 88 MovieClip Frame 2
gotoAndPlay (1);
Symbol 98 MovieClip [fx_gib] Frame 1
start_x = _x;
start_y = _y;
_x = ((_x - 20) + random(40));
_y = ((_y - 10) + random(20));
if (_x > start_x) {
speed_x = random(_root.speed_gib) + 1;
} else {
speed_x = -(random(_root.speed_gib) + 1);
}
if (_y > start_y) {
speed_y = random(_root.speed_gib) + 1;
} else {
speed_y = (-(random(_root.speed_gib) + 1)) * 2;
}
_yscale = _xscale;
gotoAndStop(_root["gib_set" + set][random(_root["gib_set" + set].length)]);
Symbol 99 MovieClip [fx_gibs] Frame 1
while (i < _rotation) {
_root.spawn_object("fx_gib", _x, _y, 100, 0);
_root.game["fx_gib_" + _root.game.i].set = _xscale;
if (big == true) {
_root.game["fx_gib_" + _root.game.i]._xscale = 170;
}
i++;
}
this.removeMovieClip();
Symbol 105 MovieClip [blood_particle] Frame 1
if (_xscale == 100) {
_xscale = (_xscale + random(65));
}
_yscale = _xscale;
_root.particle_num++;
Symbol 105 MovieClip [blood_particle] Frame 11
_root.particle_num--;
this.removeMovieClip();
Symbol 108 MovieClip Frame 1
if (_root.paused != true) {
_root.bloodball(_parent._name);
}
Symbol 108 MovieClip Frame 2
gotoAndPlay (1);
Symbol 114 MovieClip Frame 11
_parent.gotoAndStop("remove");
Symbol 122 MovieClip Frame 15
_parent.gotoAndStop("remove");
Symbol 123 MovieClip [bloodball] Frame 1
h = 15;
w = 15;
speed_x = Math.sin((Math.PI/180) * _rotation) * _root.speed_bloodball;
speed_y = Math.cos((Math.PI/180) * _rotation) * (-_root.speed_bloodball);
_root.manage_objects("add", _name, "bloodballs");
stop();
Symbol 123 MovieClip [bloodball] Frame 3
_rotation = 0;
_root.s_splat1.start();
Symbol 123 MovieClip [bloodball] Frame 4
_root.manage_objects("remove", _name, "bloodballs");
this.removeMovieClip();
Symbol 126 MovieClip Frame 1
gotoAndStop(_parent.type);
Symbol 127 MovieClip Frame 1
if (_root.paused != true) {
_root.maggot(_parent._name);
}
Symbol 127 MovieClip Frame 2
gotoAndPlay (1);
Symbol 136 MovieClip Frame 49
_parent._parent.removeMovieClip();
Symbol 144 MovieClip Frame 49
_parent._parent.removeMovieClip();
Symbol 145 MovieClip Frame 1
gotoAndStop(_parent.type);
Symbol 146 MovieClip [maggot] Frame 1
if ((random(5) && (_root.level > 3)) || (_root.mode == "bombard")) {
type = 2;
value = 15;
} else {
type = 1;
value = 10;
}
bounces = 0;
speed_x = 0;
speed_y = _root.speed_maggotfall;
stop();
Symbol 146 MovieClip [maggot] Frame 2
_yscale = 100;
_root.s_splat3.start();
Symbol 149 MovieClip Frame 1
if (_root.paused != true) {
if (timer == 0) {
_parent._alpha = _parent._alpha - 3;
if (_parent._alpha <= 0) {
_parent.removeMovieClip();
}
} else if (timer > 0) {
timer--;
} else {
timer = 80;
}
}
Symbol 149 MovieClip Frame 2
gotoAndPlay (1);
Symbol 154 MovieClip [fx_bloodsplat] Frame 1
gotoAndStop(random(3) + 1);
Symbol 160 MovieClip [fx_bloodsplat2] Frame 13
this.removeMovieClip();
Symbol 165 MovieClip [fx_bloodsplat1] Frame 10
this.removeMovieClip();
Symbol 168 MovieClip Frame 1
if (_root.paused != true) {
x = _parent._x + _parent._parent._x;
width = _parent._width / 2;
welt = _root.game.welt;
if ((((x + width) > welt._x) && ((x - width) < welt._x)) && (welt.walking == true)) {
if (welt.speed_x > 0) {
if (welt.speed_slide < _root.speed_slide) {
welt.speed_slide = welt.speed_slide + 1.5;
}
} else if (welt.speed_x < 0) {
if (welt.speed_slide > (-_root.speed_slide)) {
welt.speed_slide = welt.speed_slide - 1.5;
}
}
if (((welt.speed_slide > 0) && (slide_dir != "right")) || ((welt.speed_slide < 0) && (slide_dir != "left"))) {
if (welt.speed_slide > 0) {
bloodslip_xscale = 100;
slide_dir = "right";
} else {
bloodslip_xscale = -100;
slide_dir = "left";
}
_root.spawn_object("fx_bloodslip", welt._x, welt._y, bloodslip_xscale, 0);
}
weltling = true;
welt.sliding = true;
} else if (weltling == true) {
weltling = false;
welt.sliding = false;
}
if (timer == 0) {
_parent._alpha = _parent._alpha - 3;
if (_parent._alpha <= 0) {
welt.sliding = false;
_parent.removeMovieClip();
}
} else if (timer > 0) {
timer--;
} else {
timer = 80;
}
}
Symbol 168 MovieClip Frame 2
gotoAndPlay (1);
Symbol 181 MovieClip [fx_bloodslip] Frame 11
this.removeMovieClip();
Instance of Symbol 183 MovieClip in Symbol 184 MovieClip [1up] Frame 1
onClipEvent (enterFrame) {
if (_root.paused != true) {
_root._1up(_parent._name);
}
}
Symbol 186 MovieClip [meat] Frame 1
if (_root.paused != true) {
_root.meat(_name);
}
Symbol 186 MovieClip [meat] Frame 2
gotoAndPlay (1);
Symbol 191 MovieClip Frame 1
if ((_parent.kill_welt == false) && (_root.game.welt.alive != false)) {
if (_root.game.welt._x > _parent._x) {
if ((_root.game.welt._x - _root.w_welt) < _parent._x) {
_root.game.welt._x = _parent._x + _root.w_welt;
_root.game.welt.speed_x = 0;
}
} else if ((_root.game.welt._x + _root.w_welt) > _parent._x) {
_root.game.welt._x = _parent._x - _root.w_welt;
_root.game.welt.speed_x = 0;
}
}
Symbol 191 MovieClip Frame 2
gotoAndPlay (1);
Symbol 196 MovieClip [spear] Frame 13
if (((_x > (_root.game.welt._x - _root.w_welt)) && (_x < (_root.game.welt._x + _root.w_welt))) && (_root.game.welt.alive != false)) {
_root.game.welt.gotoAndStop("die");
} else {
kill_welt = false;
}
_root.s_slice.start();
Symbol 196 MovieClip [spear] Frame 71
stop();
Symbol 200 MovieClip [fx_geyser_end] Frame 7
this.removeMovieClip();
Symbol 202 MovieClip [fx_welt_head] Frame 1
speed_x = Math.sin((Math.PI/180) * _rotation) * (_root.speed_gib * 2);
speed_y = Math.cos((Math.PI/180) * _rotation) * (-(_root.speed_gib * 2));
Symbol 204 MovieClip [light_particle] Frame 1
_root.light_particle(_name);
Symbol 204 MovieClip [light_particle] Frame 2
gotoAndPlay (1);
Symbol 222 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 231 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 232 MovieClip [fetus] Frame 1
speed_x = int(((_root.game.welt._x - _x) / _root.limit_right) * _root.speed_fetus);
r = (Math.atan((_root.game.welt._y - _y) / (_root.game.welt._x - _x)) * 57.2957795130823) - 90;
if (_root.game.welt._x < _x) {
r = r + 180;
}
fetus._rotation = r;
stop();
Instance of Symbol 209 MovieClip "fetus" in Symbol 232 MovieClip [fetus] Frame 1
onClipEvent (enterFrame) {
if (_root.paused != true) {
_root.fetus(_parent._name);
}
}
Symbol 232 MovieClip [fetus] Frame 2
_root.s_splat1.start();
Symbol 232 MovieClip [fetus] Frame 3
_root.s_splat2.start();
Symbol 233 MovieClip [fx_screen_shake] Frame 1
if (Math.abs(_rotation) > 0) {
speed_x = _rotation;
speed_y = _rotation;
_rotation = 0;
}
_root.screen_shake("x", speed_x);
_root.screen_shake("y", speed_y);
Symbol 233 MovieClip [fx_screen_shake] Frame 2
_root.screen_shake("x", -speed_x);
_root.screen_shake("y", -speed_y);
Symbol 233 MovieClip [fx_screen_shake] Frame 3
_root.screen_shake("x", -speed_x);
_root.screen_shake("y", -speed_y);
Symbol 233 MovieClip [fx_screen_shake] Frame 4
_root.screen_shake("x", speed_x);
_root.screen_shake("y", speed_y);
speed_x--;
if (speed_y < 0) {
speed_y++;
} else {
speed_y--;
}
speed_y = speed_y * -1;
if ((Math.abs(speed_x) <= 0) && (Math.abs(speed_y) <= 0)) {
this.removeMovieClip();
}
Symbol 238 MovieClip [fx_geyser_splash] Frame 16
this.removeMovieClip();
Symbol 240 MovieClip [geyser_area] Frame 1
_visible = false;
Symbol 240 MovieClip [geyser_area] Frame 3
this.removeMovieClip();
Symbol 243 MovieClip [screensplat1] Frame 100
this.removeMovieClip();
Symbol 246 MovieClip [screensplat2] Frame 99
this.removeMovieClip();
Symbol 249 MovieClip [screensplat3] Frame 109
this.removeMovieClip();
Symbol 252 MovieClip [screensplat4] Frame 109
this.removeMovieClip();
Symbol 254 MovieClip [screen_flash_red] Frame 6
this.removeMovieClip();
Symbol 275 MovieClip [fx_bloodsplat3] Frame 9
this.removeMovieClip();
Symbol 292 MovieClip Frame 23
stop();
Symbol 293 MovieClip [fx_boss_eyeball] Frame 1
speed = _root.speed_boss_eyeball;
stop();
Instance of Symbol 279 MovieClip in Symbol 293 MovieClip [fx_boss_eyeball] Frame 1
onClipEvent (enterFrame) {
if (_root.paused != true) {
if (_parent._y < _root.floor_y) {
_parent._y = _parent._y + _parent.speed;
_parent.speed = _parent.speed + 0.5;
_root.spawn_object("blood_particle", (_parent._x - 20) + random(40), (_parent._y - _parent._height) + random(20), 100, 0);
} else {
_parent._y = _root.floor_y;
_parent.gotoAndStop("splat");
}
}
}
Symbol 293 MovieClip [fx_boss_eyeball] Frame 2
_root.s_splat3.start();
Symbol 303 MovieClip [fx_points] Frame 1
if (_xscale > 0) {
points = "+" + _xscale;
} else {
points = _xscale;
}
_xscale = 100;
Symbol 303 MovieClip [fx_points] Frame 41
this.removeMovieClip();
Symbol 305 MovieClip Frame 1
if (_root.paused != true) {
if (_root.game.welt.stun_timer < 1) {
_parent.gotoAndStop(1);
_parent._visible = false;
} else {
_parent.play();
_parent._visible = true;
}
}
Symbol 305 MovieClip Frame 2
gotoAndPlay (1);
Symbol 329 Button
on (release) {
_root.play();
}
Symbol 330 MovieClip Frame 1
_root.stop();
stop();
Symbol 330 MovieClip Frame 20
stop();
Symbol 335 Button
on (release) {
_root.NewgroundsAPI_loadNewgrounds();
}
Symbol 338 Button
on (release) {
_root.NewgroundsAPI_loadNewgrounds();
}
Symbol 340 MovieClip Frame 1
function load_ad() {
url = new XML();
url.onLoad = function (s) {
if (s) {
_root.NewgroundsAPI_Ad_Unit.start_ad(this.toString());
}
};
url.load(_root.NewgroundsAPI_params.ad_url);
}
function start_ad(url) {
trace("[Newgrounds Flash Ads] Your ad was loaded. Your version of flash may have trouble displaying the ad, however, the ad will load fine if you test in a browser!");
ng_ad.loadMovie(url);
}
_root.NewgroundsAPI_Ad_Unit = this;
if (_root.NewgroundsAPI_params.ad_url != undefined) {
_root.NewgroundsAPI_Ad_Unit.load_ad();
}
_root.NewgroundsAPI_onAdsApproved = function () {
_root.NewgroundsAPI_Ad_Unit.load_ad();
};
Instance of Symbol 330 MovieClip in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
x = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (x < 100) {
bar.gotoAndStop(x);
} else if (init != 1) {
init = 1;
play();
}
}
Symbol 353 Button
on (release) {
_root.NewgroundsAPI_loadMyMovie();
}
Symbol 358 Button
on (release) {
_root.NewgroundsAPI_loadMyMovie();
}
Symbol 361 Button
on (release) {
this._visible = false;
}
Symbol 363 MovieClip Frame 1
_visible = false;
_root.NewgroundsAPI = this;
STAT_MOVIE_VIEWS = 1;
STAT_AUTHOR_SITE = 2;
STAT_NEWGROUNDS = 3;
STAT_NEW_VERSION = 4;
STAT_CUSTOM_STATS = 50;
Symbol 363 MovieClip Frame 2
_root.NewgroundsAPI.POPUP_ERROR._visible = false;
_root.NewgroundsAPI.POPUP_VERSION._visible = false;
customStats = new Object();
i = 1;
while (i < _root.NewgroundsAPI_customLinks.length) {
customStats[_root.NewgroundsAPI_customLinks[i]] = i + STAT_CUSTOM_STATS;
i++;
}
i = 1;
while (i < _root.NewgroundsAPI_customEvents.length) {
customStats[_root.NewgroundsAPI_customEvents[i]] = i + STAT_CUSTOM_STATS;
i++;
}
_x = 0;
_y = 0;
configureMovie = function () {
if (_root.NewgroundsAPI_params.error != undefined) {
sendError(_root.NewgroundsAPI_params.error);
}
if (_root.NewgroundsAPI_params.settings_loaded == 1) {
sendMessage("You have successfully connected to the Newgrounds API gateway!");
sendMessage(("Movie Identified as '" + _root.NewgroundsAPI_params.movie_name) + "'");
}
if (_root.NewgroundsAPI_params.deny_host == 1) {
sendMessage(host + " is not approved to use this movie");
_root.NewgroundsAPI_onDenyHost(host, _root.NewgroundsAPI_params.movie_url, (script_url + "&stat=") + STAT_NEW_VERSION);
}
if (_root.NewgroundsAPI_params.movie_version == 1) {
sendMessage(("Version " + _root.NewgroundsAPI_params.movie_version) + " is now available!");
_root.NewgroundsAPI_onNewVersionAvailable(_root.NewgroundsAPI_params.movie_version, _root.NewgroundsAPI_params.movie_url, (script_url + "&stat=") + STAT_NEW_VERSION);
}
if (_root.NewgroundsAPI_params.ad_url != undefined) {
sendMessage("This movie has been approved to use Flash Ads");
_root.NewgroundsAPI_onAdsApproved(_root.NewgroundsAPI_params.ad_url);
}
};
sendError = function (error) {
trace("[NEWGROUNDS API ERROR] " + error);
};
sendMessage = function (message) {
trace("[NEWGROUNDS API] " + message);
};
sendStats = function (stat, new_window) {
if (script_url != undefined) {
query = "&stat=" + stat;
if (new_window == true) {
getURL (script_url + query, "_blank");
} else {
initInfo = new XML();
initInfo.onLoad = function () {
i = 0;
while (i < this.childNodes.length) {
if (this.childNodes[i].nodeName != null) {
j = 0;
while (j < this.childNodes[i].childNodes.length) {
if (this.childNodes[i].childNodes[j].nodeName != null) {
param_name = this.childNodes[i].childNodes[j].nodeName;
param_value = unescape(this.childNodes[i].childNodes[j].attributes.value);
_root.NewgroundsAPI_params[param_name] = param_value;
}
j++;
}
}
i++;
}
_root.NewgroundsAPI.configureMovie();
};
initInfo.load(script_url + query);
}
}
};
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
if (!_root.NewgroundsAPI_id) {
sendError("Missing required '_root.NewgroundsAPI_id' variable");
} else if (!tracker_id) {
tracker_id = _root.NewgroundsAPI_id;
script_url = (("http://www.ngads.com/gateway.php?id=" + tracker_id) + "&host=") + escape(host);
_root.NewgroundsAPI_params = new Object();
sendMessage("Connecting to API gateway...");
sendStats(STAT_MOVIE_VIEWS, false);
}
_root.NewgroundsAPI_loadMyMovie = function () {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.STAT_NEW_VERSION, true);
};
_root.NewgroundsAPI_loadNewgrounds = function () {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.STAT_NEWGROUNDS, true);
};
_root.NewgroundsAPI_loadMySite = function () {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.STAT_AUTHOR_SITE, true);
};
_root.NewgroundsAPI_loadCustomLink = function (link) {
if (_root.NewgroundsAPI.customStats[link]) {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.customStats[link], true);
} else {
_root.NewgroundsAPI.sendError(("The custom link '" + link) + "' has not beed defined.");
}
};
_root.NewgroundsAPI_logCustomEvent = function (event) {
if (_root.NewgroundsAPI.customStats[event]) {
_root.NewgroundsAPI.sendStats(_root.NewgroundsAPI.customStats[event], false);
} else {
_root.NewgroundsAPI.sendError(("The custom event '" + event) + "' has not beed defined.");
}
};
if (typeof(_root.NewgroundsAPI_onDenyHost) != "function") {
_root.NewgroundsAPI_onDenyHost = function (ad_url) {
_root.NewgroundsAPI.swapDepths(99999);
_root.NewgroundsAPI._visible = true;
_root.NewgroundsAPI.POPUP_ERROR._visible = true;
};
}
if (typeof(_root.NewgroundsAPI_onNewVersionAvailable) != "function") {
_root.NewgroundsAPI_onNewVersionAvailable = function (ad_url) {
_root.NewgroundsAPI.swapDepths(99999);
_root.NewgroundsAPI._visible = true;
_root.NewgroundsAPI.POPUP_VERSION._visible = true;
};
}
stop();
Symbol 368 Button
on (press) {
_root.nextFrame();
}
Symbol 369 Button
on (press) {
getURL ("http://www.diverge.ws/weltling2.html", "_blank");
}
Symbol 376 Button
on (press) {
getURL ("http://www.diverge.ws/weltling2.html", "_blank");
}
Symbol 406 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 318
if (info._currentFrame == info._totalFrames) {
info.gotoAndStop(1);
} else {
info.nextFrame();
}
Symbol 426 Button
on (release) {
_root.gotoAndStop("game_ini");
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 427 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 3
activities = new Array();
activities = ["read to a retarded child", "scratch your balls", "get drunk off your ass", "try heroin", "overthrow the government", "go puke blood", "go play with matches"];
rand_text = ("In the meantime, " + activities[random(activities.length)]) + "...";
stop();
Instance of Symbol 427 MovieClip "text" in Symbol 428 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (2);
}
}
Symbol 441 MovieClip Frame 11
stop();
Symbol 442 MovieClip Frame 37
stop();
Symbol 447 Button
on (release) {
gotoAndStop ("mode");
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 452 Button
on (release) {
gotoAndStop ("instructions");
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 457 Button
on (release) {
gotoAndStop ("credits");
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 462 Button
on (release) {
gotoAndStop ("options");
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 470 Button
on (release) {
fscommand ("quit", "true");
}
Symbol 486 Button
on (release) {
_root.mode = "story";
_root.gotoAndStop("story_intro");
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 492 MovieClip Frame 1
if (_root.demo == true) {
nextFrame();
} else {
stop();
}
Symbol 495 MovieClip Frame 1
if (_root.demo == true) {
nextFrame();
} else {
stop();
}
Symbol 496 Button
on (release) {
if (_root.demo == true) {
getURL ("http://www.diverge.ws/weltling2.html", "_blank");
} else {
_root.mode = "classic";
_root.gotoAndStop("game_ini");
}
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 504 MovieClip Frame 1
if (_root.demo == true) {
nextFrame();
} else {
stop();
}
Symbol 533 MovieClip Frame 1
if (_root.cheat_accessory == "heart") {
gotoAndStop (2);
} else if (_root.cheat_accessory == "spear") {
gotoAndStop (3);
} else if (_root.cheat_accessory == "lilhead") {
gotoAndStop (4);
} else if (_root.cheat_accessory == "cock") {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
Symbol 540 MovieClip Frame 1
if (_root.demo == true) {
nextFrame();
} else {
stop();
}
Symbol 541 Button
on (release) {
if (_root.demo == true) {
getURL ("http://www.diverge.ws/weltling2.html", "_blank");
} else {
_root.mode = "survival";
_root.gotoAndStop("game_ini");
}
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 546 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.cheat_levelskip != true) {
_visible = false;
} else {
_visible = true;
}
};
Symbol 567 MovieClip Frame 1
if (_root.demo == true) {
nextFrame();
} else {
stop();
}
Symbol 587 MovieClip Frame 1
if (_root.demo == true) {
nextFrame();
} else {
stop();
}
Symbol 588 Button
on (release) {
if (_root.demo == true) {
getURL ("http://www.diverge.ws/weltling2.html", "_blank");
} else {
_root.mode = "bombard";
_root.gotoAndStop("game_ini");
}
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 595 Button
on (release) {
if (code == "cheney") {
_root.cheat_accessory = "heart";
} else if (code == "kabob") {
_root.cheat_accessory = "spear";
} else if (code == "sideshow") {
_root.cheat_accessory = "lilhead";
} else if (code == "jholmes") {
_root.cheat_accessory = "cock";
} else if (code == "headstand") {
_root.cheat_upsidedown = true;
} else if (code == "sliders") {
_root.cheat_levelskip = true;
} else {
code = "";
_root.s_fart.start();
}
if (code != "") {
_root.s_medal.start();
}
}
Symbol 597 Button
on (release) {
gotoAndStop ("mode");
}
Symbol 598 Button
on (release) {
gotoAndStop ("instructions");
}
Symbol 599 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 600 Button
on (release) {
gotoAndStop ("options");
}
Symbol 613 Button
on (press) {
getURL ("http://www.diverge.ws", "new");
}
Symbol 616 Button
on (press) {
getURL ("http://www.gameaudiomagic.com", "new");
}
Symbol 618 Button
on (press) {
getURL ("http://www.thisisacryforhelp.com", "new");
}
Symbol 625 MovieClip Frame 4
_parent._xscale = _parent._xscale * -1;
_parent.gotoAndStop("normal");
Symbol 635 MovieClip Frame 8
_root.welt_attack("spit");
Symbol 635 MovieClip Frame 15
_parent.gotoAndStop("normal");
Symbol 636 MovieClip Frame 7
if (_parent._parent._parent.eat == "munch") {
_root.munch = true;
_parent._parent._parent.eat = "";
_parent.gotoAndStop("go_munch");
} else {
_parent.gotoAndStop("normal");
}
Symbol 650 MovieClip Frame 5
_root.s_bloodflow.start();
Symbol 650 MovieClip Frame 10
gotoAndPlay (5);
Symbol 660 MovieClip Frame 12
_root.munch = false;
_parent.gotoAndStop("normal");
Symbol 667 MovieClip Frame 12
_parent.gotoAndStop("normal_munch");
Symbol 669 MovieClip Frame 4
_parent._xscale = _parent._xscale * -1;
_parent.gotoAndStop("normal_munch");
Symbol 675 MovieClip Frame 4
_parent._parent._parent.bite = true;
Symbol 675 MovieClip Frame 10
_parent._parent._parent.bite = false;
_parent.gotoAndStop("normal_munch");
Symbol 677 MovieClip Frame 8
_parent.gotoAndStop("normal");
Symbol 683 MovieClip Frame 1
_root.s_barf.stop("barf");
_parent._parent.barf = false;
stop();
Symbol 683 MovieClip Frame 3
_root.game.welt.barf = false;
_root["s_spit" + (random(2) + 1)].start();
Symbol 683 MovieClip Frame 4
_root["s_gulp" + (random(2) + 1)].start();
Symbol 683 MovieClip Frame 5
_root.game.welt.barf = true;
_root.s_barf.start();
_root.spawn_object("fx_screen_shake", 0, 0, 100, 2);
Symbol 683 MovieClip Frame 7
_root.spawn_object("fx_screen_shake", 0, 0, 100, 7);
_root.spawn_object("glass:screen_flash_red", 320, 240, 100, 0);
Symbol 683 MovieClip Frame 10
_root.s_bite.start();
Symbol 683 MovieClip Frame 11
_root.spawn_object("fx_screen_shake", 0, 0, 100, 5);
_root.game.welt.stun_timer = 100;
_root.s_stun.start();
_parent._parent.stunned = true;
Symbol 683 MovieClip Frame 12
_parent._parent.barf = true;
_parent._parent.headless = true;
_parent._parent.stunned = false;
_parent._parent.stun_timer = -100;
_root.spawn_object("fx_screen_shake", 0, 0, 100, 10);
_root.s_splat3.start();
_root.s_slice.start();
_root.spawn_object("fx_welt_head", _parent._parent._x, _parent._parent._y + _parent._parent.head._y, _parent._parent.head.head._xscale, _parent._parent.head._rotation);
Symbol 687 MovieClip Frame 13
_root.spawn_object("fx_dust2", _parent._parent._x, _parent._parent._y, _parent._parent._xscale, 0);
Symbol 715 MovieClip Frame 91
_root.welt_respawn();
Symbol 736 MovieClip Frame 91
_root.welt_respawn();
Symbol 737 MovieClip Frame 1
stop();
Instance of Symbol 697 MovieClip "body" in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
area.gotoAndStop(body._currentFrame);
_parent.head._y = -area._height;
}
Symbol 737 MovieClip Frame 2
_root.welt_die();
_root["s_squawk" + (random(2) + 1)].start();
if (headless == true) {
gotoAndStop ("die_headless");
}
Instance of Symbol 737 MovieClip "welt" in Symbol 738 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_root.welt_controls();
_root.welt_head();
}
}
onClipEvent (mouseDown) {
m_click = true;
}
onClipEvent (mouseUp) {
m_click = false;
}
Symbol 759 Button
on (press) {
drag = true;
}
on (release, releaseOutside) {
drag = false;
}
Symbol 760 MovieClip Frame 1
button1.useHandCursor = false;
Symbol 761 MovieClip Frame 1
slide_limit = 112;
slider._x = slide_limit / 2;
Instance of Symbol 760 MovieClip "slider" in Symbol 761 MovieClip Frame 1
onClipEvent (enterFrame) {
if (drag == true) {
_x = ((_root._xmouse - _parent._parent._x) - _parent._x);
if (_x < 0) {
_x = 0;
} else if (_x > _parent.slide_limit) {
_x = _parent.slide_limit;
}
} else if (drag == false) {
x = Math.ceil(_x / (_parent.slide_limit / 3));
if (x == 3) {
_root.option_quality = "HIGH";
} else if (x == 2) {
_root.option_quality = "MEDIUM";
} else {
_root.option_quality = "LOW";
}
_quality = _root.option_quality;
}
}
Symbol 766 Button
on (release, releaseOutside) {
if (_root.option_music == true) {
_root.option_music = false;
} else {
_root.option_music = true;
}
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 767 Button
on (release, releaseOutside) {
if (_root.option_screenshake == true) {
_root.option_screenshake = false;
} else {
_root.option_screenshake = true;
}
}
on (rollOver) {
s_click = new Sound();
s_click.attachSound("click");
s_click.start();
}
Symbol 768 MovieClip Frame 1
button1.useHandCursor = false;
button2.useHandCursor = false;
button3.useHandCursor = false;
button4.useHandCursor = false;
Instance of Symbol 765 MovieClip in Symbol 768 MovieClip Frame 1
onClipEvent (load) {
function check_options() {
if (_root.option_music == true) {
checkbox1.gotoAndStop(1);
} else {
checkbox1.gotoAndStop(2);
}
if (_root.option_fullscreen == true) {
checkbox2.gotoAndStop(1);
} else {
checkbox2.gotoAndStop(2);
}
if (_root.option_screenshake == true) {
checkbox3.gotoAndStop(1);
} else {
checkbox3.gotoAndStop(2);
}
}
check_options();
}
onClipEvent (enterFrame) {
check_options();
}
Symbol 778 Button
on (rollOver) {
this.useHandCursor = false;
}
on (release) {
flash.gotoAndPlay(1);
nextFrame();
}
Symbol 781 MovieClip Frame 15
stop();
Symbol 782 Button
on (release) {
flash.gotoAndPlay(1);
nextFrame();
}
Symbol 798 Button
on (release) {
_root.gotoAndStop("game_ini");
}
Symbol 804 MovieClip Frame 1
button1.useHandCursor = false;
stop();
Symbol 813 Button
on (release) {
_root.gotoAndStop("gameover");
}
Symbol 814 MovieClip Frame 1
stop();
Symbol 826 MovieClip Frame 1
_visible = false;
Symbol 836 Button
on (release) {
_root.level++;
_root.gotoAndStop("game_ini");
}
Symbol 837 Button
on (release) {
if (_root.gameover == true) {
_root.gotoAndStop("gameover");
} else {
_root.gotoAndStop("story_outro");
}
}
Symbol 838 MovieClip Frame 1
button1.useHandCursor = false;
stop();
Symbol 838 MovieClip Frame 2
button2.useHandCursor = false;
Symbol 840 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 20
gotoAndPlay (11);
Instance of Symbol 838 MovieClip "next_level" in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 841 MovieClip Frame 40
if (kills != _root.kills) {
if (_root.kills == 0) {
kills = 0;
} else {
kills++;
}
} else if (eats != _root.eats) {
if (_root.eats == 0) {
eats = 0;
} else {
eats++;
}
} else if (combo != _root.combo) {
if (_root.combo == 0) {
combo = 0;
} else {
combo++;
}
} else if (total_score < _root.total_score) {
total_score = total_score + 111;
} else {
total_score = _root.total_score;
gotoAndPlay(_currentframe + 2);
}
_root.s_beep.start();
Symbol 841 MovieClip Frame 41
gotoAndPlay(_currentframe - 1);
Symbol 841 MovieClip Frame 68
rand_name.play();
_root.s_rand_name.start();
Symbol 841 MovieClip Frame 115
tellTarget (medal) {
if ((_root.eat_misses == 0) && (_root.kill_misses == 0)) {
gotoAndStop (4);
} else if (_root.eat_misses == 0) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
_visible = true;
if (_currentframe > 1) {
_root.s_medal.start();
}
};
Symbol 841 MovieClip Frame 135
next_level._visible = true;
if ((_root.level == 5) && (_root.mode == "story")) {
next_level.gotoAndStop(2);
}
Mouse.show();
stop();
Symbol 848 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 854 MovieClip Frame 1
if (_root.mode == "survival") {
nextFrame();
} else {
stop();
}
Symbol 854 MovieClip Frame 2
secs = _root.secs;
if (_root.secs < 10) {
secs = "0" + secs;
}
final_time = (_root.mins + ":") + secs;
Symbol 857 MovieClip Frame 1
if (_root.gameover == true) {
_visible = false;
}
Symbol 861 Button
on (release) {
loadVariablesNum ((("http://www.diverge.ws/index2.php?page=scores&action=submit&game=weltling2&player=" + player) + "&score=") + _root.total_score, 0, "POST");
nextFrame();
}
Symbol 864 MovieClip Frame 1
stop();
Symbol 869 Button
on (press) {
getURL ("http://www.diverge.ws", "_blank");
}
Symbol 873 MovieClip Frame 1
button1.useHandCursor = false;
button2.useHandCursor = false;
button3.useHandCursor = false;
if (_root.gameover != true) {
_root.kongregateStats.submit("trophy", 1);
} else if ((_root.mode == "classic") && (_root.total_score > 100000)) {
_root.kongregateStats.submit("trophy", 2);
} else if ((_root.mode == "survival") && (_root.mins >= 5)) {
_root.kongregateStats.submit("trophy", 3);
} else if ((_root.mode == "bombard") && (_root.total_score > 10000)) {
_root.kongregateStats.submit("trophy", 4);
}
Symbol 873 MovieClip Frame 35
rand_name.play();
_root.s_rand_name.start();
Mouse.show();
stop();
Symbol 883 MovieClip Frame 1
stop();
Symbol 883 MovieClip Frame 2
if (_root.enemy_num == 0) {
if (_root.game._xscale != 100) {
speed_screen_zoom = (_root.game._xscale - 100) / 4;
if (Math.abs(speed_screen_zoom) < 0.2) {
_root.game._xscale = 100;
_root.game._yscale = 100;
} else {
_root.screen_zoom(-speed_screen_zoom);
}
} else {
gotoAndPlay(_currentframe + 2);
}
}
Symbol 883 MovieClip Frame 3
gotoAndPlay (2);
Symbol 883 MovieClip Frame 18
stopAllSounds();
_root.s_finish_level.start();
Symbol 883 MovieClip Frame 77
if ((_root.game.welt._x - _root.w_welt) < _root.limit_right) {
if (_root.game.welt.stunned != true) {
_root.game.welt.cinema_walk = true;
_root.game.welt.speed_x = _root.speed;
}
} else {
_root.game.welt._visible = false;
gotoAndPlay(_currentframe + 2);
}
Symbol 883 MovieClip Frame 78
gotoAndPlay(_currentframe - 1);
Instance of Symbol 882 MovieClip in Symbol 883 MovieClip Frame 92
onClipEvent (enterFrame) {
_root.game._yscale = _root.game._yscale + 7;
}
Symbol 883 MovieClip Frame 141
_root.gotoAndStop("finish");
Symbol 884 MovieClip Frame 21
_root.gotoAndStop("gameover");
Symbol 885 MovieClip Frame 1
stop();
Symbol 885 MovieClip Frame 2
stop();
Instance of Symbol 884 MovieClip in Symbol 885 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.game._width = _root.game._width + 4;
}
Symbol 886 MovieClip Frame 17
stop();
Symbol 887 Button
on (press, dragOver) {
_root.game.welt.m_click = true;
}
on (release, releaseOutside) {
_root.game.welt.m_click = false;
}
Instance of Symbol 893 MovieClip "flair" in Symbol 894 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = ((_root.sunrise_limit_high / _parent._y) * 100);
}
Symbol 900 MovieClip Frame 34
if (_parent.thrown == true) {
if (_parent._xscale > 0) {
_parent.dest_x = _root.limit_right + 100;
} else {
_parent.dest_x = _root.limit_left - 100;
}
} else {
_parent.gotoAndStop("throw");
}
Symbol 901 MovieClip Frame 1
if (_root.paused != true) {
_root.dimkin_far();
}
Symbol 901 MovieClip Frame 2
gotoAndPlay (1);
Symbol 909 MovieClip Frame 9
_root.spawn_object("spear", _root.game.welt._x, _root.floor_y, _parent._xscale, 0);
_root.s_throw.start();
_parent.gotoAndStop("stand");
Symbol 910 MovieClip Frame 3
thrown = true;
Symbol 910 MovieClip Frame 4
_root.enemy_num--;
idle = true;
thrown = false;
Symbol 911 MovieClip Frame 1
land_x = new Array();
land_y = new Array();
land_x = [-342.1, -276.5, -116.5, -11.8, 72, 147.9, 222.3, 272.9, 360];
land_y = [276.6, 252, 281.8, 252, 270, 270, 252, 252, 288];
Symbol 927 MovieClip Frame 1
stop();
Symbol 927 MovieClip Frame 2
_root["s_hit" + (random(2) + 1)].start();
Symbol 933 MovieClip Frame 1
geyser = false;
stop();
Symbol 933 MovieClip Frame 8
_root.spawn_object("fetus", _x + _parent._x, _y + _parent._y, 100, 0);
_root.s_fart.start();
Symbol 933 MovieClip Frame 12
gotoAndStop (1);
Symbol 933 MovieClip Frame 19
geyser = true;
_root.s_bloodflow.start();
Instance of Symbol 650 MovieClip in Symbol 933 MovieClip Frame 19
onClipEvent (load) {
_rotation = (180 - _parent._rotation);
}
Symbol 933 MovieClip Frame 24
_root.spawn_object("fx_geyser_splash", _x + _parent._x, _root.floor_y, 100, 0);
Symbol 947 MovieClip Frame 1
stop();
Symbol 947 MovieClip Frame 2
_root["s_hit" + (random(2) + 1)].start();
_root.s_groan.start();
Symbol 947 MovieClip Frame 20
dead = true;
stop();
Symbol 947 MovieClip Frame 21
_root["s_hit" + (random(2) + 1)].start();
Symbol 956 MovieClip Frame 1
stop();
Symbol 956 MovieClip Frame 10
if (random(2) == 1) {
gotoAndPlay (11);
} else {
gotoAndPlay(25 + random(10));
}
Symbol 956 MovieClip Frame 41
gotoAndStop (10);
Symbol 970 MovieClip Frame 1
stop();
Symbol 970 MovieClip Frame 2
_root["s_hit" + (random(2) + 1)].start();
_root.s_groan.start();
Symbol 970 MovieClip Frame 20
dead = true;
stop();
Symbol 970 MovieClip Frame 21
_root["s_hit" + (random(2) + 1)].start();
Symbol 971 MovieClip Frame 3
_root["s_splat" + random(4)].start();
_root.spawn_object("fx_bloodsplat3", (_parent._parent._x - (_parent._parent._width / 2)) + random(_parent._parent._width), _parent._parent._y + random(_parent._parent._height), 100, 0);
Symbol 972 MovieClip Frame 1
_root.s_boss_die.start();
Symbol 972 MovieClip Frame 50
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 51
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 52
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 53
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 54
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 55
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 56
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 57
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 58
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 59
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 60
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 61
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 62
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 63
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 64
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 65
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 66
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 67
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 68
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 69
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 70
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 71
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 72
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 73
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 74
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 75
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 76
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 77
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 78
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 79
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 80
_root.screen_shake("x", -5);
_root.screen_shake("y", -5);
Symbol 972 MovieClip Frame 81
_root.screen_shake("x", 5);
_root.screen_shake("y", 5);
Symbol 972 MovieClip Frame 82
_root.screen_shake("x", 10);
_root.screen_shake("y", 6);
Symbol 972 MovieClip Frame 83
_root.screen_shake("x", -10);
_root.screen_shake("y", -6);
Symbol 972 MovieClip Frame 84
_root.screen_shake("x", -10);
_root.screen_shake("y", -6);
Symbol 972 MovieClip Frame 85
_root.screen_shake("x", 10);
_root.screen_shake("y", 6);
Symbol 972 MovieClip Frame 86
_root.screen_shake("x", 10);
_root.screen_shake("y", 6);
Symbol 972 MovieClip Frame 87
_root.screen_shake("x", -10);
_root.screen_shake("y", -6);
Symbol 972 MovieClip Frame 88
_root.screen_shake("x", -10);
_root.screen_shake("y", -6);
Symbol 972 MovieClip Frame 89
_root.screen_shake("x", 10);
_root.screen_shake("y", 6);
Symbol 972 MovieClip Frame 90
_root.screen_shake("x", 17);
_root.screen_shake("y", 6);
Symbol 972 MovieClip Frame 91
_root.screen_shake("x", -17);
_root.screen_shake("y", -6);
Symbol 972 MovieClip Frame 92
_root.screen_shake("x", -17);
_root.screen_shake("y", -6);
Symbol 972 MovieClip Frame 93
_root.screen_shake("x", 17);
_root.screen_shake("y", 6);
Symbol 972 MovieClip Frame 94
_root.screen_shake("x", 17);
_root.screen_shake("y", 6);
Symbol 972 MovieClip Frame 95
_root.screen_shake("x", -17);
_root.screen_shake("y", -6);
Symbol 972 MovieClip Frame 96
_root.screen_shake("x", -17);
_root.screen_shake("y", -6);
Symbol 972 MovieClip Frame 97
_root.screen_shake("x", 17);
_root.screen_shake("y", 16);
Symbol 972 MovieClip Frame 98
_root.s_explode.start();
_root.spawn_object("glass:screensplat" + (random(3) + 1), 200, 180, 100, 0);
_root.spawn_object("glass:screensplat" + (random(3) + 1), 400, 180, 100, 0);
_root.spawn_object("glass:screensplat" + (random(3) + 1), 320, 240, 100, 0);
_root.spawn_object("glass:screensplat" + (random(3) + 1), 200, 360, 100, 0);
_root.spawn_object("glass:screensplat" + (random(3) + 1), 400, 360, 100, 0);
_root.spawn_object("glass:screen_flash_red", 320, 240, 100, 0);
i = 1;
while (i < 6) {
_root.spawn_object("fx_gibs", _parent._x, _root.limit_top - (300 * i), 2, 6);
_root.game["fx_gibs_" + _root.game.i].big = true;
i++;
}
_root.spawn_object("fx_boss_eyeball", _parent._x - 100, _root.limit_top - 800, 100, 0);
_root.game._x = _root.game_x;
_root.game._y = _root.game_y;
Symbol 972 MovieClip Frame 260
_root.level_end.play();
stop();
Symbol 973 MovieClip Frame 1
stop();
Symbol 973 MovieClip Frame 2
hp = 40;
eye1.hp = 20;
eye2.hp = 20;
stopAllSounds();
_root.s_alert.start();
if (_root.option_music != false) {
_root.m_boss.start(0, 999999);
}
stop();
Instance of Symbol 924 MovieClip in Symbol 973 MovieClip Frame 2
onClipEvent (enterFrame) {
_height = (_root.floor_y - (_y + _parent._y));
}
Instance of Symbol 927 MovieClip "body" in Symbol 973 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.paused != true) {
_root.boss1();
}
}
Symbol 973 MovieClip Frame 3
_root.cinema = true;
_root.score = _root.score + 2000;
_root.spawn_object("fx_points", _x, _y + 350, 2000, 0);
Instance of Symbol 972 MovieClip in Symbol 973 MovieClip Frame 3
onClipEvent (enterFrame) {
_parent._y = _root.limit_top;
}
Symbol 984 MovieClip Frame 1
if (_root.paused != true) {
_root.flies();
}
Symbol 984 MovieClip Frame 2
gotoAndPlay (1);
Symbol 994 MovieClip Frame 1
gotoAndStop(random(2) + 1);
Symbol 1003 MovieClip Frame 1
gotoAndStop(random(2) + 1);
Symbol 1012 MovieClip Frame 1
gotoAndStop(random(2) + 1);
Symbol 1013 MovieClip Frame 1
gotoAndStop(_parent.type);
Symbol 1014 MovieClip Frame 1
if (_root.paused != true) {
_root.bean(_parent._name);
}
Symbol 1014 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1027 MovieClip Frame 21
_root.spawn_object("bg:enemy_splat1", _parent._parent._x, _parent._parent._y, 100, 0);
_parent._parent.gotoAndStop("respawn");
Symbol 1043 MovieClip Frame 21
_root.spawn_object("bg:enemy_splat2", _parent._parent._x, _parent._parent._y, 100, 0);
_parent._parent.gotoAndStop("respawn");
Symbol 1056 MovieClip Frame 23
_root.spawn_object("bg:enemy_splat3", _parent._parent._x, _parent._parent._y, 100, 0);
_parent._parent.gotoAndStop("respawn");
Symbol 1057 MovieClip Frame 1
gotoAndStop(_parent.type);
Symbol 1068 MovieClip Frame 21
_parent._parent.gotoAndStop("respawn");
Symbol 1078 MovieClip Frame 19
_parent._parent.gotoAndStop("respawn");
Symbol 1089 MovieClip Frame 21
_parent._parent.gotoAndStop("respawn");
Symbol 1090 MovieClip Frame 1
gotoAndStop(_parent.type);
Symbol 1091 MovieClip Frame 1
function die() {
_root.kills++;
_root.score = _root.score + value;
if (_root.munch == true) {
_root.blood = _root.blood + value;
}
_root.spawn_object("fx_gibs", _x, _y, 2, 3 * type);
if (random(4) == 1) {
_root.spawn_object("fx_blood_screensplat", _x, _y, 100, 0);
}
if (type > 1) {
_root.spawn_object("glass:screen_flash_red", 320, 240, 100, 0);
}
_root.s_splat4.start();
}
type = random(_root.biggest_enemy) + 1;
hits = type;
value = 5 * type;
speed_y = _root.speed_beanfall - type;
if (random(2) == 1) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_root.limit_left + random(_root.limit_right - _root.limit_left));
_y = ((_root.limit_top - 50) - random(100));
if (_root.mode == "bombard") {
_y = (_y - random(500));
}
_rotation = 0;
stop();
Symbol 1091 MovieClip Frame 2
_root["s_splat" + (random(3) + 2)].start();
Symbol 1091 MovieClip Frame 3
die();
Symbol 1091 MovieClip Frame 4
die();
Symbol 1091 MovieClip Frame 5
_root.enemy_num--;
idle = true;
Symbol 1117 MovieClip Frame 1
if (_parent.hit == true) {
nextFrame();
} else {
stop();
}
Symbol 1118 MovieClip Frame 1
if (_root.paused != true) {
_root.dimkin(_parent._name);
}
Symbol 1118 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1130 MovieClip Frame 1
stop();
Symbol 1131 MovieClip Frame 9
if (_parent.hit == true) {
if (_parent._x > _root.game.welt._x) {
_parent._xscale = 100;
} else {
_parent._xscale = -100;
}
}
if (_parent._xscale > 0) {
_parent.speed = _root.speed_dimkin * 3;
} else {
_parent.speed = (-_root.speed_dimkin) * 3;
}
if (_parent.hit == true) {
_parent.gotoAndStop("walk");
} else {
_parent.gotoAndStop("attack");
}
Symbol 1138 MovieClip Frame 1
_root.spawn_object("fx_dust4", _parent._x, _parent._y, _parent._xscale, 0);
Symbol 1138 MovieClip Frame 7
_root.spawn_object("fx_dust4", _parent._x, _parent._y, _parent._xscale, 0);
Symbol 1148 MovieClip Frame 26
_parent.gotoAndStop("respawn");
Symbol 1149 MovieClip Frame 2
speed = 0;
_root.s_dimkin_growl1.start();
Symbol 1149 MovieClip Frame 4
_root.s_splat4.start();
_root.s_dimkin_die.start();
Symbol 1149 MovieClip Frame 5
_root.enemy_num--;
hit = false;
idle = true;
Symbol 1153 MovieClip Frame 1
if (_root.paused != true) {
if (_parent._parent._y > _root.floor_y) {
_parent._parent._y = _root.floor_y;
_parent.gotoAndPlay("land");
} else {
if (_parent._parent._xscale > 0) {
_parent._parent._x = _parent._parent._x + _root.speed_bean;
if (_parent._parent._x > _root.limit_right) {
_root.kill_misses++;
_parent._parent.gotoAndStop("respawn");
}
} else {
_parent._parent._x = _parent._parent._x - _root.speed_bean;
if (_parent._parent._x < _root.limit_left) {
_root.kill_misses++;
_parent._parent.gotoAndStop("respawn");
}
}
_parent._parent._y = _parent._parent._y + _parent._parent.speed_y;
_parent._parent.speed_y = _parent._parent.speed_y + 0.5;
}
}
Symbol 1153 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1161 MovieClip Frame 6
_parent.speed_y = -_root.speed_beanhop;
Symbol 1161 MovieClip Frame 12
stop();
Symbol 1161 MovieClip Frame 13
_root.spawn_object("fx_dust2", _parent._x, _parent._y, _parent._xscale, 0);
Symbol 1161 MovieClip Frame 17
_root.spawn_object("fx_dust1", _parent._x, _parent._y, _parent._xscale, 0);
Symbol 1162 MovieClip Frame 21
_parent.gotoAndStop("respawn");
Symbol 1163 MovieClip Frame 1
function die() {
_root.kills++;
_root.score = _root.score + value;
if (_root.munch == true) {
_root.blood = _root.blood + value;
}
_root.spawn_object("fx_gibs", _x, _y, 2, 4);
_root.s_splat4.start();
}
value = 10;
if (random(2) == 1) {
_x = (_root.limit_right + (_name.charAt(4) * 50));
_xscale = -100;
} else {
_x = (_root.limit_left - (_name.charAt(4) * 50));
_xscale = 100;
}
_y = _root.floor_y;
stop();
Instance of Symbol 1161 MovieClip in Symbol 1163 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused != true) {
_root.bean2(_parent._name);
}
}
Symbol 1163 MovieClip Frame 2
die();
Symbol 1163 MovieClip Frame 3
_root.enemy_num--;
idle = true;
Symbol 1171 MovieClip Frame 1
if (_parent._parent.mask == true) {
_parent.gotoAndStop(1);
} else {
_parent.gotoAndStop(2);
}
Symbol 1171 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1180 MovieClip Frame 1
if (_root.paused != true) {
_root.peashy();
}
Symbol 1180 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1202 MovieClip Frame 1
if (((_parent._parent.speed_x > 0) && (_parent._parent.speed_x > _root.speed)) || ((_parent._parent.speed_x < 0) && (_parent._parent.speed_x < (-_root.speed)))) {
_parent.gotoAndStop("run");
} else {
_parent.gotoAndStop("walk");
}
Symbol 1202 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1215 MovieClip Frame 5
_root.spawn_object("spike", _parent._x + _root.w_peashy, _parent._y - _root.h_peashy, _parent._xscale, 0);
_parent.gotoAndStop("stand");
Symbol 1218 MovieClip Frame 9
_parent.gotoAndStop("stand");
Symbol 1228 MovieClip Frame 61
_parent.gotoAndStop("respawn");
Symbol 1229 MovieClip Frame 3
_root.s_throw.start();
Symbol 1229 MovieClip Frame 5
_root.spawn_object("fx_gibs", _x, _y, 2, 4);
if (random(4) == 1) {
_root.spawn_object("fx_blood_screensplat", _x, _y, 100, 0);
}
_root["s_splat" + (random(2) + 3)].start();
Symbol 1229 MovieClip Frame 6
_root.enemy_num--;
mask = true;
idle = true;
Symbol 1236 MovieClip Frame 1
w = _width / 2;
Instance of Symbol 737 MovieClip "welt" in Symbol 1270 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused != true) {
if (_currentframe == 1) {
_root.welt_controls();
_root.welt_head();
}
}
}
Symbol 1274 MovieClip Frame 1
stop();
Symbol 1274 MovieClip Frame 2
_root.s_doublekill.start();
Symbol 1281 MovieClip Frame 1
stop();
Symbol 1281 MovieClip Frame 2
_root.s_mega.start();
Symbol 1285 MovieClip Frame 7
stop();
Symbol 1287 MovieClip Frame 7
stop();
Symbol 1289 MovieClip Frame 7
stop();
Symbol 1290 MovieClip Frame 1
gotoAndStop(_root.wave);
Symbol 1291 MovieClip Frame 1
stop();
Symbol 1293 MovieClip Frame 1
stop();
Symbol 1302 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 1306 Button
on (release) {
gotoAndPlay (1);
}
Symbol 1307 MovieClip Frame 1
if (Key.isDown(27) && (_root.press_pause != true)) {
gotoAndStop (3);
}
Symbol 1307 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1308 MovieClip Frame 1
_root.paused = false;
stop();
Symbol 1308 MovieClip Frame 2
_root.paused = true;
Symbol 1308 MovieClip Frame 8
stop();
Symbol 1319 MovieClip Frame 1
stop();
Symbol 1341 MovieClip Frame 1
stop();
Symbol 1343 MovieClip Frame 1
if (_root.mode == "survival") {
nextFrame();
} else {
stop();
}
Symbol 1357 MovieClip Frame 1
tellTarget ("1") {
_visible = false;
};
tellTarget ("2") {
_visible = false;
};
Symbol 1358 MovieClip Frame 1
if (_root.demo == true) {
_visible = true;
} else {
_visible = false;
}
Symbol 1361 MovieClip Frame 1
land_x = new Array();
land_y = new Array();
land_x = [-342.1, -276.5, -116.5, -11.8, 72, 147.9, 222.3, 272.9, 360];
land_y = [276.6, 252, 281.8, 252, 270, 270, 252, 252, 288];
Symbol 1397 MovieClip Frame 1
w = _width / 2;
Instance of Symbol 737 MovieClip "welt" in Symbol 1398 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused != true) {
if (_currentframe == 1) {
_root.welt_controls();
_root.welt_head();
}
}
}