Frame 1
first_game_frame = 6;
Frame 2
function ef_go() {
progress.setprogress((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (this.getBytesLoaded() == this.getBytesTotal()) {
this.onEnterFrame = undefined;
play();
}
}
if (_global.bypass == "true") {
if (_global.link != undefined) {
_root.link = _global.link;
}
if (_global.dload_f != undefined) {
_root.dload_f = _global.dload_f;
}
if (_global.close_f != undefined) {
_root.close_f = _global.close_f;
}
if (_global.alawar_f != undefined) {
_root.alawar_f = _global.alawar_f;
}
} else {
stop();
progress.init();
progress.start();
}
Stage.showMenu = false;
Frame 3
no_sound = false;
snd_hero_appear = 0;
snd_hero_death = 1;
snd_hero_happy = 2;
snd_hero_jump = 3;
snd_hero_kick = 4;
snd_hero_throw = 5;
snd_bigsnowball_collide1 = 6;
snd_bigsnowball_collide2 = 7;
snd_bigsnowball_collide3 = 8;
snd_bigsnowball_collide4 = 9;
snd_bigsnowball_collide_m = 10;
snd_bigsnowball_explode = 11;
snd_bonusbox_explode = 12;
snd_bonusbox_fall = 13;
snd_bonusbox_landing = 14;
snd_bosslevelcompleted = 15;
snd_bossteapot_lidclose = 16;
snd_bossteapot_lidopen = 17;
snd_boss_bubbleball = 18;
snd_boss_freeze = 19;
snd_boss_hit = 20;
snd_boss_jump = 21;
snd_greatkick = 22;
snd_bubbleball_explode = 23;
snd_clock_appear = 24;
snd_clock_boom = 25;
snd_clock_wait = 26;
snd_frozen_explode = 27;
snd_gameover = 28;
snd_getlifebonus = 29;
snd_getpowerupbonus = 30;
snd_getrangeupbonus = 31;
snd_getscorebonus1 = 32;
snd_getscorebonus2 = 33;
snd_getscorebonus3 = 34;
snd_getscorebonus4 = 35;
snd_getspeedupbonus = 36;
snd_green_fire = 37;
snd_levelcompleted = 38;
snd_boss_fire = 39;
snd_activatebutton = 40;
snd_clickbutton = 41;
var snds = new Array(42);
var i = 0;
while (i < snds.length) {
snds[i] = new Sound();
i++;
}
snds[snd_hero_appear].attachSound("hero_appear");
snds[snd_hero_death].attachSound("hero_death");
snds[snd_hero_happy].attachSound("hero_happy");
snds[snd_hero_jump].attachSound("hero_jump");
snds[snd_hero_kick].attachSound("hero_kick");
snds[snd_hero_throw].attachSound("hero_throw");
snds[snd_bigsnowball_collide1].attachSound("bigsnowball_collide1");
snds[snd_bigsnowball_collide2].attachSound("bigsnowball_collide2");
snds[snd_bigsnowball_collide3].attachSound("bigsnowball_collide3");
snds[snd_bigsnowball_collide4].attachSound("bigsnowball_collide4");
snds[snd_bigsnowball_collide_m].attachSound("bigsnowball_collide_m");
snds[snd_bigsnowball_explode].attachSound("bigsnowball_explode");
snds[snd_bonusbox_explode].attachSound("bonusbox_explode");
snds[snd_bonusbox_fall].attachSound("bonusbox_fall");
snds[snd_bonusbox_landing].attachSound("bonusbox_landing");
snds[snd_bosslevelcompleted].attachSound("bosslevelcompleted");
snds[snd_bossteapot_lidclose].attachSound("bossteapot_lidclose");
snds[snd_bossteapot_lidopen].attachSound("bossteapot_lidopen");
snds[snd_boss_bubbleball].attachSound("boss_bubbleball");
snds[snd_boss_freeze].attachSound("boss_freeze");
snds[snd_boss_hit].attachSound("boss_hit");
snds[snd_boss_jump].attachSound("boss_jump");
snds[snd_greatkick].attachSound("greatkick");
snds[snd_bubbleball_explode].attachSound("bubbleball_explode");
snds[snd_clock_appear].attachSound("clock_appear");
snds[snd_clock_boom].attachSound("clock_boom");
snds[snd_clock_wait].attachSound("clock_wait");
snds[snd_frozen_explode].attachSound("frozen_explode");
snds[snd_gameover].attachSound("gameover");
snds[snd_getlifebonus].attachSound("getlifebonus");
snds[snd_getpowerupbonus].attachSound("getpowerupbonus");
snds[snd_getrangeupbonus].attachSound("getrangeupbonus");
snds[snd_getscorebonus1].attachSound("getscorebonus1");
snds[snd_getscorebonus2].attachSound("getscorebonus2");
snds[snd_getscorebonus3].attachSound("getscorebonus3");
snds[snd_getscorebonus4].attachSound("getscorebonus4");
snds[snd_getspeedupbonus].attachSound("getspeedupbonus");
snds[snd_green_fire].attachSound("green_fire");
snds[snd_levelcompleted].attachSound("levelcompleted");
snds[snd_boss_fire].attachSound("boss_fire");
snds[snd_activatebutton].attachSound("activatebutton");
snds[snd_clickbutton].attachSound("clickbutton");
Frame 4
Frame 5
Frame 6
_quality = "MEDIUM";
fscommand ("trapallkeys", "true");
if ((first_time == undefined) || (first_time)) {
gotoAndPlay(first_game_frame + 3);
}
dload_button._visible = false;
hero_source._visible = false;
monster_red._visible = false;
monster_green._visible = false;
monster_dog._visible = false;
monster_clock._visible = false;
monster_ghost._visible = false;
monster_bomb._visible = false;
boss2._visible = false;
snowball._visible = false;
bubbleball._visible = false;
bubbleballsplinter._visible = false;
bigsnowball._visible = false;
scorefont1._visible = false;
smallfont1._visible = false;
deathstar._visible = false;
gameover._visible = false;
levelcompleted._visible = false;
worldcompleted._visible = false;
flyscore._visible = false;
bonus._visible = false;
bonus_hint._visible = false;
quake._visible = false;
boss_life._visible = false;
alawar._visible = false;
aliasworlds._visible = false;
statuspanel._visible = false;
world2._visible = false;
menu_button._visible = false;
_quality = "LOW";
var global_lives = 8;
var global_level = 1;
var global_score = 0;
var global_speed_up = false;
var global_range_up = false;
var global_power_up = false;
if (gameover1 != undefined) {
gameover1.removeMovieClip();
}
if (worldcompleted1 != undefined) {
worldcompleted1.removeMovieClip();
}
L1_blockset = "world2";
L1_monster1type = "monster_red";
L1_monster1i = 12;
L1_monster1j = 2;
L1_monster1side = "right";
L1_monster2type = "monster_red";
L1_monster2i = 7;
L1_monster2j = 8;
L1_monster2side = "left";
L1_heroi = 7;
L1_heroj = 12;
L1_img_i6j3 = 3;
L1_val_i6j3 = 1;
L1_img_i7j3 = 10;
L1_val_i7j3 = 1;
L1_img_i8j3 = 10;
L1_val_i8j3 = 1;
L1_img_i9j3 = 10;
L1_val_i9j3 = 1;
L1_img_i10j3 = 10;
L1_val_i10j3 = 1;
L1_img_i11j3 = 10;
L1_val_i11j3 = 1;
L1_img_i12j3 = 10;
L1_val_i12j3 = 1;
L1_img_i13j3 = 5;
L1_val_i13j3 = 1;
L1_img_i3j5 = 3;
L1_val_i3j5 = 1;
L1_img_i4j5 = 10;
L1_val_i4j5 = 1;
L1_img_i5j5 = 10;
L1_val_i5j5 = 1;
L1_img_i6j5 = 10;
L1_val_i6j5 = 1;
L1_img_i7j5 = 10;
L1_val_i7j5 = 1;
L1_img_i8j5 = 5;
L1_val_i8j5 = 1;
L1_img_i11j5 = 3;
L1_val_i11j5 = 1;
L1_img_i12j5 = 10;
L1_val_i12j5 = 1;
L1_img_i13j5 = 10;
L1_val_i13j5 = 1;
L1_img_i14j5 = 10;
L1_val_i14j5 = 1;
L1_img_i15j5 = 10;
L1_val_i15j5 = 1;
L1_img_i16j5 = 5;
L1_val_i16j5 = 1;
L1_img_i2j7 = 3;
L1_val_i2j7 = 1;
L1_img_i3j7 = 10;
L1_val_i3j7 = 1;
L1_img_i4j7 = 10;
L1_val_i4j7 = 1;
L1_img_i5j7 = 10;
L1_val_i5j7 = 1;
L1_img_i6j7 = 10;
L1_val_i6j7 = 1;
L1_img_i7j7 = 10;
L1_val_i7j7 = 1;
L1_img_i8j7 = 10;
L1_val_i8j7 = 1;
L1_img_i9j7 = 10;
L1_val_i9j7 = 1;
L1_img_i10j7 = 10;
L1_val_i10j7 = 1;
L1_img_i11j7 = 10;
L1_val_i11j7 = 1;
L1_img_i12j7 = 10;
L1_val_i12j7 = 1;
L1_img_i13j7 = 10;
L1_val_i13j7 = 1;
L1_img_i14j7 = 10;
L1_val_i14j7 = 1;
L1_img_i15j7 = 10;
L1_val_i15j7 = 1;
L1_img_i16j7 = 10;
L1_val_i16j7 = 1;
L1_img_i17j7 = 5;
L1_val_i17j7 = 1;
L1_img_i0j9 = 3;
L1_val_i0j9 = 1;
L1_img_i1j9 = 10;
L1_val_i1j9 = 1;
L1_img_i2j9 = 10;
L1_val_i2j9 = 1;
L1_img_i3j9 = 5;
L1_val_i3j9 = 1;
L1_img_i7j9 = 3;
L1_val_i7j9 = 1;
L1_img_i8j9 = 10;
L1_val_i8j9 = 1;
L1_img_i9j9 = 10;
L1_val_i9j9 = 1;
L1_img_i10j9 = 10;
L1_val_i10j9 = 1;
L1_img_i11j9 = 10;
L1_val_i11j9 = 1;
L1_img_i12j9 = 5;
L1_val_i12j9 = 1;
L1_img_i16j9 = 3;
L1_val_i16j9 = 1;
L1_img_i17j9 = 10;
L1_val_i17j9 = 1;
L1_img_i18j9 = 10;
L1_val_i18j9 = 1;
L1_img_i19j9 = 5;
L1_val_i19j9 = 1;
L1_img_i2j11 = 3;
L1_val_i2j11 = 1;
L1_img_i3j11 = 10;
L1_val_i3j11 = 1;
L1_img_i4j11 = 10;
L1_val_i4j11 = 1;
L1_img_i5j11 = 10;
L1_val_i5j11 = 1;
L1_img_i6j11 = 10;
L1_val_i6j11 = 1;
L1_img_i7j11 = 10;
L1_val_i7j11 = 1;
L1_img_i8j11 = 5;
L1_val_i8j11 = 1;
L1_img_i11j11 = 3;
L1_val_i11j11 = 1;
L1_img_i12j11 = 10;
L1_val_i12j11 = 1;
L1_img_i13j11 = 10;
L1_val_i13j11 = 1;
L1_img_i14j11 = 10;
L1_val_i14j11 = 1;
L1_img_i15j11 = 10;
L1_val_i15j11 = 1;
L1_img_i16j11 = 5;
L1_val_i16j11 = 1;
L1_img_i0j13 = 3;
L1_val_i0j13 = 1;
L1_img_i1j13 = 10;
L1_val_i1j13 = 1;
L1_img_i2j13 = 10;
L1_val_i2j13 = 1;
L1_img_i3j13 = 10;
L1_val_i3j13 = 1;
L1_img_i4j13 = 10;
L1_val_i4j13 = 1;
L1_img_i5j13 = 10;
L1_val_i5j13 = 1;
L1_img_i6j13 = 10;
L1_val_i6j13 = 1;
L1_img_i7j13 = 10;
L1_val_i7j13 = 1;
L1_img_i8j13 = 10;
L1_val_i8j13 = 1;
L1_img_i9j13 = 10;
L1_val_i9j13 = 1;
L1_img_i10j13 = 10;
L1_val_i10j13 = 1;
L1_img_i11j13 = 10;
L1_val_i11j13 = 1;
L1_img_i12j13 = 10;
L1_val_i12j13 = 1;
L1_img_i13j13 = 10;
L1_val_i13j13 = 1;
L1_img_i14j13 = 10;
L1_val_i14j13 = 1;
L1_img_i15j13 = 10;
L1_val_i15j13 = 1;
L1_img_i16j13 = 10;
L1_val_i16j13 = 1;
L1_img_i17j13 = 10;
L1_val_i17j13 = 1;
L1_img_i18j13 = 10;
L1_val_i18j13 = 1;
L1_img_i19j13 = 5;
L1_val_i19j13 = 1;
L1_bonus1i = 9;
L1_bonus1j = 2;
L1_bonus2i = 10;
L1_bonus2j = 2;
L1_bonus3i = 9;
L1_bonus3j = 4;
L1_bonus4i = 10;
L1_bonus4j = 4;
L1_bonus5i = 5;
L1_bonus5j = 6;
L1_bonus6i = 6;
L1_bonus6j = 6;
L1_bonus7i = 9;
L1_bonus7j = 6;
L1_bonus8i = 10;
L1_bonus8j = 6;
L1_bonus9i = 13;
L1_bonus9j = 6;
L1_bonus10i = 14;
L1_bonus10j = 6;
L1_bonus11i = 2;
L1_bonus11j = 8;
L1_bonus12i = 3;
L1_bonus12j = 8;
L1_bonus13i = 9;
L1_bonus13j = 8;
L1_bonus14i = 10;
L1_bonus14j = 8;
L1_bonus15i = 16;
L1_bonus15j = 8;
L1_bonus16i = 17;
L1_bonus16j = 8;
L2_blockset = "world2";
L2_monster1type = "monster_green";
L2_monster1i = 13;
L2_monster1j = 4;
L2_monster1side = "left";
L2_monster2type = "monster_red";
L2_monster2i = 17;
L2_monster2j = 6;
L2_monster2side = "right";
L2_monster3type = "monster_red";
L2_monster3i = 2;
L2_monster3j = 8;
L2_monster3side = "left";
L2_heroi = 5;
L2_heroj = 12;
L2_img_i2j3 = 3;
L2_val_i2j3 = 1;
L2_img_i3j3 = 10;
L2_val_i3j3 = 1;
L2_img_i4j3 = 10;
L2_val_i4j3 = 1;
L2_img_i5j3 = 10;
L2_val_i5j3 = 1;
L2_img_i6j3 = 10;
L2_val_i6j3 = 1;
L2_img_i7j3 = 10;
L2_val_i7j3 = 1;
L2_img_i8j3 = 10;
L2_val_i8j3 = 1;
L2_img_i9j3 = 10;
L2_val_i9j3 = 1;
L2_img_i10j3 = 5;
L2_val_i10j3 = 1;
L2_img_i15j3 = 7;
L2_val_i15j3 = 2;
L2_img_i16j3 = 14;
L2_val_i16j3 = 2;
L2_img_i17j3 = 8;
L2_val_i17j3 = 2;
L2_img_i15j4 = 13;
L2_val_i15j4 = 2;
L2_img_i16j4 = 16;
L2_val_i16j4 = 0;
L2_img_i17j4 = 15;
L2_val_i17j4 = 2;
L2_img_i2j5 = 7;
L2_val_i2j5 = 2;
L2_img_i3j5 = 14;
L2_val_i3j5 = 2;
L2_img_i4j5 = 8;
L2_val_i4j5 = 2;
L2_img_i8j5 = 3;
L2_val_i8j5 = 1;
L2_img_i9j5 = 10;
L2_val_i9j5 = 1;
L2_img_i10j5 = 10;
L2_val_i10j5 = 1;
L2_img_i11j5 = 10;
L2_val_i11j5 = 1;
L2_img_i12j5 = 10;
L2_val_i12j5 = 1;
L2_img_i13j5 = 10;
L2_val_i13j5 = 1;
L2_img_i14j5 = 10;
L2_val_i14j5 = 1;
L2_img_i15j5 = 12;
L2_val_i15j5 = 0;
L2_img_i16j5 = 12;
L2_val_i16j5 = 0;
L2_img_i17j5 = 9;
L2_val_i17j5 = 0;
L2_img_i2j6 = 13;
L2_val_i2j6 = 2;
L2_img_i3j6 = 16;
L2_val_i3j6 = 0;
L2_img_i4j6 = 15;
L2_val_i4j6 = 2;
L2_img_i2j7 = 6;
L2_val_i2j7 = 0;
L2_img_i3j7 = 12;
L2_val_i3j7 = 0;
L2_img_i4j7 = 12;
L2_val_i4j7 = 0;
L2_img_i5j7 = 10;
L2_val_i5j7 = 1;
L2_img_i6j7 = 10;
L2_val_i6j7 = 1;
L2_img_i7j7 = 10;
L2_val_i7j7 = 1;
L2_img_i8j7 = 10;
L2_val_i8j7 = 1;
L2_img_i9j7 = 10;
L2_val_i9j7 = 1;
L2_img_i10j7 = 10;
L2_val_i10j7 = 1;
L2_img_i11j7 = 10;
L2_val_i11j7 = 1;
L2_img_i12j7 = 10;
L2_val_i12j7 = 1;
L2_img_i13j7 = 10;
L2_val_i13j7 = 1;
L2_img_i14j7 = 10;
L2_val_i14j7 = 1;
L2_img_i15j7 = 10;
L2_val_i15j7 = 1;
L2_img_i16j7 = 10;
L2_val_i16j7 = 1;
L2_img_i17j7 = 5;
L2_val_i17j7 = 1;
L2_img_i2j9 = 3;
L2_val_i2j9 = 1;
L2_img_i3j9 = 10;
L2_val_i3j9 = 1;
L2_img_i4j9 = 10;
L2_val_i4j9 = 1;
L2_img_i5j9 = 10;
L2_val_i5j9 = 1;
L2_img_i6j9 = 10;
L2_val_i6j9 = 1;
L2_img_i7j9 = 10;
L2_val_i7j9 = 1;
L2_img_i8j9 = 10;
L2_val_i8j9 = 1;
L2_img_i9j9 = 10;
L2_val_i9j9 = 1;
L2_img_i10j9 = 5;
L2_val_i10j9 = 1;
L2_img_i15j9 = 7;
L2_val_i15j9 = 2;
L2_img_i16j9 = 14;
L2_val_i16j9 = 2;
L2_img_i17j9 = 8;
L2_val_i17j9 = 2;
L2_img_i15j10 = 13;
L2_val_i15j10 = 2;
L2_img_i16j10 = 16;
L2_val_i16j10 = 0;
L2_img_i17j10 = 15;
L2_val_i17j10 = 2;
L2_img_i2j11 = 3;
L2_val_i2j11 = 1;
L2_img_i3j11 = 10;
L2_val_i3j11 = 1;
L2_img_i4j11 = 10;
L2_val_i4j11 = 1;
L2_img_i5j11 = 10;
L2_val_i5j11 = 1;
L2_img_i6j11 = 10;
L2_val_i6j11 = 1;
L2_img_i7j11 = 10;
L2_val_i7j11 = 1;
L2_img_i8j11 = 10;
L2_val_i8j11 = 1;
L2_img_i9j11 = 10;
L2_val_i9j11 = 1;
L2_img_i10j11 = 10;
L2_val_i10j11 = 1;
L2_img_i11j11 = 10;
L2_val_i11j11 = 1;
L2_img_i12j11 = 10;
L2_val_i12j11 = 1;
L2_img_i13j11 = 10;
L2_val_i13j11 = 1;
L2_img_i14j11 = 10;
L2_val_i14j11 = 1;
L2_img_i15j11 = 12;
L2_val_i15j11 = 0;
L2_img_i16j11 = 12;
L2_val_i16j11 = 0;
L2_img_i17j11 = 9;
L2_val_i17j11 = 0;
L2_img_i0j13 = 3;
L2_val_i0j13 = 1;
L2_img_i1j13 = 10;
L2_val_i1j13 = 1;
L2_img_i2j13 = 10;
L2_val_i2j13 = 1;
L2_img_i3j13 = 10;
L2_val_i3j13 = 1;
L2_img_i4j13 = 10;
L2_val_i4j13 = 1;
L2_img_i5j13 = 10;
L2_val_i5j13 = 1;
L2_img_i6j13 = 10;
L2_val_i6j13 = 1;
L2_img_i7j13 = 10;
L2_val_i7j13 = 1;
L2_img_i8j13 = 10;
L2_val_i8j13 = 1;
L2_img_i9j13 = 10;
L2_val_i9j13 = 1;
L2_img_i10j13 = 10;
L2_val_i10j13 = 1;
L2_img_i11j13 = 10;
L2_val_i11j13 = 1;
L2_img_i12j13 = 10;
L2_val_i12j13 = 1;
L2_img_i13j13 = 10;
L2_val_i13j13 = 1;
L2_img_i14j13 = 10;
L2_val_i14j13 = 1;
L2_img_i15j13 = 10;
L2_val_i15j13 = 1;
L2_img_i16j13 = 10;
L2_val_i16j13 = 1;
L2_img_i17j13 = 10;
L2_val_i17j13 = 1;
L2_img_i18j13 = 10;
L2_val_i18j13 = 1;
L2_img_i19j13 = 5;
L2_val_i19j13 = 1;
L2_bonus1i = 10;
L2_bonus1j = 2;
L2_bonus2i = 1;
L2_bonus2j = 3;
L2_bonus3i = 18;
L2_bonus3j = 3;
L2_bonus4i = 8;
L2_bonus4j = 4;
L2_bonus5i = 1;
L2_bonus5j = 5;
L2_bonus6i = 18;
L2_bonus6j = 5;
L2_bonus7i = 10;
L2_bonus7j = 6;
L2_bonus8i = 1;
L2_bonus8j = 7;
L2_bonus9i = 18;
L2_bonus9j = 7;
L2_bonus10i = 8;
L2_bonus10j = 8;
L2_bonus11i = 1;
L2_bonus11j = 9;
L2_bonus12i = 18;
L2_bonus12j = 9;
L2_bonus13i = 10;
L2_bonus13j = 10;
L2_bonus14i = 1;
L2_bonus14j = 11;
L2_bonus15i = 18;
L2_bonus15j = 11;
L2_bonus16i = 8;
L2_bonus16j = 12;
L3_blockset = "world2";
L3_monster1type = "monster_dog";
L3_monster1i = 8;
L3_monster1j = 1;
L3_monster1side = "right";
L3_monster2type = "monster_dog";
L3_monster2i = 15;
L3_monster2j = 5;
L3_monster2side = "left";
L3_monster3type = "monster_red_plus";
L3_monster3i = 1;
L3_monster3j = 8;
L3_monster3side = "left";
L3_monster4type = "monster_red";
L3_monster4i = 10;
L3_monster4j = 10;
L3_monster4side = "left";
L3_heroi = 7;
L3_heroj = 12;
L3_img_i4j2 = 20;
L3_val_i4j2 = 3;
L3_img_i5j2 = 14;
L3_val_i5j2 = 2;
L3_img_i6j2 = 10;
L3_val_i6j2 = 1;
L3_img_i7j2 = 10;
L3_val_i7j2 = 1;
L3_img_i8j2 = 10;
L3_val_i8j2 = 1;
L3_img_i9j2 = 5;
L3_val_i9j2 = 1;
L3_img_i13j2 = 20;
L3_val_i13j2 = 3;
L3_img_i14j2 = 14;
L3_val_i14j2 = 2;
L3_img_i15j2 = 14;
L3_val_i15j2 = 2;
L3_img_i16j2 = 10;
L3_val_i16j2 = 1;
L3_img_i17j2 = 5;
L3_val_i17j2 = 1;
L3_img_i1j3 = 3;
L3_val_i1j3 = 1;
L3_img_i2j3 = 10;
L3_val_i2j3 = 1;
L3_img_i3j3 = 10;
L3_val_i3j3 = 1;
L3_img_i4j3 = 12;
L3_val_i4j3 = 0;
L3_img_i5j3 = 19;
L3_val_i5j3 = 0;
L3_img_i12j3 = 20;
L3_val_i12j3 = 3;
L3_img_i13j3 = 16;
L3_val_i13j3 = 0;
L3_img_i14j3 = 16;
L3_val_i14j3 = 0;
L3_img_i15j3 = 19;
L3_val_i15j3 = 0;
L3_img_i11j4 = 20;
L3_val_i11j4 = 3;
L3_img_i12j4 = 16;
L3_val_i12j4 = 0;
L3_img_i13j4 = 16;
L3_val_i13j4 = 0;
L3_img_i14j4 = 19;
L3_val_i14j4 = 0;
L3_img_i17j4 = 3;
L3_val_i17j4 = 1;
L3_img_i18j4 = 10;
L3_val_i18j4 = 1;
L3_img_i19j4 = 5;
L3_val_i19j4 = 1;
L3_img_i0j5 = 3;
L3_val_i0j5 = 1;
L3_img_i1j5 = 10;
L3_val_i1j5 = 1;
L3_img_i2j5 = 10;
L3_val_i2j5 = 1;
L3_img_i3j5 = 10;
L3_val_i3j5 = 1;
L3_img_i4j5 = 10;
L3_val_i4j5 = 1;
L3_img_i5j5 = 10;
L3_val_i5j5 = 1;
L3_img_i6j5 = 10;
L3_val_i6j5 = 1;
L3_img_i7j5 = 5;
L3_val_i7j5 = 1;
L3_img_i10j5 = 20;
L3_val_i10j5 = 3;
L3_img_i11j5 = 16;
L3_val_i11j5 = 0;
L3_img_i12j5 = 16;
L3_val_i12j5 = 0;
L3_img_i13j5 = 19;
L3_val_i13j5 = 0;
L3_img_i9j6 = 20;
L3_val_i9j6 = 3;
L3_img_i10j6 = 16;
L3_val_i10j6 = 0;
L3_img_i11j6 = 16;
L3_val_i11j6 = 0;
L3_img_i12j6 = 19;
L3_val_i12j6 = 0;
L3_img_i15j6 = 3;
L3_val_i15j6 = 1;
L3_img_i16j6 = 10;
L3_val_i16j6 = 1;
L3_img_i17j6 = 10;
L3_val_i17j6 = 1;
L3_img_i18j6 = 5;
L3_val_i18j6 = 1;
L3_img_i1j7 = 3;
L3_val_i1j7 = 1;
L3_img_i2j7 = 10;
L3_val_i2j7 = 1;
L3_img_i3j7 = 10;
L3_val_i3j7 = 1;
L3_img_i4j7 = 10;
L3_val_i4j7 = 1;
L3_img_i5j7 = 5;
L3_val_i5j7 = 1;
L3_img_i8j7 = 20;
L3_val_i8j7 = 3;
L3_img_i9j7 = 16;
L3_val_i9j7 = 0;
L3_img_i10j7 = 16;
L3_val_i10j7 = 0;
L3_img_i11j7 = 19;
L3_val_i11j7 = 0;
L3_img_i7j8 = 20;
L3_val_i7j8 = 3;
L3_img_i8j8 = 16;
L3_val_i8j8 = 0;
L3_img_i9j8 = 16;
L3_val_i9j8 = 0;
L3_img_i10j8 = 19;
L3_val_i10j8 = 0;
L3_img_i13j8 = 3;
L3_val_i13j8 = 1;
L3_img_i14j8 = 10;
L3_val_i14j8 = 1;
L3_img_i15j8 = 10;
L3_val_i15j8 = 1;
L3_img_i16j8 = 10;
L3_val_i16j8 = 1;
L3_img_i17j8 = 10;
L3_val_i17j8 = 1;
L3_img_i18j8 = 10;
L3_val_i18j8 = 1;
L3_img_i19j8 = 5;
L3_val_i19j8 = 1;
L3_img_i0j9 = 3;
L3_val_i0j9 = 1;
L3_img_i1j9 = 10;
L3_val_i1j9 = 1;
L3_img_i2j9 = 10;
L3_val_i2j9 = 1;
L3_img_i3j9 = 5;
L3_val_i3j9 = 1;
L3_img_i6j9 = 20;
L3_val_i6j9 = 3;
L3_img_i7j9 = 16;
L3_val_i7j9 = 0;
L3_img_i8j9 = 16;
L3_val_i8j9 = 0;
L3_img_i9j9 = 19;
L3_val_i9j9 = 0;
L3_img_i5j10 = 20;
L3_val_i5j10 = 3;
L3_img_i6j10 = 16;
L3_val_i6j10 = 0;
L3_img_i7j10 = 16;
L3_val_i7j10 = 0;
L3_img_i8j10 = 19;
L3_val_i8j10 = 0;
L3_img_i14j10 = 20;
L3_val_i14j10 = 3;
L3_img_i15j10 = 14;
L3_val_i15j10 = 2;
L3_img_i16j10 = 10;
L3_val_i16j10 = 1;
L3_img_i17j10 = 10;
L3_val_i17j10 = 1;
L3_img_i18j10 = 5;
L3_val_i18j10 = 1;
L3_img_i2j11 = 3;
L3_val_i2j11 = 1;
L3_img_i3j11 = 10;
L3_val_i3j11 = 1;
L3_img_i4j11 = 10;
L3_val_i4j11 = 1;
L3_img_i5j11 = 12;
L3_val_i5j11 = 0;
L3_img_i6j11 = 12;
L3_val_i6j11 = 0;
L3_img_i7j11 = 19;
L3_val_i7j11 = 0;
L3_img_i10j11 = 3;
L3_val_i10j11 = 1;
L3_img_i11j11 = 10;
L3_val_i11j11 = 1;
L3_img_i12j11 = 10;
L3_val_i12j11 = 1;
L3_img_i13j11 = 10;
L3_val_i13j11 = 1;
L3_img_i14j11 = 12;
L3_val_i14j11 = 0;
L3_img_i15j11 = 19;
L3_val_i15j11 = 0;
L3_img_i0j13 = 3;
L3_val_i0j13 = 1;
L3_img_i1j13 = 10;
L3_val_i1j13 = 1;
L3_img_i2j13 = 10;
L3_val_i2j13 = 1;
L3_img_i3j13 = 10;
L3_val_i3j13 = 1;
L3_img_i4j13 = 10;
L3_val_i4j13 = 1;
L3_img_i5j13 = 10;
L3_val_i5j13 = 1;
L3_img_i6j13 = 10;
L3_val_i6j13 = 1;
L3_img_i7j13 = 10;
L3_val_i7j13 = 1;
L3_img_i8j13 = 10;
L3_val_i8j13 = 1;
L3_img_i9j13 = 10;
L3_val_i9j13 = 1;
L3_img_i10j13 = 10;
L3_val_i10j13 = 1;
L3_img_i11j13 = 10;
L3_val_i11j13 = 1;
L3_img_i12j13 = 10;
L3_val_i12j13 = 1;
L3_img_i13j13 = 10;
L3_val_i13j13 = 1;
L3_img_i14j13 = 10;
L3_val_i14j13 = 1;
L3_img_i15j13 = 10;
L3_val_i15j13 = 1;
L3_img_i16j13 = 10;
L3_val_i16j13 = 1;
L3_img_i17j13 = 10;
L3_val_i17j13 = 1;
L3_img_i18j13 = 10;
L3_val_i18j13 = 1;
L3_img_i19j13 = 5;
L3_val_i19j13 = 1;
L3_bonus1i = 12;
L3_bonus1j = 2;
L3_bonus2i = 11;
L3_bonus2j = 3;
L3_bonus3i = 10;
L3_bonus3j = 4;
L3_bonus4i = 15;
L3_bonus4j = 4;
L3_bonus5i = 9;
L3_bonus5j = 5;
L3_bonus6i = 14;
L3_bonus6j = 5;
L3_bonus7i = 8;
L3_bonus7j = 6;
L3_bonus8i = 13;
L3_bonus8j = 6;
L3_bonus9i = 7;
L3_bonus9j = 7;
L3_bonus10i = 12;
L3_bonus10j = 7;
L3_bonus11i = 6;
L3_bonus11j = 8;
L3_bonus12i = 11;
L3_bonus12j = 8;
L3_bonus13i = 5;
L3_bonus13j = 9;
L3_bonus14i = 10;
L3_bonus14j = 9;
L3_bonus15i = 4;
L3_bonus15j = 10;
L3_bonus16i = 9;
L3_bonus16j = 10;
L3_bonus17i = 8;
L3_bonus17j = 11;
L4_blockset = "world2";
L4_monster1type = "monster_dog";
L4_monster1i = 5;
L4_monster1j = 2;
L4_monster1side = "right";
L4_monster2type = "monster_dog";
L4_monster2i = 14;
L4_monster2j = 2;
L4_monster2side = "left";
L4_monster3type = "monster_green";
L4_monster3i = 9;
L4_monster3j = 3;
L4_monster3side = "left";
L4_heroi = 5;
L4_heroj = 10;
L4_monster4type = "monster_red";
L4_monster4i = 7;
L4_monster4j = 12;
L4_monster4side = "left";
L4_monster5type = "monster_red";
L4_monster5i = 12;
L4_monster5j = 12;
L4_monster5side = "right";
L4_img_i2j3 = 3;
L4_val_i2j3 = 1;
L4_img_i3j3 = 10;
L4_val_i3j3 = 1;
L4_img_i4j3 = 10;
L4_val_i4j3 = 1;
L4_img_i5j3 = 5;
L4_val_i5j3 = 1;
L4_img_i14j3 = 3;
L4_val_i14j3 = 1;
L4_img_i15j3 = 10;
L4_val_i15j3 = 1;
L4_img_i16j3 = 10;
L4_val_i16j3 = 1;
L4_img_i17j3 = 5;
L4_val_i17j3 = 1;
L4_img_i8j4 = 3;
L4_val_i8j4 = 1;
L4_img_i9j4 = 14;
L4_val_i9j4 = 2;
L4_img_i10j4 = 14;
L4_val_i10j4 = 2;
L4_img_i11j4 = 5;
L4_val_i11j4 = 1;
L4_img_i2j5 = 7;
L4_val_i2j5 = 2;
L4_img_i3j5 = 10;
L4_val_i3j5 = 1;
L4_img_i4j5 = 10;
L4_val_i4j5 = 1;
L4_img_i5j5 = 5;
L4_val_i5j5 = 1;
L4_img_i9j5 = 13;
L4_val_i9j5 = 2;
L4_img_i10j5 = 15;
L4_val_i10j5 = 2;
L4_img_i14j5 = 3;
L4_val_i14j5 = 1;
L4_img_i15j5 = 10;
L4_val_i15j5 = 1;
L4_img_i16j5 = 10;
L4_val_i16j5 = 1;
L4_img_i17j5 = 8;
L4_val_i17j5 = 2;
L4_img_i2j6 = 11;
L4_val_i2j6 = 2;
L4_img_i9j6 = 13;
L4_val_i9j6 = 2;
L4_img_i10j6 = 15;
L4_val_i10j6 = 2;
L4_img_i17j6 = 11;
L4_val_i17j6 = 2;
L4_img_i2j7 = 6;
L4_val_i2j7 = 0;
L4_img_i3j7 = 10;
L4_val_i3j7 = 1;
L4_img_i4j7 = 10;
L4_val_i4j7 = 1;
L4_img_i5j7 = 8;
L4_val_i5j7 = 2;
L4_img_i9j7 = 13;
L4_val_i9j7 = 2;
L4_img_i10j7 = 15;
L4_val_i10j7 = 2;
L4_img_i14j7 = 7;
L4_val_i14j7 = 2;
L4_img_i15j7 = 10;
L4_val_i15j7 = 1;
L4_img_i16j7 = 10;
L4_val_i16j7 = 1;
L4_img_i17j7 = 9;
L4_val_i17j7 = 0;
L4_img_i5j8 = 11;
L4_val_i5j8 = 2;
L4_img_i7j8 = 3;
L4_val_i7j8 = 1;
L4_img_i8j8 = 14;
L4_val_i8j8 = 2;
L4_img_i9j8 = 16;
L4_val_i9j8 = 0;
L4_img_i10j8 = 16;
L4_val_i10j8 = 0;
L4_img_i11j8 = 14;
L4_val_i11j8 = 2;
L4_img_i12j8 = 5;
L4_val_i12j8 = 1;
L4_img_i14j8 = 11;
L4_val_i14j8 = 2;
L4_img_i2j9 = 7;
L4_val_i2j9 = 2;
L4_img_i3j9 = 10;
L4_val_i3j9 = 1;
L4_img_i4j9 = 10;
L4_val_i4j9 = 1;
L4_img_i5j9 = 9;
L4_val_i5j9 = 0;
L4_img_i8j9 = 17;
L4_val_i8j9 = 0;
L4_img_i9j9 = 16;
L4_val_i9j9 = 0;
L4_img_i10j9 = 16;
L4_val_i10j9 = 0;
L4_img_i11j9 = 19;
L4_val_i11j9 = 0;
L4_img_i14j9 = 6;
L4_val_i14j9 = 0;
L4_img_i15j9 = 10;
L4_val_i15j9 = 1;
L4_img_i16j9 = 10;
L4_val_i16j9 = 1;
L4_img_i17j9 = 8;
L4_val_i17j9 = 2;
L4_img_i2j10 = 11;
L4_val_i2j10 = 2;
L4_img_i9j10 = 17;
L4_val_i9j10 = 0;
L4_img_i10j10 = 19;
L4_val_i10j10 = 0;
L4_img_i17j10 = 11;
L4_val_i17j10 = 2;
L4_img_i2j11 = 6;
L4_val_i2j11 = 0;
L4_img_i3j11 = 10;
L4_val_i3j11 = 1;
L4_img_i4j11 = 10;
L4_val_i4j11 = 1;
L4_img_i5j11 = 10;
L4_val_i5j11 = 1;
L4_img_i6j11 = 5;
L4_val_i6j11 = 1;
L4_img_i13j11 = 3;
L4_val_i13j11 = 1;
L4_img_i14j11 = 10;
L4_val_i14j11 = 1;
L4_img_i15j11 = 10;
L4_val_i15j11 = 1;
L4_img_i16j11 = 10;
L4_val_i16j11 = 1;
L4_img_i17j11 = 9;
L4_val_i17j11 = 0;
L4_img_i0j13 = 3;
L4_val_i0j13 = 1;
L4_img_i1j13 = 10;
L4_val_i1j13 = 1;
L4_img_i2j13 = 10;
L4_val_i2j13 = 1;
L4_img_i3j13 = 10;
L4_val_i3j13 = 1;
L4_img_i4j13 = 10;
L4_val_i4j13 = 1;
L4_img_i5j13 = 10;
L4_val_i5j13 = 1;
L4_img_i6j13 = 10;
L4_val_i6j13 = 1;
L4_img_i7j13 = 5;
L4_val_i7j13 = 1;
L4_img_i12j13 = 3;
L4_val_i12j13 = 1;
L4_img_i13j13 = 10;
L4_val_i13j13 = 1;
L4_img_i14j13 = 10;
L4_val_i14j13 = 1;
L4_img_i15j13 = 10;
L4_val_i15j13 = 1;
L4_img_i16j13 = 10;
L4_val_i16j13 = 1;
L4_img_i17j13 = 10;
L4_val_i17j13 = 1;
L4_img_i18j13 = 10;
L4_val_i18j13 = 1;
L4_img_i19j13 = 5;
L4_val_i19j13 = 1;
L4_bonus1i = 7;
L4_bonus1j = 3;
L4_bonus2i = 12;
L4_bonus2j = 3;
L4_bonus3i = 7;
L4_bonus3j = 4;
L4_bonus4i = 12;
L4_bonus4j = 4;
L4_bonus5i = 7;
L4_bonus5j = 5;
L4_bonus6i = 12;
L4_bonus6j = 5;
L4_bonus7i = 7;
L4_bonus7j = 6;
L4_bonus8i = 12;
L4_bonus8j = 6;
L4_bonus9i = 7;
L4_bonus9j = 7;
L4_bonus10i = 12;
L4_bonus10j = 7;
L5_blockset = "world2";
L5_monster1type = "monster_red";
L5_monster1i = 16;
L5_monster1j = 2;
L5_monster1side = "right";
L5_monster2type = "monster_green";
L5_monster2i = 9;
L5_monster2j = 3;
L5_monster2side = "right";
L5_monster3type = "monster_green";
L5_monster3i = 10;
L5_monster3j = 3;
L5_monster3side = "left";
L5_monster4type = "monster_dog";
L5_monster4i = 9;
L5_monster4j = 5;
L5_monster4side = "left";
L5_monster5type = "monster_red";
L5_monster5i = 5;
L5_monster5j = 9;
L5_monster5side = "right";
L5_monster6type = "monster_red";
L5_monster6i = 14;
L5_monster6j = 9;
L5_monster6side = "left";
L5_heroi = 2;
L5_heroj = 12;
L5_img_i0j0 = 7;
L5_val_i0j0 = 2;
L5_img_i1j0 = 8;
L5_val_i1j0 = 2;
L5_img_i18j0 = 7;
L5_val_i18j0 = 2;
L5_img_i19j0 = 8;
L5_val_i19j0 = 2;
L5_img_i0j1 = 13;
L5_val_i0j1 = 2;
L5_img_i1j1 = 15;
L5_val_i1j1 = 2;
L5_img_i18j1 = 13;
L5_val_i18j1 = 2;
L5_img_i19j1 = 15;
L5_val_i19j1 = 2;
L5_img_i0j2 = 13;
L5_val_i0j2 = 2;
L5_img_i1j2 = 15;
L5_val_i1j2 = 2;
L5_img_i9j2 = 3;
L5_val_i9j2 = 1;
L5_img_i10j2 = 5;
L5_val_i10j2 = 1;
L5_img_i18j2 = 13;
L5_val_i18j2 = 2;
L5_img_i19j2 = 15;
L5_val_i19j2 = 2;
L5_img_i0j3 = 13;
L5_val_i0j3 = 2;
L5_img_i1j3 = 15;
L5_val_i1j3 = 2;
L5_img_i15j3 = 20;
L5_val_i15j3 = 3;
L5_img_i16j3 = 14;
L5_val_i16j3 = 2;
L5_img_i17j3 = 14;
L5_val_i17j3 = 2;
L5_img_i18j3 = 16;
L5_val_i18j3 = 0;
L5_img_i19j3 = 15;
L5_val_i19j3 = 2;
L5_img_i0j4 = 13;
L5_val_i0j4 = 2;
L5_img_i1j4 = 15;
L5_val_i1j4 = 2;
L5_img_i8j4 = 3;
L5_val_i8j4 = 1;
L5_img_i9j4 = 10;
L5_val_i9j4 = 1;
L5_img_i10j4 = 10;
L5_val_i10j4 = 1;
L5_img_i11j4 = 5;
L5_val_i11j4 = 1;
L5_img_i14j4 = 20;
L5_val_i14j4 = 3;
L5_img_i15j4 = 16;
L5_val_i15j4 = 0;
L5_img_i16j4 = 16;
L5_val_i16j4 = 0;
L5_img_i17j4 = 16;
L5_val_i17j4 = 0;
L5_img_i18j4 = 16;
L5_val_i18j4 = 0;
L5_img_i19j4 = 15;
L5_val_i19j4 = 2;
L5_img_i0j5 = 13;
L5_val_i0j5 = 2;
L5_img_i1j5 = 16;
L5_val_i1j5 = 0;
L5_img_i2j5 = 14;
L5_val_i2j5 = 2;
L5_img_i3j5 = 14;
L5_val_i3j5 = 2;
L5_img_i4j5 = 18;
L5_val_i4j5 = 4;
L5_img_i13j5 = 20;
L5_val_i13j5 = 3;
L5_img_i14j5 = 16;
L5_val_i14j5 = 0;
L5_img_i15j5 = 16;
L5_val_i15j5 = 0;
L5_img_i16j5 = 16;
L5_val_i16j5 = 0;
L5_img_i17j5 = 16;
L5_val_i17j5 = 0;
L5_img_i18j5 = 16;
L5_val_i18j5 = 0;
L5_img_i19j5 = 15;
L5_val_i19j5 = 2;
L5_img_i0j6 = 13;
L5_val_i0j6 = 2;
L5_img_i1j6 = 16;
L5_val_i1j6 = 0;
L5_img_i2j6 = 16;
L5_val_i2j6 = 0;
L5_img_i3j6 = 16;
L5_val_i3j6 = 0;
L5_img_i4j6 = 16;
L5_val_i4j6 = 0;
L5_img_i5j6 = 18;
L5_val_i5j6 = 4;
L5_img_i8j6 = 3;
L5_val_i8j6 = 1;
L5_img_i9j6 = 10;
L5_val_i9j6 = 1;
L5_img_i10j6 = 10;
L5_val_i10j6 = 1;
L5_img_i11j6 = 10;
L5_val_i11j6 = 1;
L5_img_i12j6 = 10;
L5_val_i12j6 = 1;
L5_img_i13j6 = 12;
L5_val_i13j6 = 0;
L5_img_i14j6 = 12;
L5_val_i14j6 = 0;
L5_img_i15j6 = 12;
L5_val_i15j6 = 0;
L5_img_i16j6 = 19;
L5_val_i16j6 = 0;
L5_img_i17j6 = 17;
L5_val_i17j6 = 0;
L5_img_i18j6 = 16;
L5_val_i18j6 = 0;
L5_img_i19j6 = 15;
L5_val_i19j6 = 2;
L5_img_i0j7 = 13;
L5_val_i0j7 = 2;
L5_img_i1j7 = 16;
L5_val_i1j7 = 0;
L5_img_i2j7 = 16;
L5_val_i2j7 = 0;
L5_img_i3j7 = 16;
L5_val_i3j7 = 0;
L5_img_i4j7 = 16;
L5_val_i4j7 = 0;
L5_img_i5j7 = 16;
L5_val_i5j7 = 0;
L5_img_i6j7 = 18;
L5_val_i6j7 = 4;
L5_img_i18j7 = 17;
L5_val_i18j7 = 0;
L5_img_i19j7 = 15;
L5_val_i19j7 = 2;
L5_img_i0j8 = 13;
L5_val_i0j8 = 2;
L5_img_i1j8 = 16;
L5_val_i1j8 = 0;
L5_img_i2j8 = 19;
L5_val_i2j8 = 0;
L5_img_i3j8 = 17;
L5_val_i3j8 = 0;
L5_img_i4j8 = 12;
L5_val_i4j8 = 0;
L5_img_i5j8 = 12;
L5_val_i5j8 = 0;
L5_img_i6j8 = 12;
L5_val_i6j8 = 0;
L5_img_i7j8 = 10;
L5_val_i7j8 = 1;
L5_img_i8j8 = 10;
L5_val_i8j8 = 1;
L5_img_i9j8 = 10;
L5_val_i9j8 = 1;
L5_img_i10j8 = 10;
L5_val_i10j8 = 1;
L5_img_i11j8 = 10;
L5_val_i11j8 = 1;
L5_img_i12j8 = 10;
L5_val_i12j8 = 1;
L5_img_i13j8 = 10;
L5_val_i13j8 = 1;
L5_img_i14j8 = 10;
L5_val_i14j8 = 1;
L5_img_i15j8 = 5;
L5_val_i15j8 = 1;
L5_img_i19j8 = 17;
L5_val_i19j8 = 0;
L5_img_i0j9 = 13;
L5_val_i0j9 = 2;
L5_img_i1j9 = 19;
L5_val_i1j9 = 0;
L5_img_i0j10 = 19;
L5_val_i0j10 = 0;
L5_img_i4j10 = 3;
L5_val_i4j10 = 1;
L5_img_i5j10 = 10;
L5_val_i5j10 = 1;
L5_img_i6j10 = 10;
L5_val_i6j10 = 1;
L5_img_i7j10 = 10;
L5_val_i7j10 = 1;
L5_img_i8j10 = 10;
L5_val_i8j10 = 1;
L5_img_i9j10 = 10;
L5_val_i9j10 = 1;
L5_img_i10j10 = 10;
L5_val_i10j10 = 1;
L5_img_i11j10 = 10;
L5_val_i11j10 = 1;
L5_img_i12j10 = 10;
L5_val_i12j10 = 1;
L5_img_i13j10 = 10;
L5_val_i13j10 = 1;
L5_img_i14j10 = 10;
L5_val_i14j10 = 1;
L5_img_i15j10 = 5;
L5_val_i15j10 = 1;
L5_img_i5j12 = 20;
L5_val_i5j12 = 3;
L5_img_i6j12 = 14;
L5_val_i6j12 = 2;
L5_img_i7j12 = 8;
L5_val_i7j12 = 2;
L5_img_i12j12 = 7;
L5_val_i12j12 = 2;
L5_img_i13j12 = 14;
L5_val_i13j12 = 2;
L5_img_i14j12 = 18;
L5_val_i14j12 = 4;
L5_img_i0j13 = 3;
L5_val_i0j13 = 1;
L5_img_i1j13 = 10;
L5_val_i1j13 = 1;
L5_img_i2j13 = 10;
L5_val_i2j13 = 1;
L5_img_i3j13 = 10;
L5_val_i3j13 = 1;
L5_img_i4j13 = 10;
L5_val_i4j13 = 1;
L5_img_i5j13 = 12;
L5_val_i5j13 = 0;
L5_img_i6j13 = 12;
L5_val_i6j13 = 0;
L5_img_i7j13 = 9;
L5_val_i7j13 = 0;
L5_img_i12j13 = 6;
L5_val_i12j13 = 0;
L5_img_i13j13 = 12;
L5_val_i13j13 = 0;
L5_img_i14j13 = 12;
L5_val_i14j13 = 0;
L5_img_i15j13 = 10;
L5_val_i15j13 = 1;
L5_img_i16j13 = 10;
L5_val_i16j13 = 1;
L5_img_i17j13 = 10;
L5_val_i17j13 = 1;
L5_img_i18j13 = 10;
L5_val_i18j13 = 1;
L5_img_i19j13 = 5;
L5_val_i19j13 = 1;
L5_bonus1i = 8;
L5_bonus1j = 3;
L5_bonus2i = 11;
L5_bonus2j = 3;
L5_bonus3i = 8;
L5_bonus3j = 5;
L5_bonus4i = 11;
L5_bonus4j = 5;
L5_bonus5i = 8;
L5_bonus5j = 7;
L5_bonus6i = 11;
L5_bonus6j = 7;
L5_bonus7i = 4;
L5_bonus7j = 9;
L5_bonus8i = 6;
L5_bonus8j = 9;
L5_bonus9i = 8;
L5_bonus9j = 9;
L5_bonus10i = 11;
L5_bonus10j = 9;
L5_bonus11i = 13;
L5_bonus11j = 9;
L5_bonus12i = 15;
L5_bonus12j = 9;
L5_bonus13i = 6;
L5_bonus13j = 11;
L5_bonus14i = 8;
L5_bonus14j = 11;
L5_bonus15i = 11;
L5_bonus15j = 11;
L5_bonus16i = 13;
L5_bonus16j = 11;
L6_blockset = "world2";
L6_monster1type = "monster_red_plus";
L6_monster1i = 17;
L6_monster1j = 1;
L6_monster1side = "left";
L6_monster2type = "monster_green_plus";
L6_monster2i = 11;
L6_monster2j = 2;
L6_monster2side = "right";
L6_monster3type = "monster_red_plus";
L6_monster3i = 2;
L6_monster3j = 3;
L6_monster3side = "left";
L6_monster4type = "monster_red_plus";
L6_monster4i = 2;
L6_monster4j = 11;
L6_monster4side = "left";
L6_heroi = 8;
L6_heroj = 12;
L6_img_i0j0 = 7;
L6_val_i0j0 = 2;
L6_img_i1j0 = 14;
L6_val_i1j0 = 2;
L6_img_i2j0 = 14;
L6_val_i2j0 = 2;
L6_img_i3j0 = 14;
L6_val_i3j0 = 2;
L6_img_i4j0 = 14;
L6_val_i4j0 = 2;
L6_img_i5j0 = 10;
L6_val_i5j0 = 1;
L6_img_i6j0 = 10;
L6_val_i6j0 = 1;
L6_img_i7j0 = 10;
L6_val_i7j0 = 1;
L6_img_i8j0 = 10;
L6_val_i8j0 = 1;
L6_img_i9j0 = 10;
L6_val_i9j0 = 1;
L6_img_i10j0 = 10;
L6_val_i10j0 = 1;
L6_img_i11j0 = 10;
L6_val_i11j0 = 1;
L6_img_i12j0 = 5;
L6_val_i12j0 = 1;
L6_img_i18j0 = 7;
L6_val_i18j0 = 2;
L6_img_i19j0 = 8;
L6_val_i19j0 = 2;
L6_img_i0j1 = 6;
L6_val_i0j1 = 0;
L6_img_i1j1 = 12;
L6_val_i1j1 = 0;
L6_img_i2j1 = 12;
L6_val_i2j1 = 0;
L6_img_i3j1 = 12;
L6_val_i3j1 = 0;
L6_img_i4j1 = 19;
L6_val_i4j1 = 0;
L6_img_i18j1 = 13;
L6_val_i18j1 = 2;
L6_img_i19j1 = 15;
L6_val_i19j1 = 2;
L6_img_i15j2 = 20;
L6_val_i15j2 = 3;
L6_img_i16j2 = 14;
L6_val_i16j2 = 2;
L6_img_i17j2 = 10;
L6_val_i17j2 = 1;
L6_img_i18j2 = 12;
L6_val_i18j2 = 0;
L6_img_i19j2 = 9;
L6_val_i19j2 = 0;
L6_img_i7j3 = 3;
L6_val_i7j3 = 1;
L6_img_i8j3 = 10;
L6_val_i8j3 = 1;
L6_img_i9j3 = 10;
L6_val_i9j3 = 1;
L6_img_i10j3 = 10;
L6_val_i10j3 = 1;
L6_img_i11j3 = 10;
L6_val_i11j3 = 1;
L6_img_i12j3 = 10;
L6_val_i12j3 = 1;
L6_img_i13j3 = 10;
L6_val_i13j3 = 1;
L6_img_i14j3 = 10;
L6_val_i14j3 = 1;
L6_img_i15j3 = 12;
L6_val_i15j3 = 0;
L6_img_i16j3 = 19;
L6_val_i16j3 = 0;
L6_img_i0j4 = 3;
L6_val_i0j4 = 1;
L6_img_i1j4 = 10;
L6_val_i1j4 = 1;
L6_img_i2j4 = 10;
L6_val_i2j4 = 1;
L6_img_i3j4 = 14;
L6_val_i3j4 = 2;
L6_img_i4j4 = 18;
L6_val_i4j4 = 4;
L6_img_i3j5 = 17;
L6_val_i3j5 = 0;
L6_img_i4j5 = 12;
L6_val_i4j5 = 0;
L6_img_i5j5 = 10;
L6_val_i5j5 = 1;
L6_img_i6j5 = 10;
L6_val_i6j5 = 1;
L6_img_i7j5 = 10;
L6_val_i7j5 = 1;
L6_img_i8j5 = 10;
L6_val_i8j5 = 1;
L6_img_i9j5 = 10;
L6_val_i9j5 = 1;
L6_img_i10j5 = 10;
L6_val_i10j5 = 1;
L6_img_i11j5 = 10;
L6_val_i11j5 = 1;
L6_img_i12j5 = 5;
L6_val_i12j5 = 1;
L6_img_i17j5 = 7;
L6_val_i17j5 = 2;
L6_img_i18j5 = 8;
L6_val_i18j5 = 2;
L6_img_i15j6 = 20;
L6_val_i15j6 = 3;
L6_img_i16j6 = 14;
L6_val_i16j6 = 2;
L6_img_i17j6 = 12;
L6_val_i17j6 = 0;
L6_img_i18j6 = 9;
L6_val_i18j6 = 0;
L6_img_i7j7 = 3;
L6_val_i7j7 = 1;
L6_img_i8j7 = 10;
L6_val_i8j7 = 1;
L6_img_i9j7 = 10;
L6_val_i9j7 = 1;
L6_img_i10j7 = 10;
L6_val_i10j7 = 1;
L6_img_i11j7 = 10;
L6_val_i11j7 = 1;
L6_img_i12j7 = 10;
L6_val_i12j7 = 1;
L6_img_i13j7 = 10;
L6_val_i13j7 = 1;
L6_img_i14j7 = 10;
L6_val_i14j7 = 1;
L6_img_i15j7 = 12;
L6_val_i15j7 = 0;
L6_img_i16j7 = 19;
L6_val_i16j7 = 0;
L6_img_i0j8 = 3;
L6_val_i0j8 = 1;
L6_img_i1j8 = 10;
L6_val_i1j8 = 1;
L6_img_i2j8 = 10;
L6_val_i2j8 = 1;
L6_img_i3j8 = 14;
L6_val_i3j8 = 2;
L6_img_i4j8 = 18;
L6_val_i4j8 = 4;
L6_img_i3j9 = 17;
L6_val_i3j9 = 0;
L6_img_i4j9 = 12;
L6_val_i4j9 = 0;
L6_img_i5j9 = 10;
L6_val_i5j9 = 1;
L6_img_i6j9 = 10;
L6_val_i6j9 = 1;
L6_img_i7j9 = 10;
L6_val_i7j9 = 1;
L6_img_i8j9 = 10;
L6_val_i8j9 = 1;
L6_img_i9j9 = 10;
L6_val_i9j9 = 1;
L6_img_i10j9 = 10;
L6_val_i10j9 = 1;
L6_img_i11j9 = 10;
L6_val_i11j9 = 1;
L6_img_i12j9 = 5;
L6_val_i12j9 = 1;
L6_img_i17j9 = 7;
L6_val_i17j9 = 2;
L6_img_i18j9 = 8;
L6_val_i18j9 = 2;
L6_img_i15j10 = 20;
L6_val_i15j10 = 3;
L6_img_i16j10 = 14;
L6_val_i16j10 = 2;
L6_img_i17j10 = 12;
L6_val_i17j10 = 0;
L6_img_i18j10 = 9;
L6_val_i18j10 = 0;
L6_img_i7j11 = 3;
L6_val_i7j11 = 1;
L6_img_i8j11 = 10;
L6_val_i8j11 = 1;
L6_img_i9j11 = 10;
L6_val_i9j11 = 1;
L6_img_i10j11 = 10;
L6_val_i10j11 = 1;
L6_img_i11j11 = 10;
L6_val_i11j11 = 1;
L6_img_i12j11 = 10;
L6_val_i12j11 = 1;
L6_img_i13j11 = 10;
L6_val_i13j11 = 1;
L6_img_i14j11 = 10;
L6_val_i14j11 = 1;
L6_img_i15j11 = 12;
L6_val_i15j11 = 0;
L6_img_i16j11 = 19;
L6_val_i16j11 = 0;
L6_img_i0j12 = 7;
L6_val_i0j12 = 2;
L6_img_i1j12 = 14;
L6_val_i1j12 = 2;
L6_img_i2j12 = 14;
L6_val_i2j12 = 2;
L6_img_i3j12 = 14;
L6_val_i3j12 = 2;
L6_img_i4j12 = 18;
L6_val_i4j12 = 4;
L6_img_i0j13 = 6;
L6_val_i0j13 = 0;
L6_img_i1j13 = 12;
L6_val_i1j13 = 0;
L6_img_i2j13 = 12;
L6_val_i2j13 = 0;
L6_img_i3j13 = 12;
L6_val_i3j13 = 0;
L6_img_i4j13 = 12;
L6_val_i4j13 = 0;
L6_img_i5j13 = 10;
L6_val_i5j13 = 1;
L6_img_i6j13 = 10;
L6_val_i6j13 = 1;
L6_img_i7j13 = 10;
L6_val_i7j13 = 1;
L6_img_i8j13 = 10;
L6_val_i8j13 = 1;
L6_img_i9j13 = 10;
L6_val_i9j13 = 1;
L6_img_i10j13 = 10;
L6_val_i10j13 = 1;
L6_img_i11j13 = 10;
L6_val_i11j13 = 1;
L6_img_i12j13 = 10;
L6_val_i12j13 = 1;
L6_img_i13j13 = 10;
L6_val_i13j13 = 1;
L6_img_i14j13 = 10;
L6_val_i14j13 = 1;
L6_img_i15j13 = 10;
L6_val_i15j13 = 1;
L6_img_i16j13 = 10;
L6_val_i16j13 = 1;
L6_img_i17j13 = 10;
L6_val_i17j13 = 1;
L6_img_i18j13 = 10;
L6_val_i18j13 = 1;
L6_img_i19j13 = 5;
L6_val_i19j13 = 1;
L6_bonus1i = 7;
L6_bonus1j = 2;
L6_bonus2i = 12;
L6_bonus2j = 2;
L6_bonus3i = 7;
L6_bonus3j = 4;
L6_bonus4i = 12;
L6_bonus4j = 4;
L6_bonus5i = 7;
L6_bonus5j = 6;
L6_bonus6i = 12;
L6_bonus6j = 6;
L6_bonus7i = 7;
L6_bonus7j = 8;
L6_bonus8i = 12;
L6_bonus8j = 8;
L6_bonus9i = 7;
L6_bonus9j = 10;
L6_bonus10i = 12;
L6_bonus10j = 10;
L6_bonus11i = 7;
L6_bonus11j = 12;
L6_bonus12i = 12;
L6_bonus12j = 12;
L7_blockset = "world2";
L7_monster1type = "monster_green_plus";
L7_monster1i = 2;
L7_monster1j = 2;
L7_monster1side = "left";
L7_monster2type = "monster_green_plus";
L7_monster2i = 15;
L7_monster2j = 2;
L7_monster2side = "left";
L7_monster3type = "monster_dog_plus";
L7_monster3i = 6;
L7_monster3j = 4;
L7_monster3side = "right";
L7_monster4type = "monster_dog_plus";
L7_monster4i = 12;
L7_monster4j = 4;
L7_monster4side = "right";
L7_monster5type = "monster_red";
L7_monster5i = 3;
L7_monster5j = 10;
L7_monster5side = "right";
L7_monster6type = "monster_red";
L7_monster6i = 16;
L7_monster6j = 10;
L7_monster6side = "left";
L7_heroi = 4;
L7_heroj = 12;
L7_img_i0j0 = 7;
L7_val_i0j0 = 2;
L7_img_i1j0 = 10;
L7_val_i1j0 = 1;
L7_img_i2j0 = 19;
L7_val_i2j0 = 0;
L7_img_i17j0 = 17;
L7_val_i17j0 = 0;
L7_img_i18j0 = 10;
L7_val_i18j0 = 1;
L7_img_i19j0 = 8;
L7_val_i19j0 = 2;
L7_img_i0j1 = 19;
L7_val_i0j1 = 0;
L7_img_i19j1 = 17;
L7_val_i19j1 = 0;
L7_img_i2j3 = 3;
L7_val_i2j3 = 1;
L7_img_i3j3 = 10;
L7_val_i3j3 = 1;
L7_img_i4j3 = 10;
L7_val_i4j3 = 1;
L7_img_i5j3 = 5;
L7_val_i5j3 = 1;
L7_img_i8j3 = 3;
L7_val_i8j3 = 1;
L7_img_i9j3 = 10;
L7_val_i9j3 = 1;
L7_img_i10j3 = 10;
L7_val_i10j3 = 1;
L7_img_i11j3 = 5;
L7_val_i11j3 = 1;
L7_img_i14j3 = 3;
L7_val_i14j3 = 1;
L7_img_i15j3 = 10;
L7_val_i15j3 = 1;
L7_img_i16j3 = 10;
L7_val_i16j3 = 1;
L7_img_i17j3 = 5;
L7_val_i17j3 = 1;
L7_img_i0j5 = 3;
L7_val_i0j5 = 1;
L7_img_i1j5 = 10;
L7_val_i1j5 = 1;
L7_img_i2j5 = 5;
L7_val_i2j5 = 1;
L7_img_i5j5 = 7;
L7_val_i5j5 = 2;
L7_img_i6j5 = 14;
L7_val_i6j5 = 2;
L7_img_i7j5 = 14;
L7_val_i7j5 = 2;
L7_img_i8j5 = 8;
L7_val_i8j5 = 2;
L7_img_i11j5 = 7;
L7_val_i11j5 = 2;
L7_img_i12j5 = 14;
L7_val_i12j5 = 2;
L7_img_i13j5 = 14;
L7_val_i13j5 = 2;
L7_img_i14j5 = 8;
L7_val_i14j5 = 2;
L7_img_i17j5 = 3;
L7_val_i17j5 = 1;
L7_img_i18j5 = 10;
L7_val_i18j5 = 1;
L7_img_i19j5 = 5;
L7_val_i19j5 = 1;
L7_img_i5j6 = 6;
L7_val_i5j6 = 0;
L7_img_i6j6 = 12;
L7_val_i6j6 = 0;
L7_img_i7j6 = 12;
L7_val_i7j6 = 0;
L7_img_i8j6 = 9;
L7_val_i8j6 = 0;
L7_img_i11j6 = 6;
L7_val_i11j6 = 0;
L7_img_i12j6 = 12;
L7_val_i12j6 = 0;
L7_img_i13j6 = 12;
L7_val_i13j6 = 0;
L7_img_i14j6 = 9;
L7_val_i14j6 = 0;
L7_img_i0j7 = 3;
L7_val_i0j7 = 1;
L7_img_i1j7 = 10;
L7_val_i1j7 = 1;
L7_img_i2j7 = 5;
L7_val_i2j7 = 1;
L7_img_i17j7 = 3;
L7_val_i17j7 = 1;
L7_img_i18j7 = 10;
L7_val_i18j7 = 1;
L7_img_i19j7 = 5;
L7_val_i19j7 = 1;
L7_img_i5j8 = 7;
L7_val_i5j8 = 2;
L7_img_i6j8 = 14;
L7_val_i6j8 = 2;
L7_img_i7j8 = 14;
L7_val_i7j8 = 2;
L7_img_i8j8 = 8;
L7_val_i8j8 = 2;
L7_img_i11j8 = 7;
L7_val_i11j8 = 2;
L7_img_i12j8 = 14;
L7_val_i12j8 = 2;
L7_img_i13j8 = 14;
L7_val_i13j8 = 2;
L7_img_i14j8 = 8;
L7_val_i14j8 = 2;
L7_img_i0j9 = 3;
L7_val_i0j9 = 1;
L7_img_i1j9 = 10;
L7_val_i1j9 = 1;
L7_img_i2j9 = 5;
L7_val_i2j9 = 1;
L7_img_i5j9 = 6;
L7_val_i5j9 = 0;
L7_img_i6j9 = 12;
L7_val_i6j9 = 0;
L7_img_i7j9 = 12;
L7_val_i7j9 = 0;
L7_img_i8j9 = 9;
L7_val_i8j9 = 0;
L7_img_i11j9 = 6;
L7_val_i11j9 = 0;
L7_img_i12j9 = 12;
L7_val_i12j9 = 0;
L7_img_i13j9 = 12;
L7_val_i13j9 = 0;
L7_img_i14j9 = 9;
L7_val_i14j9 = 0;
L7_img_i17j9 = 3;
L7_val_i17j9 = 1;
L7_img_i18j9 = 10;
L7_val_i18j9 = 1;
L7_img_i19j9 = 5;
L7_val_i19j9 = 1;
L7_img_i2j11 = 3;
L7_val_i2j11 = 1;
L7_img_i3j11 = 10;
L7_val_i3j11 = 1;
L7_img_i4j11 = 10;
L7_val_i4j11 = 1;
L7_img_i5j11 = 5;
L7_val_i5j11 = 1;
L7_img_i8j11 = 3;
L7_val_i8j11 = 1;
L7_img_i9j11 = 10;
L7_val_i9j11 = 1;
L7_img_i10j11 = 10;
L7_val_i10j11 = 1;
L7_img_i11j11 = 5;
L7_val_i11j11 = 1;
L7_img_i14j11 = 3;
L7_val_i14j11 = 1;
L7_img_i15j11 = 10;
L7_val_i15j11 = 1;
L7_img_i16j11 = 10;
L7_val_i16j11 = 1;
L7_img_i17j11 = 5;
L7_val_i17j11 = 1;
L7_img_i0j13 = 3;
L7_val_i0j13 = 1;
L7_img_i1j13 = 10;
L7_val_i1j13 = 1;
L7_img_i2j13 = 10;
L7_val_i2j13 = 1;
L7_img_i3j13 = 10;
L7_val_i3j13 = 1;
L7_img_i4j13 = 10;
L7_val_i4j13 = 1;
L7_img_i5j13 = 10;
L7_val_i5j13 = 1;
L7_img_i6j13 = 10;
L7_val_i6j13 = 1;
L7_img_i7j13 = 10;
L7_val_i7j13 = 1;
L7_img_i8j13 = 10;
L7_val_i8j13 = 1;
L7_img_i9j13 = 10;
L7_val_i9j13 = 1;
L7_img_i10j13 = 10;
L7_val_i10j13 = 1;
L7_img_i11j13 = 10;
L7_val_i11j13 = 1;
L7_img_i12j13 = 10;
L7_val_i12j13 = 1;
L7_img_i13j13 = 10;
L7_val_i13j13 = 1;
L7_img_i14j13 = 10;
L7_val_i14j13 = 1;
L7_img_i15j13 = 10;
L7_val_i15j13 = 1;
L7_img_i16j13 = 10;
L7_val_i16j13 = 1;
L7_img_i17j13 = 10;
L7_val_i17j13 = 1;
L7_img_i18j13 = 10;
L7_val_i18j13 = 1;
L7_img_i19j13 = 5;
L7_val_i19j13 = 1;
L7_bonus1i = 5;
L7_bonus1j = 1;
L7_bonus2i = 8;
L7_bonus2j = 1;
L7_bonus3i = 11;
L7_bonus3j = 1;
L7_bonus4i = 14;
L7_bonus4j = 1;
L7_bonus5i = 5;
L7_bonus5j = 4;
L7_bonus6i = 8;
L7_bonus6j = 4;
L7_bonus7i = 11;
L7_bonus7j = 4;
L7_bonus8i = 14;
L7_bonus8j = 4;
L7_bonus9i = 5;
L7_bonus9j = 7;
L7_bonus10i = 8;
L7_bonus10j = 7;
L7_bonus11i = 11;
L7_bonus11j = 7;
L7_bonus12i = 14;
L7_bonus12j = 7;
L7_bonus13i = 5;
L7_bonus13j = 10;
L7_bonus14i = 8;
L7_bonus14j = 10;
L7_bonus15i = 11;
L7_bonus15j = 10;
L7_bonus16i = 14;
L7_bonus16j = 10;
L8_blockset = "world2";
L8_heroi = 9;
L8_heroj = 10;
L8_monster1type = "boss2";
L8_monster1i = 17;
L8_monster1j = 12;
L8_monster1side = "left";
L8_img_i0j4 = 3;
L8_val_i0j4 = 1;
L8_img_i1j4 = 10;
L8_val_i1j4 = 1;
L8_img_i2j4 = 14;
L8_val_i2j4 = 2;
L8_img_i3j4 = 18;
L8_val_i3j4 = 4;
L8_img_i16j4 = 20;
L8_val_i16j4 = 3;
L8_img_i17j4 = 14;
L8_val_i17j4 = 2;
L8_img_i18j4 = 10;
L8_val_i18j4 = 1;
L8_img_i19j4 = 5;
L8_val_i19j4 = 1;
L8_img_i2j5 = 17;
L8_val_i2j5 = 0;
L8_img_i3j5 = 12;
L8_val_i3j5 = 0;
L8_img_i4j5 = 10;
L8_val_i4j5 = 1;
L8_img_i5j5 = 10;
L8_val_i5j5 = 1;
L8_img_i6j5 = 10;
L8_val_i6j5 = 1;
L8_img_i7j5 = 5;
L8_val_i7j5 = 1;
L8_img_i12j5 = 3;
L8_val_i12j5 = 1;
L8_img_i13j5 = 10;
L8_val_i13j5 = 1;
L8_img_i14j5 = 10;
L8_val_i14j5 = 1;
L8_img_i15j5 = 10;
L8_val_i15j5 = 1;
L8_img_i16j5 = 12;
L8_val_i16j5 = 0;
L8_img_i17j5 = 19;
L8_val_i17j5 = 0;
L8_img_i0j7 = 3;
L8_val_i0j7 = 1;
L8_img_i1j7 = 5;
L8_val_i1j7 = 1;
L8_img_i6j7 = 20;
L8_val_i6j7 = 3;
L8_img_i7j7 = 14;
L8_val_i7j7 = 2;
L8_img_i8j7 = 10;
L8_val_i8j7 = 1;
L8_img_i9j7 = 10;
L8_val_i9j7 = 1;
L8_img_i10j7 = 10;
L8_val_i10j7 = 1;
L8_img_i11j7 = 10;
L8_val_i11j7 = 1;
L8_img_i12j7 = 14;
L8_val_i12j7 = 2;
L8_img_i13j7 = 18;
L8_val_i13j7 = 4;
L8_img_i18j7 = 3;
L8_val_i18j7 = 1;
L8_img_i19j7 = 5;
L8_val_i19j7 = 1;
L8_img_i4j8 = 3;
L8_val_i4j8 = 1;
L8_img_i5j8 = 10;
L8_val_i5j8 = 1;
L8_img_i6j8 = 12;
L8_val_i6j8 = 0;
L8_img_i7j8 = 19;
L8_val_i7j8 = 0;
L8_img_i12j8 = 17;
L8_val_i12j8 = 0;
L8_img_i13j8 = 12;
L8_val_i13j8 = 0;
L8_img_i14j8 = 10;
L8_val_i14j8 = 1;
L8_img_i15j8 = 5;
L8_val_i15j8 = 1;
L8_img_i9j9 = 3;
L8_val_i9j9 = 1;
L8_img_i10j9 = 5;
L8_val_i10j9 = 1;
L8_img_i0j10 = 3;
L8_val_i0j10 = 1;
L8_img_i1j10 = 10;
L8_val_i1j10 = 1;
L8_img_i2j10 = 10;
L8_val_i2j10 = 1;
L8_img_i3j10 = 10;
L8_val_i3j10 = 1;
L8_img_i4j10 = 10;
L8_val_i4j10 = 1;
L8_img_i5j10 = 10;
L8_val_i5j10 = 1;
L8_img_i6j10 = 5;
L8_val_i6j10 = 1;
L8_img_i13j10 = 3;
L8_val_i13j10 = 1;
L8_img_i14j10 = 10;
L8_val_i14j10 = 1;
L8_img_i15j10 = 10;
L8_val_i15j10 = 1;
L8_img_i16j10 = 10;
L8_val_i16j10 = 1;
L8_img_i17j10 = 10;
L8_val_i17j10 = 1;
L8_img_i18j10 = 10;
L8_val_i18j10 = 1;
L8_img_i19j10 = 5;
L8_val_i19j10 = 1;
L8_img_i8j11 = 3;
L8_val_i8j11 = 1;
L8_img_i9j11 = 10;
L8_val_i9j11 = 1;
L8_img_i10j11 = 10;
L8_val_i10j11 = 1;
L8_img_i11j11 = 5;
L8_val_i11j11 = 1;
L8_img_i0j13 = 3;
L8_val_i0j13 = 1;
L8_img_i1j13 = 10;
L8_val_i1j13 = 1;
L8_img_i2j13 = 10;
L8_val_i2j13 = 1;
L8_img_i3j13 = 10;
L8_val_i3j13 = 1;
L8_img_i4j13 = 10;
L8_val_i4j13 = 1;
L8_img_i5j13 = 10;
L8_val_i5j13 = 1;
L8_img_i6j13 = 10;
L8_val_i6j13 = 1;
L8_img_i7j13 = 10;
L8_val_i7j13 = 1;
L8_img_i8j13 = 10;
L8_val_i8j13 = 1;
L8_img_i9j13 = 10;
L8_val_i9j13 = 1;
L8_img_i10j13 = 10;
L8_val_i10j13 = 1;
L8_img_i11j13 = 10;
L8_val_i11j13 = 1;
L8_img_i12j13 = 10;
L8_val_i12j13 = 1;
L8_img_i13j13 = 10;
L8_val_i13j13 = 1;
L8_img_i14j13 = 10;
L8_val_i14j13 = 1;
L8_img_i15j13 = 10;
L8_val_i15j13 = 1;
L8_img_i16j13 = 10;
L8_val_i16j13 = 1;
L8_img_i17j13 = 10;
L8_val_i17j13 = 1;
L8_img_i18j13 = 10;
L8_val_i18j13 = 1;
L8_img_i19j13 = 5;
L8_val_i19j13 = 1;
Instance of Symbol 116 MovieClip "scorefont1" in Frame 6
onClipEvent (load) {
var dig_width = 24;
}
onClipEvent (enterFrame) {
var a = value;
dig0.gotoAndStop((a % 10) + 1);
var num_dig = 1;
var i = 1;
while (i < 10) {
a = Math.floor(a / 10);
if (a == 0) {
var j = i;
while (i < 10) {
eval ("dig" + i).gotoAndStop(11);
i++;
}
break;
}
eval ("dig" + i).gotoAndStop((a % 10) + 1);
num_dig++;
i++;
}
_x = (x + (((num_dig - 1) * dig_width) / 2));
_y = y;
}
Instance of Symbol 138 MovieClip "smallfont1" in Frame 6
onClipEvent (load) {
var dig_width = 19;
}
onClipEvent (enterFrame) {
var a = value;
dig0.gotoAndStop((a % 10) + 1);
var num_dig = 1;
var i = 1;
while (i < 10) {
a = Math.floor(a / 10);
if (a == 0) {
var j = i;
while (i < 10) {
eval ("dig" + i).gotoAndStop(11);
i++;
}
break;
}
eval ("dig" + i).gotoAndStop((a % 10) + 1);
num_dig++;
i++;
}
_x = (x + (((num_dig - 1) * dig_width) / 2));
_y = y;
}
Instance of Symbol 160 MovieClip "flyscore" in Frame 6
onClipEvent (load) {
var dig_width = 14;
var count = 0;
var a = value;
dig0.gotoAndStop((a % 10) + 1);
var num_dig = 1;
var i = 1;
while (i < 10) {
a = Math.floor(a / 10);
if (a == 0) {
var j = i;
while (i < 10) {
eval ("dig" + i).gotoAndStop(11);
i++;
}
break;
}
eval ("dig" + i).gotoAndStop((a % 10) + 1);
num_dig++;
i++;
}
_x = (x + (((num_dig - 1) * dig_width) / 2));
_y = y;
_level0.score1.value = _level0.score1.value + value;
}
onClipEvent (enterFrame) {
if (_visible) {
_x = (x + (((num_dig - 1) * dig_width) / 2));
_y = (y - (count * 2));
count = count + 2;
if (count > 10) {
_alpha = ((60 - count) * 2);
} else {
_alpha = 100;
}
if (count >= 60) {
this.removeMovieClip();
}
}
}
Instance of Symbol 218 MovieClip "snowball" in Frame 6
onClipEvent (enterFrame) {
if (_visible) {
if ((_currentframe == 1) || (_currentframe == 2)) {
if (((_x <= 0) || (_x >= 800)) || (step > 11)) {
gotoAndPlay (3);
} else {
_x = (_x + speedx);
_y = (_y + speedy);
step++;
if (step > 6) {
if (Math.abs(speedx) > 2) {
if (speedx > 0) {
speedx = speedx - 2;
} else {
speedx = speedx + 2;
}
}
}
speedy = speedy + 2;
var i = -7;
while (i <= 7) {
cx = Math.floor((_x + i) / 40);
cy = Math.floor(_y / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
break;
case 1 :
if (_level0.pole[Math.floor((_y + 8) / 40)][cx] == 0) {
break;
}
case 2 :
gotoAndPlay (3);
break;
case 3 :
if ((_y - (cy * 40)) >= (40 - (_x - (cx * 40)))) {
gotoAndPlay (2);
}
break;
case 4 :
if ((_y - (cy * 40)) < (_x - (cx * 40))) {
break;
}
gotoAndPlay (2);
}
i = i + 14;
}
monster_hit = false;
var dy = -7;
while (dy <= 7) {
var dx = -7;
while (dx <= 7) {
var i = 1;
while (i <= _level0.num_monsters) {
if ((!monster_hit) && (eval ("_level0.monster" + i) != undefined)) {
if (((!eval ("_level0.monster" + i).boss) && (((_x + dx) >= (eval ("_level0.monster" + i)._x - 6)) && ((_x + dx) <= (eval ("_level0.monster" + i)._x + 8)))) && (((_y + dy) >= (eval ("_level0.monster" + i)._y - 11)) && ((_y + dy) <= (eval ("_level0.monster" + i)._y + 28)))) {
if (!eval ("_level0.monster" + i).snow_ball) {
_level0.snowball_count++;
_level0.flyscore.duplicateMovieClip("flyscore" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.flyscore" + _level0.snowball_count).value = 10;
eval ("_level0.flyscore" + _level0.snowball_count).x = _x;
eval ("_level0.flyscore" + _level0.snowball_count).y = _y;
eval ("_level0.flyscore" + _level0.snowball_count)._visible = true;
}
if (_currentframe == 1) {
eval ("_level0.monster" + i).frozen_count = eval ("_level0.monster" + i).frozen_count + 22;
} else {
eval ("_level0.monster" + i).frozen_count = eval ("_level0.monster" + i).frozen_count + 44;
}
if (eval ("_level0.monster" + i).frozen_count > 99) {
eval ("_level0.monster" + i).frozen_count = 174;
}
eval ("_level0.monster" + i).snow_ball_hit = true;
eval ("_level0.monster" + i).ai_sost = 9;
monster_hit = 3;
gotoAndPlay (3);
break;
}
}
i++;
}
dx = dx + 14;
}
dy = dy + 14;
}
if (_level0.monster_clock1 != undefined) {
if (((_x >= (_level0.monster_clock1._x - 20)) && (_x <= (_level0.monster_clock1._x + 20))) && ((_y >= (_level0.monster_clock1._y - 32)) && (_y <= (_level0.monster_clock1._y + 32)))) {
_level0.snowball_count++;
_level0.flyscore.duplicateMovieClip("flyscore" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.flyscore" + _level0.snowball_count).value = 10;
eval ("_level0.flyscore" + _level0.snowball_count).x = _x;
eval ("_level0.flyscore" + _level0.snowball_count).y = _y;
eval ("_level0.flyscore" + _level0.snowball_count)._visible = true;
gotoAndPlay (3);
}
var i = 1;
while (i <= _level0.monster_clock1.ghost_count) {
if (eval ("_level0.monster_ghost" + i) != undefined) {
if (((_x >= (eval ("_level0.monster_ghost" + i)._x - 12)) && (_x <= (eval ("_level0.monster_ghost" + i)._x + 12))) && ((_y >= (eval ("_level0.monster_ghost" + i)._y - 10)) && (_y <= (eval ("_level0.monster_ghost" + i)._y + 10)))) {
_level0.snowball_count++;
_level0.flyscore.duplicateMovieClip("flyscore" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.flyscore" + _level0.snowball_count).value = 10;
eval ("_level0.flyscore" + _level0.snowball_count).x = _x;
eval ("_level0.flyscore" + _level0.snowball_count).y = _y;
eval ("_level0.flyscore" + _level0.snowball_count)._visible = true;
gotoAndPlay (3);
break;
}
}
i++;
}
}
}
}
}
if (_currentframe == 8) {
i = _level0.snowball_count;
while (i > 0) {
if ((eval ("_level0.snowball" + i) != undefined) && (("/snowball" + i) != _target)) {
break;
}
if (eval ("_level0.flyscore" + i) != undefined) {
break;
}
if (eval ("_level0.bonus_hint" + i) != undefined) {
break;
}
if (eval ("_level0.bubbleballsplinter" + i) != undefined) {
break;
}
if (eval ("_level0.bubbleball" + i) != undefined) {
break;
}
if (eval ("_level0.bonus" + i) != undefined) {
break;
}
i--;
}
_level0.snowball_count = i;
this.removeMovieClip();
}
}
Instance of Symbol 505 MovieClip "monster_red" in Frame 6
onClipEvent (load) {
var frame_wet = 1;
var frame_wet_last = 17;
var frame_walk = 18;
var frame_walk_last = 31;
var frame_turn = 32;
var frame_turn_last = 48;
var frame_jump = 49;
var frame_jump_last = 61;
var frame_fall = 59;
var frame_fall_last = 61;
var frame_run = 62;
var frame_run_last = 75;
var frame_frozen = 76;
var frame_frozen_last = 250;
var frame_ball = 251;
var frame_ball_last = 260;
var frame_knock = 261;
var frame_knock_last = 274;
var frame_dead = 275;
var frame_dead_last = 306;
var frame_roll = 307;
var frame_roll_last = 322;
var speed = 4;
var world_fall_speed = 16;
var jump_speed = new Array(16, 16, 16, 16, 14, 6, 3, 1, 0, 0);
var jump_index = undefined;
var sost = 10;
var ai_sost = 1;
var turn_count = 0;
var wet_count = 0;
var frozen_count = 0;
var max_turn_count = 16;
var snow_ball_hit = false;
var snow_ball = false;
var move_snow_ball = false;
var fall_count = 0;
var fall_count_jump = 100;
var knock_speed_y = new Array(32, 32, 32, 32, 32, 32, 32, 30, 28, 16, 14, 10, 3, 0, 0);
var knock_index = undefined;
var knock_speed_x = 16;
var knock_skip = false;
var dead_count = 0;
var super_bonus = false;
var jump_side = false;
var boss = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_y > 611) {
_y = 0;
}
if (sost == 10) {
if ((_currentframe < frame_fall) || (_currentframe > frame_fall_last)) {
gotoAndPlay(frame_fall);
}
if (_y < start_y) {
_y = (_y + world_fall_speed);
} else {
_y = start_y;
sost = 1;
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (sost == 9) {
if ((_currentframe < frame_dead) || (_currentframe > frame_dead_last)) {
gotoAndPlay(frame_dead);
}
if (dead_count < 43) {
dead_count++;
if (dead_count == 32) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_frozen_explode].start();
}
}
} else {
_level0.snowball_count++;
_level0.bonus.duplicateMovieClip("bonus" + _level0.snowball_count, 1000 + _level0.snowball_count);
do {
bonus = random(8) + 1;
} while (bonus == 4);
eval ("_level0.bonus" + _level0.snowball_count).gotoAndStop(bonus);
eval ("_level0.bonus" + _level0.snowball_count)._x = _x;
eval ("_level0.bonus" + _level0.snowball_count)._y = _y;
eval ("_level0.bonus" + _level0.snowball_count)._visible = true;
if (super_bonus) {
super_bonus = false;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_greatkick].start();
}
var i = 1;
while (!(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "i") === undefined)) {
_level0.snowball_count++;
_level0.bonus.duplicateMovieClip("bonus" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.bonus" + _level0.snowball_count).gotoAndStop(4);
eval ("_level0.bonus" + _level0.snowball_count)._x = (Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "i")) * 40) + 20;
eval ("_level0.bonus" + _level0.snowball_count)._y = (-(13 - Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "j")))) * 40;
eval ("_level0.bonus" + _level0.snowball_count).start_y = (Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "j")) * 40) + 12;
eval ("_level0.bonus" + _level0.snowball_count)._visible = true;
i++;
}
}
this.removeMovieClip();
}
} else if ((sost == 8) && (knock_index != undefined)) {
if (knock_index < knock_speed_y.length) {
dy = -knock_speed_y[knock_index];
} else if (knock_index < (knock_speed_y.length * 2)) {
dy = knock_speed_y[((knock_speed_y.length * 2) - knock_index) - 1];
} else {
dy = knock_speed_y[0];
}
knock_index++;
if ((_y + dy) >= 0) {
_y = (_y + dy);
} else if (knock_index < knock_speed_y.length) {
knock_index = knock_speed_y.length;
}
if (_xscale < 0) {
if (_x <= 21) {
_x = (21 + knock_speed_x);
_xscale = (-_xscale);
} else if ((_level0.pole[Math.floor(_y / 40)][Math.floor(((_x - 8) - knock_speed_x) / 40)] != 0) && (_level0.pole[Math.floor(_y / 40)][Math.floor((_x - 8) / 40)] == 0)) {
_xscale = (-_xscale);
} else {
_x = (_x - knock_speed_x);
}
} else if (_x >= 781) {
_x = (781 - knock_speed_x);
_xscale = (-_xscale);
} else if ((_level0.pole[Math.floor(_y / 40)][Math.floor(((_x + 6) + knock_speed_x) / 40)] != 0) && (_level0.pole[Math.floor(_y / 40)][Math.floor((_x + 6) / 40)] == 0)) {
_xscale = (-_xscale);
} else {
_x = (_x + knock_speed_x);
}
cy = Math.floor((_y + 29) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if (((knock_index > knock_speed_y.length) && ((_level0.pole[cy][cx0] != 0) || (_level0.pole[cy][cx1] != 0))) && ((_level0.pole[Math.floor(((_y + 29) - dy) / 40)][cx0] == 0) || (_level0.pole[Math.floor(((_y + 29) - dy) / 40)][cx1] == 0))) {
if (((random(2) == 0) || (knock_skip)) || (cy > 10)) {
if (_level0.pole[cy][cx1] == 3) {
dx = (_x + 6) - (cx1 * 40);
_y = (((cy * 40) + 8) - dx);
} else if (_level0.pole[cy][cx0] == 4) {
dx = (_x - 8) - (cx0 * 40);
_y = (((cy * 40) + dx) - 30);
} else {
_y = ((cy * 40) - 29);
}
sost = 9;
dead_count = 0;
gotoAndPlay(frame_dead);
} else {
knock_skip = true;
}
}
} else {
found = false;
land = false;
if (sost == 3) {
if (((_currentframe < frame_fall) || (_currentframe > frame_fall_last)) && (ai_sost != 9)) {
gotoAndPlay(frame_fall);
}
fall_speed = world_fall_speed;
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if ((_y > 0) && (_level0.pole[cy][cx1] == 3)) {
dx = (_x + 6) - (cx1 * 40);
if ((_y + fall_speed) < (((cy * 40) + 8) - dx)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
_y = (((cy * 40) + 8) - dx);
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 4;
fall_count = 0;
} else {
if (((plus_mode && (ai_sost != 2)) && (ai_sost != 8)) && (ai_sost != 9)) {
ai_sost = 4;
}
sost = 1;
land = true;
}
}
found = true;
} else if ((_y > 0) && (_level0.pole[cy][cx0] == 4)) {
dx = (_x - 8) - (cx0 * 40);
if ((_y + fall_speed) < (((cy * 40) + dx) - 30)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
_y = (((cy * 40) + dx) - 30);
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 2;
fall_count = 0;
} else {
if (((plus_mode && (ai_sost != 2)) && (ai_sost != 8)) && (ai_sost != 9)) {
ai_sost = 4;
}
sost = 1;
land = true;
}
}
found = true;
}
if (!found) {
if ((_y < 0) || (Math.floor((_y + 28) / 40) == Math.floor(((_y + 28) + world_fall_speed) / 40))) {
_y = (_y + world_fall_speed);
fall_count = fall_count + world_fall_speed;
} else {
var fall_speed = world_fall_speed;
while (fall_speed > 0) {
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if ((_y > 520) || ((_level0.pole[cy][cx0] == 0) && (_level0.pole[cy][cx1] == 0))) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
break;
}
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 4;
fall_count = 0;
break;
}
sost = 1;
land = true;
if ((ai_sost != 8) && (ai_sost != 9)) {
ai_sost = 1;
}
fall_speed--;
}
}
}
}
if (sost == 1) {
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && (eval ("_level0.monster" + i).ai_sost != 2)) && ((((_x + 10) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - 12) <= (eval ("_level0.monster" + i)._x + 25))) && (((_y + 28) >= (eval ("_level0.monster" + i)._y - 8)) && ((_y - 8) <= (eval ("_level0.monster" + i)._y + 28))))) {
if (((eval ("_level0.monster" + i)._xscale == _xscale) && (ai_sost != 9)) && (ai_sost != 2)) {
ai_sost = 2;
turn_count = max_turn_count;
break;
}
}
}
i++;
}
}
if ((sost == 2) && (jump_index != undefined)) {
_y = (_y - jump_speed[jump_index]);
jump_index++;
var dx = 12;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if ((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_x + dx) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - dx) <= (eval ("_level0.monster" + i)._x + 25))) && (((_y - 16) >= (eval ("_level0.monster" + i)._y - 8)) && ((_y - 16) <= (eval ("_level0.monster" + i)._y + 28))))) {
eval ("_level0.monster" + i).sost = 2;
eval ("_level0.monster" + i).jump_index = 2;
eval ("_level0.monster" + i).fall_count = 0;
break;
}
}
i++;
}
if (jump_index >= jump_speed.length) {
jump_index = undefined;
sost = 3;
if ((ai_sost != 8) && (ai_sost != 9)) {
ai_sost = 1;
}
}
}
dx = 0;
dy = 0;
if ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 12) / 40)] == 4) || ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 10) / 40)] == 4) && (sost == 1))) {
dx = 1;
dy = 1;
} else if ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 12) / 40)] == 3) || ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 10) / 40)] == 3) && (sost == 1))) {
dx = -1;
dy = 1;
}
if ((dx != 0) && (dy != 0)) {
if (((plus_mode && (ai_sost != 2)) && (ai_sost != 8)) && (ai_sost != 9)) {
ai_sost = 4;
}
var found_monster = false;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_y + 28) + dy) >= (eval ("_level0.monster" + i)._y - 11)) && (((_y - 11) + dy) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if (((((_x + 10) + dx) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && (((_x + 10) + dx) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if ((((_x - 12) + dx) >= (eval ("_level0.monster" + i)._x + 25)) && ((((_x - 12) + dx) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || (left)) {
if (((ai_sost != 9) && (ai_sost != 2)) && ((right && (_xscale > 0)) || (left && (_xscale < 0)))) {
ai_sost = 2;
turn_count = max_turn_count;
}
dx = 0;
dy = 0;
break;
}
}
}
i++;
}
_x = (_x + dx);
_y = (_y + dy);
} else if (!found) {
if (sost == 1) {
if ((_y > 520) || ((_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x - 8) / 40)] == 0) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x + 6) / 40)] == 0))) {
sost = 3;
if ((ai_sost != 8) && (ai_sost != 9)) {
ai_sost = 1;
}
} else {
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 0;
} else {
sost = 1;
}
fall_count = 0;
}
}
}
switch (ai_sost) {
case 9 :
if (frozen_count > 0) {
if (snow_ball && ((_currentframe < frame_ball) || (_currentframe > frame_ball_last))) {
gotoAndPlay(frame_ball);
}
if (snow_ball_hit && (!snow_ball)) {
gotoAndPlay(frame_frozen_last - frozen_count);
snow_ball_hit = false;
snow_ball_move = false;
}
frozen_count--;
if (frozen_count > 99) {
snow_ball = true;
} else {
gotoAndPlay(frame_frozen_last - frozen_count);
snow_ball = false;
snow_ball_move = false;
}
} else {
ai_sost = 8;
wet_count = 16;
snow_ball = false;
snow_ball_move = false;
}
case 1 :
case 3 :
case 4 :
if ((sost == 1) || ((sost == 2) && (jump_side))) {
if (ai_sost == 1) {
speed = 4;
}
if (ai_sost == 3) {
speed = 10;
}
if (ai_sost == 4) {
speed = 12;
}
if (ai_sost == 9) {
speed = 4;
}
if (_xscale < 0) {
if (_x <= 21) {
if (ai_sost != 9) {
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (_y < 0) {
sost = 3;
} else {
var found_monster = false;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && (((_y + 28) >= (eval ("_level0.monster" + i)._y - 11)) && ((_y - 11) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if ((((_x + 10) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x + 10) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if (((_x - 12) >= (eval ("_level0.monster" + i)._x + 25)) && (((_x - 12) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || left) {
if (((ai_sost != 9) && (ai_sost != 2)) && left) {
ai_sost = 2;
turn_count = max_turn_count;
found_monster = true;
break;
}
}
}
}
i++;
}
if (!found_monster) {
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 4) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 8) / 40)] == 4)) {
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x - speed);
_y = (_y - speed);
move_snow_ball = false;
}
} else {
cx = Math.floor(((_x - 8) - speed) / 40);
cy = Math.floor((_y + 28) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if ((ai_sost != 9) || move_snow_ball) {
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x + 6) / 40)] == 3) {
_y = (_y + speed);
}
_x = (_x - speed);
move_snow_ball = false;
}
jump_side = false;
break;
case 2 :
if (ai_sost != 9) {
if ((((cy >= 2) && (sost != 2)) && ((_level0.pole[cy - 1][cx] == 0) || (_level0.pole[cy - 2][cx] == 0))) && ((random(2) == 0) || ((_level0.hero.sost != 3) && ((Math.round((_level0.hero._y + 28) / 40) + 1) < cy)))) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
jump_side = true;
} else if (!jump_side) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
break;
case 3 :
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x - speed);
_y = (_y + speed);
move_snow_ball = false;
}
break;
case 4 :
if (!((ai_sost != 9) || move_snow_ball)) {
break;
}
_x = (_x - speed);
_y = (_y - speed);
move_snow_ball = false;
}
}
}
}
} else if (_x >= 781) {
if (ai_sost != 9) {
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (_y < 0) {
sost = 3;
} else {
var found_monster = false;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && (((_y + 28) >= (eval ("_level0.monster" + i)._y - 11)) && ((_y - 11) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if ((((_x + 10) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x + 10) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if (((_x - 12) >= (eval ("_level0.monster" + i)._x + 25)) && (((_x - 12) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || left) {
if (((ai_sost != 9) && (ai_sost != 2)) && right) {
ai_sost = 2;
turn_count = max_turn_count;
found_monster = true;
break;
}
}
}
}
i++;
}
if (!found_monster) {
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 3) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 6) / 40)] == 3)) {
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x + speed);
_y = (_y - speed);
move_snow_ball = false;
}
} else {
cx = Math.floor(((_x + 6) + speed) / 40);
cy = Math.floor((_y + 28) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if ((ai_sost != 9) || move_snow_ball) {
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x - 8) / 40)] == 4) {
_y = (_y + speed);
}
_x = (_x + speed);
move_snow_ball = false;
}
jump_side = false;
break;
case 2 :
if (ai_sost != 9) {
if ((((cy >= 2) && (sost != 2)) && ((_level0.pole[cy - 1][cx] == 0) || (_level0.pole[cy - 2][cx] == 0))) && ((random(2) == 0) || ((_level0.hero.sost != 3) && ((Math.round((_level0.hero._y + 28) / 40) + 1) < cy)))) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
jump_side = true;
} else if (!jump_side) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
break;
case 3 :
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x + speed);
_y = (_y - speed);
move_snow_ball = false;
}
break;
case 4 :
if (!((ai_sost != 9) || move_snow_ball)) {
break;
}
_x = (_x + speed);
_y = (_y + speed);
move_snow_ball = false;
}
}
}
}
}
if ((ai_sost == 1) && (Math.round(_level0.hero._y / 40) == Math.round(_y / 40))) {
ai_sost = 3;
} else if ((((sost == 1) && ((ai_sost == 1) || (ai_sost == 3))) && ((((Math.round((_level0.hero._y + 28) / 40) + 1) < Math.round((_y + 28) / 40)) && ((((_level0.hero.sost != 3) && (_level0.hero.sost != 4)) && (_level0.hero.sost != 9)) && (_level0.hero.sost != 10))) || (((random(64) == 0) && (ai_sost == 1)) && (Math.round((_y + 28) / 40) > 2)))) && (_level0.pole[Math.floor((_y - 13) / 40)][Math.floor(_x / 40)] == 1)) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
}
if (sost == 1) {
if (ai_sost == 1) {
if ((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) {
gotoAndPlay(frame_walk);
}
} else if (ai_sost == 3) {
if ((_currentframe < frame_run) || (_currentframe > frame_run_last)) {
gotoAndPlay(frame_run);
}
} else if (ai_sost == 4) {
if ((_currentframe < frame_roll) || (_currentframe > frame_roll_last)) {
gotoAndPlay(frame_roll);
}
}
}
break;
case 2 :
if ((_currentframe < frame_turn) || (_currentframe > frame_turn_last)) {
gotoAndPlay(frame_turn);
}
if (turn_count > 0) {
turn_count--;
} else {
ai_sost = 1;
_xscale = (-_xscale);
}
break;
case 8 :
if ((_currentframe < frame_wet) || (_currentframe > frame_wet_last)) {
gotoAndPlay(frame_wet);
}
if (wet_count > 0) {
wet_count--;
} else {
ai_sost = 1;
}
}
if ((((sost == 1) || (sost == 2)) || (sost == 3)) && (((ai_sost == 1) || (ai_sost == 2)) || (ai_sost == 3))) {
if (_xscale > 0) {
var dx = 12;
} else {
var dx = -12;
}
if ((((!_level0.hero.immortal) && (((_level0.hero.sost == 1) || (_level0.hero.sost == 2)) || (_level0.hero.sost == 3))) && (((_x + dx) >= (_level0.hero._x - 27)) && ((_x + dx) <= (_level0.hero._x + 25)))) && (((_y + 28) >= (_level0.hero._y - 8)) && ((_y - 16) <= (_level0.hero._y + 28)))) {
_level0.hero.sost = 9;
_level0.hero.death_index = 0;
_level0.hero._xscale = _xscale;
_level0.hero.gotoAndPlay(_level0.hero.frame_death);
}
}
}
}
}
Instance of Symbol 534 MovieClip "bigsnowball" in Frame 6
onClipEvent (load) {
var speed = 24;
var world_fall_speed = 24;
var jump_speed = new Array(40, 40, 6, 2, 0, 0);
var jump_index = undefined;
var sost = 1;
var fall_count = 0;
var fall_count_jump = 120;
var hit_count = 0;
var max_hit_count = 14;
var bonus_hit_count = 0;
var snowball_break = false;
var snowball_break_count = 11;
var snow_ball = false;
var catch_hero = false;
var ai_sost = 10;
}
onClipEvent (enterFrame) {
if (_visible && (!snowball_break)) {
if (_y > 571) {
_y = 0;
}
found = false;
if (sost == 3) {
fall_speed = world_fall_speed;
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if ((_y > 0) && (_level0.pole[cy][cx1] == 3)) {
dx = (_x + 6) - (cx1 * 40);
if ((_y + fall_speed) < (((cy * 40) + 8) - dx)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
new_y = ((cy * 40) + 8) - dx;
fall_count = fall_count + (new_y - _y);
_y = new_y;
sost = 1;
fall_count = 0;
}
found = true;
} else if ((_y > 0) && (_level0.pole[cy][cx0] == 4)) {
dx = (_x - 8) - (cx0 * 40);
if ((_y + fall_speed) < (((cy * 40) + dx) - 30)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
new_y = ((cy * 40) + dx) - 30;
fall_count = fall_count + (new_y - _y);
_y = new_y;
sost = 1;
fall_count = 0;
}
found = true;
}
if (!found) {
if ((_y < 0) || (Math.floor((_y + 28) / 40) == Math.floor(((_y + 28) + world_fall_speed) / 40))) {
_y = (_y + world_fall_speed);
fall_count = fall_count + world_fall_speed;
} else {
land = false;
var fall_speed = world_fall_speed;
while (fall_speed > 0) {
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if (((_y + 28) > 520) || ((_level0.pole[cy][cx0] == 0) && (_level0.pole[cy][cx1] == 0))) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
break;
}
land = true;
fall_speed--;
}
if (land) {
if (fall_count >= fall_count_jump) {
sost = 2;
jump_index = 0;
fall_count = 0;
land = true;
} else {
sost = 1;
fall_count = 0;
}
}
}
}
} else if ((sost == 2) && (jump_index != undefined)) {
_y = (_y - jump_speed[jump_index]);
jump_index++;
if (jump_index >= jump_speed.length) {
jump_index = undefined;
sost = 3;
}
}
if (!found) {
if (sost == 1) {
if (((_y + 28) > 520) || ((_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x - 8) / 40)] == 0) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x + 6) / 40)] == 0))) {
sost = 3;
} else {
sost = 1;
fall_count = 0;
}
}
}
if ((_y + 28) >= 520) {
if (_xscale < 0) {
if ((_x - speed) <= 21) {
_xscale = (-_xscale);
fall_count = 0;
hit_count++;
fall_count = 0;
} else {
_x = (_x - speed);
}
} else if (_xscale > 0) {
if ((_x + speed) >= 781) {
_xscale = (-_xscale);
fall_count = 0;
hit_count++;
fall_count = 0;
} else {
_x = (_x + speed);
}
}
} else if (_xscale < 0) {
if ((_x - speed) <= 21) {
_x = (21 + speed);
if ((Math.floor(((_y + 28) - speed) / 40) < 12) || (hit_count == 0)) {
_xscale = (-_xscale);
fall_count = 0;
hit_count++;
if (!_level0.no_sound) {
_level0.snds[eval ("_level0.snd_bigsnowball_collide" + (random(4) + 1))].start();
}
} else {
snowball_break = true;
}
} else {
var dx = -12;
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
if ((eval ("_level0.monster" + i).snow_ball && ((((_x + dx) - speed) >= (eval ("_level0.monster" + i)._x - 27)) && (((_x + dx) - speed) <= (eval ("_level0.monster" + i)._x + 25)))) && ((_y >= (eval ("_level0.monster" + i)._y - 11)) && (_y <= (eval ("_level0.monster" + i)._y + 28)))) {
var old_x = eval ("_level0.monster" + i)._x;
var old_y = eval ("_level0.monster" + i)._y;
var old_depth = eval ("_level0.monster" + i).getDepth();
_level0.bigsnowball.duplicateMovieClip("monster" + i, old_depth);
eval ("_level0.monster" + i)._x = old_x - speed;
eval ("_level0.monster" + i)._y = old_y;
eval ("_level0.monster" + i)._xscale = _xscale;
eval ("_level0.monster" + i)._visible = true;
_xscale = (-_xscale);
hit_count++;
bonus_hit_count++;
_level0.snowball_count++;
_level0.flyscore.duplicateMovieClip("flyscore" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.flyscore" + _level0.snowball_count).value = bonus_hit_count * 1000;
eval ("_level0.flyscore" + _level0.snowball_count).x = _x;
eval ("_level0.flyscore" + _level0.snowball_count).y = _y;
eval ("_level0.flyscore" + _level0.snowball_count)._visible = true;
if (!_level0.no_sound) {
_level0.snds[eval ("_level0.snd_bigsnowball_collide" + (random(4) + 1))].start();
}
break;
}
}
i++;
}
if (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 8) / 40)] == 0) {
cur_ok = true;
} else {
cur_ok = false;
}
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 4) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 8) / 40)] == 4)) {
_x = (_x - speed);
_y = (_y - speed);
fall_count = 0;
} else {
switch (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(((_x - 8) - speed) / 40)]) {
case 0 :
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x + 6) / 40)] == 3) {
_y = (_y + speed);
fall_count = 0;
}
_x = (_x - speed);
break;
case 1 :
case 2 :
if (cur_ok) {
_xscale = (-_xscale);
fall_count = 0;
hit_count++;
if (!_level0.no_sound) {
_level0.snds[eval ("_level0.snd_bigsnowball_collide" + (random(4) + 1))].start();
}
} else {
_x = (_x - speed);
}
break;
case 3 :
_x = (_x - speed);
_y = (_y + speed);
fall_count = 0;
break;
case 4 :
_x = (_x - speed);
_y = (_y - speed);
fall_count = 0;
}
}
}
} else if ((_x + speed) >= 781) {
_x = (781 - speed);
if ((Math.floor(((_y + 28) - speed) / 40) < 12) || (hit_count == 0)) {
_xscale = (-_xscale);
fall_count = 0;
hit_count++;
if (!_level0.no_sound) {
_level0.snds[eval ("_level0.snd_bigsnowball_collide" + (random(4) + 1))].start();
}
} else {
snowball_break = true;
}
} else {
var dx = 18;
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
if ((eval ("_level0.monster" + i).snow_ball && ((((_x + dx) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && (((_x + dx) + speed) <= (eval ("_level0.monster" + i)._x + 25)))) && ((_y >= (eval ("_level0.monster" + i)._y - 11)) && (_y <= (eval ("_level0.monster" + i)._y + 28)))) {
var old_x = eval ("_level0.monster" + i)._x;
var old_y = eval ("_level0.monster" + i)._y;
var old_depth = eval ("_level0.monster" + i).getDepth();
_level0.bigsnowball.duplicateMovieClip("monster" + i, old_depth);
eval ("_level0.monster" + i)._x = old_x + speed;
eval ("_level0.monster" + i)._y = old_y;
eval ("_level0.monster" + i)._xscale = _xscale;
eval ("_level0.monster" + i)._visible = true;
_xscale = (-_xscale);
hit_count++;
bonus_hit_count++;
_level0.snowball_count++;
_level0.flyscore.duplicateMovieClip("flyscore" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.flyscore" + _level0.snowball_count).value = bonus_hit_count * 1000;
eval ("_level0.flyscore" + _level0.snowball_count).x = _x;
eval ("_level0.flyscore" + _level0.snowball_count).y = _y;
eval ("_level0.flyscore" + _level0.snowball_count)._visible = true;
break;
}
}
i++;
}
if (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 6) / 40)] == 0) {
cur_ok = true;
} else {
cur_ok = false;
}
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 3) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 6) / 40)] == 3)) {
_x = (_x + speed);
_y = (_y - speed);
fall_count = 0;
} else {
switch (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(((_x + 6) + speed) / 40)]) {
case 0 :
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x - 8) / 40)] == 4) {
fall_count = 0;
_y = (_y + speed);
}
_x = (_x + speed);
break;
case 1 :
case 2 :
if (cur_ok) {
_xscale = (-_xscale);
fall_count = 0;
hit_count++;
if (!_level0.no_sound) {
_level0.snds[eval ("_level0.snd_bigsnowball_collide" + (random(4) + 1))].start();
}
} else {
_x = (_x + speed);
}
break;
case 3 :
_x = (_x + speed);
_y = (_y - speed);
fall_count = 0;
break;
case 4 :
_x = (_x + speed);
_y = (_y + speed);
fall_count = 0;
}
}
}
var dx = 16;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((!eval ("_level0.monster" + i).snow_ball) && (eval ("_level0.monster" + i).ai_sost != 10)) && (!(((eval ("_level0.monster" + i).sost == 8) || (eval ("_level0.monster" + i).sost == 9)) || (eval ("_level0.monster" + i).sost == 10)))) {
if (((!eval ("_level0.monster" + i).boss) && (((_x + dx) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - dx) <= (eval ("_level0.monster" + i)._x + 25)))) && (((_y + 28) >= (eval ("_level0.monster" + i)._y - 8)) && ((_y - 16) <= (eval ("_level0.monster" + i)._y + 28)))) {
eval ("_level0.monster" + i).sost = 8;
eval ("_level0.monster" + i)._xscale = _xscale;
eval ("_level0.monster" + i).knock_index = random(8);
eval ("_level0.monster" + i).knock_speed_x = 2 + random(7);
eval ("_level0.monster" + i).gotoAndPlay(eval ("_level0.monster" + i).frame_knock);
bonus_hit_count++;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bigsnowball_collide_m].start();
}
_level0.snowball_count++;
_level0.flyscore.duplicateMovieClip("flyscore" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.flyscore" + _level0.snowball_count).value = bonus_hit_count * 1000;
eval ("_level0.flyscore" + _level0.snowball_count).x = _x;
eval ("_level0.flyscore" + _level0.snowball_count).y = _y;
eval ("_level0.flyscore" + _level0.snowball_count)._visible = true;
if (bonus_hit_count >= (_level0.num_monsters - 1)) {
eval ("_level0.monster" + i).super_bonus = true;
}
} else if ((eval ("_level0.monster" + i).boss && (((_x + dx) >= (eval ("_level0.monster" + i)._x - 32)) && ((_x - dx) <= (eval ("_level0.monster" + i)._x + 32)))) && (((_y + 28) >= (eval ("_level0.monster" + i)._y - 50)) && ((_y - 16) <= (eval ("_level0.monster" + i)._y + 54)))) {
_level0.boss_life1.value--;
eval ("_level0.monster" + i).after_hit_count = 20;
eval ("_level0.monster" + i).eyes.gotoAndPlay(1);
if (!_level0.no_sound) {
_level0.snds[_level0.snd_boss_hit].start();
}
snowball_break = true;
}
}
}
i++;
}
if (catch_hero) {
_level0.hero._xscale = _xscale;
_level0.hero._x = _x;
_level0.hero._y = _y;
} else {
if (_xscale > 0) {
var dx = (18 + speed);
} else {
var dx = (-20 - speed);
}
if ((((_level0.hero.sost == 1) && (!_level0.hero.immortal)) && (((_x + dx) >= (_level0.hero._x - 27)) && ((_x + dx) <= (_level0.hero._x + 25)))) && (((_y + 28) >= (_level0.hero._y - 8)) && ((_y - 16) <= (_level0.hero._y + 28)))) {
_level0.hero.sost = 4;
_level0.hero._xscale = _xscale;
_level0.hero._x = _x;
_level0.hero._y = _y;
var s = _target;
_level0.hero.catch_snowball = "_level0." + s.substring(1, s.length);
_level0.hero.gotoAndPlay(_level0.hero.frame_insnowball);
catch_hero = true;
}
}
if (hit_count > max_hit_count) {
snowball_break = true;
}
} else if (snowball_break) {
if (catch_hero) {
catch_hero = false;
_level0.hero.jump_index = 0;
_level0.hero.sost = 2;
_level0.hero.immortal = true;
_level0.hero.immortal_count = 0;
_level0.hero.gotoAndPlay(_level0.hero.frame_jump);
}
if (_currentframe < 11) {
gotoAndPlay (11);
}
if (snowball_break_count == 11) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bigsnowball_explode].start();
}
}
if (snowball_break_count > 0) {
snowball_break_count--;
} else {
this.removeMovieClip();
}
}
}
Instance of Symbol 740 MovieClip "bonus" in Frame 6
onClipEvent (load) {
var world_fall_speed = 16;
var count = 250;
var remove_count = 0;
}
onClipEvent (enterFrame) {
if (_visible) {
if ((_currentframe == 4) || (_currentframe == 9)) {
if (_y < start_y) {
_y = (_y + world_fall_speed);
if (_currentframe == 4) {
count = 150;
}
if (_currentframe == 9) {
if (_y >= start_y) {
bonusbox.Play();
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bonusbox_fall].stop();
_level0.snds[_level0.snd_bonusbox_landing].start();
}
_level0.quake.startquake = true;
}
}
} else {
_y = start_y;
}
}
if (remove_count == 0) {
if (_currentframe != 9) {
count--;
} else {
var i = 1;
while (i <= _level0.snowball_count) {
if (eval ("_level0.snowball" + i) != undefined) {
if ((((_x + 16) >= eval ("_level0.snowball" + i)._x) && ((_x - 16) <= eval ("_level0.snowball" + i)._x)) && (((_y + 16) >= eval ("_level0.snowball" + i)._y) && ((_y - 16) <= eval ("_level0.snowball" + i)._y))) {
eval ("_level0.snowball" + i).gotoAndPlay(3);
bonusbox.gotoAndStop(23);
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bonusbox_explode].start();
}
remove_count = 10;
break;
}
}
i++;
}
}
if (count <= 17) {
_xscale = (count * 3);
_yscale = (count * 3);
if (count <= 0) {
this.removeMovieClip();
}
} else if (((((_level0.hero.sost == 1) || (_level0.hero.sost == 2)) || (_level0.hero.sost == 3)) && (((_x + 16) >= (_level0.hero._x - 27)) && ((_x - 16) <= (_level0.hero._x + 25)))) && (((_y + 16) >= (_level0.hero._y - 8)) && ((_y - 16) <= (_level0.hero._y + 28)))) {
switch (_currentframe) {
case 1 :
case 2 :
case 3 :
case 4 :
if (_currentframe == 1) {
var score = 500;
} else if (_currentframe == 2) {
var score = 700;
} else if (_currentframe == 3) {
var score = 1000;
} else if (_currentframe == 4) {
var score = 10000;
}
if (!_level0.no_sound) {
_level0.snds[eval ("_level0.snd_getscorebonus" + (random(4) + 1))].start();
}
_level0.snowball_count++;
_level0.flyscore.duplicateMovieClip("flyscore" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.flyscore" + _level0.snowball_count).value = score;
eval ("_level0.flyscore" + _level0.snowball_count).x = _x;
eval ("_level0.flyscore" + _level0.snowball_count).y = _y;
eval ("_level0.flyscore" + _level0.snowball_count)._visible = true;
break;
case 5 :
case 6 :
case 7 :
case 8 :
double_bonus = false;
if (_currentframe == 5) {
_level0.lives1.value++;
bonus_hint_frame = 1;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_getlifebonus].start();
}
} else if (_currentframe == 6) {
if (!_level0.hero.power_up) {
_level0.hero.power_up = true;
bonus_hint_frame = 2;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_getpowerupbonus].start();
}
} else {
double_bonus = true;
}
} else if (_currentframe == 7) {
if (!_level0.hero.range_up) {
_level0.hero.range_up = true;
bonus_hint_frame = 3;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_getrangeupbonus].start();
}
} else {
double_bonus = true;
}
} else if (_currentframe == 8) {
if (!_level0.hero.speed_up) {
_level0.hero.speed_up = true;
bonus_hint_frame = 4;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_getspeedupbonus].start();
}
} else {
double_bonus = true;
}
}
if (!double_bonus) {
_level0.snowball_count++;
_level0.bonus_hint.duplicateMovieClip("bonus_hint" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.bonus_hint" + _level0.snowball_count)._x = _x;
eval ("_level0.bonus_hint" + _level0.snowball_count)._y = _y;
eval ("_level0.bonus_hint" + _level0.snowball_count).gotoAndStop(bonus_hint_frame);
eval ("_level0.bonus_hint" + _level0.snowball_count)._visible = true;
} else {
if (!_level0.no_sound) {
_level0.snds[eval ("_level0.snd_getscorebonus" + (random(4) + 1))].start();
}
_level0.snowball_count++;
_level0.flyscore.duplicateMovieClip("flyscore" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.flyscore" + _level0.snowball_count).value = 5000;
eval ("_level0.flyscore" + _level0.snowball_count).x = _x;
eval ("_level0.flyscore" + _level0.snowball_count).y = _y;
eval ("_level0.flyscore" + _level0.snowball_count)._visible = true;
}
}
if (_currentframe != 9) {
this.removeMovieClip();
}
}
} else if (remove_count > 0) {
if ((_currentframe == 9) && (remove_count == 10)) {
_level0.snowball_count++;
_level0.bonus.duplicateMovieClip("bonus" + _level0.snowball_count, 1000 + _level0.snowball_count);
do {
bonus = random(8) + 1;
} while (bonus == 4);
eval ("_level0.bonus" + _level0.snowball_count).gotoAndStop(bonus);
eval ("_level0.bonus" + _level0.snowball_count)._x = _x;
eval ("_level0.bonus" + _level0.snowball_count)._y = _y;
eval ("_level0.bonus" + _level0.snowball_count)._visible = true;
}
remove_count--;
if (remove_count == 0) {
this.removeMovieClip();
}
}
}
}
Instance of Symbol 749 MovieClip "bonus_hint" in Frame 6
onClipEvent (load) {
var count = 0;
}
onClipEvent (enterFrame) {
if (_visible) {
_y = (_y - 4);
count = count + 2;
if (count > 10) {
_alpha = ((60 - count) * 2);
} else {
_alpha = 100;
}
if (count >= 60) {
this.removeMovieClip();
}
}
}
Instance of Symbol 752 MovieClip "quake" in Frame 6
onClipEvent (load) {
var startquake = false;
var count = 0;
}
onClipEvent (enterFrame) {
if (startquake) {
count = 10;
startquake = false;
}
if (count > 0) {
_root._x = random(6) - 3;
_root._y = random(6) - 3;
count--;
if (count == 0) {
_root._x = 0;
_root._y = 0;
}
}
}
Instance of Symbol 1019 MovieClip "monster_green" in Frame 6
onClipEvent (load) {
var frame_wet = 1;
var frame_wet_last = 17;
var frame_walk = 18;
var frame_walk_last = 31;
var frame_turn = 32;
var frame_turn_last = 48;
var frame_jump = 49;
var frame_jump_last = 61;
var frame_fall = 59;
var frame_fall_last = 61;
var frame_frozen = 62;
var frame_frozen_last = 236;
var frame_ball = 237;
var frame_ball_last = 246;
var frame_knock = 247;
var frame_knock_last = 260;
var frame_dead = 261;
var frame_dead_last = 292;
var frame_attack = 293;
var frame_attack_last = 305;
var frame_attackdown = 306;
var frame_attackdown_last = 321;
var speed = 4;
var world_fall_speed = 16;
var jump_speed = new Array(16, 16, 16, 16, 14, 6, 3, 1, 0, 0);
var jump_index = undefined;
var sost = 10;
var ai_sost = 1;
var turn_count = 0;
var wet_count = 0;
var frozen_count = 0;
var max_turn_count = 16;
var snow_ball_hit = false;
var snow_ball = false;
var move_snow_ball = false;
var fall_count = 0;
var fall_count_jump = 100;
var knock_speed_y = new Array(32, 32, 32, 32, 32, 32, 32, 30, 28, 16, 14, 10, 3, 0, 0);
var knock_index = undefined;
var knock_speed_x = 16;
var knock_skip = false;
var dead_count = 0;
var super_bonus = false;
var fire_counter = 0;
var jump_side = false;
var boss = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_y > 611) {
_y = 0;
}
if (sost == 10) {
if ((_currentframe < frame_fall) || (_currentframe > frame_fall_last)) {
gotoAndPlay(frame_fall);
}
if (_y < start_y) {
_y = (_y + world_fall_speed);
} else {
_y = start_y;
sost = 1;
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (sost == 9) {
if ((_currentframe < frame_dead) || (_currentframe > frame_dead_last)) {
gotoAndPlay(frame_dead);
}
if (dead_count < 43) {
dead_count++;
if (dead_count == 32) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_frozen_explode].start();
}
}
} else {
_level0.snowball_count++;
_level0.bonus.duplicateMovieClip("bonus" + _level0.snowball_count, 1000 + _level0.snowball_count);
do {
bonus = random(8) + 1;
} while (bonus == 4);
eval ("_level0.bonus" + _level0.snowball_count).gotoAndStop(bonus);
eval ("_level0.bonus" + _level0.snowball_count)._x = _x;
eval ("_level0.bonus" + _level0.snowball_count)._y = _y;
eval ("_level0.bonus" + _level0.snowball_count)._visible = true;
if (super_bonus) {
super_bonus = false;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_greatkick].start();
}
var i = 1;
while (!(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "i") === undefined)) {
_level0.snowball_count++;
_level0.bonus.duplicateMovieClip("bonus" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.bonus" + _level0.snowball_count).gotoAndStop(4);
eval ("_level0.bonus" + _level0.snowball_count)._x = (Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "i")) * 40) + 20;
eval ("_level0.bonus" + _level0.snowball_count)._y = (-(13 - Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "j")))) * 40;
eval ("_level0.bonus" + _level0.snowball_count).start_y = (Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "j")) * 40) + 12;
eval ("_level0.bonus" + _level0.snowball_count)._visible = true;
i++;
}
}
this.removeMovieClip();
}
} else if ((sost == 8) && (knock_index != undefined)) {
if (knock_index < knock_speed_y.length) {
dy = -knock_speed_y[knock_index];
} else if (knock_index < (knock_speed_y.length * 2)) {
dy = knock_speed_y[((knock_speed_y.length * 2) - knock_index) - 1];
} else {
dy = knock_speed_y[0];
}
knock_index++;
if ((_y + dy) >= 0) {
_y = (_y + dy);
} else if (knock_index < knock_speed_y.length) {
knock_index = knock_speed_y.length;
}
if (_xscale < 0) {
if (_x <= 21) {
_x = (21 + knock_speed_x);
_xscale = (-_xscale);
} else if ((_level0.pole[Math.floor(_y / 40)][Math.floor(((_x - 8) - knock_speed_x) / 40)] != 0) && (_level0.pole[Math.floor(_y / 40)][Math.floor((_x - 8) / 40)] == 0)) {
_xscale = (-_xscale);
} else {
_x = (_x - knock_speed_x);
}
} else if (_x >= 781) {
_x = (781 - knock_speed_x);
_xscale = (-_xscale);
} else if ((_level0.pole[Math.floor(_y / 40)][Math.floor(((_x + 6) + knock_speed_x) / 40)] != 0) && (_level0.pole[Math.floor(_y / 40)][Math.floor((_x + 6) / 40)] == 0)) {
_xscale = (-_xscale);
} else {
_x = (_x + knock_speed_x);
}
cy = Math.floor((_y + 29) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if (((knock_index > knock_speed_y.length) && ((_level0.pole[cy][cx0] != 0) || (_level0.pole[cy][cx1] != 0))) && ((_level0.pole[Math.floor(((_y + 29) - dy) / 40)][cx0] == 0) || (_level0.pole[Math.floor(((_y + 29) - dy) / 40)][cx1] == 0))) {
if (((random(2) == 0) || (knock_skip)) || (cy > 10)) {
if (_level0.pole[cy][cx1] == 3) {
dx = (_x + 6) - (cx1 * 40);
_y = (((cy * 40) + 8) - dx);
} else if (_level0.pole[cy][cx0] == 4) {
dx = (_x - 8) - (cx0 * 40);
_y = (((cy * 40) + dx) - 30);
} else {
_y = ((cy * 40) - 29);
}
sost = 9;
dead_count = 0;
gotoAndPlay(frame_dead);
} else {
knock_skip = true;
}
}
} else {
found = false;
land = false;
if (sost == 3) {
if (((_currentframe < frame_fall) || (_currentframe > frame_fall_last)) && (ai_sost != 9)) {
gotoAndPlay(frame_fall);
}
fall_speed = world_fall_speed;
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if ((_y > 0) && (_level0.pole[cy][cx1] == 3)) {
dx = (_x + 6) - (cx1 * 40);
if ((_y + fall_speed) < (((cy * 40) + 8) - dx)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
_y = (((cy * 40) + 8) - dx);
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 4;
fall_count = 0;
} else {
sost = 1;
land = true;
}
}
found = true;
} else if ((_y > 0) && (_level0.pole[cy][cx0] == 4)) {
dx = (_x - 8) - (cx0 * 40);
if ((_y + fall_speed) < (((cy * 40) + dx) - 30)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
_y = (((cy * 40) + dx) - 30);
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 4;
fall_count = 0;
} else {
sost = 1;
land = true;
}
}
found = true;
}
if (!found) {
if ((_y < 0) || (Math.floor((_y + 28) / 40) == Math.floor(((_y + 28) + world_fall_speed) / 40))) {
_y = (_y + world_fall_speed);
fall_count = fall_count + world_fall_speed;
} else {
var fall_speed = world_fall_speed;
while (fall_speed > 0) {
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if ((_y > 520) || ((_level0.pole[cy][cx0] == 0) && (_level0.pole[cy][cx1] == 0))) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
break;
}
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 2;
fall_count = 0;
break;
}
sost = 1;
land = true;
if ((ai_sost != 8) && (ai_sost != 9)) {
ai_sost = 1;
}
fall_speed--;
}
}
}
}
if (sost == 1) {
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && (eval ("_level0.monster" + i).ai_sost != 2)) && ((((_x + 10) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - 12) <= (eval ("_level0.monster" + i)._x + 25))) && (((_y + 28) >= (eval ("_level0.monster" + i)._y - 8)) && ((_y - 8) <= (eval ("_level0.monster" + i)._y + 28))))) {
if (((eval ("_level0.monster" + i)._xscale == _xscale) && (ai_sost != 9)) && (ai_sost != 2)) {
ai_sost = 2;
turn_count = max_turn_count;
break;
}
}
}
i++;
}
}
if ((sost == 2) && (jump_index != undefined)) {
_y = (_y - jump_speed[jump_index]);
jump_index++;
var dx = 12;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if ((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_x + dx) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - dx) <= (eval ("_level0.monster" + i)._x + 25))) && (((_y - 16) >= (eval ("_level0.monster" + i)._y - 8)) && ((_y - 16) <= (eval ("_level0.monster" + i)._y + 28))))) {
eval ("_level0.monster" + i).sost = 2;
eval ("_level0.monster" + i).jump_index = 2;
eval ("_level0.monster" + i).fall_count = 0;
break;
}
}
i++;
}
if (jump_index >= jump_speed.length) {
jump_index = undefined;
sost = 3;
if ((ai_sost != 8) && (ai_sost != 9)) {
ai_sost = 1;
}
}
}
dx = 0;
dy = 0;
if ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 12) / 40)] == 4) || ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 10) / 40)] == 4) && (sost == 1))) {
dx = 2;
dy = 2;
} else if ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 12) / 40)] == 3) || ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 10) / 40)] == 3) && (sost == 1))) {
dx = -2;
dy = 2;
}
if ((dx != 0) && (dy != 0)) {
var found_monster = false;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_y + 28) + dy) >= (eval ("_level0.monster" + i)._y - 11)) && (((_y - 11) + dy) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if (((((_x + 10) + dx) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && (((_x + 10) + dx) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if ((((_x - 12) + dx) >= (eval ("_level0.monster" + i)._x + 25)) && ((((_x - 12) + dx) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || (left)) {
if (((ai_sost != 9) && (ai_sost != 2)) && ((right && (_xscale > 0)) || (left && (_xscale < 0)))) {
ai_sost = 2;
turn_count = max_turn_count;
}
dx = 0;
dy = 0;
break;
}
}
}
i++;
}
_x = (_x + dx);
_y = (_y + dy);
} else if (!found) {
if (sost == 1) {
if ((_y > 520) || ((_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x - 8) / 40)] == 0) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x + 6) / 40)] == 0))) {
sost = 3;
if ((ai_sost != 8) && (ai_sost != 9)) {
ai_sost = 1;
}
} else {
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 0;
} else {
sost = 1;
}
fall_count = 0;
}
}
}
switch (ai_sost) {
case 9 :
if (frozen_count > 0) {
if (snow_ball && ((_currentframe < frame_ball) || (_currentframe > frame_ball_last))) {
gotoAndPlay(frame_ball);
}
if (snow_ball_hit && (!snow_ball)) {
gotoAndPlay(frame_frozen_last - frozen_count);
snow_ball_hit = false;
snow_ball_move = false;
}
frozen_count--;
if (frozen_count > 99) {
snow_ball = true;
} else {
gotoAndPlay(frame_frozen_last - frozen_count);
snow_ball = false;
snow_ball_move = false;
}
} else {
ai_sost = 8;
wet_count = 16;
snow_ball = false;
snow_ball_move = false;
}
case 1 :
if ((sost == 1) || ((sost == 2) && (jump_side))) {
if (ai_sost == 1) {
speed = 4;
}
if (ai_sost == 9) {
speed = 4;
}
if (_xscale < 0) {
if (_x <= 21) {
if (ai_sost != 9) {
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (_y < 0) {
sost = 3;
} else {
var found_monster = false;
if (_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 4) {
dy = -speed;
} else if (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 3) {
dy = speed;
} else if (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 4) {
dy = -speed;
} else {
dy = 0;
}
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_y + 28) + dy) >= (eval ("_level0.monster" + i)._y - 11)) && (((_y - 11) + dy) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if ((((_x + 10) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x + 10) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if (((_x - 12) >= (eval ("_level0.monster" + i)._x + 25)) && (((_x - 12) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || left) {
if (((ai_sost != 9) && (ai_sost != 2)) && left) {
ai_sost = 2;
turn_count = max_turn_count;
found_monster = true;
break;
}
}
}
}
i++;
}
if (!found_monster) {
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 4) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 8) / 40)] == 4)) {
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x - speed);
_y = (_y - speed);
move_snow_ball = false;
}
} else {
cx = Math.floor(((_x - 8) - speed) / 40);
cy = Math.floor((_y + 28) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if ((ai_sost != 9) || move_snow_ball) {
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x + 6) / 40)] == 3) {
_y = (_y + speed);
}
_x = (_x - speed);
move_snow_ball = false;
}
jump_side = false;
break;
case 2 :
if (ai_sost != 9) {
if ((((cy >= 2) && (sost != 2)) && ((_level0.pole[cy - 1][cx] == 0) || (_level0.pole[cy - 2][cx] == 0))) && ((random(2) == 0) || ((_level0.hero.sost != 3) && ((Math.round((_level0.hero._y + 28) / 40) + 1) < cy)))) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
jump_side = true;
} else if (!jump_side) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
break;
case 3 :
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x - speed);
_y = (_y + speed);
move_snow_ball = false;
}
break;
case 4 :
if (!((ai_sost != 9) || move_snow_ball)) {
break;
}
_x = (_x - speed);
_y = (_y - speed);
move_snow_ball = false;
}
}
}
}
} else if (_x >= 781) {
if (ai_sost != 9) {
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (_y < 0) {
sost = 3;
} else {
var found_monster = false;
if (_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 3) {
dy = -speed;
} else if (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 3) {
dy = -speed;
} else if (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 4) {
dy = speed;
} else {
dy = 0;
}
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_y + 28) + dy) >= (eval ("_level0.monster" + i)._y - 11)) && (((_y - 11) + dy) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if ((((_x + 10) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x + 10) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if (((_x - 12) >= (eval ("_level0.monster" + i)._x + 25)) && (((_x - 12) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || left) {
if (((ai_sost != 9) && (ai_sost != 2)) && right) {
ai_sost = 2;
turn_count = max_turn_count;
found_monster = true;
break;
}
}
}
}
i++;
}
if (!found_monster) {
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 3) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 6) / 40)] == 3)) {
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x + speed);
_y = (_y - speed);
move_snow_ball = false;
}
} else {
cx = Math.floor(((_x + 6) + speed) / 40);
cy = Math.floor((_y + 28) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if ((ai_sost != 9) || move_snow_ball) {
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x - 8) / 40)] == 4) {
_y = (_y + speed);
}
_x = (_x + speed);
move_snow_ball = false;
}
jump_side = false;
break;
case 2 :
if (ai_sost != 9) {
if ((((cy >= 2) && (sost != 2)) && ((_level0.pole[cy - 1][cx] == 0) || (_level0.pole[cy - 2][cx] == 0))) && ((random(2) == 0) || ((_level0.hero.sost != 3) && ((Math.round((_level0.hero._y + 28) / 40) + 1) < cy)))) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
jump_side = true;
} else if (!jump_side) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
break;
case 3 :
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x + speed);
_y = (_y - speed);
move_snow_ball = false;
}
break;
case 4 :
if (!((ai_sost != 9) || move_snow_ball)) {
break;
}
_x = (_x + speed);
_y = (_y + speed);
move_snow_ball = false;
}
}
}
}
}
if ((sost == 1) && (ai_sost == 1)) {
if (plus_mode && ((_x >= (_level0.hero._x - 12)) && (_x <= (_level0.hero._x + 10)))) {
ai_sost = 3;
fire_counter = 13;
} else if ((_xscale > 0) && (Math.floor(_x / 40) < 19)) {
if (((_level0.pole[Math.floor((_y + 29) / 40)][Math.floor(((_x - 14) - speed) / 40)] != 0) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor(((_x - 14) - speed) / 40) + 1] == 0)) && (((!plus_mode) && (random(6) == 0)) || (plus_mode && (random(3) == 0)))) {
ai_sost = 2;
turn_count = max_turn_count;
}
} else if ((_xscale < 0) && (Math.floor(_x / 40) > 0)) {
if (((_level0.pole[Math.floor((_y + 29) / 40)][Math.floor(((_x + 12) + speed) / 40)] != 0) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor(((_x + 12) + speed) / 40) - 1] == 0)) && (((!plus_mode) && (random(6) == 0)) || (plus_mode && (random(4) == 0)))) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
if ((random(64) == 0) && (_level0.pole[Math.floor(_y / 40) - 1][Math.floor(_x / 40)] == 1)) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
}
}
if (sost == 1) {
if (ai_sost == 1) {
if ((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) {
gotoAndPlay(frame_walk);
}
}
}
break;
case 2 :
if ((_currentframe < frame_turn) || (_currentframe > frame_turn_last)) {
gotoAndPlay(frame_turn);
}
if (turn_count > 0) {
turn_count--;
} else {
if (!plus_mode) {
ai_sost = 3;
fire_counter = 13;
} else {
ai_sost = 1;
}
_xscale = (-_xscale);
}
break;
case 3 :
if (!plus_mode) {
if ((fire_counter > 7) && ((_currentframe < frame_attack) || (_currentframe > frame_attack_last))) {
gotoAndPlay(frame_attack);
}
if (fire_counter == 7) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_green_fire].start();
}
_level0.snowball_count++;
_level0.bubbleball.duplicateMovieClip("bubbleball" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.bubbleball" + _level0.snowball_count)._y = _y;
if (_xscale > 0) {
eval ("_level0.bubbleball" + _level0.snowball_count)._x = _x + 22;
eval ("_level0.bubbleball" + _level0.snowball_count).speedx = 16;
} else {
eval ("_level0.bubbleball" + _level0.snowball_count)._x = _x - 24;
eval ("_level0.bubbleball" + _level0.snowball_count).speedx = -16;
}
eval ("_level0.bubbleball" + _level0.snowball_count).speedy = 0.6;
eval ("_level0.bubbleball" + _level0.snowball_count).step = 0;
eval ("_level0.bubbleball" + _level0.snowball_count).boss = false;
eval ("_level0.bubbleball" + _level0.snowball_count)._xscale = _xscale;
eval ("_level0.bubbleball" + _level0.snowball_count)._visible = true;
eval ("_level0.bubbleball" + _level0.snowball_count).gotoAndPlay(1);
}
} else {
if ((_currentframe < frame_attackdown) || (_currentframe > frame_attackdown_last)) {
gotoAndPlay(frame_attackdown);
}
if (fire_counter == 7) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_green_fire].start();
}
_level0.snowball_count++;
_level0.bubbleball.duplicateMovieClip("bubbleball" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.bubbleball" + _level0.snowball_count)._x = _x;
eval ("_level0.bubbleball" + _level0.snowball_count)._y = _y + 22;
eval ("_level0.bubbleball" + _level0.snowball_count).speedx = 0;
eval ("_level0.bubbleball" + _level0.snowball_count).speedy = 16;
eval ("_level0.bubbleball" + _level0.snowball_count).step = 0;
eval ("_level0.bubbleball" + _level0.snowball_count).boss = false;
eval ("_level0.bubbleball" + _level0.snowball_count)._rotation = 90;
eval ("_level0.bubbleball" + _level0.snowball_count)._visible = true;
eval ("_level0.bubbleball" + _level0.snowball_count).gotoAndPlay(1);
}
}
if (fire_counter > 0) {
fire_counter--;
if (fire_counter == 0) {
ai_sost = 1;
}
}
break;
case 8 :
if ((_currentframe < frame_wet) || (_currentframe > frame_wet_last)) {
gotoAndPlay(frame_wet);
}
if (wet_count > 0) {
wet_count--;
} else {
ai_sost = 1;
}
}
if ((((sost == 1) || (sost == 2)) || (sost == 3)) && (((ai_sost == 1) || (ai_sost == 2)) || (ai_sost == 3))) {
if (_xscale > 0) {
var dx = 12;
} else {
var dx = -12;
}
if ((((!_level0.hero.immortal) && (((_level0.hero.sost == 1) || (_level0.hero.sost == 2)) || (_level0.hero.sost == 3))) && (((_x + dx) >= (_level0.hero._x - 27)) && ((_x + dx) <= (_level0.hero._x + 25)))) && (((_y + 28) >= (_level0.hero._y - 8)) && ((_y - 16) <= (_level0.hero._y + 28)))) {
_level0.hero.sost = 9;
_level0.hero.death_index = 0;
_level0.hero._xscale = _xscale;
_level0.hero.gotoAndPlay(_level0.hero.frame_death);
}
}
}
}
}
Instance of Symbol 1059 MovieClip "bubbleball" in Frame 6
onClipEvent (enterFrame) {
if (_visible) {
if ((_currentframe >= 1) && (_currentframe <= 7)) {
if (((!boss) && (((((_x <= 0) || (_x >= 800)) || (step > 17)) && (_rotation == 0)) || ((_y > 520) && (_rotation == 90)))) || (boss && (((_x <= 0) || (_x >= 800)) || (_y > 520)))) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bubbleball_explode].start();
}
gotoAndPlay (8);
} else {
_x = (_x + speedx);
_y = (_y + speedy);
step++;
if (boss) {
if (step > 36) {
if (speedy < 8) {
speedy = speedy + 0.8;
}
}
if (speedx < 0) {
_rotation = (100 + (((8 - speedy) * 145) / 16));
speedx = -4 + ((speedy + 8) / 8);
} else {
_rotation = (80 + (((speedy - 8) * 145) / 16));
speedx = 4 - ((speedy + 8) / 8);
}
}
if ((step % 5) == 0) {
_level0.snowball_count++;
_level0.bubbleballsplinter.duplicateMovieClip("bubbleballsplinter" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.bubbleballsplinter" + _level0.snowball_count)._x = _x - (speedx * 6);
eval ("_level0.bubbleballsplinter" + _level0.snowball_count)._y = _y - (speedy * 6);
eval ("_level0.bubbleballsplinter" + _level0.snowball_count)._visible = true;
eval ("_level0.bubbleballsplinter" + _level0.snowball_count).gotoAndStop(random(5) + 1);
}
if ((!boss) && (_rotation == 0)) {
var i = -7;
while (i <= 7) {
cx = Math.floor((_x + i) / 40);
cy = Math.floor(_y / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
break;
case 1 :
if (_level0.pole[Math.floor((_y + 8) / 40)][cx] == 0) {
break;
}
case 2 :
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bubbleball_explode].start();
}
gotoAndPlay (8);
break;
case 3 :
if ((_y - (cy * 40)) >= (40 - (_x - (cx * 40)))) {
gotoAndPlay (18);
}
break;
case 4 :
if ((_y - (cy * 40)) < (_x - (cx * 40))) {
break;
}
gotoAndPlay (18);
}
i = i + 14;
}
}
if ((((!_level0.hero.immortal) && (((_level0.hero.sost == 1) || (_level0.hero.sost == 2)) || (_level0.hero.sost == 3))) && ((_x >= (_level0.hero._x - 27)) && (_x <= (_level0.hero._x + 25)))) && ((_y >= (_level0.hero._y - 8)) && (_y <= (_level0.hero._y + 28)))) {
_level0.hero.sost = 9;
_level0.hero.death_index = 0;
_level0.hero._xscale = _xscale;
_level0.hero.gotoAndPlay(_level0.hero.frame_death);
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bubbleball_explode].start();
}
gotoAndPlay (8);
}
}
}
}
if (_currentframe == 25) {
i = _level0.snowball_count;
while (i > 0) {
if (eval ("_level0.snowball" + i) != undefined) {
break;
}
if (eval ("_level0.flyscore" + i) != undefined) {
break;
}
if (eval ("_level0.bonus_hint" + i) != undefined) {
break;
}
if (eval ("_level0.bubbleballsplinter" + i) != undefined) {
break;
}
if ((eval ("_level0.bubbleball" + i) != undefined) && (("/bubbleball" + i) != _target)) {
break;
}
if (eval ("_level0.bonus" + i) != undefined) {
break;
}
i--;
}
_level0.snowball_count = i;
this.removeMovieClip();
}
}
Instance of Symbol 1057 MovieClip "bubbleballsplinter" in Frame 6
onClipEvent (load) {
var count = 0;
_x = (_x + (random(8) - 4));
_y = (_y + (random(8) - 4));
}
onClipEvent (enterFrame) {
if (_visible) {
count++;
if (count > 12) {
i = _level0.snowball_count;
while (i > 0) {
if (eval ("_level0.snowball" + i) != undefined) {
break;
}
if (eval ("_level0.flyscore" + i) != undefined) {
break;
}
if (eval ("_level0.bonus_hint" + i) != undefined) {
break;
}
if ((eval ("_level0.bubbleballsplinter" + i) != undefined) && (("/bubbleballsplinter" + i) != _target)) {
break;
}
if (eval ("_level0.bubbleball" + i) != undefined) {
break;
}
if (eval ("_level0.bonus" + i) != undefined) {
break;
}
i--;
}
_level0.snowball_count = i;
this.removeMovieClip();
}
}
}
Instance of Symbol 1314 MovieClip "monster_dog" in Frame 6
onClipEvent (load) {
var frame_wet = 1;
var frame_wet_last = 17;
var frame_walk = 18;
var frame_walk_last = 30;
var frame_turn = 31;
var frame_turn_last = 39;
var frame_jump = 40;
var frame_jump_last = 52;
var frame_fall = 50;
var frame_fall_last = 52;
var frame_frozen = 53;
var frame_frozen_last = 227;
var frame_ball = 228;
var frame_ball_last = 237;
var frame_knock = 238;
var frame_knock_last = 251;
var frame_dead = 252;
var frame_dead_last = 283;
var frame_stand = 284;
var frame_stand_last = 300;
var frame_jumpdown = 301;
var frame_jumpdown_last = 317;
var speed = 10;
var world_fall_speed = 16;
var jump_speed = new Array(16, 16, 16, 16, 14, 6, 3, 1, 0, 0);
var jump_index = undefined;
var sost = 10;
var ai_sost = 1;
var turn_count = 0;
var wet_count = 0;
var frozen_count = 0;
var stand_count = 0;
var max_turn_count = 8;
var max_stand_count = 16;
var snow_ball_hit = false;
var snow_ball = false;
var move_snow_ball = false;
var fall_count = 0;
var fall_count_jump = 100;
var knock_speed_y = new Array(32, 32, 32, 32, 32, 32, 32, 30, 28, 16, 14, 10, 3, 0, 0);
var knock_index = undefined;
var knock_speed_x = 16;
var knock_skip = false;
var dead_count = 0;
var super_bonus = false;
var jumpdown = false;
var jumpdownend = true;
var jump_side = false;
var boss = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_y > 611) {
_y = 0;
}
if (sost == 10) {
if ((_currentframe < frame_fall) || (_currentframe > frame_fall_last)) {
gotoAndPlay(frame_fall);
}
if (_y < start_y) {
_y = (_y + world_fall_speed);
} else {
_y = start_y;
sost = 1;
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (sost == 9) {
if ((_currentframe < frame_dead) || (_currentframe > frame_dead_last)) {
gotoAndPlay(frame_dead);
}
if (dead_count < 43) {
dead_count++;
if (dead_count == 32) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_frozen_explode].start();
}
}
} else {
_level0.snowball_count++;
_level0.bonus.duplicateMovieClip("bonus" + _level0.snowball_count, 1000 + _level0.snowball_count);
do {
bonus = random(8) + 1;
} while (bonus == 4);
eval ("_level0.bonus" + _level0.snowball_count).gotoAndStop(bonus);
eval ("_level0.bonus" + _level0.snowball_count)._x = _x;
eval ("_level0.bonus" + _level0.snowball_count)._y = _y;
eval ("_level0.bonus" + _level0.snowball_count)._visible = true;
if (super_bonus) {
super_bonus = false;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_greatkick].start();
}
var i = 1;
while (!(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "i") === undefined)) {
_level0.snowball_count++;
_level0.bonus.duplicateMovieClip("bonus" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.bonus" + _level0.snowball_count).gotoAndStop(4);
eval ("_level0.bonus" + _level0.snowball_count)._x = (Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "i")) * 40) + 20;
eval ("_level0.bonus" + _level0.snowball_count)._y = (-(13 - Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "j")))) * 40;
eval ("_level0.bonus" + _level0.snowball_count).start_y = (Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "j")) * 40) + 12;
eval ("_level0.bonus" + _level0.snowball_count)._visible = true;
i++;
}
}
this.removeMovieClip();
}
} else if ((sost == 8) && (knock_index != undefined)) {
if (knock_index < knock_speed_y.length) {
dy = -knock_speed_y[knock_index];
} else if (knock_index < (knock_speed_y.length * 2)) {
dy = knock_speed_y[((knock_speed_y.length * 2) - knock_index) - 1];
} else {
dy = knock_speed_y[0];
}
knock_index++;
if ((_y + dy) >= 0) {
_y = (_y + dy);
} else if (knock_index < knock_speed_y.length) {
knock_index = knock_speed_y.length;
}
if (_xscale < 0) {
if (_x <= 21) {
_x = (21 + knock_speed_x);
_xscale = (-_xscale);
} else if ((_level0.pole[Math.floor(_y / 40)][Math.floor(((_x - 8) - knock_speed_x) / 40)] != 0) && (_level0.pole[Math.floor(_y / 40)][Math.floor((_x - 8) / 40)] == 0)) {
_xscale = (-_xscale);
} else {
_x = (_x - knock_speed_x);
}
} else if (_x >= 781) {
_x = (781 - knock_speed_x);
_xscale = (-_xscale);
} else if ((_level0.pole[Math.floor(_y / 40)][Math.floor(((_x + 6) + knock_speed_x) / 40)] != 0) && (_level0.pole[Math.floor(_y / 40)][Math.floor((_x + 6) / 40)] == 0)) {
_xscale = (-_xscale);
} else {
_x = (_x + knock_speed_x);
}
cy = Math.floor((_y + 29) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if (((knock_index > knock_speed_y.length) && ((_level0.pole[cy][cx0] != 0) || (_level0.pole[cy][cx1] != 0))) && ((_level0.pole[Math.floor(((_y + 29) - dy) / 40)][cx0] == 0) || (_level0.pole[Math.floor(((_y + 29) - dy) / 40)][cx1] == 0))) {
if (((random(2) == 0) || (knock_skip)) || (cy > 10)) {
if (_level0.pole[cy][cx1] == 3) {
dx = (_x + 6) - (cx1 * 40);
_y = (((cy * 40) + 8) - dx);
} else if (_level0.pole[cy][cx0] == 4) {
dx = (_x - 8) - (cx0 * 40);
_y = (((cy * 40) + dx) - 30);
} else {
_y = ((cy * 40) - 29);
}
sost = 9;
dead_count = 0;
gotoAndPlay(frame_dead);
} else {
knock_skip = true;
}
}
} else {
found = false;
land = false;
if (sost == 3) {
if (((_currentframe < frame_fall) || (_currentframe > frame_fall_last)) && (ai_sost != 9)) {
gotoAndPlay(frame_fall);
}
fall_speed = world_fall_speed;
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if ((_y > 0) && (_level0.pole[cy][cx1] == 3)) {
dx = (_x + 6) - (cx1 * 40);
if (((_y + fall_speed) < (((cy * 40) + 8) - dx)) || (jumpdown)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
_y = (((cy * 40) + 8) - dx);
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 2;
fall_count = 0;
} else {
sost = 1;
land = true;
}
}
found = true;
} else if ((_y > 0) && (_level0.pole[cy][cx0] == 4)) {
dx = (_x - 8) - (cx0 * 40);
if (((_y + fall_speed) < (((cy * 40) + dx) - 30)) || (jumpdown)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
_y = (((cy * 40) + dx) - 30);
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 2;
fall_count = 0;
} else {
sost = 1;
land = true;
}
}
found = true;
}
if (!found) {
if ((_y < 0) || (Math.floor((_y + 28) / 40) == Math.floor(((_y + 28) + world_fall_speed) / 40))) {
_y = (_y + world_fall_speed);
fall_count = fall_count + world_fall_speed;
if (jumpdownend && (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(_x / 40)] == 0)) {
jumpdown = false;
ai_sost = 1;
}
if (jumpdown && (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(_x / 40)] != 0)) {
jumpdownend = true;
}
} else {
var fall_speed = world_fall_speed;
while (fall_speed > 0) {
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if (((_y > 520) || (jumpdown)) || ((_level0.pole[cy][cx0] == 0) && (_level0.pole[cy][cx1] == 0))) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
break;
}
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 2;
fall_count = 0;
break;
}
sost = 1;
land = true;
if ((plus_mode && (ai_sost != 8)) && (ai_sost != 9)) {
ai_sost = 1;
if ((((_level0.hero._x < _x) && (_xscale > 0)) && (((_level0.hero.sost != 4) && (_level0.hero.sost != 9)) && (_level0.hero.sost != 10))) || (((_level0.hero._x > _x) && (_xscale < 0)) && (((_level0.hero.sost != 4) && (_level0.hero.sost != 9)) && (_level0.hero.sost != 10)))) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
fall_speed--;
}
}
}
}
if (sost == 1) {
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && (eval ("_level0.monster" + i).ai_sost != 2)) && ((((_x + 10) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - 12) <= (eval ("_level0.monster" + i)._x + 25))) && (((_y + 28) >= (eval ("_level0.monster" + i)._y - 8)) && ((_y - 8) <= (eval ("_level0.monster" + i)._y + 28))))) {
if (((eval ("_level0.monster" + i)._xscale == _xscale) && (ai_sost != 9)) && (ai_sost != 2)) {
ai_sost = 2;
turn_count = max_turn_count;
break;
}
}
}
i++;
}
}
if ((sost == 2) && (jump_index != undefined)) {
_y = (_y - jump_speed[jump_index]);
jump_index++;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if ((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_x + 10) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - 12) <= (eval ("_level0.monster" + i)._x + 25))) && (((_y - 16) >= (eval ("_level0.monster" + i)._y - 8)) && ((_y - 16) <= (eval ("_level0.monster" + i)._y + 28))))) {
eval ("_level0.monster" + i).sost = 2;
eval ("_level0.monster" + i).jump_index = 2;
eval ("_level0.monster" + i).fall_count = 0;
break;
}
}
i++;
}
if (jump_index >= jump_speed.length) {
jump_index = undefined;
sost = 3;
if ((ai_sost != 8) && (ai_sost != 9)) {
ai_sost = 1;
}
}
}
dx = 0;
dy = 0;
if ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 12) / 40)] == 4) || ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 10) / 40)] == 4) && (sost == 1))) {
dx = 2;
dy = 2;
} else if ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 12) / 40)] == 3) || ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 10) / 40)] == 3) && (sost == 1))) {
dx = -2;
dy = 2;
}
if ((dx != 0) && (dy != 0)) {
var found_monster = false;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_y + 28) + dy) >= (eval ("_level0.monster" + i)._y - 11)) && (((_y - 11) + dy) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if (((((_x + 10) + dx) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && (((_x + 10) + dx) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if ((((_x - 12) + dx) >= (eval ("_level0.monster" + i)._x + 25)) && ((((_x - 12) + dx) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || (left)) {
if (((ai_sost != 9) && (ai_sost != 2)) && ((right && (_xscale > 0)) || (left && (_xscale < 0)))) {
ai_sost = 2;
turn_count = max_turn_count;
}
dx = 0;
dy = 0;
break;
}
}
}
i++;
}
_x = (_x + dx);
_y = (_y + dy);
} else if (!found) {
if (sost == 1) {
if ((_y > 520) || ((_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x - 8) / 40)] == 0) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x + 6) / 40)] == 0))) {
sost = 3;
if (ai_sost != 9) {
ai_sost = 1;
}
} else {
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 0;
} else {
sost = 1;
}
fall_count = 0;
}
}
}
switch (ai_sost) {
case 9 :
if (frozen_count > 0) {
if (snow_ball && ((_currentframe < frame_ball) || (_currentframe > frame_ball_last))) {
gotoAndPlay(frame_ball);
}
if (snow_ball_hit && (!snow_ball)) {
gotoAndPlay(frame_frozen_last - frozen_count);
snow_ball_hit = false;
snow_ball_move = false;
}
frozen_count--;
if (frozen_count > 99) {
snow_ball = true;
} else {
gotoAndPlay(frame_frozen_last - frozen_count);
snow_ball = false;
snow_ball_move = false;
}
} else {
ai_sost = 8;
wet_count = 16;
snow_ball = false;
snow_ball_move = false;
}
case 1 :
if ((sost == 1) || ((sost == 2) && (jump_side))) {
if (ai_sost == 1) {
speed = 10;
}
if (ai_sost == 9) {
speed = 4;
}
if (_xscale < 0) {
if (_x <= 21) {
if (ai_sost != 9) {
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (_y < 0) {
sost = 3;
} else {
var found_monster = false;
if (_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 4) {
dy = -speed;
} else if (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 3) {
dy = speed;
} else if (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 4) {
dy = -speed;
} else {
dy = 0;
}
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_y + 28) + dy) >= (eval ("_level0.monster" + i)._y - 11)) && ((_y - 11) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if ((((_x + 10) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x + 10) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if (((_x - 12) >= (eval ("_level0.monster" + i)._x + 25)) && (((_x - 12) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || left) {
if (((ai_sost != 9) && (ai_sost != 2)) && left) {
ai_sost = 2;
turn_count = max_turn_count;
found_monster = true;
break;
}
}
}
}
i++;
}
if (!found_monster) {
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 4) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 8) / 40)] == 4)) {
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x - speed);
_y = (_y - speed);
move_snow_ball = false;
}
} else {
cx = Math.floor(((_x - 8) - speed) / 40);
cy = Math.floor((_y + 28) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if ((ai_sost != 9) || move_snow_ball) {
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x + 6) / 40)] == 3) {
_y = (_y + speed);
}
_x = (_x - speed);
move_snow_ball = false;
}
break;
case 2 :
if (ai_sost != 9) {
if ((((cy >= 2) && (sost != 2)) && ((_level0.pole[cy - 1][cx] == 0) || (_level0.pole[cy - 2][cx] == 0))) && ((random(2) == 0) || ((_level0.hero.sost != 3) && ((Math.round((_level0.hero._y + 28) / 40) + 1) < cy)))) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
jump_side = true;
} else if (!jump_side) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
break;
case 3 :
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x - speed);
_y = (_y + speed);
move_snow_ball = false;
}
break;
case 4 :
if (!((ai_sost != 9) || move_snow_ball)) {
break;
}
_x = (_x - speed);
_y = (_y - speed);
move_snow_ball = false;
}
}
}
}
} else if (_x >= 781) {
if (ai_sost != 9) {
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (_y < 0) {
sost = 3;
} else {
var found_monster = false;
if (_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 3) {
dy = -speed;
} else if (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 3) {
dy = -speed;
} else if (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 4) {
dy = speed;
} else {
dy = 0;
}
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_y + 28) + dy) >= (eval ("_level0.monster" + i)._y - 11)) && (((_y - 11) + dy) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if ((((_x + 10) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x + 10) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if (((_x - 12) >= (eval ("_level0.monster" + i)._x + 25)) && (((_x - 12) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || left) {
if (((ai_sost != 9) && (ai_sost != 2)) && right) {
ai_sost = 2;
turn_count = max_turn_count;
found_monster = true;
break;
}
}
}
}
i++;
}
if (!found_monster) {
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 3) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 6) / 40)] == 3)) {
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x + speed);
_y = (_y - speed);
move_snow_ball = false;
}
} else {
cx = Math.floor(((_x + 6) + speed) / 40);
cy = Math.floor((_y + 28) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if ((ai_sost != 9) || move_snow_ball) {
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x - 8) / 40)] == 4) {
_y = (_y + speed);
}
_x = (_x + speed);
move_snow_ball = false;
}
jump_side = false;
break;
case 2 :
if (ai_sost != 9) {
if ((((cy >= 2) && (sost != 2)) && ((_level0.pole[cy - 1][cx] == 0) || (_level0.pole[cy - 2][cx] == 0))) && ((random(2) == 0) || ((_level0.hero.sost != 3) && ((Math.round((_level0.hero._y + 28) / 40) + 1) < cy)))) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
jump_side = true;
} else if (!jump_side) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
break;
case 3 :
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x + speed);
_y = (_y - speed);
move_snow_ball = false;
}
break;
case 4 :
if (!((ai_sost != 9) || move_snow_ball)) {
break;
}
_x = (_x + speed);
_y = (_y + speed);
move_snow_ball = false;
}
}
}
}
}
if ((((sost == 1) && ((ai_sost == 1) || (ai_sost == 3))) && ((((Math.round((_level0.hero._y + 28) / 40) + 1) < Math.round((_y + 28) / 40)) && ((((_level0.hero.sost != 3) && (_level0.hero.sost != 4)) && (_level0.hero.sost != 9)) && (_level0.hero.sost != 10))) || (((random(64) == 0) && (ai_sost == 1)) && (Math.round((_y + 28) / 40) > 2)))) && (_level0.pole[Math.floor((_y - 13) / 40)][Math.floor(_x / 40)] == 1)) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
} else if (((((plus_mode && (sost == 1)) && ((ai_sost == 1) || (ai_sost == 3))) && ((random(32) == 0) || ((random(8) == 0) && (Math.round((_level0.hero._y + 28) / 40) > (Math.round((_y + 28) / 40) + 1))))) && (Math.floor((_y + 29) / 40) < 12)) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor(_x / 40)] != 0)) {
if ((_currentframe < frame_jumpdown) || (_currentframe > frame_jumpdown_last)) {
gotoAndPlay(frame_jumpdown);
}
jump_index = 3;
sost = 2;
jumpdown = true;
jumpdownend = false;
} else if ((plus_mode && (sost == 1)) && ((ai_sost == 1) || (ai_sost == 3))) {
if ((_xscale > 0) && (Math.floor(_x / 40) < 19)) {
if (((_level0.pole[Math.floor((_y + 29) / 40)][Math.floor(((_x - 14) - speed) / 40)] != 0) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor(((_x - 14) - speed) / 40) + 1] == 0)) && (random(6) == 0)) {
if ((_level0.hero._x < _x) && (((_level0.hero.sost != 4) && (_level0.hero.sost != 9)) && (_level0.hero.sost != 10))) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
} else if ((_xscale < 0) && (Math.floor(_x / 40) > 0)) {
if (((_level0.pole[Math.floor((_y + 29) / 40)][Math.floor(((_x + 12) + speed) / 40)] != 0) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor(((_x + 12) + speed) / 40) - 1] == 0)) && (random(6) == 0)) {
if ((_level0.hero._x > _x) && (((_level0.hero.sost != 4) && (_level0.hero.sost != 9)) && (_level0.hero.sost != 10))) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
}
}
if (sost == 1) {
if (ai_sost == 1) {
if ((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) {
gotoAndPlay(frame_walk);
}
if (random(256) == 0) {
ai_sost = 3;
stand_count = max_stand_count;
}
}
}
break;
case 2 :
if ((_currentframe < frame_turn) || (_currentframe > frame_turn_last)) {
gotoAndPlay(frame_turn);
}
if (turn_count > 0) {
turn_count--;
} else {
ai_sost = 1;
_xscale = (-_xscale);
}
break;
case 3 :
if ((_currentframe < frame_stand) || (_currentframe > frame_stand_last)) {
gotoAndPlay(frame_stand);
}
if (stand_count > 0) {
stand_count--;
} else {
ai_sost = 1;
}
break;
case 8 :
if ((_currentframe < frame_wet) || (_currentframe > frame_wet_last)) {
gotoAndPlay(frame_wet);
}
if (wet_count > 0) {
wet_count--;
} else {
ai_sost = 1;
}
}
if ((((sost == 1) || (sost == 2)) || (sost == 3)) && (((ai_sost == 1) || (ai_sost == 2)) || (ai_sost == 3))) {
if (_xscale > 0) {
var dx = 12;
} else {
var dx = -12;
}
if ((((!_level0.hero.immortal) && (((_level0.hero.sost == 1) || (_level0.hero.sost == 2)) || (_level0.hero.sost == 3))) && (((_x + dx) >= (_level0.hero._x - 27)) && ((_x + dx) <= (_level0.hero._x + 25)))) && (((_y + 28) >= (_level0.hero._y - 8)) && ((_y - 16) <= (_level0.hero._y + 28)))) {
_level0.hero.sost = 9;
_level0.hero.death_index = 0;
_level0.hero._xscale = _xscale;
_level0.hero.gotoAndPlay(_level0.hero.frame_death);
}
}
}
}
}
Instance of Symbol 1474 MovieClip "boss2" in Frame 6
onClipEvent (load) {
var frame_turn = 1;
var frame_turn_last = 16;
var frame_stand = 17;
var frame_stand_last = 18;
var frame_dead = 19;
var frame_dead_last = 42;
var speed = 8;
var world_fall_speed = 16;
var jump_speed = new Array(16, 16, 16, 16, 16, 16, 16, 9, 5, 2, 0, 0);
var jump_index = undefined;
var sost = 1;
var ai_sost = 1;
gotoAndStop(frame_stand);
lid.gotoAndStop(1);
lid_anim_count = 25;
var jump_up = false;
var fire_counter = 0;
var next_fire = 0;
var throw_counter = 0;
var next_throw = 0;
var boss = true;
var after_hit_count = 0;
var dead_count = 0;
}
onClipEvent (enterFrame) {
if (_visible) {
if ((after_hit_count == 0) && (_level0.boss_life1.value > 1)) {
if (((_level0.hero._x >= (_x - 64)) && (_level0.hero._x <= (_x + 64))) && (_level0.hero._y <= (_y - 64))) {
eyes.gotoAndStop(1);
} else if ((_level0.hero._x <= (_x - 64)) && (_level0.hero._y <= (_y - 64))) {
eyes.gotoAndStop(2);
} else if ((_level0.hero._x <= (_x - 64)) && ((_level0.hero._y >= (_y - 64)) && (_level0.hero._y <= _y))) {
eyes.gotoAndStop(3);
} else if ((_level0.hero._x <= (_x - 64)) && (_level0.hero._y >= _y)) {
eyes.gotoAndStop(4);
} else if (((_level0.hero._x >= (_x - 64)) && (_level0.hero._x <= (_x + 64))) && (_level0.hero._y >= _y)) {
eyes.gotoAndStop(5);
} else if ((_level0.hero._x >= (_x + 64)) && (_level0.hero._y >= _y)) {
eyes.gotoAndStop(6);
} else if ((_level0.hero._x >= (_x + 64)) && ((_level0.hero._y >= (_y - 64)) && (_level0.hero._y <= _y))) {
eyes.gotoAndStop(7);
} else if ((_level0.hero._x >= (_x + 64)) && (_level0.hero._y <= (_y - 64))) {
eyes.gotoAndStop(8);
}
} else {
if (after_hit_count > 0) {
after_hit_count--;
if (_level0.boss_life1.value == 0) {
sost = 9;
}
}
if (((sost == 1) || (sost == 2)) || (sost == 3)) {
_alpha = (100 - ((after_hit_count % 3) * 50));
}
}
if (ai_sost == 1) {
if (lid_anim_count == 0) {
lid.gotoAndPlay(1);
lid_anim_count = 25;
} else {
if (lid._currentframe == 4) {
var i = 0;
while (i < 3) {
_level0.snowball_count++;
_level0.bubbleballsplinter.duplicateMovieClip("bubbleballsplinter" + _level0.snowball_count, 1000 + _level0.snowball_count);
if (_xscale > 0) {
eval ("_level0.bubbleballsplinter" + _level0.snowball_count)._x = (_x + 32) + random(20);
} else {
eval ("_level0.bubbleballsplinter" + _level0.snowball_count)._x = (_x - 32) - random(20);
}
eval ("_level0.bubbleballsplinter" + _level0.snowball_count)._y = (_y - 50) - random(20);
size = random(40) + 60;
eval ("_level0.bubbleballsplinter" + _level0.snowball_count)._xscale = size;
eval ("_level0.bubbleballsplinter" + _level0.snowball_count)._yscale = size;
eval ("_level0.bubbleballsplinter" + _level0.snowball_count)._visible = true;
eval ("_level0.bubbleballsplinter" + _level0.snowball_count).gotoAndStop(random(5) + 1);
i++;
}
}
lid_anim_count--;
}
}
if (sost == 9) {
_alpha = 100;
if ((_currentframe < frame_dead) || (_currentframe > frame_dead_last)) {
gotoAndPlay(frame_dead);
}
if (dead_count < 40) {
if (dead_count == 0) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_boss_freeze].start();
}
}
dead_count++;
} else {
this.removeMovieClip();
}
} else {
found = false;
if (sost == 3) {
fall_speed = world_fall_speed;
cy = Math.floor(((_y + 54) + fall_speed) / 40);
cx0 = Math.floor((_x - 32) / 40);
cx1 = Math.floor((_x + 32) / 40);
if (_level0.pole[cy][cx1] == 3) {
dx = (_x + 32) - (cx1 * 40);
if ((_y + fall_speed) < (((cy * 40) + 34) - dx)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
_y = (((cy * 40) + 34) - dx);
sost = 1;
found = true;
}
} else if (_level0.pole[cy][cx0] == 4) {
dx = (_x - 32) - (cx0 * 40);
if ((_y + fall_speed) < (((cy * 40) + dx) - 6)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
_y = (((cy * 40) + dx) - 6);
sost = 1;
found = true;
}
}
if (!found) {
if (Math.floor((_y + 54) / 40) == Math.floor(((_y + 54) + world_fall_speed) / 40)) {
_y = (_y + world_fall_speed);
fall_count = fall_count + world_fall_speed;
} else {
var fall_speed = world_fall_speed;
while (fall_speed > 0) {
cy = Math.floor(((_y + 54) + fall_speed) / 40);
cx0 = Math.floor((_x - 32) / 40);
cx1 = Math.floor((_x + 32) / 40);
if ((_level0.pole[cy][cx0] == 0) && (_level0.pole[cy][cx1] == 0)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
break;
}
sost = 1;
fall_speed--;
}
}
}
}
if ((sost == 2) && (jump_index != undefined)) {
if (jump_index == 0) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_boss_jump].start();
}
}
_y = (_y - jump_speed[jump_index]);
jump_index++;
if (jump_index >= jump_speed.length) {
jump_index = undefined;
sost = 3;
}
}
dx = 0;
dy = 0;
if ((_level0.pole[Math.floor((_y + 54) / 40)][Math.floor((_x - 36) / 40)] == 4) || ((_level0.pole[Math.floor((_y + 54) / 40)][Math.floor((_x + 36) / 40)] == 4) && (sost == 1))) {
_x = (_x + 2);
_y = (_y + 2);
} else if ((_level0.pole[Math.floor((_y + 54) / 40)][Math.floor((_x - 36) / 40)] == 3) || ((_level0.pole[Math.floor((_y + 54) / 40)][Math.floor((_x + 36) / 40)] == 3) && (sost == 1))) {
_x = (_x - 2);
_y = (_y + 2);
}
if (!found) {
if (sost == 1) {
if ((_level0.pole[Math.floor((_y + 55) / 40)][Math.floor((_x - 32) / 40)] == 0) && (_level0.pole[Math.floor((_y + 55) / 40)][Math.floor((_x + 32) / 40)] == 0)) {
sost = 3;
} else {
sost = 1;
}
}
}
switch (ai_sost) {
case 1 :
if (sost == 1) {
if (side < 0) {
if (_x <= 44) {
if ((Math.floor((_y + 54) / 40) > 4) && (((Math.floor((_y + 54) / 40) > 10) && (random(4) == 0)) || (jump_up))) {
jump_index = 0;
sost = 2;
jump_up = true;
} else {
side = -side;
jump_up = false;
}
} else if ((_level0.pole[Math.floor(((_y + 54) - speed) / 40)][Math.floor(((_x - 32) - speed) / 40)] == 4) || (_level0.pole[Math.floor((_y + 54) / 40)][Math.floor((_x - 32) / 40)] == 4)) {
_x = (_x - speed);
_y = (_y - speed);
} else {
cx = Math.floor(((_x - 32) - speed) / 40);
cy = Math.floor((_y + 54) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if (_level0.pole[Math.floor(((_y + 54) + speed) / 40)][Math.floor((_x + 32) / 40)] == 3) {
_y = (_y + speed);
}
_x = (_x - speed);
break;
case 2 :
side = -side;
break;
case 3 :
_x = (_x - speed);
_y = (_y + speed);
break;
case 4 :
_x = (_x - speed);
_y = (_y - speed);
}
}
} else if (_x >= 756) {
if ((Math.floor((_y + 54) / 40) > 4) && (((Math.floor((_y + 54) / 40) > 10) && (random(4) == 0)) || (jump_up))) {
jump_index = 0;
sost = 2;
jump_up = true;
} else {
side = -side;
jump_up = false;
}
} else if ((_level0.pole[Math.floor(((_y + 54) - speed) / 40)][Math.floor(((_x + 32) + speed) / 40)] == 3) || (_level0.pole[Math.floor((_y + 54) / 40)][Math.floor((_x + 32) / 40)] == 3)) {
_x = (_x + speed);
_y = (_y - speed);
} else {
cx = Math.floor(((_x + 32) + speed) / 40);
cy = Math.floor((_y + 54) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if (_level0.pole[Math.floor(((_y + 54) + speed) / 40)][Math.floor((_x - 32) / 40)] == 4) {
_y = (_y + speed);
}
_x = (_x + speed);
break;
case 2 :
side = -side;
break;
case 3 :
_x = (_x + speed);
_y = (_y - speed);
break;
case 4 :
_x = (_x + speed);
_y = (_y + speed);
}
}
}
break;
case 2 :
if ((_currentframe < frame_turn) || (_currentframe > frame_turn_last)) {
gotoAndPlay(frame_turn);
}
break;
case 3 :
gotoAndStop(frame_stand);
}
if ((((sost == 1) && (ai_sost == 1)) && (((Math.floor((_y + 54) / 40) < 8) && (random(8) == 0)) || ((Math.floor((_y + 54) / 40) > 10) && (random(64) == 0)))) && (((side > 0) && (_x > 400)) || ((side < 0) && (_x < 400)))) {
if (((_level0.pole[Math.floor(_y / 40) - 1][Math.floor((_x - 32) / 40)] == 1) && (_level0.pole[Math.floor(_y / 40) - 1][Math.floor(_x / 40)] == 1)) && (_level0.pole[Math.floor(_y / 40) - 1][Math.floor((_x + 32) / 40)] == 1)) {
jump_index = 0;
sost = 2;
jump_up = false;
}
}
if ((((Math.floor((_y + 54) / 40) > 8) && (ai_sost == 1)) && (random(64) == 0)) && (next_fire == 0)) {
ai_sost = 2;
fire_counter = 16;
}
if (fire_counter > 0) {
fire_counter--;
if ((fire_counter == 8) || (fire_counter == 15)) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_boss_bubbleball].start();
}
_level0.snowball_count++;
_level0.bubbleball.duplicateMovieClip("bubbleball" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.bubbleball" + _level0.snowball_count)._y = _y - 38;
if (fire_counter == 15) {
eval ("_level0.bubbleball" + _level0.snowball_count)._x = _x - 68;
eval ("_level0.bubbleball" + _level0.snowball_count).speedx = -4;
eval ("_level0.bubbleball" + _level0.snowball_count)._rotation = 245;
} else if (fire_counter == 8) {
eval ("_level0.bubbleball" + _level0.snowball_count)._x = _x + 68;
eval ("_level0.bubbleball" + _level0.snowball_count).speedx = 4;
eval ("_level0.bubbleball" + _level0.snowball_count)._rotation = -65;
}
eval ("_level0.bubbleball" + _level0.snowball_count).speedy = -8;
eval ("_level0.bubbleball" + _level0.snowball_count).step = 0;
eval ("_level0.bubbleball" + _level0.snowball_count).boss = true;
eval ("_level0.bubbleball" + _level0.snowball_count)._visible = true;
eval ("_level0.bubbleball" + _level0.snowball_count).gotoAndPlay(1);
} else if (fire_counter == 0) {
ai_sost = 1;
next_fire = 50;
gotoAndStop(frame_stand);
}
}
if (next_fire > 0) {
next_fire--;
}
var monsters = 0;
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
monsters++;
}
i++;
}
if (((((Math.floor((_y + 54) / 40) > 8) && (ai_sost == 1)) && (random(64 + (monsters * 32)) == 0)) && (next_throw == 0)) && (monsters <= 4)) {
ai_sost = 3;
throw_counter = 32;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bossteapot_lidopen].start();
}
lid.gotoAndPlay(10);
}
if (throw_counter > 0) {
throw_counter--;
if (((throw_counter == 24) || (throw_counter == 18)) || (throw_counter == 12)) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_boss_fire].start();
}
_level0.num_monsters++;
duplicateMovieClip ("_level0.monster_bomb", "monster" + _level0.num_monsters, 500 + _level0.num_monsters);
eval ("_level0.monster" + _level0.num_monsters)._x = _x;
eval ("_level0.monster" + _level0.num_monsters)._y = _y - 64;
eval ("_level0.monster" + _level0.num_monsters)._xscale = (random(2) * 200) - 100;
eval ("_level0.monster" + _level0.num_monsters).knock_index = random(4);
eval ("_level0.monster" + _level0.num_monsters).knock_speed_x = 4 + random(13);
eval ("_level0.monster" + _level0.num_monsters)._visible = true;
eval ("_level0.monster" + _level0.num_monsters).gotoAndPlay(_level0.monster_bomb.frame_fly);
} else if (throw_counter == 8) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bossteapot_lidclose].start();
}
if (lid._currentframe < 18) {
lid.gotoAndPlay(18);
}
} else if (throw_counter == 0) {
ai_sost = 1;
next_throw = 150;
gotoAndStop(frame_stand);
}
}
if (next_throw > 0) {
next_throw--;
}
if (side > 0) {
var dx = 32;
} else {
var dx = -32;
}
if ((((!_level0.hero.immortal) && (((_level0.hero.sost == 1) || (_level0.hero.sost == 2)) || (_level0.hero.sost == 3))) && (((_x + dx) >= (_level0.hero._x - 27)) && ((_x + dx) <= (_level0.hero._x + 25)))) && (((_y + 54) >= (_level0.hero._y - 8)) && ((_y - 50) <= (_level0.hero._y + 28)))) {
_level0.hero.sost = 9;
_level0.hero.death_index = 0;
_level0.hero._xscale = side * 100;
_level0.hero.gotoAndPlay(_level0.hero.frame_death);
}
}
}
}
Instance of Symbol 1531 MovieClip "monster_clock" in Frame 6
onClipEvent (load) {
var count = 0;
var ghost_count = 0;
var speed = 1;
}
onClipEvent (enterFrame) {
if (_visible) {
switch (sost) {
case 2 :
if (!_level0.no_sound) {
_level0.snds[_level0.snd_clock_wait].stop();
}
if (count >= 64) {
dx = _level0.hero._x - _x;
dy = _level0.hero._y - _y;
dlen = Math.sqrt((dx * dx) + (dy * dy));
_x = (_x + ((dx * speed) / dlen));
_y = (_y + ((dy * speed) / dlen));
}
case 0 :
count++;
if (count >= 172) {
sost = 1;
}
break;
case 1 :
if (_currentframe < 172) {
gotoAndPlay (172);
}
if (_currentframe >= 178) {
ghost_count++;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_clock_wait].stop();
_level0.snds[_level0.snd_clock_boom].start();
}
_level0.monster_ghost.duplicateMovieClip("monster_ghost" + ghost_count, (_level0.num_monsters + 600) + ghost_count);
eval ("_level0.monster_ghost" + ghost_count)._x = _x;
eval ("_level0.monster_ghost" + ghost_count)._y = _y;
eval ("_level0.monster_ghost" + ghost_count).sost = 0;
eval ("_level0.monster_ghost" + ghost_count)._visible = true;
count = 0;
sost = 2;
}
break;
case 3 :
if (!_level0.no_sound) {
_level0.snds[_level0.snd_clock_wait].stop();
}
if (_currentframe >= 172) {
gotoAndPlay (1);
}
dx = _level0.hero._x - _x;
dy = _level0.hero._y - _y;
dlen = Math.sqrt((dx * dx) + (dy * dy));
_x = (_x - ((dx * 16) / dlen));
_y = (_y - ((dy * 16) / dlen));
i = 1;
while (i <= ghost_count) {
eval ("_level0.monster_ghost" + i).sost = 1;
i++;
}
if (((_x < 0) || (_x > 800)) || ((_y < 0) || (_y > 560))) {
this.removeMovieClip();
}
break;
case 10 :
if (_y < 100) {
_y = (_y + 2);
} else {
sost = 0;
count = 0;
}
}
if ((((((sost != 3) && (sost != 10)) && (!_level0.hero.immortal)) && (((_level0.hero.sost == 1) || (_level0.hero.sost == 2)) || (_level0.hero.sost == 3))) && (((_x + 20) >= (_level0.hero._x - 27)) && ((_x - 20) <= (_level0.hero._x + 25)))) && (((_y + 32) >= (_level0.hero._y - 8)) && ((_y - 32) <= (_level0.hero._y + 28)))) {
_level0.hero.sost = 9;
_level0.hero.death_index = 0;
_level0.hero._xscale = _xscale;
_level0.hero.gotoAndPlay(_level0.hero.frame_death);
}
}
}
Instance of Symbol 1564 MovieClip "monster_ghost" in Frame 6
onClipEvent (load) {
var speed = 2;
}
onClipEvent (enterFrame) {
if (_visible) {
dx = _level0.hero._x - _x;
dy = _level0.hero._y - _y;
if (sost == 0) {
dlen = Math.sqrt((dx * dx) + (dy * dy));
dx = dx * ((speed + (_level0.monster_clock1.ghost_count * 2)) / dlen);
dy = dy * ((speed + (_level0.monster_clock1.ghost_count * 2)) / dlen);
var found = false;
i = 1;
while (i <= _level0.monster_clock1.ghost_count) {
if (("/monster_ghost" + i) != _target) {
if (((((_x + dx) + 15) >= (eval ("_level0.monster_ghost" + i)._x - 15)) && (((_x + dx) - 15) <= (eval ("_level0.monster_ghost" + i)._x + 15))) && ((((_y + dy) + 12) >= (eval ("_level0.monster_ghost" + i)._y - 12)) && (((_y + dy) - 12) <= (eval ("_level0.monster_ghost" + i)._y + 12)))) {
found = true;
break;
}
}
i++;
}
if (!found) {
_x = (_x + dx);
_y = (_y + dy);
}
} else {
dx = _level0.hero._x - _x;
dy = _level0.hero._y - _y;
dlen = Math.sqrt((dx * dx) + (dy * dy));
_x = (_x - ((dx * 16) / dlen));
_y = (_y - ((dy * 16) / dlen));
if (((_x < 0) || (_x > 800)) || ((_y < 0) || (_y > 560))) {
this.removeMovieClip();
}
}
if (((((sost == 0) && (!_level0.hero.immortal)) && (((_level0.hero.sost == 1) || (_level0.hero.sost == 2)) || (_level0.hero.sost == 3))) && (((_x + 15) >= (_level0.hero._x - 27)) && ((_x - 15) <= (_level0.hero._x + 25)))) && (((_y + 12) >= (_level0.hero._y - 8)) && ((_y - 12) <= (_level0.hero._y + 28)))) {
_level0.hero.sost = 9;
_level0.hero.death_index = 0;
_level0.hero._xscale = _xscale;
_level0.hero.gotoAndPlay(_level0.hero.frame_death);
}
}
}
Instance of Symbol 1811 MovieClip "monster_bomb" in Frame 6
onClipEvent (load) {
var frame_wet = 1;
var frame_wet_last = 16;
var frame_walk = 17;
var frame_walk_last = 30;
var frame_turn = 31;
var frame_turn_last = 47;
var frame_jump = 48;
var frame_jump_last = 64;
var frame_fall = 58;
var frame_fall_last = 64;
var frame_frozen = 65;
var frame_frozen_last = 239;
var frame_ball = 240;
var frame_ball_last = 249;
var frame_knock = 250;
var frame_knock_last = 262;
var frame_dead = 263;
var frame_dead_last = 294;
var frame_fly = 295;
var frame_fly_last = 311;
var speed = 4;
var world_fall_speed = 16;
var jump_speed = new Array(16, 16, 16, 16, 14, 6, 3, 1, 0, 0);
var jump_index = undefined;
var sost = 8;
var ai_sost = 1;
var turn_count = 0;
var wet_count = 0;
var frozen_count = 0;
var max_turn_count = 16;
var snow_ball_hit = false;
var snow_ball = false;
var move_snow_ball = false;
var fall_count = 0;
var fall_count_jump = 100;
var knock_speed_y = new Array(32, 32, 32, 32, 32, 32, 32, 30, 28, 16, 14, 10, 3, 0, 0);
var knock_skip = false;
var dead_count = 0;
var jump_side = false;
var boss_throw = true;
var boss = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_y > 611) {
_y = 0;
}
if (sost == 9) {
if ((_currentframe < frame_dead) || (_currentframe > frame_dead_last)) {
gotoAndPlay(frame_dead);
}
if (dead_count < 43) {
if (dead_count == 32) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_frozen_explode].start();
}
}
dead_count++;
} else {
_level0.snowball_count++;
_level0.bonus.duplicateMovieClip("bonus" + _level0.snowball_count, 1000 + _level0.snowball_count);
do {
bonus = random(8) + 1;
} while (bonus == 4);
eval ("_level0.bonus" + _level0.snowball_count).gotoAndStop(bonus);
eval ("_level0.bonus" + _level0.snowball_count)._x = _x;
eval ("_level0.bonus" + _level0.snowball_count)._y = _y;
eval ("_level0.bonus" + _level0.snowball_count)._visible = true;
if (super_bonus) {
super_bonus = false;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_greatkick].start();
}
var i = 1;
while (!(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "i") === undefined)) {
_level0.snowball_count++;
_level0.bonus.duplicateMovieClip("bonus" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.bonus" + _level0.snowball_count).gotoAndStop(4);
eval ("_level0.bonus" + _level0.snowball_count)._x = (Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "i")) * 40) + 20;
eval ("_level0.bonus" + _level0.snowball_count)._y = (-(13 - Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "j")))) * 40;
eval ("_level0.bonus" + _level0.snowball_count).start_y = (Number(eval (((("_level0.L" + _level0.global_level) + "_bonus") + i) + "j")) * 40) + 12;
eval ("_level0.bonus" + _level0.snowball_count)._visible = true;
i++;
}
}
this.removeMovieClip();
}
} else if ((sost == 8) && (knock_index != undefined)) {
if (knock_index < knock_speed_y.length) {
dy = -knock_speed_y[knock_index];
} else if (knock_index < (knock_speed_y.length * 2)) {
dy = knock_speed_y[((knock_speed_y.length * 2) - knock_index) - 1];
} else {
dy = knock_speed_y[0];
}
knock_index++;
if ((_y + dy) >= 0) {
_y = (_y + dy);
} else if (knock_index < knock_speed_y.length) {
knock_index = knock_speed_y.length;
}
if (_xscale < 0) {
if (_x <= 21) {
_x = (21 + knock_speed_x);
_xscale = (-_xscale);
} else if ((_level0.pole[Math.floor(_y / 40)][Math.floor(((_x - 8) - knock_speed_x) / 40)] != 0) && (_level0.pole[Math.floor(_y / 40)][Math.floor((_x - 8) / 40)] == 0)) {
_xscale = (-_xscale);
} else {
_x = (_x - knock_speed_x);
}
} else if (_x >= 781) {
_x = (781 - knock_speed_x);
_xscale = (-_xscale);
} else if ((_level0.pole[Math.floor(_y / 40)][Math.floor(((_x + 6) + knock_speed_x) / 40)] != 0) && (_level0.pole[Math.floor(_y / 40)][Math.floor((_x + 6) / 40)] == 0)) {
_xscale = (-_xscale);
} else {
_x = (_x + knock_speed_x);
}
cy = Math.floor((_y + 29) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if (((knock_index > knock_speed_y.length) && ((_level0.pole[cy][cx0] != 0) || (_level0.pole[cy][cx1] != 0))) && ((_level0.pole[Math.floor(((_y + 29) - dy) / 40)][cx0] == 0) || (_level0.pole[Math.floor(((_y + 29) - dy) / 40)][cx1] == 0))) {
if (((random(2) == 0) || (knock_skip)) || (cy > 10)) {
if (_level0.pole[cy][cx1] == 3) {
dx = (_x + 6) - (cx1 * 40);
_y = (((cy * 40) + 8) - dx);
} else if (_level0.pole[cy][cx0] == 4) {
dx = (_x - 8) - (cx0 * 40);
_y = (((cy * 40) + dx) - 30);
} else {
_y = ((cy * 40) - 29);
}
if (!boss_throw) {
sost = 9;
dead_count = 0;
gotoAndPlay(frame_dead);
} else {
boss_throw = false;
sost = 1;
ai_sost = 1;
gotoAndPlay(frame_walk);
}
} else {
knock_skip = true;
}
}
} else {
found = false;
land = false;
if (sost == 3) {
if (((_currentframe < frame_fall) || (_currentframe > frame_fall_last)) && (ai_sost != 9)) {
gotoAndPlay(frame_fall);
}
fall_speed = world_fall_speed;
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if ((_y > 0) && (_level0.pole[cy][cx1] == 3)) {
dx = (_x + 6) - (cx1 * 40);
if ((_y + fall_speed) < (((cy * 40) + 8) - dx)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
_y = (((cy * 40) + 8) - dx);
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 2;
fall_count = 0;
} else {
sost = 1;
land = true;
}
}
found = true;
} else if ((_y > 0) && (_level0.pole[cy][cx0] == 4)) {
dx = (_x - 8) - (cx0 * 40);
if ((_y + fall_speed) < (((cy * 40) + dx) - 30)) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
} else {
_y = (((cy * 40) + dx) - 30);
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 2;
fall_count = 0;
} else {
sost = 1;
land = true;
}
}
found = true;
}
if (!found) {
if ((_y < 0) || (Math.floor((_y + 28) / 40) == Math.floor(((_y + 28) + world_fall_speed) / 40))) {
_y = (_y + world_fall_speed);
fall_count = fall_count + world_fall_speed;
} else {
var fall_speed = world_fall_speed;
while (fall_speed > 0) {
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if ((_y > 520) || ((_level0.pole[cy][cx0] == 0) && (_level0.pole[cy][cx1] == 0))) {
_y = (_y + fall_speed);
fall_count = fall_count + fall_speed;
break;
}
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 2;
fall_count = 0;
break;
}
sost = 1;
land = true;
if ((ai_sost != 8) && (ai_sost != 9)) {
ai_sost = 1;
}
fall_speed--;
}
}
}
}
if (sost == 1) {
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && (eval ("_level0.monster" + i).ai_sost != 2)) && ((((_x + 10) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - 12) <= (eval ("_level0.monster" + i)._x + 25))) && (((_y + 28) >= (eval ("_level0.monster" + i)._y - 8)) && ((_y - 8) <= (eval ("_level0.monster" + i)._y + 28))))) {
if (((eval ("_level0.monster" + i)._xscale == _xscale) && (ai_sost != 9)) && (ai_sost != 2)) {
ai_sost = 2;
turn_count = max_turn_count;
break;
}
}
}
i++;
}
}
if ((sost == 2) && (jump_index != undefined)) {
_y = (_y - jump_speed[jump_index]);
jump_index++;
var dx = 12;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((!eval ("_level0.monster" + i).boss) && (eval ("_level0.monster" + i).sost != 8)) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_x + dx) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - dx) <= (eval ("_level0.monster" + i)._x + 25))) && (((_y - 16) >= (eval ("_level0.monster" + i)._y - 8)) && ((_y - 16) <= (eval ("_level0.monster" + i)._y + 28))))) {
eval ("_level0.monster" + i).sost = 2;
eval ("_level0.monster" + i).jump_index = 2;
eval ("_level0.monster" + i).fall_count = 0;
break;
}
}
i++;
}
if (jump_index >= jump_speed.length) {
jump_index = undefined;
sost = 3;
if ((ai_sost != 8) && (ai_sost != 9)) {
ai_sost = 1;
}
}
}
dx = 0;
dy = 0;
if ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 12) / 40)] == 4) || ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 10) / 40)] == 4) && (sost == 1))) {
dx = 2;
dy = 2;
} else if ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 12) / 40)] == 3) || ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 10) / 40)] == 3) && (sost == 1))) {
dx = -2;
dy = 2;
}
if ((dx != 0) && (dy != 0)) {
var found_monster = false;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && ((((_y + 28) + dy) >= (eval ("_level0.monster" + i)._y - 11)) && (((_y - 11) + dy) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if (((((_x + 10) + dx) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && (((_x + 10) + dx) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if ((((_x - 12) + dx) >= (eval ("_level0.monster" + i)._x + 25)) && ((((_x - 12) + dx) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || (left)) {
if (((ai_sost != 9) && (ai_sost != 2)) && ((right && (_xscale > 0)) || (left && (_xscale < 0)))) {
ai_sost = 2;
turn_count = max_turn_count;
}
dx = 0;
dy = 0;
break;
}
}
}
i++;
}
_x = (_x + dx);
_y = (_y + dy);
} else if (!found) {
if (sost == 1) {
if ((_y > 520) || ((_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x - 8) / 40)] == 0) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x + 6) / 40)] == 0))) {
sost = 3;
if ((ai_sost != 8) && (ai_sost != 9)) {
ai_sost = 1;
}
} else {
if (((ai_sost == 9) && (snow_ball)) && (fall_count >= fall_count_jump)) {
sost = 2;
jump_index = 0;
} else {
sost = 1;
}
fall_count = 0;
}
}
}
switch (ai_sost) {
case 9 :
if (frozen_count > 0) {
if (snow_ball && ((_currentframe < frame_ball) || (_currentframe > frame_ball_last))) {
gotoAndPlay(frame_ball);
}
if (snow_ball_hit && (!snow_ball)) {
gotoAndPlay(frame_frozen_last - frozen_count);
snow_ball_hit = false;
snow_ball_move = false;
}
frozen_count--;
if (frozen_count > 99) {
snow_ball = true;
} else {
gotoAndPlay(frame_frozen_last - frozen_count);
snow_ball = false;
snow_ball_move = false;
}
} else {
ai_sost = 8;
wet_count = 16;
snow_ball = false;
snow_ball_move = false;
}
case 1 :
if ((sost == 1) || ((sost == 2) && (jump_side))) {
if (ai_sost == 1) {
speed = 8;
}
if (ai_sost == 9) {
speed = 4;
}
if (_xscale < 0) {
if (_x <= 21) {
if (ai_sost != 9) {
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (_y < 0) {
sost = 3;
} else {
var found_monster = false;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && (((_y + 28) >= (eval ("_level0.monster" + i)._y - 11)) && ((_y - 11) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if ((((_x + 10) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x + 10) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if (((_x - 12) >= (eval ("_level0.monster" + i)._x + 25)) && (((_x - 12) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || left) {
if (((ai_sost != 9) && (ai_sost != 2)) && left) {
ai_sost = 2;
turn_count = max_turn_count;
found_monster = true;
break;
}
}
}
}
i++;
}
if (!found_monster) {
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 4) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 8) / 40)] == 4)) {
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x - speed);
_y = (_y - speed);
move_snow_ball = false;
}
} else {
cx = Math.floor(((_x - 8) - speed) / 40);
cy = Math.floor((_y + 28) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if ((ai_sost != 9) || move_snow_ball) {
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x + 6) / 40)] == 3) {
_y = (_y + speed);
}
_x = (_x - speed);
move_snow_ball = false;
}
jump_side = false;
break;
case 2 :
if (ai_sost != 9) {
if ((((cy >= 2) && (sost != 2)) && ((_level0.pole[cy - 1][cx] == 0) || (_level0.pole[cy - 2][cx] == 0))) && ((random(2) == 0) || ((_level0.hero.sost != 3) && ((Math.round((_level0.hero._y + 28) / 40) + 1) < cy)))) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
jump_side = true;
} else if (!jump_side) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
break;
case 3 :
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x - speed);
_y = (_y + speed);
move_snow_ball = false;
}
break;
case 4 :
if (!((ai_sost != 9) || move_snow_ball)) {
break;
}
_x = (_x - speed);
_y = (_y - speed);
move_snow_ball = false;
}
}
}
}
} else if (_x >= 781) {
if (ai_sost != 9) {
ai_sost = 2;
turn_count = max_turn_count;
}
} else if (_y < 0) {
sost = 3;
} else {
var found_monster = false;
var i = 1;
while (i <= _level0.num_monsters) {
if ((eval ("_level0.monster" + i) != undefined) && (("/monster" + i) != _target)) {
if (((((eval ("_level0.monster" + i).sost != 8) && (eval ("_level0.monster" + i).sost != 9)) && (eval ("_level0.monster" + i).sost != 10)) && (((_y + 28) >= (eval ("_level0.monster" + i)._y - 11)) && ((_y - 11) <= (eval ("_level0.monster" + i)._y + 28)))) && (!((eval ("_level0.monster" + i).ai_sost == 9) && (!eval ("_level0.monster" + i).snow_ball)))) {
right = false;
left = false;
if ((((_x + 10) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x + 10) <= (eval ("_level0.monster" + i)._x - 27))) {
right = true;
}
if (((_x - 12) >= (eval ("_level0.monster" + i)._x + 25)) && (((_x - 12) - speed) <= (eval ("_level0.monster" + i)._x + 25))) {
left = true;
}
if (right || left) {
if (((ai_sost != 9) && (ai_sost != 2)) && right) {
ai_sost = 2;
turn_count = max_turn_count;
found_monster = true;
break;
}
}
}
}
i++;
}
if (!found_monster) {
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 3) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 6) / 40)] == 3)) {
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x + speed);
_y = (_y - speed);
move_snow_ball = false;
}
} else {
cx = Math.floor(((_x + 6) + speed) / 40);
cy = Math.floor((_y + 28) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if ((ai_sost != 9) || move_snow_ball) {
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x - 8) / 40)] == 4) {
_y = (_y + speed);
}
_x = (_x + speed);
move_snow_ball = false;
}
jump_side = false;
break;
case 2 :
if (ai_sost != 9) {
if ((((cy >= 2) && (sost != 2)) && ((_level0.pole[cy - 1][cx] == 0) || (_level0.pole[cy - 2][cx] == 0))) && ((random(2) == 0) || ((_level0.hero.sost != 3) && ((Math.round((_level0.hero._y + 28) / 40) + 1) < cy)))) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
jump_side = true;
} else if (!jump_side) {
ai_sost = 2;
turn_count = max_turn_count;
}
}
break;
case 3 :
if ((ai_sost != 9) || move_snow_ball) {
_x = (_x + speed);
_y = (_y - speed);
move_snow_ball = false;
}
break;
case 4 :
if (!((ai_sost != 9) || move_snow_ball)) {
break;
}
_x = (_x + speed);
_y = (_y + speed);
move_snow_ball = false;
}
}
}
}
}
if ((((sost == 1) && (ai_sost == 1)) && ((((Math.round((_level0.hero._y + 28) / 40) + 1) < Math.round((_y + 28) / 40)) && ((((_level0.hero.sost != 3) && (_level0.hero.sost != 4)) && (_level0.hero.sost != 9)) && (_level0.hero.sost != 10))) || (((random(64) == 0) && (ai_sost == 1)) && (Math.round((_y + 28) / 40) > 2)))) && (_level0.pole[Math.floor((_y - 13) / 40)][Math.floor(_x / 40)] == 1)) {
if ((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) {
gotoAndPlay(frame_jump);
}
jump_index = 0;
sost = 2;
}
if (sost == 1) {
if (ai_sost == 1) {
if ((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) {
gotoAndPlay(frame_walk);
}
}
}
break;
case 2 :
if ((_currentframe < frame_turn) || (_currentframe > frame_turn_last)) {
gotoAndPlay(frame_turn);
}
if (turn_count > 0) {
turn_count--;
} else {
ai_sost = 1;
_xscale = (-_xscale);
}
break;
case 8 :
if ((_currentframe < frame_wet) || (_currentframe > frame_wet_last)) {
gotoAndPlay(frame_wet);
}
if (wet_count > 0) {
wet_count--;
} else {
ai_sost = 1;
}
}
if ((((sost == 1) || (sost == 2)) || (sost == 3)) && (((ai_sost == 1) || (ai_sost == 2)) || (ai_sost == 3))) {
if (_xscale > 0) {
var dx = 12;
} else {
var dx = -12;
}
if ((((!_level0.hero.immortal) && (((_level0.hero.sost == 1) || (_level0.hero.sost == 2)) || (_level0.hero.sost == 3))) && (((_x + dx) >= (_level0.hero._x - 27)) && ((_x + dx) <= (_level0.hero._x + 25)))) && (((_y + 28) >= (_level0.hero._y - 8)) && ((_y - 16) <= (_level0.hero._y + 28)))) {
_level0.hero.sost = 9;
_level0.hero.death_index = 0;
_level0.hero._xscale = _xscale;
_level0.hero.gotoAndPlay(_level0.hero.frame_death);
}
}
}
}
}
Instance of Symbol 1821 MovieClip "boss_life" in Frame 6
onClipEvent (load) {
var value = 6;
}
onClipEvent (enterFrame) {
if (_visible) {
gotoAndStop(value + 1);
}
}
Instance of Symbol 2108 MovieClip "hero_source" in Frame 6
onClipEvent (load) {
var frame_stand = 1;
var frame_stand_last = 16;
var frame_walk = 17;
var frame_walk_last = 30;
var frame_jump = 31;
var frame_jump_last = 41;
var frame_throw = 42;
var frame_throw_last = 50;
var frame_kick = 51;
var frame_kick_last = 63;
var frame_push = 64;
var frame_push_last = 79;
var frame_insnowball = 80;
var frame_insnowball_last = 89;
var frame_death = 90;
var frame_death_last = 106;
var frame_appear = 107;
var frame_appear_last = 122;
var frame_run = 123;
var frame_run_last = 136;
var frame_happy = 137;
var frame_happy_last = 153;
var speed = 8;
var world_fall_speed = 16;
var jump_speed = new Array(16, 16, 16, 16, 14, 6, 3, 1, 0, 0);
var jump_index = undefined;
var sost = 10;
var fire = false;
var push = false;
var fire_counter = 0;
var catch_snowball = undefined;
var death_speed_y = new Array(32, 32, 32, 28, 22, 16, 12, 6, 1, 0);
var death_index = undefined;
var death_speed_x = 8;
var immortal = true;
var immortal_count = 0;
var speed_up_mul = 1.5;
var speed_up = _level0.global_speed_up;
var range_up = _level0.global_range_up;
var power_up = _level0.global_power_up;
var level_end_count = 16;
var clock_count = 0;
}
onClipEvent (enterFrame) {
if (_visible) {
if ((!_level0.boss_level) && (random(1500) == 0)) {
_level0.snowball_count++;
_level0.bonus.duplicateMovieClip("bonus" + _level0.snowball_count, 1000 + _level0.snowball_count);
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bonusbox_fall].start();
}
eval ("_level0.bonus" + _level0.snowball_count).gotoAndStop(9);
do {
box_x = random(20);
box_y = random(13);
} while ((_level0.pole[box_y][box_x] != 0) || (_level0.pole[box_y + 1][box_x] == 0));
eval ("_level0.bonus" + _level0.snowball_count)._x = (box_x * 40) + 20;
eval ("_level0.bonus" + _level0.snowball_count)._y = (-(13 - box_y)) * 40;
eval ("_level0.bonus" + _level0.snowball_count).start_y = (box_y * 40) + 12;
eval ("_level0.bonus" + _level0.snowball_count)._visible = true;
}
if (clock_count < 640) {
clock_count++;
} else if ((!_level0.boss_level) && (_level0.monster_clock1 == undefined)) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_clock_appear].start();
_level0.snds[_level0.snd_clock_wait].start(0, 10);
}
_level0.monster_clock.duplicateMovieClip("monster_clock1", _level0.num_monsters + 600);
_level0.monster_clock1._x = 400;
_level0.monster_clock1._y = -64;
_level0.monster_clock1.sost = 10;
_level0.monster_clock1._visible = true;
}
if (sost == 1) {
var no_monsters = true;
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
no_monsters = false;
break;
}
i++;
}
if (no_monsters) {
var no_bonuses = true;
var i = 1;
while (i <= _level0.snowball_count) {
if ((eval ("_level0.bonus" + i) != undefined) && (eval ("_level0.bonus" + i)._currentframe != 9)) {
no_bonuses = false;
break;
}
i++;
}
if (no_bonuses) {
if ((_currentframe < frame_happy) || (_currentframe > frame_happy_last)) {
gotoAndPlay(frame_happy);
}
if (!_level0.no_sound) {
_level0.snds[_level0.snd_hero_happy].start();
}
level_end_count = 16;
sost = 8;
}
}
}
if (immortal) {
if (immortal_count < 35) {
immortal_count++;
_alpha = ((((immortal_count - 1) % 5) + 1) * 20);
} else {
immortal = false;
}
}
if (sost == 10) {
if ((_currentframe < frame_appear) || (_currentframe > frame_appear_last)) {
gotoAndPlay(frame_appear);
}
if (_y == start_y) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_hero_appear].start();
}
}
if (_y > start_y) {
_y = (_y - world_fall_speed);
} else {
_y = start_y;
sost = 1;
immortal = true;
immortal_count = 0;
clock_count = 0;
}
} else if (sost == 9) {
if (death_index == 0) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_hero_death].start();
}
_level0.deathstar.duplicateMovieClip("deathstar1", 499);
_level0.deathstar1._x = _x;
_level0.deathstar1._y = _y;
_level0.deathstar1._visible = true;
speed_up = false;
range_up = false;
power_up = false;
_level0.lives1.value--;
death_speed_x = 4 + random(13);
death_index = random(3);
if (_level0.monster_clock1 != undefined) {
_level0.monster_clock1.sost = 3;
}
clock_count = 0;
}
if (death_index < death_speed_y.length) {
dy = -death_speed_y[death_index];
} else if (death_index < (death_speed_y.length * 2)) {
dy = death_speed_y[((death_speed_y.length * 2) - death_index) - 1];
} else {
dy = death_speed_y[0];
}
death_index++;
_y = (_y + dy);
if (_xscale < 0) {
_x = (_x - death_speed_x);
if (_x <= 21) {
_xscale = (-_xscale);
}
} else {
_x = (_x + death_speed_x);
if (_x >= 781) {
_xscale = (-_xscale);
}
}
if (_y > 611) {
if (_level0.lives1.value > 0) {
_x = ((eval (("_level0.L" + _level0.global_level) + "_heroi") * 40) + 21);
_y = 611;
start_y = (eval (("_level0.L" + _level0.global_level) + "_heroj") * 40) + 11;
sost = 10;
immortal = true;
immortal_count = 0;
clock_count = 0;
} else {
_visible = false;
_level0.gameover.duplicateMovieClip("gameover1", 4010);
_level0.gameover1._x = 400;
_level0.gameover1._y = 300;
_level0.gameover1._visible = true;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_gameover].start();
}
_level0.gameover1.gotoAndPlay(1);
}
}
} else if (sost == 8) {
if (level_end_count > 0) {
level_end_count--;
} else {
_level0.global_score = _level0.score1.value;
_level0.global_lives = _level0.lives1.value;
_level0.global_level = _level0.level1.value + 1;
_level0.global_speed_up = speed_up;
_level0.global_range_up = range_up;
_level0.global_power_up = power_up;
_visible = false;
if (_level0.monster_clock1 != undefined) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_clock_wait].stop();
}
var i = 1;
while (i <= _level0.monster_clock1.ghost_count) {
eval ("_level0.monster_ghost" + i).removeMovieClip();
i++;
}
_level0.monster_clock1.removeMovieClip();
}
var i = 0;
while (i <= _level0.snowball_count) {
if (eval ("_level0.bonus" + i) != undefined) {
eval ("_level0.bonus" + i).removeMovieClip();
}
i++;
}
if (!_level0.boss_level) {
_level0.levelcompleted.duplicateMovieClip("levelcompleted1", 4011);
_level0.levelcompleted1._x = 400;
_level0.levelcompleted1._y = 300;
_level0.levelcompleted1._visible = true;
_level0.dload_button1._visible = false;
_level0.menu_button1._visible = false;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_levelcompleted].start();
}
_level0.levelcompleted1.gotoAndPlay(1);
} else {
_level0.worldcompleted.duplicateMovieClip("worldcompleted1", 4011);
_level0.worldcompleted1._x = 400;
_level0.worldcompleted1._y = 300;
_level0.worldcompleted1._visible = true;
_level0.dload_button1._visible = false;
_level0.menu_button1._visible = false;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_bosslevelcompleted].start();
}
_level0.worldcompleted1.gotoAndPlay(1);
}
}
} else {
if (_y > 611) {
_y = 0;
}
found = false;
if (sost == 3) {
if (((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) && ((_currentframe < frame_throw) || (_currentframe > frame_throw_last))) {
gotoAndPlay(frame_jump);
}
fall_speed = world_fall_speed;
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if (_level0.pole[cy][cx1] == 3) {
dx = (_x + 6) - (cx1 * 40);
if ((_y + fall_speed) < (((cy * 40) + 8) - dx)) {
_y = (_y + fall_speed);
} else {
_y = (((cy * 40) + 8) - dx);
sost = 1;
}
found = true;
} else if (_level0.pole[cy][cx0] == 4) {
dx = (_x - 8) - (cx0 * 40);
if ((_y + fall_speed) < (((cy * 40) + dx) - 30)) {
_y = (_y + fall_speed);
} else {
_y = (((cy * 40) + dx) - 30);
sost = 1;
}
found = true;
}
if (!found) {
if ((_y < 0) || (Math.floor((_y + 28) / 40) == Math.floor(((_y + 28) + world_fall_speed) / 40))) {
_y = (_y + world_fall_speed);
} else {
var fall_speed = world_fall_speed;
while (fall_speed > 0) {
cy = Math.floor(((_y + 28) + fall_speed) / 40);
cx0 = Math.floor((_x - 8) / 40);
cx1 = Math.floor((_x + 6) / 40);
if ((_y > 520) || ((_level0.pole[cy][cx0] == 0) && (_level0.pole[cy][cx1] == 0))) {
_y = (_y + fall_speed);
break;
}
sost = 1;
fall_speed--;
}
}
}
} else if ((sost == 2) && (jump_index != undefined)) {
_y = (_y - jump_speed[jump_index]);
jump_index++;
var dx = 12;
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
if (eval ("_level0.monster" + i).snow_ball && ((((_x + dx) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - dx) <= (eval ("_level0.monster" + i)._x + 25))) && (((_y - 16) >= (eval ("_level0.monster" + i)._y - 8)) && ((_y - 16) <= (eval ("_level0.monster" + i)._y + 28))))) {
eval ("_level0.monster" + i).sost = 2;
eval ("_level0.monster" + i).jump_index = 2;
eval ("_level0.monster" + i).fall_count = 0;
break;
}
}
i++;
}
if (jump_index >= jump_speed.length) {
jump_index = undefined;
sost = 3;
}
}
if ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 10) / 40)] == 4) || ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 12) / 40)] == 4) && (sost == 1))) {
_x = (_x + 2);
_y = (_y + 2);
} else if ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 10) / 40)] == 3) || ((_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 12) / 40)] == 3) && (sost == 1))) {
_x = (_x - 2);
_y = (_y + 2);
} else if (!found) {
if (sost == 1) {
if (((_y < 0) || (_y > 520)) || ((_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x - 8) / 40)] == 0) && (_level0.pole[Math.floor((_y + 29) / 40)][Math.floor((_x + 6) / 40)] == 0))) {
sost = 3;
} else {
sost = 1;
}
}
}
if (sost == 3) {
var dx = 12;
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
if (eval ("_level0.monster" + i).snow_ball && ((((_x + dx) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x - dx) <= (eval ("_level0.monster" + i)._x + 25))) && ((((_y + 28) + world_fall_speed) >= (eval ("_level0.monster" + i)._y - 8)) && (((_y + 28) + world_fall_speed) <= (eval ("_level0.monster" + i)._y + 28))))) {
sost = 1;
break;
}
}
i++;
}
}
if ((Key.isDown(37) && (!Key.isDown(39))) && (sost != 4)) {
_xscale = -100;
if (_x <= 21) {
if ((((_currentframe < frame_stand) || (_currentframe > frame_stand_last)) && ((_currentframe < frame_throw) || (_currentframe > frame_throw_last))) && (sost == 1)) {
gotoAndPlay(frame_stand);
}
} else {
push = false;
speed = 8;
var dx = -14;
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
if ((eval ("_level0.monster" + i).snow_ball && ((((_x + dx) - speed) >= (eval ("_level0.monster" + i)._x - 27)) && (((_x + dx) - speed) <= (eval ("_level0.monster" + i)._x + 25)))) && ((_y >= (eval ("_level0.monster" + i)._y - 11)) && (_y <= (eval ("_level0.monster" + i)._y + 28)))) {
if ((eval ("_level0.monster" + i)._currentframe < eval ("_level0.monster" + i).frame_ball) || (eval ("_level0.monster" + i)._currentframe > eval ("_level0.monster" + i).frame_ball_last)) {
eval ("_level0.monster" + i).gotoAndPlay(eval ("_level0.monster" + i).frame_ball);
} else {
eval ("_level0.monster" + i).Play();
}
eval ("_level0.monster" + i)._xscale = _xscale;
eval ("_level0.monster" + i).move_snow_ball = true;
speed = 4;
push = true;
break;
}
}
i++;
}
var dx = -12;
var found_monster = false;
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
if ((eval ("_level0.monster" + i).snow_ball && ((((_x + dx) - speed) >= (eval ("_level0.monster" + i)._x - 27)) && (((_x + dx) - speed) <= (eval ("_level0.monster" + i)._x + 25)))) && ((_y >= (eval ("_level0.monster" + i)._y - 11)) && (_y <= (eval ("_level0.monster" + i)._y + 28)))) {
found_monster = true;
break;
}
}
i++;
}
if (!found_monster) {
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x - 8) - speed) / 40)] == 4) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x - 8) / 40)] == 4)) {
if ((!speed_up) || (push)) {
_x = (_x - speed);
_y = (_y - speed);
} else {
_x = (_x - (speed * speed_up_mul));
_y = (_y - (speed * speed_up_mul));
}
if (!push) {
if (!speed_up) {
if ((((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_walk);
}
} else if ((((_currentframe < frame_run) || (_currentframe > frame_run_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_run);
}
} else if ((_currentframe < frame_push) || (_currentframe > frame_push_last)) {
gotoAndPlay(frame_push);
}
} else {
if ((!speed_up) || (push)) {
cx = Math.floor(((_x - 8) - speed) / 40);
} else {
cx = Math.floor(((_x - 8) - (speed * speed_up_mul)) / 40);
}
cy = Math.floor((_y + 28) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x + 6) / 40)] == 3) {
if ((!speed_up) || push) {
_y = (_y + speed);
} else {
_y = (_y + (speed * speed_up_mul));
}
}
if ((!speed_up) || push) {
_x = (_x - speed);
} else {
_x = (_x - (speed * speed_up_mul));
}
if (!push) {
if (!speed_up) {
if ((((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_walk);
}
} else if ((((_currentframe < frame_run) || (_currentframe > frame_run_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_run);
}
} else if ((_currentframe < frame_push) || (_currentframe > frame_push_last)) {
gotoAndPlay(frame_push);
}
break;
case 2 :
if ((((_currentframe < frame_stand) || (_currentframe > frame_stand_last)) && ((_currentframe < frame_throw) || (_currentframe > frame_throw_last))) && (sost == 1)) {
gotoAndPlay(frame_stand);
}
break;
case 3 :
if ((!speed_up) || push) {
_x = (_x - speed);
_y = (_y + speed);
} else {
_x = (_x - (speed * speed_up_mul));
_y = (_y + (speed * speed_up_mul));
}
if (!push) {
if (!speed_up) {
if ((((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_walk);
}
} else if ((((_currentframe < frame_run) || (_currentframe > frame_run_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_run);
}
} else if ((_currentframe < frame_push) || (_currentframe > frame_push_last)) {
gotoAndPlay(frame_push);
}
break;
case 4 :
if ((!speed_up) || push) {
_x = (_x - speed);
_y = (_y - speed);
} else {
_x = (_x - (speed * speed_up_mul));
_y = (_y - (speed * speed_up_mul));
}
if (!push) {
if (!speed_up) {
if ((((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_walk);
}
} else if ((((_currentframe < frame_run) || (_currentframe > frame_run_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_run);
}
} else {
if (!((_currentframe < frame_push) || (_currentframe > frame_push_last))) {
break;
}
gotoAndPlay(frame_push);
}
}
}
}
}
}
if ((Key.isDown(39) && (!Key.isDown(37))) && (sost != 4)) {
_xscale = 100;
if (_x >= 781) {
if ((((_currentframe < frame_stand) || (_currentframe > frame_stand_last)) && ((_currentframe < frame_throw) || (_currentframe > frame_throw_last))) && (sost == 1)) {
gotoAndPlay(frame_stand);
}
} else {
push = false;
speed = 8;
if (sost == 1) {
var dx = 12;
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
if ((eval ("_level0.monster" + i).snow_ball && ((((_x + dx) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && (((_x + dx) + speed) <= (eval ("_level0.monster" + i)._x + 25)))) && ((_y >= (eval ("_level0.monster" + i)._y - 11)) && (_y <= (eval ("_level0.monster" + i)._y + 28)))) {
if ((eval ("_level0.monster" + i)._currentframe < eval ("_level0.monster" + i).frame_ball) || (eval ("_level0.monster" + i)._currentframe > eval ("_level0.monster" + i).frame_ball_last)) {
eval ("_level0.monster" + i).gotoAndPlay(eval ("_level0.monster" + i).frame_ball);
} else {
eval ("_level0.monster" + i).Play();
}
eval ("_level0.monster" + i)._xscale = _xscale;
eval ("_level0.monster" + i).move_snow_ball = true;
speed = 4;
push = true;
break;
}
}
i++;
}
}
var dx = 10;
var found_monster = false;
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
if ((eval ("_level0.monster" + i).snow_ball && ((((_x + dx) + speed) >= (eval ("_level0.monster" + i)._x - 27)) && (((_x + dx) + speed) <= (eval ("_level0.monster" + i)._x + 25)))) && ((_y >= (eval ("_level0.monster" + i)._y - 11)) && (_y <= (eval ("_level0.monster" + i)._y + 28)))) {
found_monster = true;
break;
}
}
i++;
}
if (!found_monster) {
if ((_level0.pole[Math.floor(((_y + 28) - speed) / 40)][Math.floor(((_x + 6) + speed) / 40)] == 3) || (_level0.pole[Math.floor((_y + 28) / 40)][Math.floor((_x + 6) / 40)] == 3)) {
if ((!speed_up) || (push)) {
_x = (_x + speed);
_y = (_y - speed);
} else {
_x = (_x + (speed * speed_up_mul));
_y = (_y - (speed * speed_up_mul));
}
if (!push) {
if (!speed_up) {
if ((((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_walk);
}
} else if ((((_currentframe < frame_run) || (_currentframe > frame_run_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_run);
}
} else if ((_currentframe < frame_push) || (_currentframe > frame_push_last)) {
gotoAndPlay(frame_push);
}
} else {
if ((!speed_up) || (push)) {
cx = Math.floor(((_x + 6) + speed) / 40);
} else {
cx = Math.floor(((_x + 6) + (speed * speed_up_mul)) / 40);
}
cy = Math.floor((_y + 28) / 40);
switch (_level0.pole[cy][cx]) {
case 0 :
case 1 :
if (_level0.pole[Math.floor(((_y + 28) + speed) / 40)][Math.floor((_x - 8) / 40)] == 4) {
if ((!speed_up) || push) {
_y = (_y + speed);
} else {
_y = (_y + (speed * speed_up_mul));
}
}
if ((!speed_up) || push) {
_x = (_x + speed);
} else {
_x = (_x + (speed * speed_up_mul));
}
if (!push) {
if (!speed_up) {
if ((((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_walk);
}
} else if ((((_currentframe < frame_run) || (_currentframe > frame_run_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_run);
}
} else if ((_currentframe < frame_push) || (_currentframe > frame_push_last)) {
gotoAndPlay(frame_push);
}
break;
case 2 :
if ((((_currentframe < frame_stand) || (_currentframe > frame_stand_last)) && ((_currentframe < frame_throw) || (_currentframe > frame_throw_last))) && (sost == 1)) {
gotoAndPlay(frame_stand);
}
break;
case 3 :
if ((!speed_up) || push) {
_x = (_x + speed);
_y = (_y - speed);
} else {
_x = (_x + (speed * speed_up_mul));
_y = (_y - (speed * speed_up_mul));
}
if (!push) {
if (!speed_up) {
if ((((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_walk);
}
} else if ((((_currentframe < frame_run) || (_currentframe > frame_run_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_run);
}
} else if ((_currentframe < frame_push) || (_currentframe > frame_push_last)) {
gotoAndPlay(frame_push);
}
break;
case 4 :
if ((!speed_up) || push) {
_x = (_x + speed);
_y = (_y + speed);
} else {
_x = (_x + (speed * speed_up_mul));
_y = (_y + (speed * speed_up_mul));
}
if (!push) {
if (!speed_up) {
if ((((_currentframe < frame_walk) || (_currentframe > frame_walk_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_walk);
}
} else if ((((_currentframe < frame_run) || (_currentframe > frame_run_last)) && (!fire)) && (sost == 1)) {
gotoAndPlay(frame_run);
}
} else {
if (!((_currentframe < frame_push) || (_currentframe > frame_push_last))) {
break;
}
gotoAndPlay(frame_push);
}
}
}
}
}
}
if (Key.isDown(38) && ((sost == 1) || (sost == 4))) {
if (((_currentframe < frame_jump) || (_currentframe > frame_jump_last)) && ((_currentframe < frame_throw) || (_currentframe > frame_throw_last))) {
gotoAndPlay(frame_jump);
}
if (sost == 4) {
eval (catch_snowball).catch_hero = false;
immortal = true;
immortal_count = 0;
}
jump_index = 0;
sost = 2;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_hero_jump].start();
}
}
if (Key.isDown(17) || (Key.isDown(32) && (sost != 4))) {
var snow_ball_found = false;
if (_xscale > 0) {
var dx = 22;
} else {
var dx = -24;
}
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
if ((eval ("_level0.monster" + i).snow_ball && (((_x + dx) >= (eval ("_level0.monster" + i)._x - 27)) && ((_x + dx) <= (eval ("_level0.monster" + i)._x + 25)))) && ((_y >= (eval ("_level0.monster" + i)._y - 11)) && (_y <= (eval ("_level0.monster" + i)._y + 28)))) {
snow_ball_found = true;
var old_x = eval ("_level0.monster" + i)._x;
var old_y = eval ("_level0.monster" + i)._y;
var old_depth = eval ("_level0.monster" + i).getDepth();
_level0.bigsnowball.duplicateMovieClip("monster" + i, old_depth);
eval ("_level0.monster" + i)._x = old_x;
eval ("_level0.monster" + i)._y = old_y;
eval ("_level0.monster" + i)._xscale = _xscale;
eval ("_level0.monster" + i)._visible = true;
_level0.snowball_count++;
_level0.flyscore.duplicateMovieClip("flyscore" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.flyscore" + _level0.snowball_count).value = 500;
eval ("_level0.flyscore" + _level0.snowball_count).x = _x;
eval ("_level0.flyscore" + _level0.snowball_count).y = _y;
eval ("_level0.flyscore" + _level0.snowball_count)._visible = true;
if (!_level0.no_sound) {
_level0.snds[_level0.snd_hero_kick].start();
}
break;
}
}
i++;
}
if (snow_ball_found) {
if ((_currentframe < frame_kick) || (_currentframe > frame_kick_last)) {
gotoAndPlay(frame_kick);
}
if (fire_counter == 0) {
fire_counter = 11;
}
} else {
if ((_currentframe < frame_throw) || (_currentframe > frame_throw_last)) {
gotoAndPlay(frame_throw);
}
if (fire_counter == 0) {
fire_counter = 7;
}
fire = true;
}
} else {
fire = false;
}
if (Key.isDown(27)) {
_visible = false;
_level0.score1.removeMovieClip();
_level0.level1.removeMovieClip();
_level0.lives1.removeMovieClip();
var j = 0;
while (j < 14) {
var i = 0;
while (i < 20) {
if (eval ((("_level0.blocks_" + j) + "_") + i) != undefined) {
eval ((("_level0.blocks_" + j) + "_") + i).removeMovieClip();
}
i++;
}
j++;
}
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
eval ("_level0.monster" + i).removeMovieClip();
}
i++;
}
var i = 0;
while (i <= _level0.snowball_count) {
if (eval ("_level0.snowball" + i) != undefined) {
eval ("_level0.snowball" + i).removeMovieClip();
}
if (eval ("_level0.flyscore" + i) != undefined) {
eval ("_level0.flyscore" + i).removeMovieClip();
}
if (eval ("_level0.bonus_hint" + i) != undefined) {
eval ("_level0.bonus_hint" + i).removeMovieClip();
}
if (eval ("_level0.bubbleballsplinter" + i) != undefined) {
eval ("_level0.bubbleballsplinter" + i).removeMovieClip();
}
if (eval ("_level0.bubbleball" + i) != undefined) {
eval ("_level0.bubbleball" + i).removeMovieClip();
}
if (eval ("_level0.bonus" + i) != undefined) {
eval ("_level0.bonus" + i).removeMovieClip();
}
i++;
}
if (_level0.statuspanel1 != undefined) {
_level0.statuspanel1.removeMovieClip();
}
if (_level0.alawar_logo1 != undefined) {
_level0.alawar_logo1.removeMovieClip();
}
if (_level0.aliasworlds_logo1 != undefined) {
_level0.aliasworlds_logo1.removeMovieClip();
}
if (_level0.score1 != undefined) {
_level0.score1.removeMovieClip();
}
if (_level0.level1 != undefined) {
_level0.level1.removeMovieClip();
}
if (_level0.lives1 != undefined) {
_level0.lives1.removeMovieClip();
}
if (_level0.boss_life1 != undefined) {
_level0.boss_life1.removeMovieClip();
}
_root.gotoAndPlay(_level0.first_game_frame + 3);
}
if (fire && (fire_counter == 7)) {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_hero_throw].start();
}
_level0.snowball_count++;
_level0.snowball.duplicateMovieClip("snowball" + _level0.snowball_count, 1000 + _level0.snowball_count);
eval ("_level0.snowball" + _level0.snowball_count)._x = _x;
eval ("_level0.snowball" + _level0.snowball_count)._y = _y;
if (!range_up) {
snow_ball_speed = 16;
} else {
snow_ball_speed = 24;
}
if (_xscale > 0) {
eval ("_level0.snowball" + _level0.snowball_count).speedx = snow_ball_speed;
} else {
eval ("_level0.snowball" + _level0.snowball_count).speedx = -snow_ball_speed;
}
eval ("_level0.snowball" + _level0.snowball_count).speedy = -6;
eval ("_level0.snowball" + _level0.snowball_count).step = 0;
eval ("_level0.snowball" + _level0.snowball_count)._visible = true;
if (!power_up) {
eval ("_level0.snowball" + _level0.snowball_count).gotoAndStop(1);
} else {
eval ("_level0.snowball" + _level0.snowball_count).gotoAndStop(2);
}
}
if (fire_counter > 0) {
fire_counter--;
}
if (sost == 1) {
if (((!Key.isDown(38)) && (!Key.isDown(39))) && (!Key.isDown(37))) {
if (((_currentframe < frame_stand) || (_currentframe > frame_stand_last)) && (fire_counter == 0)) {
gotoAndPlay(frame_stand);
}
}
}
}
}
}
Instance of Symbol 2124 MovieClip "deathstar" in Frame 6
onClipEvent (enterFrame) {
if (_currentframe == 41) {
this.removeMovieClip();
}
}
Instance of Symbol 2128 MovieClip "gameover" in Frame 6
onClipEvent (load) {
myListener = new Object();
myListener.onKeyDown = function () {
if (_visible) {
}
};
myListener.onKeyUp = function () {
if (_visible) {
_visible = false;
_level0.score1.removeMovieClip();
_level0.level1.removeMovieClip();
_level0.lives1.removeMovieClip();
_level0.menu_button1.removeMovieClip();
var j = 0;
while (j < 14) {
var i = 0;
while (i < 20) {
if (eval ((("_level0.blocks_" + j) + "_") + i) != undefined) {
eval ((("_level0.blocks_" + j) + "_") + i).removeMovieClip();
}
i++;
}
j++;
}
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
eval ("_level0.monster" + i).removeMovieClip();
}
i++;
}
var i = 0;
while (i <= _level0.snowball_count) {
if (eval ("_level0.snowball" + i) != undefined) {
eval ("_level0.snowball" + i).removeMovieClip();
}
if (eval ("_level0.flyscore" + i) != undefined) {
eval ("_level0.flyscore" + i).removeMovieClip();
}
if (eval ("_level0.bonus_hint" + i) != undefined) {
eval ("_level0.bonus_hint" + i).removeMovieClip();
}
if (eval ("_level0.bubbleballsplinter" + i) != undefined) {
eval ("_level0.bubbleballsplinter" + i).removeMovieClip();
}
if (eval ("_level0.bubbleball" + i) != undefined) {
eval ("_level0.bubbleball" + i).removeMovieClip();
}
if (eval ("_level0.bonus" + i) != undefined) {
eval ("_level0.bonus" + i).removeMovieClip();
}
i++;
}
if (_level0.statuspanel1 != undefined) {
_level0.statuspanel1.removeMovieClip();
}
if (_level0.alawar_logo1 != undefined) {
_level0.alawar_logo1.removeMovieClip();
}
if (_level0.aliasworlds_logo1 != undefined) {
_level0.aliasworlds_logo1.removeMovieClip();
}
if (_level0.score1 != undefined) {
_level0.score1.removeMovieClip();
}
if (_level0.level1 != undefined) {
_level0.level1.removeMovieClip();
}
if (_level0.lives1 != undefined) {
_level0.lives1.removeMovieClip();
}
if (_level0.boss_life1 != undefined) {
_level0.boss_life1.removeMovieClip();
}
_level0.hero._visible = false;
_root.gotoAndPlay(_level0.first_game_frame + 3);
}
};
Key.addListener(myListener);
}
Instance of Symbol 2131 MovieClip "levelcompleted" in Frame 6
onClipEvent (load) {
myListener = new Object();
myListener.onKeyDown = function () {
if (_visible) {
}
};
myListener.onKeyUp = function () {
if (_visible) {
_visible = false;
_root.gotoAndPlay(_level0.first_game_frame + 1);
Key.removeListener(myListener);
}
};
Key.addListener(myListener);
}
Instance of Symbol 2134 MovieClip "worldcompleted" in Frame 6
onClipEvent (load) {
myListener = new Object();
myListener.onKeyDown = function () {
if (_visible) {
}
};
myListener.onKeyUp = function () {
if (_visible) {
_visible = false;
_level0.score1.removeMovieClip();
_level0.level1.removeMovieClip();
_level0.lives1.removeMovieClip();
_level0.menu_button1.removeMovieClip();
var j = 0;
while (j < 14) {
var i = 0;
while (i < 20) {
if (eval ((("_level0.blocks_" + j) + "_") + i) != undefined) {
eval ((("_level0.blocks_" + j) + "_") + i).removeMovieClip();
}
i++;
}
j++;
}
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
eval ("_level0.monster" + i).removeMovieClip();
}
i++;
}
var i = 0;
while (i <= _level0.snowball_count) {
if (eval ("_level0.snowball" + i) != undefined) {
eval ("_level0.snowball" + i).removeMovieClip();
}
if (eval ("_level0.flyscore" + i) != undefined) {
eval ("_level0.flyscore" + i).removeMovieClip();
}
if (eval ("_level0.bonus_hint" + i) != undefined) {
eval ("_level0.bonus_hint" + i).removeMovieClip();
}
if (eval ("_level0.bubbleballsplinter" + i) != undefined) {
eval ("_level0.bubbleballsplinter" + i).removeMovieClip();
}
if (eval ("_level0.bubbleball" + i) != undefined) {
eval ("_level0.bubbleball" + i).removeMovieClip();
}
if (eval ("_level0.bonus" + i) != undefined) {
eval ("_level0.bonus" + i).removeMovieClip();
}
i++;
}
if (_level0.statuspanel1 != undefined) {
_level0.statuspanel1.removeMovieClip();
}
if (_level0.alawar_logo1 != undefined) {
_level0.alawar_logo1.removeMovieClip();
}
if (_level0.aliasworlds_logo1 != undefined) {
_level0.aliasworlds_logo1.removeMovieClip();
}
if (_level0.score1 != undefined) {
_level0.score1.removeMovieClip();
}
if (_level0.level1 != undefined) {
_level0.level1.removeMovieClip();
}
if (_level0.lives1 != undefined) {
_level0.lives1.removeMovieClip();
}
if (_level0.boss_life1 != undefined) {
_level0.boss_life1.removeMovieClip();
}
_level0.hero._visible = false;
if (_root.alawar_f != undefined) {
_root.gotoAndPlay(_level0.first_game_frame + 3);
} else {
_root.gotoAndPlay(_level0.first_game_frame + 9);
}
}
};
Key.addListener(myListener);
}
Frame 7
_quality = "MEDIUM";
var pole_images = new Array();
var j = 0;
while (j < 14) {
pole_images.push(new Array(20));
j++;
}
var pole = new Array();
var j = 0;
while (j < 14) {
pole.push(new Array(20));
j++;
}
var snowball_count = 0;
var num_monsters = 0;
if (levelcompleted1 != undefined) {
levelcompleted1.removeMovieClip();
}
var j = 0;
while (j < 14) {
var i = 0;
while (i < 20) {
var img = eval ((((("L" + _level0.global_level) + "_img_i") + i) + "j") + j);
if (img != undefined) {
pole_images[j][i] = img;
} else {
pole_images[j][i] = 0;
}
var value = eval ((((("L" + _level0.global_level) + "_val_i") + i) + "j") + j);
if (value != undefined) {
pole[j][i] = value;
} else {
pole[j][i] = 0;
}
i++;
}
j++;
}
if (statuspanel1 != undefined) {
statuspanel1.removeMovieClip();
}
if (alawar_logo1 != undefined) {
alawar_logo1.removeMovieClip();
}
if (aliasworlds_logo1 != undefined) {
aliasworlds_logo1.removeMovieClip();
}
if (score1 != undefined) {
score1.removeMovieClip();
}
if (level1 != undefined) {
level1.removeMovieClip();
}
if (lives1 != undefined) {
lives1.removeMovieClip();
}
if (dload_button1 != undefined) {
dload_button1.removeMovieClip();
}
if (menu_button1 != undefined) {
menu_button1.removeMovieClip();
}
statuspanel.duplicateMovieClip("statuspanel1", 4000);
alawar.duplicateMovieClip("alawar_logo1", 4005);
aliasworlds.duplicateMovieClip("aliasworlds_logo1", 4006);
if (_root.alawar_f == undefined) {
dload_button.duplicateMovieClip("dload_button1", 4010);
} else {
dload_button.removeMovieClip();
}
alawar_logo1._x = 4;
alawar_logo1._y = 596;
alawar_logo1.gotoAndStop(2);
aliasworlds_logo1._x = 796;
aliasworlds_logo1._y = 596;
aliasworlds_logo1.gotoAndStop(2);
scorefont1.duplicateMovieClip("score1", 4001);
smallfont1.duplicateMovieClip("level1", 4002);
smallfont1.duplicateMovieClip("lives1", 4003);
menu_button.duplicateMovieClip("menu_button1", 4007);
score1.x = 400;
score1.y = 555;
score1._x = 400;
score1._y = 555;
score1.value = _level0.global_score;
score1._visible = true;
dload_button1._visible = true;
dload_button1.btn.onRelease = function () {
_level0.score1.removeMovieClip();
_level0.level1.removeMovieClip();
_level0.lives1.removeMovieClip();
var j = 0;
while (j < 14) {
var i = 0;
while (i < 20) {
if (eval ((("_level0.blocks_" + j) + "_") + i) != undefined) {
eval ((("_level0.blocks_" + j) + "_") + i).removeMovieClip();
}
i++;
}
j++;
}
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
eval ("_level0.monster" + i).removeMovieClip();
}
i++;
}
var i = 0;
while (i <= _level0.snowball_count) {
if (eval ("_level0.snowball" + i) != undefined) {
eval ("_level0.snowball" + i).removeMovieClip();
}
if (eval ("_level0.flyscore" + i) != undefined) {
eval ("_level0.flyscore" + i).removeMovieClip();
}
if (eval ("_level0.bonus_hint" + i) != undefined) {
eval ("_level0.bonus_hint" + i).removeMovieClip();
}
if (eval ("_level0.bubbleballsplinter" + i) != undefined) {
eval ("_level0.bubbleballsplinter" + i).removeMovieClip();
}
if (eval ("_level0.bubbleball" + i) != undefined) {
eval ("_level0.bubbleball" + i).removeMovieClip();
}
if (eval ("_level0.bonus" + i) != undefined) {
eval ("_level0.bonus" + i).removeMovieClip();
}
i++;
}
if (_level0.statuspanel1 != undefined) {
_level0.statuspanel1.removeMovieClip();
}
if (_level0.alawar_logo1 != undefined) {
_level0.alawar_logo1.removeMovieClip();
}
if (_level0.aliasworlds_logo1 != undefined) {
_level0.aliasworlds_logo1.removeMovieClip();
}
if (_level0.score1 != undefined) {
_level0.score1.removeMovieClip();
}
if (_level0.level1 != undefined) {
_level0.level1.removeMovieClip();
}
if (_level0.lives1 != undefined) {
_level0.lives1.removeMovieClip();
}
if (_level0.boss_life1 != undefined) {
_level0.boss_life1.removeMovieClip();
}
_level0.hero._visible = false;
dload_button1._visible = false;
menu_button1._visible = false;
gotoAndPlay(first_game_frame + 9);
};
level1.x = 157;
level1.y = 559;
level1._x = 157;
level1._y = 559;
level1.value = _level0.global_level;
level1._visible = true;
lives1.x = 640;
lives1.y = 559;
lives1._x = 640;
lives1._y = 559;
lives1.value = _level0.global_lives;
lives1._visible = true;
if (hero != undefined) {
hero.removeMovieClip();
}
var j = 0;
while (j < 14) {
var i = 0;
while (i < 20) {
if (eval ((("blocks_" + j) + "_") + i) != undefined) {
eval ((("blocks_" + j) + "_") + i).removeMovieClip();
}
i++;
}
j++;
}
var j = 0;
while (j < 14) {
var i = 0;
while (i < 20) {
if (pole_images[j][i] > 0) {
duplicateMovieClip (eval (("L" + _level0.global_level) + "_blockset"), (("blocks_" + j) + "_") + i, i + (j * 20));
eval ((("blocks_" + j) + "_") + i)._x = i * 40;
eval ((("blocks_" + j) + "_") + i)._y = j * 40;
eval ((("blocks_" + j) + "_") + i)._visible = true;
eval ((("blocks_" + j) + "_") + i).gotoAndStop(pole_images[j][i]);
}
i++;
}
j++;
}
i = 1;
boss_level = false;
while (!(eval (((("L" + _level0.global_level) + "_monster") + i) + "type") === undefined)) {
var monster_type = eval (((("L" + _level0.global_level) + "_monster") + i) + "type");
if (monster_type.indexOf("_plus") != -1) {
monster_type = monster_type.substr(0, monster_type.indexOf("_plus"));
plus_mode = true;
} else {
plus_mode = false;
}
duplicateMovieClip (monster_type, "monster" + i, 500 + i);
if (monster_type.indexOf("boss") == -1) {
eval ("monster" + i)._x = (Number(eval (((("L" + _level0.global_level) + "_monster") + i) + "i")) * 40) + 21;
eval ("monster" + i)._y = 0;
eval ("monster" + i).start_y = (Number(eval (((("L" + _level0.global_level) + "_monster") + i) + "j")) * 40) + 11;
eval ("monster" + i).plus_mode = plus_mode;
if (eval (((("L" + _level0.global_level) + "_monster") + i) + "side") == "left") {
eval ("monster" + i)._xscale = -100;
}
} else {
eval ("monster" + i)._x = (Number(eval (((("L" + _level0.global_level) + "_monster") + i) + "i")) * 40) + 20;
eval ("monster" + i)._y = (Number(eval (((("L" + _level0.global_level) + "_monster") + i) + "j")) * 40) - 15;
boss_level = true;
if (eval (((("L" + _level0.global_level) + "_monster") + i) + "side") == "left") {
eval ("monster" + i).side = -1;
} else {
eval ("monster" + i).side = 1;
}
}
eval ("_level0.monster" + i)._visible = true;
i++;
}
num_monsters = i - 1;
duplicateMovieClip (hero_source, "hero", 999);
hero._x = (eval (("L" + _level0.global_level) + "_heroi") * 40) + 21;
hero._y = 611;
hero.start_y = (eval (("L" + _level0.global_level) + "_heroj") * 40) + 11;
hero._visible = true;
hero_source._visible = false;
if (boss_level) {
boss_life.duplicateMovieClip("boss_life1", 4004);
boss_life1._x = 330;
boss_life1._y = 28;
boss_life1._visible = true;
}
world2._visible = false;
next_level = false;
Frame 8
stop();
Frame 9
function SoundClickButton() {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_clickbutton].start();
}
}
function SoundActivateButton() {
if (!_level0.no_sound) {
_level0.snds[_level0.snd_activatebutton].start();
}
}
if (_root.alawar_f != undefined) {
reg_button._visible = false;
menubar.gotoAndStop(2);
play_button._x = play_button._x + 72;
help_button._x = help_button._x + 72;
menubar._x = menubar._x + 72;
}
_quality = "HIGH";
if (menu_button1 != undefined) {
menu_button1._visible = false;
}
if (dload_button1 != undefined) {
dload_button1._visible = false;
}
play_button.onRelease = function () {
first_time = false;
gotoAndPlay(first_game_frame);
};
play_button.onPress = SoundClickButton;
play_button.onRollOver = SoundActivateButton;
help_button.onRelease = function () {
gotoAndPlay(first_game_frame + 5);
};
help_button.onPress = SoundClickButton;
help_button.onRollOver = SoundActivateButton;
reg_button.onRelease = function () {
gotoAndPlay(first_game_frame + 9);
};
reg_button.onPress = SoundClickButton;
reg_button.onRollOver = SoundActivateButton;
if (close_f == undefined) {
exit_button._visible = false;
exit_button._visible = false;
} else {
exit_button._visible = true;
exit_button._visible = true;
}
Frame 10
stop();
Frame 11
_quality = "HIGH";
ok_button.onRelease = function () {
gotoAndPlay(first_game_frame + 3);
};
ok_button.onPress = SoundClickButton;
ok_button.onRollOver = SoundActivateButton;
next_button.onRelease = function () {
gotoAndPlay(first_game_frame + 7);
};
next_button.onPress = SoundClickButton;
next_button.onRollOver = SoundActivateButton;
Frame 12
stop();
Frame 13
_quality = "HIGH";
ok_button.onRelease = function () {
gotoAndPlay(first_game_frame + 3);
};
ok_button.onPress = SoundClickButton;
ok_button.onRollOver = SoundActivateButton;
prev_button.onRelease = function () {
gotoAndPlay(first_game_frame + 5);
};
prev_button.onPress = SoundClickButton;
prev_button.onRollOver = SoundActivateButton;
Frame 14
stop();
Frame 15
GotoDownload = function () {
if (_root.link != undefined) {
getURL (link, "_blank");
} else {
getURL ("http://www.alawar.com/download/snowy.exe", "_blank");
}
if (_root.dload_f != undefined) {
cstr = ("JavaScript:" + dload_f) + "()";
getURL (cstr);
}
};
_quality = "HIGH";
buy_button.onPress = SoundClickButton;
buy_button.onRollOver = SoundActivateButton;
later_button.onRelease = function () {
gotoAndPlay(first_game_frame + 3);
};
buy_button.onRelease = function () {
GotoDownload();
};
later_button.onPress = SoundClickButton;
later_button.onRollOver = SoundActivateButton;
Frame 16
stop();
Symbol 50 MovieClip Frame 1
function init() {
this._alpha = 0;
up1._x = INITXUP;
down1._x = INITXDOWN - (1 * down1._width);
if (up2 != undefined) {
removeMovieClip(up2);
}
if (down2 != undefined) {
removeMovieClip(down2);
}
if (up3 != undefined) {
removeMovieClip(up3);
}
if (down3 != undefined) {
removeMovieClip(down3);
}
}
function start() {
duplicateMovieClip (up1, "up2", this.getNextHighestDepth());
duplicateMovieClip (up1, "up3", this.getNextHighestDepth());
duplicateMovieClip (down1, "down2", this.getNextHighestDepth());
duplicateMovieClip (down1, "down3", this.getNextHighestDepth());
up2._x = up1._width;
up3._x = up1._width * 2;
down2._x = 0;
down3._x = down1._width;
this.onEnterFrame = ef_start;
}
function ef_start() {
up1._x = up1._x - SHIFTSTEP;
up2._x = up2._x - SHIFTSTEP;
up3._x = up3._x - SHIFTSTEP;
down1._x = down1._x + SHIFTSTEP;
down2._x = down2._x + SHIFTSTEP;
down3._x = down3._x + SHIFTSTEP;
i = 1;
while (i <= 3) {
if (this["up" + i]._x < (-1 * up1._width)) {
this["up" + i]._x = up1._width * 2;
}
if (this["down" + i]._x > (2 * down1._width)) {
this["down" + i]._x = -1 * down1._width;
}
i++;
}
if (this._alpha <= (ALPHA - ALPHASTEP)) {
this._alpha = this._alpha + ALPHASTEP;
} else {
this._alpha = ALPHA;
}
}
var INITXUP = 0;
var INITXDOWN = 0;
var SHIFTSTEP = 1;
var ALPHASTEP = 0.7;
var ALPHA;
Symbol 52 MovieClip Frame 1
function init() {
text1.init();
text1.ALPHA = 75;
text2.init();
text2.ALPHA = 15;
}
function start() {
text1.start();
text2.start();
}
Symbol 56 MovieClip Frame 1
FirstTime = true;
Symbol 56 MovieClip Frame 28
if (FirstTime) {
stop();
FirstTime = false;
}
Symbol 56 MovieClip Frame 55
gotoAndPlay (2);
Symbol 76 MovieClip Frame 1
function start() {
Cnt = 0;
this.onEnterFrame = ef_start;
}
function ef_start() {
var _local3;
var _local4;
Cnt++;
if (Cnt < LFRAMES) {
i = 1;
while (i <= 10) {
_local4 = (INITAMP * Math.sin(((((Math.PI*2) / LFRAMES) / 4) * Cnt) + (Math.PI/4))) * (1 - (Cnt / LFRAMES));
_local3 = 100 - (_local4 * Math.sin((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) + (i * LV))));
this["L" + i]._xscale = _local3;
this["L" + i]._yscale = _local3;
_local3 = this["L" + i]._xscale - 100;
if (_local3 > 0) {
if (_local3 > 19) {
this["L" + i]._alpha = (100 - (_local3 * 2.1)) - 20;
} else {
this["L" + i]._alpha = 100 - (_local3 * 2.1);
}
}
i++;
}
} else {
i = 1;
while (i <= 10) {
this["L" + i]._xscale = 100;
this["L" + i]._yscale = 100;
this["L" + i]._alpha = 100;
i++;
}
this.onEnterFrame = undefined;
_parent.dummy.onMouseMove = _parent.go;
}
}
function wave(cx) {
OldCX = CX;
CX = cx;
Cnt = 0;
startf = false;
this.onEnterFrame = ef_wave;
}
function ef_wave() {
var _local3;
var _local5;
var _local4;
Cnt++;
if ((Cnt > 1) && (!startf)) {
return(undefined);
}
if (Cnt < LFRAMES) {
i = 1;
while (i <= 10) {
_local4 = ((((Math.PI*2) * CX) / this._width) * 0.7) + 0.1;
_local5 = (INITAMP * Math.sin(((((Math.PI*2) / LFRAMES) / 4) * Cnt) + (Math.PI/4))) * (1 - (Cnt / LFRAMES));
if ((CX - OldCX) >= 0) {
_local3 = 100 - (_local5 * Math.sin(((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) + (i * LV))) + _local4));
} else {
_local3 = 100 - (_local5 * Math.sin(((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) - (i * LV))) + _local4));
}
if (_local3 < 100) {
_local3 = 100 - ((100 - _local3) * 0.8);
}
this["L" + i]._xscale = _local3;
this["L" + i]._yscale = _local3;
_local3 = this["L" + i]._xscale - 100;
if (_local3 > 0) {
if (_local3 > 18) {
this["L" + i]._alpha = (100 - (_local3 * 2.1)) - 20;
} else {
this["L" + i]._alpha = 100 - (_local3 * 2.1);
}
}
i++;
}
} else {
i = 1;
while (i <= 10) {
this["L" + i]._xscale = 100;
this["L" + i]._yscale = 100;
this["L" + i]._alpha = 100;
i++;
}
this.onEnterFrame = undefined;
_parent.dummy.onMouseMove = _parent.go;
}
}
var LFRAMES = 100;
var LPER = 3;
var INITAMP = 27;
var INITPH = 5;
var LV = 2;
var Cnt;
var CX;
var OldCX = 0;
var startf;
Symbol 82 MovieClip Frame 1
function go() {
if ((((dummy._xmouse < dummy._width) && (dummy._xmouse > 0)) && (dummy._ymouse < dummy._height)) && (dummy._ymouse > 0)) {
loading.wave(dummy._xmouse);
}
}
dummy.useHandCursor = false;
dummy.onRollOut = function () {
loading.startf = true;
};
Symbol 87 MovieClip Frame 1
function start() {
duplicateMovieClip (prnload, "prnload1", this.getNextHighestDepth());
duplicateMovieClip (prnload, "prnload2", this.getNextHighestDepth());
prnload._alpha = PRALPHAINIT;
prnload._xscale = PRMAGNINIT;
prnload._yscale = PRMAGNINIT;
prnload1._alpha = PRALPHAINIT1;
prnload1._xscale = PRMAGNINIT1;
prnload1._yscale = PRMAGNINIT1;
prnload2._alpha = PRALPHAINIT2;
prnload2._xscale = PRMAGNINIT2;
prnload2._yscale = PRMAGNINIT2;
this.onEnterFrame = ef1_start;
}
function ef1_start() {
if (prnload._xscale > 100) {
tmp = PRMAGNSTEP;
if ((prnload._xscale - tmp) < 0) {
tmp = prnload._xscale - 100;
}
prnload._xscale = prnload._xscale - tmp;
prnload._yscale = prnload._yscale - tmp;
prnload._alpha = prnload._alpha + (PRALPHASTEP * PRALPHASTEP);
} else {
prnload._xscale = prnload._xscale - 0.8;
prnload._yscale = prnload._yscale - 0.8;
}
if (prnload._xscale < PRSTART1) {
if (prnload1._xscale > 100) {
tmp = (PRMAGNSTEP1 * PRMAGNSTEP1) / 23;
if ((prnload1._xscale - tmp) < 100) {
tmp = prnload1._xscale - 100;
}
prnload1._xscale = prnload1._xscale - tmp;
prnload1._yscale = prnload1._yscale - tmp;
if (prnload._xscale > 100) {
prnload1._alpha = prnload1._alpha + (PRALPHASTEP1 * PRALPHASTEP1);
} else {
prnload1._alpha = prnload1._alpha - (PRALPHASTEP1 * PRALPHASTEP1);
}
} else {
removeMovieClip(prnload1);
}
}
if (prnload._xscale < PRSTART2) {
if (prnload2._xscale > 100) {
tmp = (PRMAGNSTEP2 * PRMAGNSTEP2) / 15.4;
if ((prnload2._xscale - tmp) < 100) {
tmp = prnload2._xscale - 100;
}
prnload2._xscale = prnload2._xscale - tmp;
prnload2._yscale = prnload2._yscale - tmp;
if (prnload1._xscale != 100) {
prnload2._alpha = prnload2._alpha + (PRALPHASTEP2 * PRALPHASTEP2);
} else {
prnload2._alpha = prnload2._alpha - (PRALPHASTEP2 * PRALPHASTEP2);
}
} else {
removeMovieClip(prnload2);
}
}
if (prnload2 == undefined) {
Cnt = 0;
prnload._alpha = 100;
shadow.play();
prnload.loading.start();
prnload.progress._alpha = 35;
this.onEnterFrame = ef2_start;
_root.onEnterFrame = _root.ef_go;
}
}
function ef2_start() {
Cnt++;
if (Cnt == TEXTSTART) {
text.start();
}
if (Cnt < WVFRAMES) {
tmp = 100 - ((WVINITAMP * (1 - (Cnt / WVFRAMES))) * Math.sin((((Math.PI * Cnt) / WVFRAMES) * WVPERIODS) + (Math.PI/4)));
prnload._xscale = tmp;
prnload._yscale = tmp;
maskmc._xscale = tmp;
maskmc._yscale = tmp;
filled._xscale = tmp;
filled._yscale = tmp;
} else {
this.onEnterFrame = undefined;
}
}
function init() {
text.init();
Cnt = 0;
this._alpha = 100;
htmp = maskmc.target._height;
ytmp = maskmc.target._y;
maskmc.target._height = 0;
maskmc.target._y = ytmp + htmp;
}
function setprogress(pr) {
maskmc.target._height = (pr * htmp) / 100;
maskmc.target._y = ytmp + (htmp * (1 - (pr / 100)));
}
var PRMAGNINIT = 1000;
var PRALPHAINIT = 0;
var PRMAGNSTEP = 25;
var PRALPHASTEP = 1.5;
var PRMAGNINIT1 = 1000;
var PRALPHAINIT1 = 0;
var PRMAGNSTEP1 = 25;
var PRALPHASTEP1 = 1.5;
var PRSTART1 = 700;
var PRMAGNINIT2 = 1000;
var PRALPHAINIT2 = 0;
var PRMAGNSTEP2 = 25;
var PRALPHASTEP2 = 1.6;
var PRSTART2 = 300;
var WVFRAMES = 85;
var WVINITAMP = 17;
var WVPERIODS = 3.5;
var TEXTSTART = 30;
var htmp;
var ytmp;
var Cnt;
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
stop();
Symbol 115 MovieClip Frame 3
stop();
Symbol 115 MovieClip Frame 4
stop();
Symbol 115 MovieClip Frame 5
stop();
Symbol 115 MovieClip Frame 6
stop();
Symbol 115 MovieClip Frame 7
stop();
Symbol 115 MovieClip Frame 8
stop();
Symbol 115 MovieClip Frame 9
stop();
Symbol 115 MovieClip Frame 10
stop();
Symbol 115 MovieClip Frame 11
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 2
stop();
Symbol 137 MovieClip Frame 3
stop();
Symbol 137 MovieClip Frame 4
stop();
Symbol 137 MovieClip Frame 5
stop();
Symbol 137 MovieClip Frame 6
stop();
Symbol 137 MovieClip Frame 7
stop();
Symbol 137 MovieClip Frame 8
stop();
Symbol 137 MovieClip Frame 9
stop();
Symbol 137 MovieClip Frame 10
stop();
Symbol 137 MovieClip Frame 11
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
stop();
Symbol 159 MovieClip Frame 3
stop();
Symbol 159 MovieClip Frame 4
stop();
Symbol 159 MovieClip Frame 5
stop();
Symbol 159 MovieClip Frame 6
stop();
Symbol 159 MovieClip Frame 7
stop();
Symbol 159 MovieClip Frame 8
stop();
Symbol 159 MovieClip Frame 9
stop();
Symbol 159 MovieClip Frame 10
stop();
Symbol 159 MovieClip Frame 11
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 3
stop();
Symbol 201 MovieClip Frame 4
stop();
Symbol 201 MovieClip Frame 5
stop();
Symbol 201 MovieClip Frame 6
stop();
Symbol 201 MovieClip Frame 7
stop();
Symbol 201 MovieClip Frame 8
stop();
Symbol 201 MovieClip Frame 9
stop();
Symbol 201 MovieClip Frame 10
stop();
Symbol 201 MovieClip Frame 11
stop();
Symbol 201 MovieClip Frame 12
stop();
Symbol 201 MovieClip Frame 13
stop();
Symbol 201 MovieClip Frame 14
stop();
Symbol 201 MovieClip Frame 15
stop();
Symbol 201 MovieClip Frame 16
stop();
Symbol 201 MovieClip Frame 17
stop();
Symbol 201 MovieClip Frame 18
stop();
Symbol 201 MovieClip Frame 19
stop();
Symbol 201 MovieClip Frame 20
stop();
Symbol 474 MovieClip Frame 22
stop();
Symbol 505 MovieClip Frame 17
gotoAndPlay ("wet");
Symbol 505 MovieClip Frame 31
gotoAndPlay ("walk");
Symbol 505 MovieClip Frame 48
gotoAndPlay ("turn");
Symbol 505 MovieClip Frame 61
gotoAndPlay ("fall");
Symbol 505 MovieClip Frame 75
gotoAndPlay ("run");
Symbol 505 MovieClip Frame 250
gotoAndPlay ("wet");
Symbol 505 MovieClip Frame 251
stop();
Symbol 505 MovieClip Frame 252
stop();
Symbol 505 MovieClip Frame 253
stop();
Symbol 505 MovieClip Frame 254
stop();
Symbol 505 MovieClip Frame 255
stop();
Symbol 505 MovieClip Frame 256
stop();
Symbol 505 MovieClip Frame 257
stop();
Symbol 505 MovieClip Frame 258
stop();
Symbol 505 MovieClip Frame 259
stop();
Symbol 505 MovieClip Frame 260
gotoAndPlay ("ball");
Symbol 505 MovieClip Frame 274
gotoAndPlay ("knock");
Symbol 505 MovieClip Frame 306
stop();
Symbol 505 MovieClip Frame 322
gotoAndPlay ("roll");
Symbol 533 MovieClip Frame 22
stop();
Symbol 534 MovieClip Frame 10
gotoAndPlay (1);
Symbol 534 MovieClip Frame 12
gotoAndPlay (11);
Symbol 738 MovieClip Frame 22
stop();
Symbol 739 MovieClip Frame 1
stop();
Symbol 739 MovieClip Frame 22
stop();
Symbol 739 MovieClip Frame 23
stop();
Symbol 740 MovieClip Frame 1
stop();
Symbol 740 MovieClip Frame 2
stop();
Symbol 740 MovieClip Frame 3
stop();
Symbol 740 MovieClip Frame 4
stop();
Symbol 740 MovieClip Frame 5
stop();
Symbol 740 MovieClip Frame 6
stop();
Symbol 740 MovieClip Frame 7
stop();
Symbol 740 MovieClip Frame 8
stop();
Symbol 740 MovieClip Frame 9
stop();
Symbol 749 MovieClip Frame 1
stop();
Symbol 749 MovieClip Frame 2
stop();
Symbol 749 MovieClip Frame 3
stop();
Symbol 749 MovieClip Frame 4
stop();
Symbol 1019 MovieClip Frame 17
gotoAndPlay ("wet");
Symbol 1019 MovieClip Frame 31
gotoAndPlay ("walk");
Symbol 1019 MovieClip Frame 48
gotoAndPlay ("turn");
Symbol 1019 MovieClip Frame 61
gotoAndPlay ("fall");
Symbol 1019 MovieClip Frame 236
gotoAndPlay ("wet");
Symbol 1019 MovieClip Frame 237
stop();
Symbol 1019 MovieClip Frame 238
stop();
Symbol 1019 MovieClip Frame 239
stop();
Symbol 1019 MovieClip Frame 240
stop();
Symbol 1019 MovieClip Frame 241
stop();
Symbol 1019 MovieClip Frame 242
stop();
Symbol 1019 MovieClip Frame 243
stop();
Symbol 1019 MovieClip Frame 244
stop();
Symbol 1019 MovieClip Frame 245
stop();
Symbol 1019 MovieClip Frame 246
gotoAndPlay ("ball");
Symbol 1019 MovieClip Frame 260
gotoAndPlay ("knock");
Symbol 1019 MovieClip Frame 292
stop();
Symbol 1019 MovieClip Frame 305
stop();
Symbol 1019 MovieClip Frame 321
stop();
Symbol 1056 MovieClip Frame 13
stop();
Symbol 1057 MovieClip Frame 1
stop();
Symbol 1057 MovieClip Frame 2
stop();
Symbol 1057 MovieClip Frame 3
stop();
Symbol 1057 MovieClip Frame 4
stop();
Symbol 1057 MovieClip Frame 5
stop();
Symbol 1058 MovieClip Frame 31
stop();
Symbol 1059 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1059 MovieClip Frame 25
stop();
Symbol 1314 MovieClip Frame 17
gotoAndPlay ("wet");
Symbol 1314 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 1314 MovieClip Frame 39
gotoAndPlay ("turn");
Symbol 1314 MovieClip Frame 52
gotoAndPlay ("fall");
Symbol 1314 MovieClip Frame 227
gotoAndPlay ("wet");
Symbol 1314 MovieClip Frame 228
stop();
Symbol 1314 MovieClip Frame 229
stop();
Symbol 1314 MovieClip Frame 230
stop();
Symbol 1314 MovieClip Frame 231
stop();
Symbol 1314 MovieClip Frame 232
stop();
Symbol 1314 MovieClip Frame 233
stop();
Symbol 1314 MovieClip Frame 234
stop();
Symbol 1314 MovieClip Frame 235
stop();
Symbol 1314 MovieClip Frame 236
stop();
Symbol 1314 MovieClip Frame 237
gotoAndPlay ("ball");
Symbol 1314 MovieClip Frame 251
gotoAndPlay ("knock");
Symbol 1314 MovieClip Frame 283
stop();
Symbol 1314 MovieClip Frame 300
gotoAndPlay ("stand");
Symbol 1314 MovieClip Frame 317
gotoAndPlay ("fall");
Symbol 1369 MovieClip Frame 9
gotoAndStop (1);
Symbol 1369 MovieClip Frame 17
stop();
Symbol 1369 MovieClip Frame 26
gotoAndStop (1);
Symbol 1473 MovieClip Frame 12
stop();
Symbol 1474 MovieClip Frame 16
stop();
Symbol 1474 MovieClip Frame 18
gotoAndPlay ("stand");
Symbol 1474 MovieClip Frame 42
stop();
Symbol 1531 MovieClip Frame 171
gotoAndPlay ("stand");
Symbol 1531 MovieClip Frame 188
gotoAndPlay ("stand");
Symbol 1811 MovieClip Frame 16
gotoAndPlay ("wet");
Symbol 1811 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 1811 MovieClip Frame 47
gotoAndPlay ("turn");
Symbol 1811 MovieClip Frame 64
gotoAndPlay ("fall");
Symbol 1811 MovieClip Frame 239
gotoAndPlay ("wet");
Symbol 1811 MovieClip Frame 240
stop();
Symbol 1811 MovieClip Frame 241
stop();
Symbol 1811 MovieClip Frame 242
stop();
Symbol 1811 MovieClip Frame 243
stop();
Symbol 1811 MovieClip Frame 244
stop();
Symbol 1811 MovieClip Frame 245
stop();
Symbol 1811 MovieClip Frame 246
stop();
Symbol 1811 MovieClip Frame 247
stop();
Symbol 1811 MovieClip Frame 248
stop();
Symbol 1811 MovieClip Frame 249
gotoAndPlay ("ball");
Symbol 1811 MovieClip Frame 262
gotoAndPlay ("knock");
Symbol 1811 MovieClip Frame 294
stop();
Symbol 1811 MovieClip Frame 311
gotoAndPlay ("fly");
Symbol 1821 MovieClip Frame 1
stop();
Symbol 1821 MovieClip Frame 2
stop();
Symbol 1821 MovieClip Frame 3
stop();
Symbol 1821 MovieClip Frame 4
stop();
Symbol 1821 MovieClip Frame 5
stop();
Symbol 1821 MovieClip Frame 6
stop();
Symbol 1821 MovieClip Frame 7
stop();
Symbol 2108 MovieClip Frame 16
gotoAndPlay ("stand");
Symbol 2108 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 2108 MovieClip Frame 41
gotoAndPlay ("jump");
Symbol 2108 MovieClip Frame 50
gotoAndPlay ("throw");
Symbol 2108 MovieClip Frame 63
gotoAndPlay ("kick");
Symbol 2108 MovieClip Frame 79
gotoAndPlay ("push");
Symbol 2108 MovieClip Frame 89
gotoAndPlay ("insnowball");
Symbol 2108 MovieClip Frame 106
gotoAndPlay ("death");
Symbol 2108 MovieClip Frame 122
stop();
Symbol 2108 MovieClip Frame 136
gotoAndPlay ("run");
Symbol 2108 MovieClip Frame 153
gotoAndPlay ("happy");
Symbol 2124 MovieClip Frame 41
stop();
Symbol 2128 MovieClip Frame 20
gotoAndPlay (1);
Symbol 2131 MovieClip Frame 20
gotoAndPlay (1);
Symbol 2134 MovieClip Frame 20
gotoAndPlay (1);
Symbol 2137 MovieClip Frame 1
stop();
Symbol 2137 MovieClip Frame 2
stop();
Symbol 2140 MovieClip Frame 1
stop();
Symbol 2140 MovieClip Frame 2
stop();
Symbol 2144 MovieClip Frame 1
btn.onRelease = function () {
_level0.score1.removeMovieClip();
_level0.level1.removeMovieClip();
_level0.lives1.removeMovieClip();
var j = 0;
while (j < 14) {
var i = 0;
while (i < 20) {
if (eval ((("_level0.blocks_" + j) + "_") + i) != undefined) {
eval ((("_level0.blocks_" + j) + "_") + i).removeMovieClip();
}
i++;
}
j++;
}
var i = 1;
while (i <= _level0.num_monsters) {
if (eval ("_level0.monster" + i) != undefined) {
eval ("_level0.monster" + i).removeMovieClip();
}
i++;
}
var i = 0;
while (i <= _level0.snowball_count) {
if (eval ("_level0.snowball" + i) != undefined) {
eval ("_level0.snowball" + i).removeMovieClip();
}
if (eval ("_level0.flyscore" + i) != undefined) {
eval ("_level0.flyscore" + i).removeMovieClip();
}
if (eval ("_level0.bonus_hint" + i) != undefined) {
eval ("_level0.bonus_hint" + i).removeMovieClip();
}
if (eval ("_level0.bubbleballsplinter" + i) != undefined) {
eval ("_level0.bubbleballsplinter" + i).removeMovieClip();
}
if (eval ("_level0.bubbleball" + i) != undefined) {
eval ("_level0.bubbleball" + i).removeMovieClip();
}
if (eval ("_level0.bonus" + i) != undefined) {
eval ("_level0.bonus" + i).removeMovieClip();
}
i++;
}
if (_level0.statuspanel1 != undefined) {
_level0.statuspanel1.removeMovieClip();
}
if (_level0.alawar_logo1 != undefined) {
_level0.alawar_logo1.removeMovieClip();
}
if (_level0.aliasworlds_logo1 != undefined) {
_level0.aliasworlds_logo1.removeMovieClip();
}
if (_level0.score1 != undefined) {
_level0.score1.removeMovieClip();
}
if (_level0.level1 != undefined) {
_level0.level1.removeMovieClip();
}
if (_level0.lives1 != undefined) {
_level0.lives1.removeMovieClip();
}
if (_level0.boss_life1 != undefined) {
_level0.boss_life1.removeMovieClip();
}
_level0.hero._visible = false;
_visible = false;
_root.dload_button1._visible = false;
_root.gotoAndPlay(_level0.first_game_frame + 3);
};
Symbol 2147 Button
on (rollOver) {
hint_o._visible = true;
}
on (rollOut) {
hint_o._visible = false;
}
Symbol 2151 MovieClip Frame 1
if (_root.alawar_f != undefined) {
this._visible = false;
}
Instance of Symbol 2150 MovieClip "hint_o" in Symbol 2151 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 2156 MovieClip Frame 1
stop();
Symbol 2156 MovieClip Frame 2
stop();
Symbol 2159 MovieClip Frame 17
stop();
Symbol 2164 MovieClip Frame 17
stop();
Symbol 2168 MovieClip Frame 17
stop();
Symbol 2174 MovieClip Frame 1
btn.onRelease = function () {
fscommand ("quit");
cstr = ("JavaScript:" + _root.close_f) + "()";
getURL (cstr);
};
Symbol 2186 MovieClip Frame 17
stop();
Symbol 2190 MovieClip Frame 17
stop();
Symbol 2201 MovieClip Frame 17
stop();
Symbol 2216 MovieClip Frame 17
stop();
Symbol 2220 MovieClip Frame 17
stop();