Combined Code
frame 1 {
}
frame 1 {
MENU = new ContextMenu();
MENU.hideBuiltInItems();
_root.menu = MENU;
stop();
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
domain.text = real_domain[0];
if (real_domain[0].indexOf('') == -1) {
_root._alpha = 0;
} else {
onEnterFrame = function () {
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
preloader.gotoAndStop(Math.floor(loaded * 100 / total));
if (loaded >= total) {
nextFrame();
}
};
}
}
movieClip 41 {
}
movieClip 43 {
}
movieClip 45 {
}
movieClip 54 {
frame 1 {
play();
}
}
movieClip 55 {
}
movieClip 60 {
}
// unknown tag 88 length 310
button 68 {
on (release) {
getURL('http://www.5hippos.com', '_blank');
}
}
frame 2 {
onEnterFrame = null;
play();
}
frame 2 {
var lang = new Array();
var cl = 'en';
lang.en = new Array();
lang.en.New game = 'New game';
lang.en.Continue = 'Continue';
lang.en.Statistics = 'Statistics';
lang.en.Achievements = 'Achievements';
lang.en.Help = 'Help';
lang.en.Credits = 'Credits';
lang.en.Progress = 'Progress';
lang.en.Stars = 'Stars';
lang.en.Ice blocks = 'Ice blocks';
lang.en.Mini games = 'Mini games';
lang.en.Total score = 'Total Score';
lang.en.Score = 'Score';
lang.en.Good grandson = 'Good grandson';
lang.en.Complete 10 levels = 'Complete 10 levels';
lang.en.Brave grandson = 'Brave grandson';
lang.en.Complete 20 levels = 'Complete 20 levels';
lang.en.Hero = 'Hero';
lang.en.Complete 30 levels = 'Complete 30 levels';
lang.en.Mini star tracker = 'Mini star tracker';
lang.en.Collect 10 stars = 'Collect 10 stars';
lang.en.Star tracker = 'Star tracker';
lang.en.Collect 20 stars = 'Collect 20 stars';
lang.en.Super star tracker = 'Super Star Tracker';
lang.en.Collect 30 stars = 'Collect 30 stars';
lang.en.Mini ice breaker = 'Mini ice breaker';
lang.en.Destroy 100 ice blocks = 'Destroy 100 ice blocks';
lang.en.Ice breaker = 'Ice breaker';
lang.en.Destroy 200 ice blocks = 'Destroy 200 ice blocks';
lang.en.Super ice breaker = 'Super ice breaker';
lang.en.Destroy 290 ice blocks = 'Destroy 290 ice blocks';
lang.en.Runner = 'Runner';
lang.en.Finish level 2-1 in 00:05 or less = 'Finish level 2-1 in 00:05 or less';
lang.en.Top runner = 'Top runner';
lang.en.Finish level 2-9 in 00:50 or less = 'Finish level 2-9 in 00:50 or less';
lang.en.Extreme = 'Extreme';
lang.en.Finish level 3-9 in 00:30 or less = 'Finish level 3-9 in 00:30 or less';
lang.en.Controls = 'Controls';
lang.en.Move = 'Move';
lang.en.Fire = 'Fire';
lang.en.Prev (previous) = 'Prev (previous)';
lang.en.Next = 'Next';
lang.en.Pick-ups = 'Pick-ups';
lang.en.Goal = 'Goal';
lang.en.Extra points = 'Extra points';
lang.en.Shoot to break ice = 'Shoot to break ice';
lang.en.Swap water and ice = 'Swap water and ice';
lang.en.Enemy: Bear = 'Enemy: Bear';
lang.en.Bears can\'t jump onto/off of two blocks of height = 'Bears can\'t jump onto/off of two blocks of height';
lang.en.Bears can only jump onto/off of one block of height = 'Bears can only jump onto/off of one blocks of height';
lang.en.Bears can also swap ice and water = 'Bears can also swap ice and water';
lang.en.Bears can\'t swim = 'Bears can\'t swim';
lang.en.Enemy: Wizard = 'Enemy: Wizard';
lang.en.Wizards throw icicles at you = 'Wizards throws icicles at you';
lang.en.Icicles freeze water and break ice = 'Icicles freeze water and break ice';
lang.en.Your previous game will be lost = 'Your previous game will be lost';
lang.en.OK = 'OK';
lang.en.Cancel = 'Cancel';
lang.en.Skip = 'Skip';
lang.en.Level = 'Level';
lang.en.Play = 'Play';
lang.en.Main menu = 'Main menu';
lang.en.Mini game = 'Mini game';
lang.en.Mini game unlocked = 'Mini game unlocked';
lang.en.Achievement unlocked = 'Achievement unlocked';
lang.en.Locked = 'Locked';
lang.en.Collected = 'Collected';
lang.en.Not collected = 'Not collected';
lang.en.5 more stars from world 1 to unlock a mini game = '5 more stars from world 1 to unlock a mini game';
lang.en.5 more stars from world 2 to unlock a mini game = '5 more stars from world 2 to unlock a mini game';
lang.en.5 more stars from world 3 to unlock a mini game = '5 more stars from world 3 to unlock a mini game';
lang.en.Catch as many stars, magnets and clocks as you can = 'Catch as many stars, magnets and clocks as you can';
lang.en.Collect all the stars and avoid shadows that copy your moves = 'Collect all the stars and avoid shadows that copy your moves';
lang.en.Collect all the stars and avoid the black rotating spikes = 'Collect all the stars and avoid the black rotating spikes';
lang.en.Star shower = 'star shower';
lang.en.Copycats = 'copycats';
lang.en.Spiky run = 'spiky run';
lang.en.Submit = 'Submit';
lang.en.Retry = 'Retry';
lang.en.Time = 'Time';
lang.en.Blocks = 'Blocks';
lang.en.Star = 'Star';
lang.en.Music = 'Music';
lang.en.Sound = 'Sound';
lang.en.Go back to map? = 'Go back to map?';
lang.en.Go back to main menu? = 'Go back to main menu?';
lang.en.Resume = 'Resume';
lang.en.Quit = 'Quit';
lang.en.Map = 'Map';
lang.he = new Array();
lang.he.New game = 'משחק חדש';
lang.he.Continue = 'המשך';
lang.he.Statistics = 'סטטיסטיקות';
lang.he.Achievements = 'הישגי×';
lang.he.Help = 'עזרה';
lang.he.Credits = '×ודות';
lang.he.Progress = 'התקדמות';
lang.he.Stars = 'כוכבי×';
lang.he.Ice blocks = 'קוביות קרח';
lang.he.Mini games = 'משחקון';
lang.he.Total score = 'ללוכ ×“×•×§×™× ';
lang.he.Score = '× ×™×§×•×“';
lang.he.New game = 'שדח קחשמ';
lang.he.Continue = 'ךשמה';
lang.he.Statistics = 'תוקיטסיטטס';
lang.he.Achievements = '×יגשיה';
lang.he.Help = 'הרזע';
lang.he.Credits = 'תודו×';
lang.he.Progress = 'תומדקתה';
lang.he.Stars = '×יבכוכ';
lang.he.Ice blocks = 'חרק תויבוק';
lang.he.Mini games = 'ןוקחשמ';
lang.he.Total Score = 'ללוכ ×“×•×§×™× ';
lang.he.Score = '×“×•×§×™× ';
lang.he.Good grandson = 'בוט ×“×›× ';
lang.he.Complete 10 levels = '×יבלש 10 ×לשה';
lang.he.Brave grandson = '×¥×™×ž× ×“×›× ';
lang.he.Complete 20 levels = '×יבלש 20 ×לשה';
lang.he.Hero = 'רוביג';
lang.he.Complete 30 levels = '×יבלש 30 ×לשה';
lang.he.Mini star tracker = '××™× ×˜×§ ×יבכוכ ×¨×—× ×‘×§×•×¢';
lang.he.Collect 10 stars = '×יבכוכ 10 ףוס×';
lang.he.Star tracker = ' ×יבכוכ ×¨×—× ×‘×§×•×¢';
lang.he.Collect 20 stars = '×יבכוכ 20 ףוס×';
lang.he.Super star tracker = '×יבכוכ ןפס×';
lang.he.Collect 30 stars = '×יבכוכ 30 ףוס×';
lang.he.Mini ice breaker = 'ןטקה חרקה רבוש';
lang.he.Destroy 100 ice blocks = 'חרק תויבוק 100 רובש';
lang.he.Ice breaker = 'חרקה רבוש';
lang.he.Destroy 200 ice blocks = 'חרק תויבוק 200 רובש';
lang.he.Super ice breaker = 'חרקה דימשמ';
lang.he.Destroy 290 ice blocks = 'חרק תויבוק 290 רובש';
lang.he.Runner = 'ןצ×';
lang.he.Finish level 2-1 in 00:05 or less = 'תוחפ ×•× ×ª×•×™× ×© 5 ב 2-1 ×יבלש ×ª× ×ייס';
lang.he.Top runner = 'לע ןצ×';
lang.he.Finish level 2-9 in 00:50 or less = 'תוחפ ×•× ×ª×•×™× ×© 50 ב 2-9 ×יבלש ×ª× ×ייס';
lang.he.Extreme = '×יהדמ';
lang.he.Finish level 3-9 in 00:30 or less = 'תוחפ ×•× ×ª×•×™× ×© 30 ב 3-9 ×יבלש ×ª× ×ייס';
lang.he.Controls = '×ידקפ';
lang.he.Move = 'זוז';
lang.he.Fire = 'ש×';
lang.he.Prev = '×דוקה';
lang.he.Next = '×בה';
lang.he.Pick-ups = 'ףוס×ל';
lang.he.Goal = 'הרטמ';
lang.he.Extra points = '×£×¡×•× ×“×•×§×™× ';
lang.he.Shoot to break ice = 'חרקה ×ª× ×¨×•×‘×©×œ ×ª× ×ž לע הרית';
lang.he.Swap water and ice = 'חרקו ×ימ ןיב ףלחה';
lang.he.Enemy: Bear = 'בוד :ביו×';
lang.he.Bears can\'t jump onto/off of two blocks of height = '×יקולב ×™× ×© לש הבוגמ ×•× ×œ×¢ ץופקל ×ילוכי ×ל ×יבוד';
lang.he.Bears can only jump onto/off of one block of height = '×“×—× ×§×•×œ×‘ לש הבוגמ ×•× ×œ×¢ ץופקל ×ילוכי ×יבוד';
lang.he.Bears can also swap ice and water = 'חרקל ×ימ ןיב ףילחהל ×ילוכי ×יבוד';
lang.he.Bears can\'t swim = '×יחוש ×ל ×יבוד';
lang.he.Enemy: Wizard = '×סוק :ביו×';
lang.he.Wizards throw icicles at you = 'ךרבעל חרק ×™×‘×¦×™× ×יקרוז ×ימסוק';
lang.he.Icicles freeze water and break ice = 'חרק ×ירבושו ×ימ ××™×יפקמ חרק ×™×‘×¦×™× ';
lang.he.Your previous game will be lost = 'דב××™ ךלש ×דוקה קחשמה';
lang.he.OK = 'OK';
lang.he.Cancel = 'לוטיב';
lang.he.Skip = 'גלד';
lang.he.Level = 'בלש';
lang.he.Play = 'קחש';
lang.he.Main menu = 'יש×ר טירפת';
lang.he.Mini game = 'ןוקחשמ';
lang.he.Mini game unlocked = 'חותפ ןוקחשמ';
lang.he.Achievement unlocked = 'ןכדעתה גשיה';
lang.he.Locked = '×œ×•×¢× ';
lang.he.Collected = 'ףס×× ';
lang.he.Not collected = 'ףס×× ×ל';
lang.he.5 more stars from world 1 to unlock a mini game = 'ןוקחשמ רשפ×ל ×ª× ×ž לע 1 ×לועמ רתוי ×•× ×יבכוכ 5';
lang.he.5 more stars from world 2 to unlock a mini game = 'ןוקחשמ רשפ×ל ×ª× ×ž לע 2 ×לועמ רתוי ×•× ×יבכוכ 5';
lang.he.5 more stars from world 3 to unlock a mini game = 'ןוקחשמ רשפ×ל ×ª× ×ž לע 3 ×לועמ רתוי ×•× ×יבכוכ 5';
lang.he.Catch as many stars, magnets and clocks as you can = 'לכותש לככ ××™× ×•×¢×©×• ××™×˜× ×’×ž ,×יבכוכ סופת';
lang.he.Collect all the stars and avoid shadows that copy your moves = '×š×™×ª×•×¢×•× ×ª ×¨×—× ×יבקועש ×יללצהמ ×¢× ×ž×”×• ×יבכוכה לכ ×ª× ×£×•×¡×';
lang.he.Collect all the stars and avoid the black rotating spikes = '×ירוחשה ××™× ×¨×§×•×“×”×ž רהזהו ×יבכוכה לכ ×ª× ×£×•×¡×';
lang.he.Star shower = '×יבכוכ תחלקמ';
lang.he.Copycats = '××™× ×™×™×§×—';
lang.he.Spiky run = '××™× ×¨×§×•×“ תציר';
lang.he.Submit = 'חלש';
lang.he.Retry = 'בוש ×”×¡× ';
lang.he.Time = 'ןמז';
lang.he.Blocks = 'תויבוק';
lang.he.Star = '×יבכוכ';
lang.he.Music = 'הקיסומ';
lang.he.Sound = '×ילילצ';
lang.he.Go back to map? = 'הפמל רוזח';
lang.he.Go back to main menu? = 'יש×רה טירפתל רוזח';
lang.he.Resume = 'ךשמה';
lang.he.Quit = 'קיספהל';
lang.he.Map = 'הפמה';
lang.sr = new Array();
lang.sr.New game = 'Nova igra';
lang.sr.Continue = 'Nastavi';
lang.sr.Statistics = 'Statistika';
lang.sr.Achievements = 'Nagrade';
lang.sr.Help = 'Pomoć';
lang.sr.Credits = 'Zasluge';
lang.sr.Progress = 'Napredak';
lang.sr.Stars = 'Zvezde';
lang.sr.Ice blocks = 'Ledeni blokovi';
lang.sr.Mini games = 'Mini igre';
lang.sr.Score = 'Rezultat';
lang.sr.Total score = 'Ukupni rezultat';
lang.sr.Good grandson = 'Dobar unuk';
lang.sr.Complete 10 levels = 'Pređi 10 nivoa';
lang.sr.Brave grandson = 'Hrabri unuk';
lang.sr.Complete 20 levels = 'Pređi 20 nivoa';
lang.sr.Hero = 'Heroj';
lang.sr.Complete 30 levels = 'Pređi 30 nivoa';
lang.sr.Mini star tracker = 'Mali sakupljaÄ zvezda';
lang.sr.Collect 10 stars = 'Sakupi 10 zvezda';
lang.sr.Star tracker = 'SakupljaÄ zvezda';
lang.sr.Collect 20 stars = 'Sakupi 20 zvezda';
lang.sr.Super star tracker = 'Kolekcionar zvezda';
lang.sr.Collect 30 stars = 'Sakupi 30 zvezda';
lang.sr.Mini ice breaker = 'Mali ledolomac';
lang.sr.Destroy 100 ice blocks = 'Razbij 100 ledenih blokova';
lang.sr.Ice breaker = 'Ledolomac';
lang.sr.Destroy 200 ice blocks = 'Razbij 200 ledenih blokova';
lang.sr.Super ice breaker = 'Super ledolomac';
lang.sr.Destroy 290 ice blocks = 'Razbij 290 ledenih blokova';
lang.sr.Runner = 'TrkaÄ';
lang.sr.Finish level 2-1 in 00:05 or less = 'Pređi nivo 2-3 za 00:05 ili manje';
lang.sr.Top runner = 'Sprinter';
lang.sr.Finish level 2-9 in 00:50 or less = 'Pređi nivo 2-9 za 00:50 ili manje';
lang.sr.Extreme = 'Ekstrem';
lang.sr.Finish level 3-9 in 00:30 or less = 'Pređi nivo 3-9 za 00:30 ili manje';
lang.sr.Controls = 'Kontrole';
lang.sr.Move = 'Kretanje';
lang.sr.Fire = 'Pucanje';
lang.sr.Prev = 'Prethodni';
lang.sr.Next = 'Sledeći';
lang.sr.Pick-ups = 'Simboli';
lang.sr.Goal = 'Cilj';
lang.sr.Extra points = 'Dodatni poeni';
lang.sr.Shoot to break ice = 'Pucaj da razbiješ led';
lang.sr.Swap water and ice = 'Zameni vodu i led';
lang.sr.Enemy: Bear = 'Neprijatelj: Medved';
lang.sr.Bears can\'t jump onto/off of two blocks of height = 'Medvedi ne mogu skoÄiti sa/na dva bloka visine';
lang.sr.Bears can only jump onto/off of one block of height = 'Medvedi mogu skoÄiti sa/na jedan blok visine';
lang.sr.Bears can also swap ice and water = 'Medvedi takođe mogu zameniti led i vodu';
lang.sr.Bears can\'t swim = 'Medvedi ne umeju da plivaju';
lang.sr.Enemy: Wizard = 'Neprijatelj: ÄŒarobnjak';
lang.sr.Wizards throw icicles at you = 'ÄŒarobnjak baca ledenice na tebe';
lang.sr.Icicles freeze water and break ice = 'Ledenice pretvaraju vodu u led, a led lome';
lang.sr.Your previous game will be lost = 'Prethodna igra će biti obrisana';
lang.sr.OK = 'OK';
lang.sr.Cancel = 'Otkaži';
lang.sr.Skip = 'PreskoÄi';
lang.sr.Level = 'Nivo';
lang.sr.Play = 'Igraj';
lang.sr.Main menu = 'Glavni meni';
lang.sr.Mini game = 'Mini igra';
lang.sr.Mini game unlocked = 'Mini igra je otkljuÄana';
lang.sr.Achievement unlocked = 'Nagrada otkljuÄana';
lang.sr.Locked = 'ZakljuÄano';
lang.sr.Collected = 'Pokupljeno';
lang.sr.Not collected = 'Nepokupljeno';
lang.sr.5 more stars from world 1 to unlock a mini game = 'JoÅ¡ 5 zvezda iz prvog sveta da otkljuÄaÅ¡ mini igru';
lang.sr.5 more stars from world 2 to unlock a mini game = 'JoÅ¡ 5 zvezda iz drugog sveta da otkljuÄaÅ¡ mini igru';
lang.sr.5 more stars from world 3 to unlock a mini game = 'JoÅ¡ 5 zvezda iz trećeg sveta da otkljuÄaÅ¡ mini igru';
lang.sr.Catch as many stars, magnets and clocks as you can = 'Uhvati što više zvezdica, magneta i satova';
lang.sr.Collect all the stars and avoid shadows that copy your moves = 'Sakupi sve zvezde i izbegavaj senke koje te prate';
lang.sr.Collect all the stars and avoid the black rotating spikes = 'Sakupi sve zvezde i izbegavaj rotirajuće oštrice';
lang.sr.Star shower = 'padalice';
lang.sr.Copycats = 'dvojnici';
lang.sr.Spiky run = 'trnoviti put';
lang.sr.Submit = 'Pošalji';
lang.sr.Retry = 'Ponovi';
lang.sr.Time = 'Vreme';
lang.sr.Blocks = 'Blokovi';
lang.sr.Star = 'Zvezda';
lang.sr.Music = 'Muzika';
lang.sr.Sound = 'Zvuk';
lang.sr.Go back to map? = 'Vrati se na mapu?';
lang.sr.Go back to main menu? = 'Vrati se na glavni meni?';
lang.sr.Map = 'Mapa';
lang.sr.Resume = 'Nastavi';
lang.sr.Quit = 'Izlaz';
lang.es = new Array();
lang.es.New game = 'Empieza a jugar';
lang.es.Continue = 'Continúa';
lang.es.Statistics = 'EstadÃsticas';
lang.es.Achievements = 'Medallas';
lang.es.Help = 'Ayuda';
lang.es.Credits = 'Créditos';
lang.es.Progress = 'Progreso';
lang.es.Stars = 'Estrellas';
lang.es.Ice blocks = 'Bloques';
lang.es.Mini games = 'Mini juegos';
lang.es.Total score = 'Puntuación total';
lang.es.Score = 'Puntuación';
lang.es.Good grandson = 'Nieto bueno';
lang.es.Complete 10 levels = 'Completar 10 niveles';
lang.es.Brave grandson = 'Nieto valiente';
lang.es.Complete 20 levels = 'Completar 20 niveles';
lang.es.Hero = 'Héroe';
lang.es.Complete 30 levels = 'Completar 30 niveles';
lang.es.Mini star tracker = 'Rastreador de mini estrellas';
lang.es.Collect 10 stars = 'Recoge 10 estrellas';
lang.es.Star tracker = 'Rastreador de estrellas';
lang.es.Collect 20 stars = 'Recoge 20 estrellas';
lang.es.Super star tracker = 'Rastreador de superestrellas';
lang.es.Collect 30 stars = 'Recoge 30 estrellas';
lang.es.Mini ice breaker = 'Mini rompehielo';
lang.es.Destroy 100 ice blocks = 'Destruye 100 bloques de hielo';
lang.es.Ice breaker = 'Rompehielo';
lang.es.Destroy 200 ice blocks = 'Destruye 200 bloques de hielo';
lang.es.Super ice breaker = 'Superrompehielo';
lang.es.Destroy 290 ice blocks = 'Destruye 290 bloques de hielo';
lang.es.Runner = 'Corredor';
lang.es.Finish level 2-1 in 00:05 or less = 'Completa el nivel 2-1 en 00:05 o menos';
lang.es.Top runner = 'Corredor superior';
lang.es.Finish level 2-9 in 00:50 or less = 'Completa el nivel 2-9 en 00:50 o menos';
lang.es.Extreme = 'Extremo';
lang.es.Finish level 3-9 in 00:30 or less = 'Completa el nivel 3-9 en 00:30 o menos';
lang.es.Controls = 'Controles';
lang.es.Move = 'Mueve';
lang.es.Fire = 'Dispara';
lang.es.Prev = 'Anterior';
lang.es.Next = 'Siguiente';
lang.es.Pick-ups = 'Coleccionables';
lang.es.Goal = 'Objetivo';
lang.es.Extra points = 'Puntos extra';
lang.es.Shoot to break ice = 'Dispara para romper el hielo';
lang.es.Swap water and ice = 'Intercambia el agua por el hielo';
lang.es.Enemy: Bear = 'Enemigo: oso';
lang.es.Bears can\'t jump onto/off of two blocks of height = 'Los osos no pueden saltar sobre/de dos bloques de altura';
lang.es.Bears can only jump onto/off of one block of height = 'Los osos solo pueden saltar sobre/de un bloque de altura';
lang.es.Bears can also swap ice and water = 'Los osos pueden también intercambiar el hielo por el agua';
lang.es.Bears can\'t swim = 'Los osos no pueden nadar';
lang.es.Enemy: Wizard = 'Enemigo: mago';
lang.es.Wizards throw icicles at you = 'Los magos lanzan carámbanos';
lang.es.Icicles freeze water and break ice = 'Carámbanos congelan agua y rompen hielo';
lang.es.Your previous game will be lost = 'Tu juego anterior será perdido';
lang.es.OK = 'Ok';
lang.es.Cancel = 'Cancelar';
lang.es.Skip = 'Saltar';
lang.es.Level = 'Nivel';
lang.es.Play = 'Juega';
lang.es.Main menu = 'Menú principal';
lang.es.Mini game = 'Mini juego';
lang.es.Mini game unlocked = 'Mini juego desbloqueado';
lang.es.Achievement unlocked = 'Medallas desbloqueadas';
lang.es.Locked = 'Bloqueado';
lang.es.Collected = 'Recogido';
lang.es.Not collected = 'No recogido';
lang.es.5 more stars from world 1 to unlock a mini game = '5 estrellas más del mundo 1 para desbloquear mini juego';
lang.es.5 more stars from world 2 to unlock a mini game = '5 estrellas más del mundo 2 para desbloquear mini juego';
lang.es.5 more stars from world 3 to unlock a mini game = '5 estrellas más del mundo 3 para desbloquear mini juego';
lang.es.Catch as many stars, magnets and clocks as you can = 'Coge tantas estrellas, imanes y relojes que puedas';
lang.es.Collect all the stars and avoid shadows that copy your moves = 'Recoge todas las estrellas y evita las sombras que copian tus movimientos';
lang.es.Collect all the stars and avoid the black rotating spikes = 'Recoge todas las estrellas y evita las negras puntas giratorias';
lang.es.Star shower = 'estrellas fugaces';
lang.es.Copycats = 'Copión';
lang.es.Spiky run = 'Carrera puntiguada';
lang.es.Submit = 'Exponer';
lang.es.Retry = 'repetir';
lang.es.Time = 'Tiempo';
lang.es.Blocks = 'Bloques';
lang.es.Star = 'Estrella';
lang.es.Music = 'Música';
lang.es.Sound = 'Sonido';
lang.es.Go back to map? = 'Vuelve al mapa?';
lang.es.Go back to main menu? = 'Vuelve al menú principal?';
lang.es.Resume = 'Continúa';
lang.es.Quit = 'dejar';
lang.es.Map = 'mapa';
lang.ge = new Array();
lang.ge.New game = 'Neues Spiel';
lang.ge.Continue = 'Fortfahren';
lang.ge.Statistics = 'Statistiken';
lang.ge.Achievements = 'Medaillen';
lang.ge.Help = 'Hilfe';
lang.ge.Credits = 'Credits';
lang.ge.Progress = 'Fortschritt';
lang.ge.Stars = 'Sterne';
lang.ge.Ice blocks = 'Eisblöcke';
lang.ge.Mini games = 'Mini-Spiele';
lang.ge.Total score = 'Punkte gesamt';
lang.ge.Score = 'Punkte ';
lang.ge.Good grandson = 'Guter Enkel';
lang.ge.Complete 10 levels = 'Beende 10 Level';
lang.ge.Brave grandson = 'Kühner Enkel';
lang.ge.Complete 20 levels = 'Beende 20 Level';
lang.ge.Hero = 'Held';
lang.ge.Complete 30 levels = 'Beende 30 Level';
lang.ge.Mini star tracker = 'Kleiner Sternen-Aufspürer';
lang.ge.Collect 10 stars = 'Sammle 10 Sterne';
lang.ge.Star tracker = 'Sternen-Aufspürer';
lang.ge.Collect 20 stars = 'Sammle 20 Sterne';
lang.ge.Super star tracker = 'Super-Sternen-Aufspürer';
lang.ge.Collect 30 stars = 'Sammle 30 Sterne';
lang.ge.Mini ice breaker = 'Kleiner Eisbrecher';
lang.ge.Destroy 100 ice blocks = 'Zerstöre 100 Eisblöcke';
lang.ge.Ice breaker = 'Eisbrecher';
lang.ge.Destroy 200 ice blocks = 'Zerstöre 200 Eisblöcke';
lang.ge.Super ice breaker = 'Super-Eisbrecher';
lang.ge.Destroy 290 ice blocks = 'Zerstöre 290 Eisblöcke';
lang.ge.Runner = 'Läufer';
lang.ge.Finish level 2-1 in 00:05 or less = 'Beende Level 2-1 in 00:05 oder weniger';
lang.ge.Top runner = 'Spitzenläufer';
lang.ge.Finish level 2-9 in 00:50 or less = 'Beende Level 2-9 in 00:50 oder weniger';
lang.ge.Extreme = 'Extremläufer';
lang.ge.Finish level 3-9 in 00:30 or less = 'Beende Level 3-9 in 00:30 oder weniger';
lang.ge.Controls = 'Steuerung';
lang.ge.Move = 'Bewegen';
lang.ge.Fire = 'Schießen';
lang.ge.Prev = 'Vorheriges';
lang.ge.Next = 'Nächstes';
lang.ge.Pick-ups = 'Pick-ups';
lang.ge.Goal = 'Ziel';
lang.ge.Extra points = 'Extra-Punkte';
lang.ge.Shoot to break ice = 'Schieße, um Eis zu zerbrechen';
lang.ge.Swap water and ice = 'Vertausche Wasser und Eis';
lang.ge.Enemy: Bear = 'Gegner: Bären';
lang.ge.Bears can\'t jump onto/off of two blocks of height = 'Bären können keine Höhe von zwei Blöcken überwinden';
lang.ge.Bears can only jump onto/off of one block of height = 'Bären können nur eine Höhe von einem Block überwinden';
lang.ge.Bears can also swap ice and water = 'Bären können auch Eis und Wasser vertauschen';
lang.ge.Bears can\'t swim = 'Bären können nicht schwimmen';
lang.ge.Enemy: Wizard = 'Gegner: Zauberer';
lang.ge.Wizards throw icicles at you = 'Zauberer schleudern Eiszapfen auf dich';
lang.ge.Icicles freeze water and break ice = 'Eiszapfen gefrieren Wasser und zerbrechen Eis';
lang.ge.Your previous game will be lost = 'Dein vorheriges Spiel geht verloren';
lang.ge.OK = 'OK';
lang.ge.Cancel = 'Abbrechen';
lang.ge.Skip = 'Ãœberspringen';
lang.ge.Level = 'Level';
lang.ge.Play = 'Spielen';
lang.ge.Main menu = 'Hauptmenü';
lang.ge.Mini game = 'Mini-Spiel';
lang.ge.Mini game unlocked = 'Mini-Spiel freigeschalten';
lang.ge.Achievement unlocked = 'Medaille entriegelt';
lang.ge.Locked = 'Gesperrt';
lang.ge.Collected = 'Gesammelt';
lang.ge.Not collected = 'Nicht gesammelt';
lang.ge.5 more stars from world 1 to unlock a mini game = 'Noch 5 Sterne um ein Mini-Spiel aus Welt 1 freizuschalten';
lang.ge.5 more stars from world 2 to unlock a mini game = 'Noch 5 Sterne um ein Mini-Spiel aus Welt 2 freizuschalten';
lang.ge.5 more stars from world 3 to unlock a mini game = 'Noch 5 Sterne um ein Mini-Spiel aus Welt 3 freizuschalten';
lang.ge.Catch as many stars, magnets and clocks as you can = 'Sammle so viele Sterne, Magneten und Uhren wie du kannst';
lang.ge.Collect all the stars and avoid shadows that copy your moves = 'Sammle alle Sterne und weiche Schatten aus, die deine Bewegungen kopieren';
lang.ge.Collect all the stars and avoid the black rotating spikes = 'Sammle alle Sterne und weiche schwarzen, rotierenden Stacheln aus';
lang.ge.Star shower = 'sternen-Dusche';
lang.ge.Copycats = 'nachahmer';
lang.ge.Spiky run = 'spitzer Lauf';
lang.ge.Submit = 'Abschicken';
lang.ge.Retry = 'Nochmal';
lang.ge.Time = 'Zeit';
lang.ge.Blocks = 'Blöcke';
lang.ge.Star = 'Stern';
lang.ge.Music = 'Musik';
lang.ge.Sound = 'Sound';
lang.ge.Go back to map? = 'Zur Karte zurück?';
lang.ge.Go back to main menu? = 'Zum Hauptmenü zurück?';
lang.ge.Resume = 'Fortfahren';
lang.ge.Quit = 'verlassen';
lang.ge.Map = 'Karte';
lang.ru = new Array();
lang.ru.New game = 'Ð½Ð¾Ð²Ð°Ñ Ð¸Ð³Ñ€Ð°';
lang.ru.Continue = 'продолжите';
lang.ru.Statistics = 'ÑтатиÑтика';
lang.ru.Achievements = 'награды';
lang.ru.Help = 'помощь';
lang.ru.Credits = 'ЗаÑлуги';
lang.ru.Progress = 'прогреÑÑ';
lang.ru.Stars = 'звезды';
lang.ru.Ice blocks = 'ЛедÑные блоки';
lang.ru.Mini games = 'Мини игры';
lang.ru.Score = 'результат';
lang.ru.Total score = 'общий результат';
lang.ru.Good grandson = 'хороший внук';
lang.ru.Complete 10 levels = 'Пройдите 10 уровней';
lang.ru.Brave grandson = 'Храбрый внук';
lang.ru.Complete 20 levels = 'Пройдите 20 уровней';
lang.ru.Hero = 'герой';
lang.ru.Complete 30 levels = 'Пройдите 20 уровней';
lang.ru.Mini star tracker = 'малый коллектор звезд';
lang.ru.Collect 10 stars = 'Соберите 10 звезд';
lang.ru.Star tracker = 'коллектор звезд';
lang.ru.Collect 20 stars = 'Соберите 20 звезд';
lang.ru.Super star tracker = 'большой коллектор звезд';
lang.ru.Collect 30 stars = 'Соберите 30 звезд';
lang.ru.Mini ice breaker = 'малый ледокол';
lang.ru.Destroy 100 ice blocks = 'Уничтожите 100 блоков льда';
lang.ru.Ice breaker = 'ледокол';
lang.ru.Destroy 200 ice blocks = 'Уничтожите 200 блоков льда';
lang.ru.Super ice breaker = 'большой ледокол';
lang.ru.Destroy 290 ice blocks = 'Уничтожите 290 блоков льда';
lang.ru.Runner = 'бегун';
lang.ru.Finish level 2-1 in 00:05 or less = 'Закончите уровень 2-1 в 00:05 или менее';
lang.ru.Top runner = 'Ñпринтер';
lang.ru.Finish level 2-9 in 00:50 or less = 'Закончите уровень 2-9 в 00:50 или менее';
lang.ru.Extreme = 'ÑкÑтремальный';
lang.ru.Finish level 3-9 in 00:30 or less = 'Закончите уровень 3-9 в 00:30 или менее';
lang.ru.Controls = 'рычаги управлениÑ';
lang.ru.Move = 'движение';
lang.ru.Fire = 'Ñтрельба';
lang.ru.Prev = 'предыдущий';
lang.ru.Next = 'Ñледующий';
lang.ru.Pick-ups = 'Символы';
lang.ru.Goal = 'цель';
lang.ru.Extra points = 'Дополнительные баллы';
lang.ru.Shoot to break ice = 'СтрелÑÑ‚ÑŒ, чтобы Ñломать лед';
lang.ru.Swap water and ice = 'замените воду и лед';
lang.ru.Enemy: Bear = 'Враг: медведь';
lang.ru.Bears can\'t jump onto/off of two blocks of height = 'Медведи не могут прыгать от / до выÑоты двух блоков';
lang.ru.Bears can only jump onto/off of one block of height = 'Медведи могут прыгать от / до ÑƒÑ€Ð¾Ð²Ð½Ñ Ð¾Ð´Ð½Ð¾Ð³Ð¾ блока';
lang.ru.Bears can also swap ice and water = 'Медведи могут также заменить лед и воду';
lang.ru.Bears can\'t swim = 'Медведи не умеют плавать';
lang.ru.Enemy: Wizard = 'Враг: колдун';
lang.ru.Wizards throw icicles at you = 'колдун броÑает лед на ваÑ';
lang.ru.Icicles freeze water and break ice = 'ÑоÑульки замерзают воду, а лед ломают';
lang.ru.Your previous game will be lost = 'ÐŸÑ€ÐµÐ´Ñ‹Ð´ÑƒÑ‰Ð°Ñ Ð¸Ð³Ñ€Ð° иÑчезнет';
lang.ru.OK = 'OK';
lang.ru.Cancel = 'отмените';
lang.ru.Skip = 'пропуÑтите';
lang.ru.Level = 'уровень';
lang.ru.Play = 'играйте';
lang.ru.Main menu = 'Главное меню';
lang.ru.Mini game = 'Мини игры';
lang.ru.Mini game unlocked = 'Мини игры oтперты';
lang.ru.Achievement unlocked = 'наградa oтпертa';
lang.ru.Locked = 'запертo';
lang.ru.Collected = 'взÑÑ‚a';
lang.ru.Not collected = 'нeвзÑÑ‚a';
lang.ru.5 more stars from world 1 to unlock a mini game = 'Еще 5 звезд из мира 1, чтобы oтперeть мини-игру';
lang.ru.5 more stars from world 2 to unlock a mini game = 'Еще 5 звезд из мира 2, чтобы oтперeть мини-игру';
lang.ru.5 more stars from world 3 to unlock a mini game = 'Еще 5 звезд из мира 3, чтобы oтперeть мини-игру';
lang.ru.Catch as many stars, magnets and clocks as you can = 'Поймайте как можно большe звезд, магнитoв и чаÑoв';
lang.ru.Collect all the stars and avoid shadows that copy your moves = 'Соберите вÑе звезды и избегайтe тени, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ñледует за вами';
lang.ru.Collect all the stars and avoid the black rotating spikes = 'Соберите вÑе звезды и избегайтe вращающихÑÑ Ð»ÐµÐ·Ð²Ð¸Ð¹';
lang.ru.Star shower = 'падающиe звезды';
lang.ru.Copycats = 'Подражатели';
lang.ru.Spiky run = 'терниÑÑ‚aÑ Ð´Ð¾Ñ€Ð¾Ð³Ð°';
lang.ru.Submit = 'отправьтe';
lang.ru.Retry = 'повторитe';
lang.ru.Time = 'времÑ';
lang.ru.Blocks = 'Блоки';
lang.ru.Star = 'звезда';
lang.ru.Music = 'музыка';
lang.ru.Sound = 'звук';
lang.ru.Go back to map? = 'ВернитeÑÑŒ к карте?';
lang.ru.Go back to main menu? = 'ВернитeÑÑŒ к главном меню?';
lang.ru.Map = 'карта';
lang.ru.Resume = 'продолжите';
lang.ru.Quit = 'выход';
trans = function (str, l) {
if (!l) {
return lang[cl][str];
} else {
return lang[l][str];
}
};
}
frame 2 {
var progress = new SharedObject();
progress.flush();
progress = SharedObject.getLocal('lvl');
if (progress.data.lvl == undefined) {
progress.data.lvl = 1;
}
progress.flush();
var curLvl = progress.data.lvl;
curLvl = Math.min(30, curLvl);
i = 1;
while (i < 31) {
this['star' + i] = SharedObject.getLocal('star' + i);
this['points' + i] = SharedObject.getLocal('points' + i);
this['time' + i] = SharedObject.getLocal('time' + i);
this['blocks' + i] = SharedObject.getLocal('blocks' + i);
if (this['star' + i].data['star' + i] == undefined) {
this['star' + i].data['star' + i] = 0;
}
if (this['points' + i].data['points' + i] == undefined) {
this['points' + i].data['points' + i] = 0;
}
if (this['time' + i].data['time' + i] == undefined) {
this['time' + i].data['time' + i] = 0;
}
if (this['blocks' + i].data['blocks' + i] == undefined) {
this['blocks' + i].data['blocks' + i] = 0;
}
this['star' + i].flush();
this['points' + i].flush();
this['time' + i].flush();
this['blocks' + i].flush();
++i;
}
var b1 = new SharedObject();
b1 = SharedObject.getLocal('stars1');
if (b1.data.stars1 == undefined) {
b1.data.stars1 = 0;
}
b1.flush();
var b2 = new SharedObject();
b2 = SharedObject.getLocal('stars2');
if (b2.data.stars2 == undefined) {
b2.data.stars2 = 0;
}
b2.flush();
var b3 = new SharedObject();
b3 = SharedObject.getLocal('stars3');
if (b3.data.stars3 == undefined) {
b3.data.stars3 = 0;
}
b3.flush();
bonusGame = new Array();
var newBonus = 0;
i = 1;
while (i <= 3) {
bonusGame[i] = new Object();
++i;
}
bonusGame[1].name = 'Star shower';
bonusGame[2].name = 'Copycats';
bonusGame[3].name = 'Spiky run';
bonusGame[1].points = 10;
bonusGame[2].points = 300;
bonusGame[3].points = 300;
bonusGame[1].unlocked = false;
bonusGame[2].unlocked = false;
bonusGame[3].unlocked = false;
checkBonusGames = function () {
_root.newBonus = 0;
g = 1;
while (g <= 3) {
if (getNumOfStars(g) >= 5 and !bonusGame[g].unlocked) {
_root.newBonus = g;
bonusGame[g].unlocked = true;
}
++g;
}
return _root.newBonus;
};
}
frame 2 {
soundDepth = 600;
var make_sound = function (name, volume) {
if (!volume) {
volume = 100;
}
var v2 = createEmptyMovieClip(name, soundDepth);
++soundDepth;
var v1 = new Sound(v2);
v1.setVolume(volume);
v1.attachSound(name);
return v1;
};
var soundOn = true;
var musicOn = true;
var jumpS = make_sound('jumpS');
var pauseS = make_sound('pauseS');
var starS = make_sound('starS');
var flagS = make_sound('flagS');
var miniGameULS = make_sound('miniGameULS');
var achievULS = make_sound('achievULS');
var arrowS = make_sound('arrowS');
var pickupS = make_sound('pickupS');
var flagFallS = make_sound('flagFallS');
var swapS = make_sound('swapS');
var pljusS = make_sound('pljusS');
var bossHitS = make_sound('bossHitS');
var bearJumpS = make_sound('bearJumpS');
var clickS = make_sound('clickS');
var selectS = make_sound('selectS');
var bossAppearS = make_sound('bossAppearS');
var deathS = make_sound('deathS');
var shadowS = make_sound('shadowS');
var starAppearS = make_sound('starAppearS');
var bonusStarS = make_sound('bonusStarS');
var winkS = make_sound('winkS');
var icicleS = make_sound('icicleS');
var outroS = make_sound('outroS');
var interWS = make_sound('interWS');
var break1S = make_sound('break1S');
var break2S = make_sound('break2S');
var break3S = make_sound('break3S');
var break4S = make_sound('break4S');
var mPop1S = make_sound('mPop1S');
var mPop2S = make_sound('mPop2S');
var mPop3S = make_sound('mPop3S');
var mPop4S = make_sound('mPop4S');
var whoosh1S = make_sound('whoosh1S');
var whoosh2S = make_sound('whoosh2S');
var mainBGM = make_sound('mainBGM');
var w1BGM = make_sound('w1BGM');
var w2BGM = make_sound('w2BGM');
var w3BGM = make_sound('w3BGM');
soundPlay = function (sound, loops, pos) {
if (!pos) {
pos = 0;
}
if (loops > 1) {
if (musicOn) {
sound.setVolume(100);
sound.start(pos / 1000, loops);
}
} else {
if (soundOn) {
sound.setVolume(100);
sound.start(pos / 1000, loops);
}
}
};
soundFadeOut = function (sound, to) {
if (to == undefined) {
to = 0;
}
v = sound.getVolume();
if (v > to) {
sound.setVolume(v - 5);
setTimeout(soundFadeOut, 30, sound, to);
} else {
if (to == 0) {
sound.stop();
}
}
};
soundFadeIn = function (sound, to) {
if (to == undefined) {
to = 100;
}
v = sound.getVolume();
if (v < to) {
sound.setVolume(v + 5);
setTimeout(soundFadeIn, 20, sound, to);
}
};
}
frame 2 {
transition = function (goto) {
_root.goto = goto;
tranz.play();
};
removeEverything = function () {
removeMovieClip(ground);
removeMovieClip(water);
removeMovieClip(hero);
removeMovieClip(oreh);
removeMovieClip(goal);
removeMovieClip(snow);
i = 0;
while (i < 100) {
removeMovieClip(this['snow' + i]);
++i;
}
removeMovieClip(tranz);
removeMovieClip(tran1);
removeMovieClip(fallingIce);
removeMovieClip(anim1);
removeMovieClip(anim2);
removeMovieClip(ram);
removeMovieClip(whiteBG);
removeMovieClip(info);
removeMovieClip(gameMenu);
};
resetSave = function () {
progress.data.lvl = 1;
curLvl = 1;
bonus = false;
i = 1;
while (i < 31) {
this['star' + i].data['star' + i] = 0;
this['points' + i].data['points' + i] = 0;
this['time' + i].data['time' + i] = 0;
this['blocks' + i].data['blocks' + i] = 0;
this.bonusGame[1].unlocked = false;
this.bonusGame[2].unlocked = false;
this.bonusGame[3].unlocked = false;
++i;
}
i = 1;
while (i < 4) {
this['b' + i].data['stars' + i] = 0;
++i;
}
i = 0;
while (i < achievement.length) {
achievement[i].unlocked = false;
++i;
}
};
getNumOfStars = function (world) {
if (world) {
from = (world - 1) * 10 + 1;
to = world * 10;
} else {
from = 1;
to = 30;
}
num = 0;
i = from;
while (i <= to) {
if (this['star' + i].data['star' + i]) {
++num;
}
++i;
}
return num;
};
getNumOfBlocks = function (world) {
if (world) {
from = (world - 1) * 10 + 1;
to = world * 10;
} else {
from = 1;
to = 30;
}
num = 0;
i = from;
while (i <= to) {
num += this['blocks' + i].data['blocks' + i];
++i;
}
return num;
};
getMaxBlocks = function () {
s = 0;
i = 1;
while (i < 31) {
s += maxBlocks[i];
++i;
}
return s;
};
getTotalPoints = function () {
s = 0;
i = 1;
while (i <= 30) {
s += this['points' + i].data['points' + i];
++i;
}
i = 1;
while (i <= 3) {
s += this['b' + i].data['stars' + i] * bonusGame[i].points;
++i;
}
j = 0;
while (j < achievement.length) {
if (achievement[j].isUnlocked()) {
s += (achievement[j].level + 1) * 2500;
}
++j;
}
return s;
};
pauseGame = function (p) {
if (p != undefined) {
_root.pause = p;
} else {
_root.pause = !_root.pause;
}
if (_root.pause) {
_root.pauseTime = getTimer();
if (_root.boss.exist) {
_root.boss.stop();
}
_root.hero.stop();
_root.crossBow.stop();
_root.goal.flag.stop();
i = 0;
while (i < _root.numOfEnemy) {
_root['enemy_' + i].stop();
++i;
}
i = 0;
while (i < _root.numOfCoins) {
_root['coin_' + i].stop();
++i;
}
i = 0;
while (i < _root.numOfSwap) {
_root['swap_' + i].stop();
++i;
}
_root._quality = 'HIGH';
} else {
_root.startTime += getTimer() - _root.pauseTime;
if (_root.boss.exist) {
_root.boss.play();
}
_root.hero.play();
_root.crossBow.play();
_root.goal.flag.play();
i = 0;
while (i < _root.numOfEnemy) {
_root['enemy_' + i].play();
++i;
}
i = 0;
while (i < _root.numOfCoins) {
_root['coin_' + i].play();
++i;
}
i = 0;
while (i < _root.numOfSwap) {
_root['swap_' + i].play();
++i;
}
}
};
convertTime = function (t) {
s = Math.round(t / 1000);
m = Math.floor(s / 60);
s -= m * 60;
if (m < 10) {
m = '0' + m;
}
if (s < 10) {
s = '0' + s;
}
return m + ':' + s;
};
}
frame 2 {
var achievement = new Array();
addAchiev = function (achiev) {
achievement[achievement.length] = achiev;
achievement[achievement.length - 1].unlocked = false;
};
ac = new Object();
ac.name = 'Good grandson';
ac.description = 'Complete 10 levels';
ac.level = 0;
ac.isUnlocked = function () {
return _root.progress.data.lvl > 10;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Brave grandson';
ac.description = 'Complete 20 levels';
ac.level = 1;
ac.isUnlocked = function () {
return _root.progress.data.lvl > 20;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Hero';
ac.description = 'Complete 30 levels';
ac.level = 2;
ac.isUnlocked = function () {
return _root.progress.data.lvl > 30;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Mini star tracker';
ac.description = 'Collect 10 stars';
ac.level = 0;
ac.isUnlocked = function () {
return _root.getNumOfStars() >= 10;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Star tracker';
ac.description = 'Collect 20 stars';
ac.level = 1;
ac.isUnlocked = function () {
return _root.getNumOfStars() >= 20;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Super star tracker';
ac.description = 'Collect 30 stars';
ac.level = 2;
ac.isUnlocked = function () {
return _root.getNumOfStars() >= 30;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Mini ice breaker';
ac.description = 'Destroy 100 ice blocks';
ac.level = 0;
ac.isUnlocked = function () {
return _root.getNumOfBlocks() >= 100;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Ice breaker';
ac.description = 'Destroy 200 ice blocks';
ac.level = 1;
ac.isUnlocked = function () {
return _root.getNumOfBlocks() >= 200;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Super ice breaker';
ac.description = 'Destroy 290 ice blocks';
ac.level = 2;
ac.isUnlocked = function () {
return _root.getNumOfBlocks() >= 290;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Runner';
ac.description = 'Finish level 2-1 in 00:05 or less';
ac.level = 0;
ac.isUnlocked = function () {
return _root.time11.data.time11 > 0 and _root.time11.data.time11 < 5000;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Top runner';
ac.description = 'Finish level 2-9 in 00:50 or less';
ac.level = 1;
ac.isUnlocked = function () {
return _root.time19.data.time19 > 0 and _root.time19.data.time19 < 50000;
};
addAchiev(ac);
ac = new Object();
ac.name = 'Extreme';
ac.description = 'Finish level 3-9 in 00:30 or less';
ac.level = 2;
ac.isUnlocked = function () {
return _root.time29.data.time29 > 0 and _root.time29.data.time29 < 30000;
};
addAchiev(ac);
getNumOfAchiev = function () {
n = 0;
j = 0;
while (j < achievement.length) {
if (achievement[j].isUnlocked()) {
++n;
}
++j;
}
return n;
};
checkAchiev = function () {
var v1 = new Array();
j = 0;
while (j < achievement.length) {
if (achievement[j].isUnlocked() and !achievement[j].unlocked) {
achievement[j].unlocked = true;
v1[v1.length] = j;
}
++j;
}
return v1;
};
checkAchiev();
}
frame 2 {
var maxBlocks = new Array();
maxBlocks[1] = 0;
maxBlocks[2] = 13;
maxBlocks[3] = 10;
maxBlocks[4] = 0;
maxBlocks[5] = 20;
maxBlocks[6] = 16;
maxBlocks[7] = 12;
maxBlocks[8] = 19;
maxBlocks[9] = 16;
maxBlocks[10] = 16;
maxBlocks[11] = 11;
maxBlocks[12] = 8;
maxBlocks[13] = 2;
maxBlocks[14] = 8;
maxBlocks[15] = 0;
maxBlocks[16] = 19;
maxBlocks[17] = 11;
maxBlocks[18] = 14;
maxBlocks[19] = 52;
maxBlocks[20] = 23;
maxBlocks[21] = 0;
maxBlocks[22] = 0;
maxBlocks[23] = 0;
maxBlocks[24] = 0;
maxBlocks[25] = 0;
maxBlocks[26] = 0;
maxBlocks[27] = 9;
maxBlocks[28] = 0;
maxBlocks[29] = 12;
maxBlocks[30] = 3;
}
movieClip 70 {
}
movieClip 78 {
}
movieClip 80 {
}
button 81 {
on (release) {
getURL('http://www.5hippos.com', '_blank');
}
}
button 83 {
on (release) {
_root.play();
}
}
movieClip 102 {
frame 1 {
this.screen.addEventListener(MouseEvent.CLICK, function () {
navigateToURL(new URLRequest('http://5hippos.com'));
});
}
frame 193 {
stop();
}
}
frame 25 {
stop();
}
frame 33 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('71571ac8', this, 10301, true);
}
frame 33 {
stop();
onEnterFrame = null;
checkBonusGames();
}
movieClip 107 {
frame 1 {
this._visible = !_root.musicOn;
}
}
button 110 {
on (press) {
_root.musicOn = !_root.musicOn;
if (!_root.musicOn) {
stopAllSounds();
} else {
_root.soundPlay(_root.mainBGM, 9999);
_root['w' + w + 'BGM'].setVolume(100);
}
}
}
movieClip 112 {
frame 1 {
this._visible = !_root.soundOn;
}
}
movieClip 114 {
frame 1 {
this._visible = _root.soundOn;
}
}
button 116 {
on (press) {
_root.soundOn = !_root.soundOn;
}
}
movieClip 119 {
}
movieClip 142 {
}
movieClip 143 {
frame 14 {
_root.soundPlay(_root.whoosh1S, 1);
}
frame 30 {
_root.soundPlay(_root.mPop1S);
}
frame 37 {
_root.soundPlay(_root.mPop2S);
}
frame 43 {
_root.soundPlay(_root.mPop3S);
}
frame 50 {
_root.soundPlay(_root.mPop4S);
}
frame 70 {
_root.soundPlay(_root.whoosh2S, 1);
}
frame 92 {
_root.soundPlay(_root.winkS);
}
frame 92 {
stop();
}
}
// unknown tag 88 length 352
movieClip 154 {
frame 1 {
id = this._name.substr(7, 2);
this.onRollOver = function () {
this._parent['menuBtn' + this._parent.sel].onRollOut();
this._parent['btnTxt' + id].textColor = 16751214;
this._parent.sel = id;
_root.soundPlay(_root.selectS, 1);
};
this.onRollOut = function () {
this._parent['btnTxt' + id].textColor = 7191733;
};
this.onDragOver = function () {
this.onRollOver();
};
this.onDragOut = function () {
this.onRollOut();
};
}
}
movieClip 161 {
instance menuBtn0 of movieClip 154 {
onClipEvent (load) {
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
if (_root.progress.data.lvl > 1) {
_root.info.play();
_root.info.frame = 1;
this._parent.lock = true;
} else {
_root.transition('intro');
_root.info.gotoAndStop(1);
}
}
};
}
}
instance menuBtn1 of movieClip 154 {
onClipEvent (load) {
if (_root.progress.data.lvl == 1) {
this.enabled = false;
this._parent.btnTxt1._alpha = 40;
}
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
_root.info.gotoAndStop(1);
_root.transition('map');
this._parent.lock = true;
}
};
}
}
instance menuBtn2 of movieClip 154 {
onClipEvent (load) {
if (_root.progress.data.lvl == 1) {
this.enabled = false;
this._parent.btnTxt2._alpha = 40;
}
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
_root.info.play();
_root.info.frame = 3;
this._parent.lock = true;
}
};
}
}
instance menuBtn3 of movieClip 154 {
onClipEvent (load) {
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
_root.info.play();
_root.info.frame = 2;
this._parent.lock = true;
}
};
}
}
instance menuBtn4 of movieClip 154 {
onClipEvent (load) {
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
_root.info.play();
_root.info.frame = 21;
this._parent.lock = true;
}
};
}
}
instance menuBtn5 of movieClip 154 {
onClipEvent (load) {
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
_root.info.play();
_root.info.frame = 30;
this._parent.lock = true;
}
};
}
}
}
movieClip 162 {
frame 1 {
var playIt = true;
var oldCl;
}
frame 97 {
oldCl = _root.cl;
}
instance of movieClip 161 {
onClipEvent (load) {
this.btnTxt0.text = _root.trans('New game');
this.btnShTxt0.text = _root.trans('New game');
this.btnTxt1.text = _root.trans('Continue');
this.btnShTxt1.text = _root.trans('Continue');
this.btnTxt2.text = _root.trans('Statistics');
this.btnShTxt2.text = _root.trans('Statistics');
this.btnTxt3.text = _root.trans('Achievements');
this.btnShTxt3.text = _root.trans('Achievements');
this.btnTxt4.text = _root.trans('Help');
this.btnShTxt4.text = _root.trans('Help');
this.btnTxt5.text = _root.trans('Credits');
this.btnShTxt5.text = _root.trans('Credits');
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.btnTxt0.text = _root.trans('New game');
this.btnShTxt0.text = _root.trans('New game');
this.btnTxt1.text = _root.trans('Continue');
this.btnShTxt1.text = _root.trans('Continue');
this.btnTxt2.text = _root.trans('Statistics');
this.btnShTxt2.text = _root.trans('Statistics');
this.btnTxt3.text = _root.trans('Achievements');
this.btnShTxt3.text = _root.trans('Achievements');
this.btnTxt4.text = _root.trans('Help');
this.btnShTxt4.text = _root.trans('Help');
this.btnTxt5.text = _root.trans('Credits');
this.btnShTxt5.text = _root.trans('Credits');
}
}
frame 109 {
stop();
if (playIt) {
_root.soundPlay(_root.mainBGM, 9999);
playIt = false;
}
}
instance buttonList of movieClip 161 {
onClipEvent (load) {
var sel = 0;
var numOfBtn = 6;
var lock = false;
this.btnTxt0.text = _root.trans('New game');
this.btnShTxt0.text = _root.trans('New game');
this.btnTxt1.text = _root.trans('Continue');
this.btnShTxt1.text = _root.trans('Continue');
this.btnTxt2.text = _root.trans('Statistics');
this.btnShTxt2.text = _root.trans('Statistics');
this.btnTxt3.text = _root.trans('Achievements');
this.btnShTxt3.text = _root.trans('Achievements');
this.btnTxt4.text = _root.trans('Help');
this.btnShTxt4.text = _root.trans('Help');
this.btnTxt5.text = _root.trans('Credits');
this.btnShTxt5.text = _root.trans('Credits');
}
onClipEvent (keyUp) {
if (!lock) {
if (Key.getCode() == 40) {
this['menuBtn' + sel].onRollOut();
++sel;
if (sel == numOfBtn) {
sel = 0;
}
while (!this['menuBtn' + sel].enabled) {
++sel;
if (sel == numOfBtn) {
sel = 0;
}
}
this['menuBtn' + sel].onRollOver();
}
if (Key.getCode() == 38) {
this['menuBtn' + sel].onRollOut();
--sel;
if (sel < 0) {
sel = numOfBtn - 1;
}
while (!this['menuBtn' + sel].enabled) {
--sel;
if (sel < 0) {
sel = numOfBtn - 1;
}
}
this['menuBtn' + sel].onRollOver();
}
if (Key.getCode() == 13 or Key.getCode() == 32 or Key.getCode() == 88 or Key.getCode() == 17) {
this['menuBtn' + sel].onRelease();
}
}
}
}
instance of movieClip 161 {
onClipEvent (load) {
oldCl = this._parent.oldCl;
this.btnTxt0.text = _root.trans('New game', oldCl);
this.btnShTxt0.text = _root.trans('New game', oldCl);
this.btnTxt1.text = _root.trans('Continue', oldCl);
this.btnShTxt1.text = _root.trans('Continue', oldCl);
this.btnTxt2.text = _root.trans('Statistics', oldCl);
this.btnShTxt2.text = _root.trans('Statistics', oldCl);
this.btnTxt3.text = _root.trans('Achievements', oldCl);
this.btnShTxt3.text = _root.trans('Achievements', oldCl);
this.btnTxt4.text = _root.trans('Help', oldCl);
this.btnShTxt4.text = _root.trans('Help', oldCl);
this.btnTxt5.text = _root.trans('Credits', oldCl);
this.btnShTxt5.text = _root.trans('Credits', oldCl);
}
}
frame 120 {
gotoAndPlay('st');
}
}
movieClip 170 {
frame 1 {
stop();
}
}
instance lng of movieClip 170 {
onClipEvent (load) {
this._xscale = 90;
this._yscale = 90;
this.gotoAndStop(_root.cl);
}
onClipEvent (release) {
_root.info.frame = 34;
_root.info.play();
}
onClipEvent (rollOver) {
this._xscale = 100;
this._yscale = 100;
}
onClipEvent (rollOut) {
this._xscale = 90;
this._yscale = 90;
}
}
movieClip 176 {
}
movieClip 178 {
frame 1 {
_root.soundPlay(_root.selectS, 1);
}
}
button 180 {
on (release) {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress '<Space>') {
if (this._parent.lock) {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
}
on (keyPress '<Enter>') {
if (this._parent.lock) {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
}
on (keyPress 'x') {
if (this._parent.lock) {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
}
on (keyPress 'X') {
if (this._parent.lock) {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
}
}
button 181 {
on (release) {
_root.info.ans = 0;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress '<Escape>') {
if (this._parent.lock) {
_root.info.ans = 0;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
}
}
movieClip 208 {
frame 1 {
stop();
}
}
movieClip 209 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 217 {
on (release) {
this._parent.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress '<Escape>') {
if (this._parent.lock) {
this._parent.play();
}
_root.soundPlay(_root.clickS, 1);
}
}
movieClip 221 {
frame 1 {
stop();
var limit;
fr = 0;
onEnterFrame = function () {
++fr;
if (fr == 30) {
this.play();
}
if (_currentframe == limit) {
stop();
onEnterFrame = null;
}
if (limit <= 1) {
gotoAndStop(1);
onEnterFrame = null;
}
};
}
frame 50 {
stop();
onEnterFrame = null;
}
}
button 239 {
on (release) {
this._parent.ans = 0;
this._parent.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress '<Escape>') {
this._parent.ans = 0;
this._parent.play();
_root.soundPlay(_root.clickS, 1);
}
}
button 241 {
on (release) {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress '<Space>') {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress '<Enter>') {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'x') {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'X') {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
}
button 249 {
on (release) {
_root.info.ans = 0;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'R') {
_root.info.ans = 0;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'r') {
_root.info.ans = 0;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
}
button 251 {
on (release) {
_root.info.ans = 2;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'M') {
_root.info.ans = 2;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'm') {
_root.info.ans = 2;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
}
movieClip 256 {
}
movieClip 258 {
}
button 270 {
on (release) {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress '<Space>') {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress '<Enter>') {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'x') {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'X') {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'M') {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'm') {
_root.info.ans = 1;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
}
movieClip 282 {
}
movieClip 284 {
}
movieClip 286 {
}
movieClip 287 {
}
movieClip 289 {
}
movieClip 291 {
}
movieClip 293 {
}
movieClip 295 {
}
movieClip 297 {
}
movieClip 299 {
}
movieClip 301 {
}
movieClip 303 {
}
movieClip 304 {
frame 1 {
stop();
}
}
button 305 {
on (release) {
this._parent.play();
_root.soundPlay(_root.clickS, 1);
_root.bonus = 0;
}
on (keyPress '<Escape>') {
if (this._parent.lock) {
this._parent.play();
_root.soundPlay(_root.clickS, 1);
_root.bonus = 0;
}
}
}
button 316 {
on (release) {
_root.info.ans = 0;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'm') {
_root.info.ans = 0;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress 'M') {
_root.info.ans = 0;
_root.info.play();
_root.soundPlay(_root.clickS, 1);
}
}
movieClip 319 {
}
button 330 {
on (release) {
this.nextFrame();
_root.soundPlay(_root.clickS, 1);
}
on (keyPress '<Right>') {
this.nextFrame();
_root.soundPlay(_root.clickS, 1);
}
}
button 334 {
on (release) {
this._parent.ans = 0;
this._parent.play();
_root.soundPlay(_root.clickS, 1);
if (_root.autoHelp) {
_root.autoHelp = false;
_root.pauseGame(0);
}
}
on (keyPress '<Escape>') {
this._parent.ans = 0;
this._parent.play();
_root.soundPlay(_root.clickS, 1);
if (_root.autoHelp) {
_root.autoHelp = false;
_root.pauseGame(0);
}
}
}
button 336 {
on (release) {
_root.soundPlay(_root.clickS, 1);
this.nextFrame();
}
on (keyPress '<Right>') {
_root.soundPlay(_root.clickS, 1);
this.nextFrame();
}
}
button 338 {
on (release) {
_root.soundPlay(_root.clickS, 1);
this.prevFrame();
}
on (keyPress '<Left>') {
_root.soundPlay(_root.clickS, 1);
this.prevFrame();
}
}
movieClip 349 {
}
movieClip 363 {
frame 1 {
stop();
}
frame 16 {
stop();
}
}
movieClip 364 {
}
movieClip 367 {
frame 1 {
stop();
}
}
movieClip 368 {
}
movieClip 371 {
}
movieClip 384 {
frame 16 {
gotoAndPlay('walk');
}
}
movieClip 385 {
}
movieClip 386 {
}
movieClip 388 {
instance mc of movieClip 384 {
onClipEvent (load) {
this.gotoAndStop(1);
}
}
frame 58 {
mc.play();
}
frame 68 {
mc.gotoAndStop(1);
}
instance mc of movieClip 384 {
onClipEvent (load) {
this.gotoAndStop(1);
}
}
frame 80 {
mc.play();
}
frame 120 {
mc.gotoAndStop(1);
}
instance mc of movieClip 384 {
onClipEvent (load) {
this.gotoAndStop(1);
}
}
frame 139 {
mc.play();
}
frame 149 {
mc.gotoAndStop(1);
}
instance mc of movieClip 384 {
onClipEvent (load) {
this.gotoAndStop(1);
}
}
frame 164 {
mc.play();
}
}
movieClip 392 {
}
movieClip 396 {
}
movieClip 397 {
}
movieClip 405 {
frame 1 {
play();
}
frame 22 {
gotoAndPlay('swimIdle');
}
}
movieClip 422 {
}
movieClip 431 {
}
movieClip 437 {
}
button 439 {
on (release) {
_root.soundPlay(_root.clickS, 1);
this.prevFrame();
}
on (keyPress '<Left>') {
_root.soundPlay(_root.clickS, 1);
this.prevFrame();
}
}
button 446 {
on (release) {
this._parent.ans = 0;
this._parent.play();
_root.soundPlay(_root.clickS, 1);
if (_root.autoHelp) {
_root.autoHelp = false;
_root.pauseGame(0);
}
}
on (keyPress '<Escape>') {
_root.soundPlay(_root.clickS, 1);
this._parent.ans = 0;
this._parent.play();
if (_root.autoHelp) {
_root.autoHelp = false;
_root.pauseGame(0);
}
}
}
movieClip 455 {
}
// unknown tag 88 length 68
movieClip 458 {
}
movieClip 459 {
}
movieClip 460 {
frame 139 {
stop();
}
}
movieClip 473 {
frame 1 {
msg.text = _root.trans('Your previous game will be lost');
okBtnTxt.text = _root.trans('OK');
cancelBtnTxt.text = _root.trans('Cancel');
}
frame 1 {
stop();
}
frame 2 {
title.text = _root.trans('Achievements');
}
instance a0 of movieClip 209 {
onClipEvent (load) {
m = 3;
n = Math.floor(_root.achievement.length / m);
if (this._name == 'a0') {
i = 1;
while (i < n * m) {
duplicateMovieClip(this, 'a' + i, i - 50);
++i;
}
}
a = parseInt(this._name.substr(1, 2));
_y = _y + 74 * (a % m);
_x = _x + 74 * Math.floor(a / m);
if (_root.achievement[a].isUnlocked()) {
this.gotoAndStop(2);
this.pic.gotoAndStop(a + 1);
this._alpha = 80;
} else {
this.pic.gotoAndStop(Math.floor(a / m) * m + 2);
this._alpha = 50;
}
this.onRollOver = function () {
_parent.aName.text = _root.trans(_root.achievement[a].name);
_parent.aDesc.text = _root.trans(_root.achievement[a].description);
_parent.aPoints.text = '+' + (_root.achievement[a].level + 1) * 2500 + ' pts';
_root.soundPlay(_root.selectS, 1);
this._alpha = 100;
};
this.onRollOut = function () {
_parent.aName.text = '';
_parent.aDesc.text = '';
_parent.aPoints.text = '';
if (_root.achievement[a].isUnlocked()) {
this._alpha = 80;
} else {
this._alpha = 50;
}
};
}
}
frame 3 {
btnTxt.text = _root.trans('Submit');
title.text = _root.trans('Statistics');
miniGames = 0;
if (_root.getNumOfStars(1) >= 5) {
++miniGames;
}
if (_root.getNumOfStars(2) >= 5) {
++miniGames;
}
if (_root.getNumOfStars(3) >= 5) {
++miniGames;
}
progress.text = _root.trans('Progress') + ': ' + (_root.progress.data.lvl - 1) + '/30';
stars.text = _root.trans('Stars') + ': ' + _root.getNumOfStars() + '/30';
blocks.text = _root.trans('Ice blocks') + ': ' + _root.getNumOfBlocks() + '/' + _root.getMaxBlocks();
achievements.text = _root.trans('Achievements') + ': ' + _root.getNumOfAchiev() + '/' + _root.achievement.length;
miniG.text = _root.trans('Mini games') + ': ' + miniGames + '/3';
points.text = _root.trans('Score') + ': ' + _root.getTotalPoints() + ' pts';
progressBar.limit = Math.floor((_root.progress.data.lvl - 1) * 50 / 30);
starsBar.limit = Math.floor(_root.getNumOfStars() * 50 / 30);
blocksBar.limit = Math.floor(_root.getNumOfBlocks() * 50 / _root.getMaxBlocks());
achievBar.limit = Math.floor(_root.getNumOfAchiev() * 50 / _root.achievement.length);
miniGBar.limit = Math.floor(miniGames * 50 / 3);
}
frame 4 {
curLvl = _root.curLvl;
playBtnTxt.text = _root.trans('Play');
if (curLvl % 10) {
lvl.text = _root.trans('Level') + ' ' + (Math.floor(curLvl / 10) + 1) + '-' + curLvl % 10;
} else {
lvl.text = _root.trans('Level') + ' ' + Math.floor(curLvl / 10) + '-10';
}
if (_root['star' + curLvl].data['star' + curLvl]) {
str = _root.trans('Collected');
} else {
str = _root.trans('Not collected');
}
star.text = _root.trans('Star') + ': ' + str;
time.text = _root.trans('Time') + ': ' + _root.convertTime(_root['time' + curLvl].data['time' + curLvl]);
blocks.text = _root.trans('Ice blocks') + ': ' + _root['blocks' + curLvl].data['blocks' + curLvl] + '/' + _root.maxBlocks[curLvl];
points.text = _root.trans('Score') + ': ' + _root['points' + curLvl].data['points' + curLvl] + ' pts';
}
frame 5 {
curLvl = _root.curLvl;
if (curLvl % 10) {
lvl.text = _root.trans('Level') + ' ' + (Math.floor(curLvl / 10) + 1) + '-' + curLvl % 10;
} else {
lvl.text = _root.trans('Level') + ' ' + Math.floor(curLvl / 10) + '-10';
}
submitBtnTxt.text = _root.trans('Submit');
mapBtnTxt.text = _root.trans('Map');
retryBtnTxt.text = _root.trans('Retry');
nextBtnTxt.text = _root.trans('Next');
starStr = _root.starPicked;
timeStr = _root.convertTime(_root.lvlTime);
blocksStr = _root.blocksDestroyed + '/' + _root.maxBlocks[_root.curLvl];
star.text = starStr;
time.text = timeStr;
blocks.text = blocksStr;
points.text = _root.trans('Score') + ': ';
starPts.text = _root.starPicked * 500 + ' pts';
timePts.text = Math.max(0, Math.round((180000 - _root.lvlTime) / 1000)) + ' pts';
blocksPts.text = _root.blocksDestroyed * 10 + ' pts';
pointsPts.text = _root.lvlPoints + ' pts';
tPoints.text = _root.trans('Total score') + ': ' + _root.getTotalPoints() + ' pts';
}
frame 6 {
retryBtnTxt.text = _root.trans('Retry');
submitBtnTxt.text = _root.trans('Submit');
mapBtnTxt.text = _root.trans('Map');
gameName.text = _root.trans(_root.bonusGame[_root.bonus].name);
star.text = _root.starPicked;
points.text = _root.starPicked * _root.bonusGame[_root.bonus].points + ' pts';
tPoints.text = _root.trans('Total score') + ': ' + _root.getTotalPoints() + ' pts';
}
frame 7 {
msg.text = _root.trans('Go back to map?');
okBtnTxt.text = _root.trans('OK');
cancelBtnTxt.text = _root.trans('Cancel');
}
frame 7 {
stop();
}
frame 8 {
msg.text = _root.trans('Go back to main menu?');
okBtnTxt.text = _root.trans('OK');
cancelBtnTxt.text = _root.trans('Cancel');
}
frame 8 {
stop();
}
frame 9 {
msg.text = _root.trans('Go back to main menu?');
okBtnTxt.text = _root.trans('OK');
cancelBtnTxt.text = _root.trans('Cancel');
}
frame 9 {
title.text = _root.trans('Locked');
stars = 5 - _root.getNumOfStars(_root.bonus);
if (stars > 1) {
str = _root.trans('Stars');
} else {
str = _root.trans('Star');
}
txt = _root.trans('5 more stars from world ' + _root.bonus + ' to unlock a mini game');
txt = txt.substr(0, txt.indexOf('5')) + stars + txt.substr(txt.indexOf('5') + 1, 1000);
trace(txt.substr(0, txt.indexOf('5')));
trace(stars);
trace(txt.substr(txt.indexOf('5') + 1, 1000));
msg.text = txt;
gameIcon.gotoAndStop(_root.bonus);
}
frame 10 {
gameName.text = _root.trans(_root.bonusGame[_root.bonus].name);
star.text = _root.trans('Stars') + ': ' + _root['b' + _root.bonus].data['stars' + _root.bonus];
points.text = _root.trans('Score') + ': ' + _root['b' + _root.bonus].data['stars' + _root.bonus] * _root.bonusGame[_root.bonus].points + ' pts';
playBtnTxt.text = _root.trans('Play');
}
frame 11 {
gameName.text = _root.trans(_root.bonusGame[_root.newBonus].name);
msg.text = _root.trans('Mini game unlocked');
gameIcon.gotoAndStop(_root.newBonus);
}
frame 21 {
if (_root.autoHelp) {
helpExt._visible = false;
nextTXT._visible = false;
prevTXT._visible = false;
nextBtn._visible = false;
nextBtn.enabled = false;
prevBtn._visible = false;
prevBtn.enabled = false;
}
help.text = _root.trans('Help');
controls.text = _root.trans('Controls');
move.text = _root.trans('Move');
fire.text = _root.trans('Fire');
}
frame 22 {
if (_root.autoHelp) {
helpExt._visible = false;
nextTXT._visible = false;
prevTXT._visible = false;
nextBtn._visible = false;
nextBtn.enabled = false;
prevBtn._visible = false;
prevBtn.enabled = false;
}
help.text = _root.trans('Help');
pickups.text = _root.trans('Pick-ups');
goal.text = _root.trans('Goal');
extra.text = _root.trans('Extra points');
shoot.text = _root.trans('Shoot to break ice');
swap.text = _root.trans('Swap water and ice');
}
frame 23 {
if (_root.autoHelp) {
helpExt._visible = false;
nextTXT._visible = false;
prevTXT._visible = false;
nextBtn._visible = false;
nextBtn.enabled = false;
prevBtn._visible = false;
prevBtn.enabled = false;
}
help.text = _root.trans('Help');
enemy.text = _root.trans('Enemy: Bear');
exp1.text = _root.trans('Bears can\'t jump onto/off of two blocks of height');
exp2.text = _root.trans('Bears can only jump onto/off of one block of height');
}
frame 24 {
if (_root.autoHelp) {
helpExt._visible = false;
nextTXT._visible = false;
prevTXT._visible = false;
nextBtn._visible = false;
nextBtn.enabled = false;
prevBtn._visible = false;
prevBtn.enabled = false;
}
help.text = _root.trans('Help');
enemy.text = _root.trans('Enemy: Bear');
exp1.text = _root.trans('Bears can also swap ice and water');
exp2.text = _root.trans('Bears can\'t swim');
}
frame 25 {
if (_root.autoHelp) {
helpExt._visible = false;
nextTXT._visible = false;
prevTXT._visible = false;
nextBtn._visible = false;
nextBtn.enabled = false;
prevBtn._visible = false;
prevBtn.enabled = false;
}
help.text = _root.trans('Help');
enemy.text = _root.trans('Enemy: Wizard');
exp1.text = _root.trans('Wizards throw icicles at you');
exp2.text = _root.trans('Icicles freeze water and break ice');
}
frame 26 {
help.text = _root.trans('Help');
title.text = _root.trans('Star shower');
exp1.text = _root.trans('Catch as many stars, magnets and clocks as you can');
}
frame 27 {
help.text = _root.trans('Help');
title.text = _root.trans('Copycats');
exp1.text = _root.trans('Collect all the stars and avoid shadows that copy your moves');
}
frame 28 {
help.text = _root.trans('Help');
title.text = _root.trans('Spiky run');
exp1.text = _root.trans('Collect all the stars and avoid the black rotating spikes');
}
frame 30 {
creditsTxt.text = _root.trans('Credits');
musicTxt.text = _root.trans('Music');
soundTxt.text = _root.trans('Sound');
}
frame 34 {
if (_root._url.indexOf('co.il') == -1) {
hel._visible = false;
hebTxt._visible = false;
}
}
instance esl of movieClip 170 {
onClipEvent (load) {
var lang = 'es';
gotoAndStop(lang);
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
} else {
this._xscale = 100;
this._yscale = 100;
}
}
onClipEvent (release) {
if (_root.cl != lang) {
this._parent[_root.cl + 'l']._xscale = 70;
this._parent[_root.cl + 'l']._yscale = 70;
_root.cl = lang;
this._parent[_root.cl + 'l']._xscale = 100;
this._parent[_root.cl + 'l']._yscale = 100;
_root.lng.gotoAndStop(lang);
}
}
onClipEvent (rollOver) {
if (_root.cl != lang) {
this._xscale = 75;
this._yscale = 75;
}
}
onClipEvent (rollOut) {
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
}
}
}
instance rul of movieClip 170 {
onClipEvent (load) {
var lang = 'ru';
gotoAndStop(lang);
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
} else {
this._xscale = 100;
this._yscale = 100;
}
}
onClipEvent (release) {
if (_root.cl != lang) {
this._parent[_root.cl + 'l']._xscale = 70;
this._parent[_root.cl + 'l']._yscale = 70;
_root.cl = lang;
this._parent[_root.cl + 'l']._xscale = 100;
this._parent[_root.cl + 'l']._yscale = 100;
_root.lng.gotoAndStop(lang);
}
}
onClipEvent (rollOver) {
if (_root.cl != lang) {
this._xscale = 75;
this._yscale = 75;
}
}
onClipEvent (rollOut) {
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
}
}
}
instance enl of movieClip 170 {
onClipEvent (load) {
var lang = 'en';
gotoAndStop(lang);
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
} else {
this._xscale = 100;
this._yscale = 100;
}
}
onClipEvent (release) {
if (_root.cl != lang) {
this._parent[_root.cl + 'l']._xscale = 70;
this._parent[_root.cl + 'l']._yscale = 70;
_root.cl = lang;
this._parent[_root.cl + 'l']._xscale = 100;
this._parent[_root.cl + 'l']._yscale = 100;
_root.lng.gotoAndStop(lang);
}
}
onClipEvent (rollOver) {
if (_root.cl != lang) {
this._xscale = 75;
this._yscale = 75;
}
}
onClipEvent (rollOut) {
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
}
}
}
instance gel of movieClip 170 {
onClipEvent (load) {
var lang = 'ge';
gotoAndStop(lang);
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
} else {
this._xscale = 100;
this._yscale = 100;
}
}
onClipEvent (release) {
if (_root.cl != lang) {
this._parent[_root.cl + 'l']._xscale = 70;
this._parent[_root.cl + 'l']._yscale = 70;
_root.cl = lang;
this._parent[_root.cl + 'l']._xscale = 100;
this._parent[_root.cl + 'l']._yscale = 100;
_root.lng.gotoAndStop(lang);
}
}
onClipEvent (rollOver) {
if (_root.cl != lang) {
this._xscale = 75;
this._yscale = 75;
}
}
onClipEvent (rollOut) {
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
}
}
}
instance hel of movieClip 170 {
onClipEvent (load) {
var lang = 'he';
gotoAndStop(lang);
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
} else {
this._xscale = 100;
this._yscale = 100;
}
}
onClipEvent (release) {
if (_root.cl != lang) {
this._parent[_root.cl + 'l']._xscale = 70;
this._parent[_root.cl + 'l']._yscale = 70;
_root.cl = lang;
this._parent[_root.cl + 'l']._xscale = 100;
this._parent[_root.cl + 'l']._yscale = 100;
_root.lng.gotoAndStop(lang);
}
}
onClipEvent (rollOver) {
if (_root.cl != lang) {
this._xscale = 75;
this._yscale = 75;
}
}
onClipEvent (rollOut) {
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
}
}
}
instance srl of movieClip 170 {
onClipEvent (load) {
var lang = 'sr';
gotoAndStop(lang);
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
} else {
this._xscale = 100;
this._yscale = 100;
}
}
onClipEvent (release) {
if (_root.cl != lang) {
this._parent[_root.cl + 'l']._xscale = 70;
this._parent[_root.cl + 'l']._yscale = 70;
_root.cl = lang;
this._parent[_root.cl + 'l']._xscale = 100;
this._parent[_root.cl + 'l']._yscale = 100;
_root.lng.gotoAndStop(lang);
}
}
onClipEvent (rollOver) {
if (_root.cl != lang) {
this._xscale = 75;
this._yscale = 75;
}
}
onClipEvent (rollOut) {
if (_root.cl != lang) {
this._xscale = 70;
this._yscale = 70;
}
}
}
}
movieClip 475 {
}
movieClip 480 {
frame 1 {
i = this._parent.a[this._parent.len];
this.pic.gotoAndStop(i + 1);
this.msg.text = _root.trans('Achievement unlocked');
this.aName.text = _root.trans(_root.achievement[i].name);
}
}
movieClip 481 {
frame 1 {
stop();
if (this._parent.frame == 5) {
var a = _root.checkAchiev();
var len = a.length;
if (len > 0) {
--len;
this.play();
}
}
}
frame 16 {
_root.soundPlay(_root.achievULS, 1);
}
frame 96 {
if (len > 0) {
--len;
gotoAndPlay('msg');
} else {
stop();
}
}
}
movieClip 484 {
frame 1 {
var frame;
var ans = -1;
this.lock = false;
}
instance of movieClip 473 {
onClipEvent (load) {
gotoAndStop(this._parent.frame);
}
}
frame 2 {
this.lock = true;
if (frame == 4 and _root.bonus) {
frame = 10;
}
if (frame == 10 and !_root.bonus) {
frame = 4;
}
if (frame == 4 and _root.curLvl == _root.progress.data.lvl) {
this.gotoAndStop(1);
} else {
if (frame == 10 and _root['b' + _root.bonus].data['stars' + _root.bonus] == 0) {
this.gotoAndStop(1);
} else {
play();
}
}
}
frame 2 {
}
instance of movieClip 475 {
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (release) {
}
}
frame 6 {
if (frame == 11) {
_root.soundPlay(_root.miniGameULS, 1);
}
}
instance of movieClip 473 {
onClipEvent (load) {
gotoAndStop(this._parent.frame);
}
}
frame 11 {
_root.soundPlay(_root.whoosh1S, 1);
}
instance of movieClip 475 {
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (release) {
this._parent.play();
}
}
frame 20 {
stop();
this.lock = true;
}
instance invButt of movieClip 475 {
onClipEvent (load) {
this.useHandCursor = false;
this.onRelease = function () {};
}
}
instance of movieClip 475 {
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (release) {
}
}
frame 25 {
_root.soundPlay(_root.whoosh2S, 1);
}
frame 35 {
_root.menuMc.buttonList.lock = false;
_root.gameMenu.buttonList.lock = false;
stop();
this.lock = false;
if (ans == 1) {
if (frame == 1) {
_root.resetSave();
_root.transition('intro');
}
if (frame == 4) {
_root.transition('resetLvl');
}
if (frame == 11) {
_root.transition('nextLvl');
}
if (frame == 5) {
if (!_root.checkBonusGames()) {
_root.transition('nextLvl');
} else {
frame = 11;
this.gotoAndPlay(2);
}
}
if (frame == 6) {
_root.transition('toMap');
}
if (frame == 7) {
_root.transition('toMap');
_root.gameMenu.play();
}
if (frame == 8) {
_root.transition('toMenu');
_root.gameMenu.play();
}
if (frame == 10) {
_root.transition('resetLvl');
}
}
if (ans == 0) {
if (frame == 5) {
_root.transition('resetLvl');
}
if (frame == 6) {
_root.transition('resetLvl');
}
if (frame == 11) {
_root.transition('toMap');
}
}
if (ans == 2) {
if (frame == 5) {
_root.transition('toMap');
}
}
if (frame == 34) {
_root.menuMc.play();
}
}
instance of movieClip 473 {
onClipEvent (load) {
gotoAndStop(70);
}
}
}
instance info of movieClip 484 {
onClipEvent (load) {
this.gotoAndStop(1);
}
}
button 488 {
on (release) {
getURL('http://www.5hippos.com/action-games/play-drake-and-the-wizards-2', '_blank');
}
}
button 492 {
on (release) {
getURL('http://www.5hippos.com/puzzle-games/play-dolly-the-sheep', '_blank');
}
}
movieClip 493 {
frame 17 {
stop();
}
}
instance tranz1 of movieClip 493 {
onClipEvent (load) {
this.swapDepths(14000);
}
}
movieClip 494 {
frame 1 {
stop();
}
frame 16 {
_root.gotoAndStop(_root.goto);
}
}
instance tranz of movieClip 494 {
onClipEvent (load) {
this.swapDepths(14001);
}
}
frame 34 {
stop();
fr = 0;
anim2.gotoAndStop(2);
anim2._alpha = 0;
fadeTime = false;
onEnterFrame = function () {
++fr;
if (fadeTime) {
a2._alpha -= 5;
a1._alpha += 5;
if (a2._alpha <= 0) {
a2._alpha = 0;
a1._alpha = 100;
fadeTime = false;
a2.gotoAndStop(a2._currentframe + 2);
}
} else {
if (fr % 60 == 0) {
if (anim1._currentframe > anim2._currentframe) {
a1 = anim1;
a2 = anim2;
} else {
a2 = anim1;
a1 = anim2;
}
if (a2._currentframe == a2._totalframes) {
transition('map');
_root.soundFadeOut(_root.mainBGM);
this.onEnterFrame = null;
} else {
fadeTime = true;
}
}
}
};
}
movieClip 513 {
frame 1 {
stop();
}
}
movieClip 515 {
frame 1 {
txt.text = _root.trans('Skip');
}
}
button 516 {
on (release) {
_root.soundPlay(_root.clickS, 1);
_root.onEnterFrame = null;
_root.transition('map');
_root.soundFadeOut(_root.mainBGM);
}
on (rollOver) {
_root.soundPlay(_root.selectS, 1);
}
on (keyPress '<Enter>') {
_root.soundPlay(_root.clickS, 1);
_root.onEnterFrame = null;
_root.transition('map');
_root.soundFadeOut(_root.mainBGM);
}
on (keyPress '<Space>') {
_root.soundPlay(_root.clickS, 1);
_root.onEnterFrame = null;
_root.transition('map');
_root.soundFadeOut(_root.mainBGM);
}
on (keyPress '<Escape>') {
_root.soundPlay(_root.clickS, 1);
_root.onEnterFrame = null;
_root.transition('map');
_root.soundFadeOut(_root.mainBGM);
}
on (keyPress 'X') {
_root.soundPlay(_root.clickS, 1);
_root.onEnterFrame = null;
_root.transition('map');
_root.soundFadeOut(_root.mainBGM);
}
on (keyPress 'x') {
_root.soundPlay(_root.clickS, 1);
_root.onEnterFrame = null;
_root.transition('map');
_root.soundFadeOut(_root.mainBGM);
}
}
button 517 {
on (press) {
_root.musicOn = !_root.musicOn;
if (!_root.musicOn) {
stopAllSounds();
}
}
}
instance tranz1 of movieClip 493 {
onClipEvent (load) {
this.swapDepths(14000);
}
}
instance tranz of movieClip 494 {
onClipEvent (load) {
this.swapDepths(14001);
}
}
frame 35 {
soundFadeOut(mainBGM);
soundFadeOut(w1BGM);
soundFadeOut(w2BGM);
soundFadeOut(w3BGM);
_root.playIt = true;
_root.pause = false;
}
frame 35 {
lvltxt = _root.trans('Level');
if (!bonus) {
if (curLvl % 10) {
_root.lvlName.text = lvltxt + ' ' + (Math.floor(curLvl / 10) + 1) + '-' + curLvl % 10;
} else {
lvlName.text = lvltxt + ' ' + Math.floor(curLvl / 10) + '-10';
}
} else {
lvlName.text = _root.trans(bonusGame[bonus].name);
}
}
frame 35 {
stop();
if (curLvl > 100) {
curLvl = progress.data.lvl;
}
}
movieClip 530 {
}
movieClip 531 {
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
instance of movieClip 530 {
onClipEvent (load) {
gotoAndPlay(random(this._totalframes));
}
}
}
movieClip 533 {
frame 1 {
playBtnTxt.text = _root.trans('Play');
}
}
button 535 {
on (release) {
if (!_root.bonus) {
l = _root.curLvl;
_root.soundPlay(_root.clickS, 1);
if (l < 100) {
if (l < _root.progress.data.lvl) {
_root.info.frame = 4;
_root.info.play();
} else {
_root.transition('resetLvl');
}
}
} else {
if (_root['b' + _root.bonus].data['stars' + _root.bonus] > 0) {
_root.info.frame = 10;
_root.info.play();
} else {
_root.transition('resetLvl');
}
}
}
on (rollOver) {
_root.soundPlay(_root.selectS, 1);
}
}
movieClip 537 {
frame 1 {
mainBtnTxt.text = _root.trans('Main menu');
}
}
button 539 {
on (release) {
_root.info.frame = 8;
_root.info.play();
}
on (rollOver) {
_root.soundPlay(_root.selectS, 1);
}
}
movieClip 549 {
frame 1 {
play();
}
frame 32 {
gotoAndPlay('walk');
}
}
button 551 {
on (release) {
l = parseInt(this._name.substr(1, 3));
_root.soundPlay(_root.clickS, 1);
if (l < 100) {
_root.bonus = 0;
_root.curLvl = l;
if (l < _root.progress.data.lvl) {
_root.info.frame = 4;
_root.info.play();
} else {
_root.transition('resetLvl');
}
} else {
l -= 100;
if (_root.getNumOfStars(l) < 5) {
_root.bonus = l;
_root.info.frame = 9;
_root.info.play();
} else {
_root.bonus = l;
if (_root['b' + l].data['stars' + l] > 0) {
_root.info.frame = 10;
_root.info.play();
} else {
_root.transition('resetLvl');
}
}
}
}
on (rollOver) {
_root.soundPlay(_root.selectS, 1);
}
}
movieClip 554 {
frame 1 {
l = parseInt(this._parent._parent._name.substr(1, 3));
if (l < 100) {
this._visible = _root['star' + l].data['star' + l];
} else {
this._visible = false;
}
}
}
// unknown tag 88 length 69
movieClip 559 {
frame 1 {
l = parseInt(this._parent._parent._name.substr(1, 3));
if (l < 100) {
if (l % 10) {
lvlName.text = Math.floor(l / 10) + 1 + '-' + l % 10;
} else {
lvlName.text = Math.floor(l / 10) + '-10';
}
} else {
lvlName.text = 'BG' + (l - 100);
}
}
}
button 560 {
on (release) {
exB = _root.bonus;
l = parseInt(this._name.substr(1, 3));
_root.soundPlay(_root.clickS, 1);
if (l < 100) {
_root.bonus = 0;
this.gotoAndStop(2);
_root['l' + _root.curLvl].gotoAndStop(3);
_root['l' + (100 + exB)].gotoAndStop(4);
_root.curLvl = l;
if (l < _root.progress.data.lvl) {
_root.info.frame = 4;
_root.info.play();
} else {
_root.transition('resetLvl');
}
} else {
_root.bonus = l - 100;
_root.transition('resetLvl');
}
}
on (rollOver) {
_root.soundPlay(_root.selectS, 1);
}
}
movieClip 562 {
}
movieClip 564 {
}
movieClip 568 {
}
movieClip 569 {
frame 1 {
stop();
l = parseInt(this._parent._parent._name.substr(1, 3)) - 100;
if (_root.getNumOfStars(l) >= 5) {
this.gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
frame 2 {
stop();
}
}
movieClip 572 {
frame 1 {
l = parseInt(this._parent._parent._name.substr(1, 3)) - 100;
if (_root.getNumOfStars(l) >= 5) {
gameName.text = (_root.trans(_root.bonusGame[l].name)).toLowerCase();
} else {
gameName.text = (_root.trans('Mini game')).toLowerCase();
}
}
}
button 574 {
on (release) {
exB = _root.bonus;
l = parseInt(this._name.substr(1, 3)) - 100;
_root.soundPlay(_root.clickS, 1);
if (_root.getNumOfStars(l) < 5) {
_root.bonus = l;
_root.info.frame = 9;
_root.info.play();
} else {
_root.bonus = l;
if (_root['b' + l].data['stars' + l] > 0) {
_root.info.frame = 10;
_root.info.play();
_root['l' + _root.curLvl].gotoAndStop(3);
_root['l' + (100 + exB)].gotoAndStop(4);
this.gotoAndStop(2);
} else {
_root.transition('resetLvl');
}
}
}
on (rollOver) {
_root.soundPlay(_root.selectS, 1);
}
}
movieClip 575 {
frame 1 {
stop();
l = parseInt(this._name.substr(1, 3));
if (l > 100) {
numOfStars = _root.getNumOfStars(l - 100);
if (_root.bonus == l - 100) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(4);
}
}
if (l <= _root.progress.data.lvl) {
this.gotoAndStop(3);
}
if (l == _root.curLvl and !_root.bonus) {
this.gotoAndStop(2);
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance kd of movieClip 575 {
onClipEvent (keyPress '<Left>') {
if (!_root.info.lock and _root.tranz._currentframe == 1) {
if (_root.curLvl > 1) {
_root.soundPlay(_root.selectS, 1);
if (!_root.bonus) {
w = Math.floor(_root.curLvl / 10) + 1;
if (_root.curLvl % 10 == 6 and _root.bonusGame[w].unlocked) {
_root.lvlName.text = _root.trans(_root.bonusGame[w].name);
_root.bonus = w;
_root['l' + _root.curLvl].gotoAndStop(3);
_root['l' + (100 + w)].gotoAndStop(2);
} else {
_root.bonus = 0;
_root['l' + _root.curLvl].gotoAndStop(3);
--_root.curLvl;
_root['l' + _root.curLvl].gotoAndStop(2);
if (_root.curLvl % 10) {
_root.lvlName.text = _root.trans('Level') + ' ' + (Math.floor(_root.curLvl / 10) + 1) + '-' + _root.curLvl % 10;
} else {
_root.lvlName.text = _root.trans('Level') + ' ' + Math.floor(_root.curLvl / 10) + '-10';
}
}
} else {
w = _root.bonus;
_root['l' + (100 + w)].gotoAndStop(4);
_root.curLvl = (w - 1) * 10 + 5;
_root['l' + _root.curLvl].gotoAndStop(2);
_root.lvlName.text = _root.trans('Level') + ' ' + (Math.floor(_root.curLvl / 10) + 1) + '-' + _root.curLvl % 10;
_root.bonus = 0;
}
}
}
}
onClipEvent (keyPress '<Right>') {
if (!_root.info.lock and _root.tranz._currentframe == 1) {
if (_root.curLvl < 30 and (_root.curLvl < _root.progress.data.lvl or _root.bonus)) {
_root.soundPlay(_root.selectS, 1);
if (!_root.bonus) {
w = Math.floor(_root.curLvl / 10) + 1;
if (_root.curLvl % 10 == 5 and _root.bonusGame[w].unlocked) {
_root.lvlName.text = _root.trans(_root.bonusGame[w].name);
_root.bonus = w;
_root['l' + _root.curLvl].gotoAndStop(3);
_root['l' + (100 + w)].gotoAndStop(2);
} else {
_root['l' + _root.curLvl].gotoAndStop(3);
++_root.curLvl;
_root['l' + _root.curLvl].gotoAndStop(2);
if (_root.curLvl % 10) {
_root.lvlName.text = _root.trans('Level') + ' ' + (Math.floor(_root.curLvl / 10) + 1) + '-' + _root.curLvl % 10;
} else {
_root.lvlName.text = _root.trans('Level') + ' ' + Math.floor(_root.curLvl / 10) + '-10';
}
}
} else {
w = _root.bonus;
_root['l' + (100 + w)].gotoAndStop(4);
_root.curLvl = (w - 1) * 10 + 6;
_root['l' + _root.curLvl].gotoAndStop(2);
_root.lvlName.text = _root.trans('Level') + ' ' + (Math.floor(_root.curLvl / 10) + 1) + '-' + _root.curLvl % 10;
_root.bonus = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (!_root.info.lock and _root.tranz._currentframe == 1) {
if (Key.isDown(13) or Key.isDown(32) or Key.isDown(88) or Key.isDown(17)) {
_root.soundPlay(_root.clickS, 1);
if (_root.bonus) {
trace('aaa');
if (_root['b' + _root.bonus].data['stars' + _root.bonus] > 0) {
_root.info.frame = 10;
_root.info.gotoAndPlay(2);
} else {
_root.transition('resetLvl');
}
} else {
trace('ccc');
if (_root.curLvl < _root.progress.data.lvl) {
_root.info.frame = 4;
_root.info.gotoAndPlay(2);
} else {
_root.transition('resetLvl');
}
}
}
}
}
}
button 582 {
on (release) {
getURL('http://www.5hippos.com', '_blank');
}
}
instance info of movieClip 484 {
onClipEvent (load) {
this.lock = false;
if (_root.bonus) {
this.frame = 10;
} else {
this.frame = 4;
}
this.gotoAndStop(1);
}
}
instance tranz1 of movieClip 493 {
onClipEvent (load) {
this.swapDepths(14000);
}
}
instance tranz of movieClip 494 {
onClipEvent (load) {
this.swapDepths(14001);
}
}
frame 36 {
if (!bonus) {
if (curLvl % 10) {
_root.ram.levelTxt.text = _root.trans('Level') + ' ' + (Math.floor(curLvl / 10) + 1) + '-' + curLvl % 10;
} else {
ram.levelTxt.text = _root.trans('Level') + ' ' + Math.floor(curLvl / 10) + '-10';
}
} else {
ram.levelTxt.text = '';
}
}
frame 36 {
help = function (fr) {
_root.autoHelp = true;
info.frame = fr;
info.play();
pauseGame(1);
};
if (_root.curLvl == 11 and _root.progress.data.lvl == 11 and !_root.help11) {
_root.help11 = true;
setTimeout(help, 100, 23);
}
if (curLvl == 12 and progress.data.lvl == 12 and !_root.help12) {
_root.help12 = true;
setTimeout(help, 100, 24);
}
if (curLvl == 21 and progress.data.lvl == 21 and !_root.help21) {
_root.help21 = true;
setTimeout(help, 100, 25);
}
if (bonus == 1 and !_root.helpB1) {
_root.helpB1 = true;
setTimeout(help, 100, 26);
}
if (bonus == 2 and !_root.helpB2) {
_root.helpB2 = true;
setTimeout(help, 100, 27);
}
if (bonus == 3 and !_root.helpB3) {
_root.helpB3 = true;
setTimeout(help, 100, 28);
}
}
frame 36 {
loadLevel = function (lvl) {
if (lvl == -5) {
matrix[6][3] = 4;
matrix[6][11] = 7;
matrix[7][3] = 1;
matrix[7][4] = 1;
matrix[7][5] = 1;
matrix[7][6] = 1;
matrix[7][7] = 1;
matrix[7][8] = 1;
matrix[7][9] = 1;
matrix[7][10] = 1;
matrix[7][11] = 1;
return undefined;
}
if (lvl == -4) {
matrix[4][1] = 4;
matrix[5][1] = 1;
matrix[5][2] = 1;
matrix[5][3] = 2;
matrix[5][4] = 2;
matrix[5][5] = 2;
matrix[5][6] = 2;
matrix[5][7] = 1;
matrix[5][8] = 2;
matrix[5][9] = 2;
matrix[5][10] = 2;
matrix[5][11] = 2;
matrix[5][13] = 7;
matrix[6][12] = 1;
matrix[6][13] = 1;
matrix[7][6] = 1;
matrix[7][7] = 1;
matrix[7][8] = 1;
return undefined;
}
if (lvl == -3) {
matrix[5][9] = 1;
matrix[6][3] = 4;
matrix[6][7] = 5;
matrix[6][9] = 1;
matrix[6][11] = 7;
matrix[7][3] = 1;
matrix[7][4] = 1;
matrix[7][5] = 1;
matrix[7][6] = 1;
matrix[7][7] = 1;
matrix[7][8] = 1;
matrix[7][9] = 1;
matrix[7][10] = 1;
matrix[7][11] = 1;
return undefined;
}
if (lvl == -2) {
matrix[4][7] = 7;
matrix[5][7] = 1;
matrix[6][4] = 4;
matrix[6][10] = 5;
matrix[7][3] = 3;
matrix[7][4] = 3;
matrix[7][5] = 3;
matrix[7][6] = 3;
matrix[7][7] = 3;
matrix[7][8] = 3;
matrix[7][9] = 3;
matrix[7][10] = 3;
matrix[7][11] = 3;
return undefined;
}
if (lvl == -1) {
matrix[6][1] = 4;
matrix[6][7] = 6;
matrix[6][13] = 7;
matrix[7][1] = 3;
matrix[7][2] = 1;
matrix[7][3] = 1;
matrix[7][4] = 1;
matrix[7][5] = 1;
matrix[7][6] = 1;
matrix[7][7] = 3;
matrix[7][8] = 2;
matrix[7][9] = 2;
matrix[7][10] = 2;
matrix[7][11] = 2;
matrix[7][12] = 2;
matrix[7][13] = 3;
return undefined;
}
if (lvl == 0) {
matrix[5][6] = 10;
matrix[5][7] = 10;
matrix[5][8] = 10;
matrix[6][5] = 3;
matrix[6][6] = 3;
matrix[6][7] = 3;
matrix[6][8] = 3;
matrix[6][9] = 3;
matrix[7][3] = 4;
matrix[7][4] = 3;
matrix[7][5] = 3;
matrix[7][6] = 3;
matrix[7][7] = 3;
matrix[7][8] = 3;
matrix[7][9] = 3;
matrix[7][10] = 3;
matrix[7][11] = 7;
matrix[8][3] = 3;
matrix[8][4] = 3;
matrix[8][5] = 3;
matrix[8][6] = 3;
matrix[8][7] = 3;
matrix[8][8] = 3;
matrix[8][9] = 3;
matrix[8][10] = 3;
matrix[8][11] = 3;
return undefined;
}
if (lvl == 1) {
matrix[5][7] = 10;
matrix[6][3] = 4;
matrix[6][11] = 7;
matrix[7][3] = 1;
matrix[7][4] = 1;
matrix[7][5] = 1;
matrix[7][6] = 1;
matrix[7][7] = 1;
matrix[7][8] = 1;
matrix[7][9] = 1;
matrix[7][10] = 1;
matrix[7][11] = 1;
return undefined;
}
if (lvl == 2) {
matrix[3][2] = 10;
matrix[4][2] = 1;
matrix[4][3] = 1;
matrix[4][4] = 1;
matrix[4][12] = 7;
matrix[5][2] = 1;
matrix[5][3] = 1;
matrix[5][4] = 1;
matrix[5][11] = 1;
matrix[5][12] = 1;
matrix[6][2] = 1;
matrix[6][3] = 1;
matrix[6][4] = 1;
matrix[6][5] = 4;
matrix[6][9] = 5;
matrix[6][11] = 1;
matrix[6][12] = 1;
matrix[7][2] = 1;
matrix[7][3] = 1;
matrix[7][4] = 1;
matrix[7][5] = 1;
matrix[7][6] = 1;
matrix[7][7] = 1;
matrix[7][8] = 1;
matrix[7][9] = 1;
matrix[7][10] = 1;
matrix[7][11] = 1;
matrix[7][12] = 1;
return undefined;
}
if (lvl == 3) {
matrix[3][2] = 4;
matrix[3][10] = 3;
matrix[4][2] = 1;
matrix[4][3] = 2;
matrix[4][4] = 2;
matrix[4][5] = 2;
matrix[4][10] = 1;
matrix[4][11] = 7;
matrix[5][3] = 2;
matrix[5][4] = 2;
matrix[5][5] = 2;
matrix[5][6] = 1;
matrix[5][7] = 1;
matrix[5][8] = 1;
matrix[5][10] = 3;
matrix[5][11] = 1;
matrix[6][3] = 2;
matrix[6][4] = 2;
matrix[6][5] = 2;
matrix[6][9] = 1;
matrix[6][12] = 1;
matrix[7][4] = 5;
matrix[7][9] = 1;
matrix[7][11] = 10;
matrix[7][12] = 1;
matrix[8][4] = 1;
matrix[8][10] = 1;
matrix[8][11] = 1;
return undefined;
}
if (lvl == 4) {
matrix[1][6] = 4;
matrix[1][8] = 6;
matrix[2][5] = 1;
matrix[2][6] = 1;
matrix[2][7] = 1;
matrix[2][8] = 1;
matrix[2][9] = 1;
matrix[3][6] = 6;
matrix[4][4] = 10;
matrix[4][5] = 2;
matrix[4][6] = 2;
matrix[4][7] = 2;
matrix[4][8] = 2;
matrix[4][9] = 2;
matrix[5][8] = 6;
matrix[6][5] = 1;
matrix[6][6] = 1;
matrix[6][7] = 1;
matrix[6][8] = 1;
matrix[6][9] = 1;
matrix[7][7] = 7;
matrix[8][6] = 3;
matrix[8][7] = 3;
matrix[8][8] = 3;
return undefined;
}
if (lvl == 5) {
matrix[1][3] = 6;
matrix[1][4] = 4;
matrix[1][8] = 3;
matrix[2][3] = 1;
matrix[2][4] = 1;
matrix[2][9] = 3;
matrix[2][10] = 10;
matrix[3][3] = 1;
matrix[3][4] = 1;
matrix[3][5] = 1;
matrix[3][6] = 1;
matrix[3][8] = 5;
matrix[3][9] = 3;
matrix[3][10] = 1;
matrix[4][2] = 2;
matrix[4][3] = 1;
matrix[4][4] = 1;
matrix[4][5] = 1;
matrix[4][6] = 1;
matrix[4][7] = 1;
matrix[4][8] = 1;
matrix[4][9] = 1;
matrix[4][10] = 1;
matrix[4][11] = 1;
matrix[4][12] = 1;
matrix[5][3] = 1;
matrix[5][4] = 1;
matrix[5][5] = 1;
matrix[5][6] = 1;
matrix[5][7] = 1;
matrix[5][8] = 1;
matrix[5][9] = 1;
matrix[5][10] = 1;
matrix[5][11] = 1;
matrix[7][6] = 2;
matrix[7][7] = 2;
matrix[7][8] = 2;
matrix[8][6] = 2;
matrix[8][7] = 7;
matrix[8][8] = 2;
matrix[9][5] = 3;
matrix[9][6] = 3;
matrix[9][7] = 3;
matrix[9][8] = 3;
matrix[9][9] = 3;
return undefined;
}
if (lvl == 6) {
matrix[1][11] = 1;
matrix[2][10] = 7;
matrix[2][11] = 1;
matrix[2][13] = 2;
matrix[3][1] = 6;
matrix[3][2] = 2;
matrix[3][3] = 6;
matrix[3][7] = 10;
matrix[3][10] = 3;
matrix[3][11] = 3;
matrix[3][12] = 3;
matrix[3][13] = 2;
matrix[4][1] = 2;
matrix[4][2] = 2;
matrix[4][3] = 1;
matrix[4][8] = 2;
matrix[4][10] = 5;
matrix[4][11] = 1;
matrix[4][13] = 2;
matrix[5][1] = 2;
matrix[5][2] = 3;
matrix[5][3] = 1;
matrix[5][8] = 1;
matrix[5][11] = 1;
matrix[5][13] = 2;
matrix[6][1] = 2;
matrix[6][2] = 1;
matrix[6][3] = 1;
matrix[6][11] = 1;
matrix[6][13] = 2;
matrix[7][12] = 4;
matrix[8][0] = 3;
matrix[8][1] = 3;
matrix[8][2] = 3;
matrix[8][3] = 3;
matrix[8][4] = 3;
matrix[8][5] = 3;
matrix[8][6] = 3;
matrix[8][7] = 3;
matrix[8][8] = 3;
matrix[8][9] = 3;
matrix[8][10] = 3;
matrix[8][11] = 3;
matrix[8][12] = 3;
matrix[8][13] = 3;
matrix[8][14] = 3;
return undefined;
}
if (lvl == 7) {
matrix[2][13] = 7;
matrix[3][1] = 4;
matrix[3][2] = 5;
matrix[3][12] = 2;
matrix[3][13] = 3;
matrix[4][1] = 3;
matrix[4][2] = 3;
matrix[4][3] = 6;
matrix[4][11] = 1;
matrix[4][12] = 1;
matrix[4][13] = 1;
matrix[5][1] = 3;
matrix[5][2] = 3;
matrix[5][10] = 1;
matrix[5][12] = 1;
matrix[5][13] = 1;
matrix[6][1] = 3;
matrix[6][2] = 3;
matrix[6][9] = 1;
matrix[6][10] = 1;
matrix[6][12] = 1;
matrix[6][13] = 1;
matrix[7][1] = 3;
matrix[7][2] = 3;
matrix[7][5] = 6;
matrix[7][8] = 1;
matrix[7][9] = 1;
matrix[7][10] = 1;
matrix[7][11] = 10;
matrix[7][12] = 1;
matrix[7][13] = 1;
matrix[8][1] = 3;
matrix[8][2] = 3;
matrix[8][3] = 3;
matrix[8][4] = 3;
matrix[8][5] = 3;
matrix[8][6] = 3;
matrix[8][7] = 3;
matrix[8][8] = 1;
matrix[8][9] = 1;
matrix[8][10] = 1;
matrix[8][11] = 1;
matrix[8][12] = 1;
matrix[8][13] = 1;
return undefined;
}
if (lvl == 8) {
matrix[0][12] = -1;
matrix[1][3] = 4;
matrix[2][2] = 1;
matrix[2][3] = 1;
matrix[2][4] = 1;
matrix[2][10] = 1;
matrix[2][11] = 1;
matrix[2][12] = 1;
matrix[3][2] = 1;
matrix[3][3] = 1;
matrix[3][4] = 1;
matrix[3][5] = 6;
matrix[3][9] = 6;
matrix[3][10] = 1;
matrix[3][11] = 7;
matrix[3][12] = 1;
matrix[4][2] = 1;
matrix[4][3] = 1;
matrix[4][4] = 1;
matrix[4][5] = 1;
matrix[4][6] = 1;
matrix[4][8] = 1;
matrix[4][9] = 1;
matrix[4][10] = 3;
matrix[4][11] = 3;
matrix[4][12] = 3;
matrix[5][6] = 1;
matrix[5][7] = 1;
matrix[5][8] = 1;
matrix[5][9] = -1;
matrix[6][6] = 1;
matrix[6][7] = 1;
matrix[6][8] = 1;
matrix[6][13] = 10;
matrix[7][7] = 5;
matrix[7][9] = 1;
matrix[7][10] = 1;
matrix[7][11] = 1;
matrix[7][12] = 1;
matrix[7][13] = 1;
matrix[8][7] = 3;
return undefined;
}
if (lvl == 9) {
matrix[3][1] = 4;
matrix[3][5] = 5;
matrix[3][12] = 7;
matrix[4][1] = 1;
matrix[4][2] = 2;
matrix[4][3] = 1;
matrix[4][4] = 2;
matrix[4][5] = 1;
matrix[4][11] = 3;
matrix[4][12] = 1;
matrix[4][13] = 3;
matrix[5][1] = 1;
matrix[5][2] = 2;
matrix[5][3] = 2;
matrix[5][4] = 2;
matrix[5][5] = 1;
matrix[6][1] = 1;
matrix[6][2] = 2;
matrix[6][3] = 1;
matrix[6][4] = 2;
matrix[6][5] = 1;
matrix[6][7] = 2;
matrix[6][8] = 2;
matrix[6][9] = 2;
matrix[6][10] = 2;
matrix[6][11] = 2;
matrix[6][12] = 2;
matrix[6][13] = 2;
matrix[7][1] = 1;
matrix[7][2] = 1;
matrix[7][3] = 6;
matrix[7][4] = 1;
matrix[7][5] = 1;
matrix[7][7] = 10;
matrix[8][1] = 1;
matrix[8][2] = 1;
matrix[8][3] = 1;
matrix[8][4] = 1;
matrix[8][5] = 1;
matrix[8][7] = 1;
return undefined;
}
if (lvl == 10) {
matrix[0][5] = 7;
matrix[0][9] = 4;
matrix[1][5] = 1;
matrix[1][9] = 1;
matrix[1][10] = 5;
matrix[2][10] = 1;
matrix[3][0] = 3;
matrix[3][1] = 3;
matrix[3][2] = 3;
matrix[3][3] = 3;
matrix[3][9] = 6;
matrix[3][11] = 3;
matrix[3][12] = 3;
matrix[3][13] = 3;
matrix[3][14] = 3;
matrix[4][2] = 6;
matrix[4][3] = 3;
matrix[4][5] = 2;
matrix[4][9] = 1;
matrix[4][11] = 3;
matrix[4][12] = 6;
matrix[4][14] = 10;
matrix[5][0] = 1;
matrix[5][1] = 1;
matrix[5][3] = 3;
matrix[5][11] = 3;
matrix[5][13] = 2;
matrix[5][14] = 2;
matrix[6][0] = 1;
matrix[6][2] = 2;
matrix[6][3] = 3;
matrix[6][11] = 3;
matrix[6][12] = 1;
matrix[6][13] = 2;
matrix[6][14] = 2;
matrix[7][0] = 1;
matrix[7][5] = 3;
matrix[7][12] = 2;
matrix[7][13] = 2;
matrix[7][14] = 2;
matrix[8][2] = 2;
matrix[8][3] = 3;
matrix[8][11] = 3;
matrix[8][12] = 2;
matrix[8][13] = 2;
matrix[8][14] = 2;
matrix[9][0] = 3;
matrix[9][1] = 3;
matrix[9][2] = 3;
matrix[9][3] = 3;
matrix[9][4] = 3;
matrix[9][5] = 3;
matrix[9][6] = 3;
matrix[9][7] = 3;
matrix[9][8] = 3;
matrix[9][9] = 3;
matrix[9][10] = 3;
matrix[9][11] = 3;
matrix[9][12] = 3;
matrix[9][13] = 3;
matrix[9][14] = 3;
return undefined;
}
if (lvl == 11) {
matrix[1][5] = 10;
matrix[1][7] = 1;
matrix[2][7] = 1;
matrix[2][8] = 8;
matrix[3][3] = 4;
matrix[3][7] = 1;
matrix[3][8] = 1;
matrix[3][9] = 1;
matrix[3][11] = 7;
matrix[4][3] = 1;
matrix[4][5] = 5;
matrix[4][7] = 1;
matrix[4][8] = 1;
matrix[4][9] = 1;
matrix[4][10] = 1;
matrix[4][11] = 1;
matrix[5][3] = 1;
matrix[5][4] = 1;
matrix[5][5] = 1;
matrix[5][6] = 1;
matrix[5][7] = 1;
matrix[5][8] = 1;
matrix[5][9] = 1;
matrix[5][10] = 1;
matrix[5][11] = 1;
return undefined;
}
if (lvl == 12) {
matrix[2][2] = 8;
matrix[2][4] = 10;
matrix[2][12] = 7;
matrix[3][2] = 1;
matrix[3][3] = 1;
matrix[3][7] = 5;
matrix[3][11] = 2;
matrix[3][12] = 3;
matrix[4][2] = 1;
matrix[4][3] = 1;
matrix[4][7] = 4;
matrix[4][11] = 2;
matrix[4][12] = 2;
matrix[5][2] = 1;
matrix[5][3] = 1;
matrix[5][4] = 6;
matrix[5][5] = 1;
matrix[5][6] = 1;
matrix[5][7] = 3;
matrix[5][8] = 2;
matrix[5][9] = 2;
matrix[5][11] = 2;
matrix[5][12] = 2;
matrix[6][2] = 1;
matrix[6][3] = 1;
matrix[6][4] = 1;
matrix[6][5] = 1;
matrix[6][6] = 1;
matrix[6][7] = 3;
matrix[6][8] = 2;
matrix[6][9] = 2;
matrix[6][10] = 2;
matrix[6][11] = 2;
matrix[6][12] = 2;
return undefined;
}
if (lvl == 13) {
matrix[2][10] = 7;
matrix[3][4] = 10;
matrix[3][10] = 3;
matrix[4][4] = 2;
matrix[4][8] = 1;
matrix[5][0] = 8;
matrix[5][1] = 5;
matrix[5][4] = 4;
matrix[5][6] = 2;
matrix[6][0] = 3;
matrix[6][1] = 3;
matrix[6][2] = 1;
matrix[6][4] = 1;
matrix[6][14] = 8;
matrix[7][2] = 3;
matrix[7][4] = 6;
matrix[7][10] = 6;
matrix[7][12] = 2;
matrix[7][13] = 3;
matrix[7][14] = 3;
matrix[8][2] = 3;
matrix[8][3] = 3;
matrix[8][4] = 3;
matrix[8][5] = 3;
matrix[8][9] = 3;
matrix[8][10] = 3;
matrix[8][11] = 3;
matrix[8][12] = 3;
return undefined;
}
if (lvl == 14) {
matrix[1][7] = 7;
matrix[2][1] = 8;
matrix[2][2] = 2;
matrix[2][3] = 2;
matrix[2][4] = 2;
matrix[2][5] = 2;
matrix[2][6] = 2;
matrix[2][7] = 3;
matrix[3][0] = 1;
matrix[3][1] = 1;
matrix[3][2] = 1;
matrix[3][6] = 10;
matrix[3][10] = 5;
matrix[4][0] = 1;
matrix[4][1] = 1;
matrix[4][2] = 1;
matrix[4][10] = 1;
matrix[5][0] = 1;
matrix[5][1] = 1;
matrix[5][2] = 1;
matrix[5][7] = 4;
matrix[5][9] = 1;
matrix[5][10] = 1;
matrix[5][11] = 1;
matrix[5][12] = 6;
matrix[6][0] = 1;
matrix[6][1] = 1;
matrix[6][2] = 1;
matrix[6][3] = 1;
matrix[6][4] = 1;
matrix[6][5] = 1;
matrix[6][6] = 1;
matrix[6][7] = 1;
matrix[6][8] = 1;
matrix[6][9] = 1;
matrix[6][10] = 1;
matrix[6][11] = 1;
matrix[6][12] = 1;
matrix[6][13] = 1;
matrix[6][14] = 1;
return undefined;
}
if (lvl == 15) {
matrix[0][2] = 10;
matrix[1][2] = 8;
matrix[1][12] = 7;
matrix[2][2] = 1;
matrix[2][12] = 1;
matrix[3][2] = 1;
matrix[3][3] = 1;
matrix[3][11] = 1;
matrix[3][12] = 1;
matrix[4][3] = 1;
matrix[4][4] = 1;
matrix[4][5] = 8;
matrix[4][9] = 8;
matrix[4][10] = 1;
matrix[4][11] = 1;
matrix[5][4] = 1;
matrix[5][5] = 1;
matrix[5][9] = 1;
matrix[5][10] = 1;
matrix[6][5] = 1;
matrix[6][6] = 1;
matrix[6][7] = 4;
matrix[6][8] = 1;
matrix[6][9] = 1;
matrix[7][6] = 1;
matrix[7][7] = 1;
matrix[7][8] = 1;
return undefined;
}
if (lvl == 16) {
matrix[0][14] = 10;
matrix[1][11] = 2;
matrix[1][12] = 2;
matrix[1][13] = 2;
matrix[1][14] = 2;
matrix[2][10] = 2;
matrix[2][11] = 2;
matrix[2][12] = 2;
matrix[2][13] = 2;
matrix[2][14] = 2;
matrix[3][9] = 2;
matrix[3][10] = 2;
matrix[3][11] = 2;
matrix[3][12] = 2;
matrix[3][13] = 2;
matrix[3][14] = 2;
matrix[4][2] = 8;
matrix[4][3] = 7;
matrix[4][7] = 3;
matrix[4][14] = 2;
matrix[5][2] = 1;
matrix[5][3] = 3;
matrix[5][4] = 2;
matrix[5][5] = 2;
matrix[5][6] = 2;
matrix[5][7] = 3;
matrix[5][8] = 1;
matrix[5][9] = 1;
matrix[5][10] = 1;
matrix[5][11] = 1;
matrix[5][12] = 1;
matrix[5][14] = 2;
matrix[7][5] = 3;
matrix[7][7] = 5;
matrix[7][9] = 3;
matrix[7][13] = 3;
matrix[8][1] = 6;
matrix[8][2] = 4;
matrix[8][3] = 3;
matrix[8][5] = 6;
matrix[8][7] = 3;
matrix[8][9] = 6;
matrix[8][11] = 3;
matrix[8][13] = 6;
matrix[9][0] = 3;
matrix[9][1] = 3;
matrix[9][2] = 3;
matrix[9][3] = 3;
matrix[9][4] = 3;
matrix[9][5] = 3;
matrix[9][6] = 3;
matrix[9][7] = 3;
matrix[9][8] = 3;
matrix[9][9] = 3;
matrix[9][10] = 3;
matrix[9][11] = 3;
matrix[9][12] = 3;
matrix[9][13] = 3;
matrix[9][14] = 3;
return undefined;
}
if (lvl == 17) {
matrix[0][7] = 4;
matrix[1][4] = 5;
matrix[1][6] = 1;
matrix[1][7] = 1;
matrix[1][8] = 3;
matrix[1][10] = 10;
matrix[2][4] = 1;
matrix[2][6] = 1;
matrix[2][8] = 1;
matrix[2][9] = 2;
matrix[2][10] = 2;
matrix[2][11] = 2;
matrix[3][6] = 1;
matrix[3][8] = 1;
matrix[4][6] = 1;
matrix[4][8] = 1;
matrix[4][14] = 7;
matrix[5][2] = 1;
matrix[5][4] = 1;
matrix[5][6] = 1;
matrix[5][8] = 1;
matrix[5][12] = 2;
matrix[5][13] = 2;
matrix[5][14] = 3;
matrix[6][1] = 1;
matrix[6][3] = 1;
matrix[6][5] = 1;
matrix[6][6] = 1;
matrix[6][7] = 8;
matrix[6][8] = 1;
matrix[7][6] = 1;
matrix[7][7] = 1;
matrix[7][8] = 1;
matrix[8][14] = 6;
matrix[9][0] = 3;
matrix[9][1] = 3;
matrix[9][2] = 3;
matrix[9][3] = 3;
matrix[9][4] = 3;
matrix[9][5] = 3;
matrix[9][6] = 3;
matrix[9][7] = 3;
matrix[9][8] = 3;
matrix[9][9] = 3;
matrix[9][10] = 3;
matrix[9][11] = 3;
matrix[9][12] = 3;
matrix[9][13] = 3;
matrix[9][14] = 3;
return undefined;
}
if (lvl == 18) {
matrix[1][0] = 2;
matrix[1][2] = 6;
matrix[1][6] = 6;
matrix[1][10] = 6;
matrix[1][13] = 7;
matrix[2][0] = 2;
matrix[2][1] = 1;
matrix[2][2] = 1;
matrix[2][3] = 2;
matrix[2][4] = 2;
matrix[2][5] = 1;
matrix[2][6] = 1;
matrix[2][7] = 2;
matrix[2][8] = 2;
matrix[2][9] = 1;
matrix[2][10] = 1;
matrix[2][11] = 2;
matrix[2][12] = 2;
matrix[2][13] = 3;
matrix[3][0] = 2;
matrix[4][0] = 2;
matrix[4][2] = 8;
matrix[4][12] = 8;
matrix[4][13] = 10;
matrix[5][0] = 2;
matrix[5][1] = 1;
matrix[5][2] = 1;
matrix[5][3] = 1;
matrix[5][4] = 1;
matrix[5][5] = 1;
matrix[5][6] = 1;
matrix[5][7] = 1;
matrix[5][8] = 1;
matrix[5][9] = 1;
matrix[5][10] = 1;
matrix[5][11] = 1;
matrix[5][12] = 1;
matrix[5][13] = 1;
matrix[6][0] = 2;
matrix[7][0] = 2;
matrix[7][1] = 5;
matrix[7][2] = 4;
matrix[7][4] = 6;
matrix[7][13] = 6;
matrix[8][0] = 2;
matrix[8][1] = 2;
matrix[8][2] = 3;
matrix[8][3] = 2;
matrix[8][4] = 2;
matrix[8][10] = 3;
matrix[8][11] = 3;
matrix[8][12] = 2;
matrix[8][13] = 2;
return undefined;
}
if (lvl == 19) {
matrix[0][0] = 7;
matrix[1][0] = 3;
matrix[1][1] = 2;
matrix[1][2] = 2;
matrix[1][4] = 8;
matrix[1][10] = 4;
matrix[1][11] = 5;
matrix[2][4] = 1;
matrix[2][5] = 1;
matrix[2][6] = 1;
matrix[2][7] = 1;
matrix[2][8] = 1;
matrix[2][10] = 1;
matrix[2][11] = 1;
matrix[2][12] = 1;
matrix[3][6] = 1;
matrix[3][7] = 1;
matrix[3][8] = 1;
matrix[3][10] = 1;
matrix[3][11] = 1;
matrix[3][12] = 1;
matrix[3][13] = 1;
matrix[4][3] = -1;
matrix[4][4] = 1;
matrix[4][5] = 1;
matrix[4][6] = 1;
matrix[4][7] = 1;
matrix[4][8] = 1;
matrix[4][9] = 1;
matrix[4][10] = 1;
matrix[4][11] = 1;
matrix[4][12] = 1;
matrix[5][3] = 1;
matrix[5][4] = 1;
matrix[5][5] = 1;
matrix[5][6] = 1;
matrix[5][7] = 1;
matrix[5][9] = 1;
matrix[5][10] = 1;
matrix[5][11] = 1;
matrix[6][3] = 1;
matrix[6][4] = 1;
matrix[6][6] = 1;
matrix[6][7] = 1;
matrix[6][8] = 1;
matrix[6][9] = 1;
matrix[6][11] = 1;
matrix[6][12] = 1;
matrix[6][13] = 1;
matrix[7][2] = 1;
matrix[7][3] = 1;
matrix[7][4] = 1;
matrix[7][6] = 1;
matrix[7][7] = 1;
matrix[7][8] = 1;
matrix[7][9] = 1;
matrix[7][10] = 1;
matrix[7][11] = 1;
matrix[7][12] = 1;
matrix[7][13] = 10;
matrix[8][2] = 6;
matrix[8][4] = 1;
matrix[8][5] = 1;
matrix[8][6] = 1;
matrix[8][7] = 1;
matrix[8][8] = 1;
matrix[8][9] = 1;
matrix[8][10] = 1;
matrix[8][11] = 1;
matrix[8][12] = 1;
matrix[8][13] = 1;
matrix[9][2] = 3;
matrix[9][3] = 3;
matrix[9][4] = 3;
matrix[9][5] = 3;
matrix[9][6] = 3;
matrix[9][7] = 3;
matrix[9][8] = 3;
matrix[9][9] = 3;
matrix[9][10] = 3;
matrix[9][11] = 3;
matrix[9][12] = 3;
return undefined;
}
if (lvl == 20) {
matrix[0][3] = 8;
matrix[0][5] = 6;
matrix[0][6] = 6;
matrix[0][8] = 6;
matrix[0][9] = 6;
matrix[0][12] = 6;
matrix[1][3] = 3;
matrix[1][4] = 3;
matrix[1][5] = 3;
matrix[1][6] = 3;
matrix[1][7] = 3;
matrix[1][8] = 3;
matrix[1][9] = 3;
matrix[1][10] = 3;
matrix[1][11] = 3;
matrix[1][12] = 3;
matrix[1][13] = 3;
matrix[2][0] = 2;
matrix[2][1] = 2;
matrix[2][2] = 2;
matrix[2][14] = 1;
matrix[3][2] = 4;
matrix[3][14] = 1;
matrix[4][1] = 1;
matrix[4][2] = 1;
matrix[4][3] = 2;
matrix[4][4] = 2;
matrix[4][5] = 1;
matrix[4][6] = 1;
matrix[4][7] = 3;
matrix[4][8] = 2;
matrix[4][9] = 2;
matrix[4][10] = 1;
matrix[4][11] = 1;
matrix[4][12] = 2;
matrix[4][13] = 2;
matrix[4][14] = 1;
matrix[5][1] = 3;
matrix[5][2] = 10;
matrix[5][3] = 3;
matrix[5][4] = 3;
matrix[5][5] = 3;
matrix[5][6] = 3;
matrix[5][7] = 3;
matrix[5][8] = 3;
matrix[5][9] = 3;
matrix[5][10] = 3;
matrix[5][11] = 3;
matrix[5][14] = 1;
matrix[6][2] = 3;
matrix[6][12] = 5;
matrix[6][14] = 1;
matrix[7][0] = 2;
matrix[7][12] = 2;
matrix[7][14] = 1;
matrix[8][0] = 6;
matrix[8][4] = 7;
matrix[9][4] = 3;
matrix[9][5] = 1;
matrix[9][6] = 1;
matrix[9][7] = 1;
matrix[9][8] = 1;
matrix[9][9] = 1;
matrix[9][10] = 1;
matrix[9][11] = 1;
matrix[9][12] = 1;
return undefined;
}
if (lvl == 21) {
matrix[0][7] = 9;
matrix[1][6] = 3;
matrix[1][7] = 3;
matrix[1][8] = 3;
matrix[4][1] = 4;
matrix[5][1] = 1;
matrix[5][2] = 1;
matrix[5][3] = 2;
matrix[5][4] = 2;
matrix[5][5] = 2;
matrix[5][6] = 2;
matrix[5][7] = 2;
matrix[5][8] = 2;
matrix[5][9] = 2;
matrix[5][10] = 2;
matrix[5][11] = 2;
matrix[5][12] = 2;
matrix[5][13] = 10;
matrix[6][1] = 1;
matrix[6][2] = 1;
matrix[6][13] = 1;
matrix[7][2] = 7;
matrix[8][1] = 3;
matrix[8][2] = 3;
return undefined;
}
if (lvl == 22) {
matrix[3][4] = 4;
matrix[3][6] = 7;
matrix[3][9] = 9;
matrix[4][4] = 2;
matrix[4][5] = 2;
matrix[4][6] = 3;
matrix[4][8] = 3;
matrix[4][9] = 3;
matrix[4][10] = 3;
matrix[5][4] = 2;
matrix[5][5] = 2;
matrix[6][7] = 1;
matrix[7][6] = 1;
matrix[7][7] = 1;
matrix[7][10] = 10;
matrix[8][4] = 3;
matrix[8][5] = 3;
matrix[8][6] = 3;
matrix[8][7] = 3;
matrix[8][8] = 3;
matrix[8][9] = 3;
matrix[8][10] = 3;
return undefined;
}
if (lvl == 23) {
matrix[0][2] = 10;
matrix[1][2] = 2;
matrix[1][11] = 9;
matrix[2][4] = 2;
matrix[2][10] = 3;
matrix[2][11] = 3;
matrix[2][12] = 3;
matrix[3][6] = 2;
matrix[3][8] = 7;
matrix[4][7] = 2;
matrix[4][8] = 3;
matrix[5][5] = 2;
matrix[6][3] = 2;
matrix[7][1] = 2;
matrix[7][2] = 4;
matrix[7][7] = 8;
matrix[7][13] = 8;
matrix[8][1] = 1;
matrix[8][2] = 1;
matrix[8][3] = 1;
matrix[8][4] = 1;
matrix[8][5] = 1;
matrix[8][6] = 1;
matrix[8][7] = 1;
matrix[8][8] = 1;
matrix[8][9] = 1;
matrix[8][10] = 1;
matrix[8][11] = 1;
matrix[8][12] = 1;
matrix[8][13] = 1;
return undefined;
}
if (lvl == 24) {
matrix[0][10] = 7;
matrix[1][1] = 9;
matrix[1][10] = 1;
matrix[2][0] = 1;
matrix[2][1] = 1;
matrix[2][2] = 1;
matrix[2][10] = 1;
matrix[4][6] = 8;
matrix[4][9] = 4;
matrix[4][11] = 8;
matrix[5][6] = 1;
matrix[5][7] = 1;
matrix[5][8] = 1;
matrix[5][9] = 1;
matrix[5][11] = 1;
matrix[5][12] = 1;
matrix[5][13] = 1;
matrix[5][14] = 1;
matrix[6][6] = 1;
matrix[6][7] = 1;
matrix[6][8] = 1;
matrix[6][9] = 1;
matrix[6][11] = 1;
matrix[6][12] = 1;
matrix[6][13] = 1;
matrix[6][14] = 1;
matrix[7][6] = 1;
matrix[7][7] = 1;
matrix[7][8] = 1;
matrix[7][9] = 1;
matrix[7][10] = 10;
matrix[7][11] = 1;
matrix[7][12] = 1;
matrix[7][13] = 1;
matrix[7][14] = 1;
matrix[8][6] = 1;
matrix[8][7] = 1;
matrix[8][8] = 1;
matrix[8][9] = 1;
matrix[8][11] = 1;
matrix[8][12] = 1;
matrix[8][13] = 1;
matrix[8][14] = 1;
return undefined;
}
if (lvl == 25) {
matrix[0][1] = -1;
matrix[1][12] = 9;
matrix[2][11] = 3;
matrix[2][12] = 3;
matrix[2][13] = 3;
matrix[5][0] = 7;
matrix[5][2] = 8;
matrix[5][3] = 8;
matrix[5][5] = 4;
matrix[5][7] = 2;
matrix[5][11] = 8;
matrix[5][12] = 10;
matrix[6][0] = 3;
matrix[6][2] = 1;
matrix[6][3] = 1;
matrix[6][4] = 1;
matrix[6][5] = 2;
matrix[6][6] = 2;
matrix[6][7] = 2;
matrix[6][8] = 2;
matrix[6][9] = 2;
matrix[6][10] = 1;
matrix[6][11] = 1;
matrix[6][12] = 1;
matrix[7][0] = 3;
matrix[7][2] = 1;
matrix[7][3] = 2;
matrix[7][4] = 2;
matrix[7][5] = 2;
matrix[7][6] = 2;
matrix[7][7] = 2;
matrix[7][8] = 2;
matrix[7][9] = 2;
matrix[7][10] = 2;
matrix[7][11] = 2;
matrix[7][12] = 1;
return undefined;
}
if (lvl == 26) {
matrix[1][3] = 9;
matrix[2][2] = 3;
matrix[2][3] = 3;
matrix[2][4] = 3;
matrix[2][7] = 4;
matrix[2][10] = 8;
matrix[3][3] = 7;
matrix[4][3] = 3;
matrix[4][4] = 2;
matrix[4][12] = 10;
matrix[5][6] = 2;
matrix[5][8] = 2;
matrix[5][10] = 1;
matrix[5][12] = 1;
matrix[6][5] = 2;
matrix[6][7] = 2;
matrix[6][9] = 2;
matrix[7][5] = 6;
matrix[7][6] = 1;
matrix[7][8] = 1;
matrix[8][5] = 1;
matrix[8][7] = 1;
matrix[8][9] = 1;
return undefined;
}
if (lvl == 27) {
matrix[1][10] = 9;
matrix[2][7] = 3;
matrix[2][8] = 3;
matrix[2][9] = 3;
matrix[2][10] = 3;
matrix[2][11] = 3;
matrix[2][12] = 3;
matrix[2][13] = 3;
matrix[3][3] = 10;
matrix[3][7] = 1;
matrix[3][13] = 2;
matrix[3][14] = 7;
matrix[4][5] = 1;
matrix[4][6] = 1;
matrix[4][7] = 1;
matrix[4][8] = 1;
matrix[4][9] = 1;
matrix[4][13] = 2;
matrix[4][14] = 3;
matrix[5][1] = 3;
matrix[5][3] = 8;
matrix[5][6] = 6;
matrix[5][7] = 3;
matrix[5][8] = 5;
matrix[5][13] = 2;
matrix[6][2] = 1;
matrix[6][3] = 1;
matrix[6][4] = 1;
matrix[6][7] = 1;
matrix[6][13] = 2;
matrix[7][1] = 6;
matrix[7][3] = 4;
matrix[7][5] = 3;
matrix[7][7] = 3;
matrix[8][1] = 3;
matrix[8][2] = 3;
matrix[8][3] = 3;
matrix[8][4] = 3;
matrix[8][5] = 3;
matrix[8][6] = 3;
matrix[8][7] = 3;
matrix[8][8] = 2;
matrix[8][9] = 2;
matrix[8][10] = 2;
matrix[8][11] = 2;
matrix[8][12] = 2;
matrix[8][13] = 2;
return undefined;
}
if (lvl == 28) {
matrix[0][8] = 7;
matrix[1][8] = 3;
matrix[2][3] = 2;
matrix[2][4] = 1;
matrix[2][5] = 1;
matrix[2][6] = 1;
matrix[2][7] = 2;
matrix[2][12] = 9;
matrix[3][3] = 1;
matrix[3][4] = 2;
matrix[3][5] = 10;
matrix[3][6] = 2;
matrix[3][7] = 1;
matrix[3][11] = 3;
matrix[3][12] = 3;
matrix[3][13] = 3;
matrix[4][3] = 1;
matrix[4][4] = 1;
matrix[4][5] = 1;
matrix[4][6] = 1;
matrix[4][7] = 1;
matrix[5][5] = 6;
matrix[6][2] = 3;
matrix[6][6] = 4;
matrix[6][8] = 3;
matrix[7][2] = 8;
matrix[7][4] = 3;
matrix[7][6] = 3;
matrix[8][2] = 3;
matrix[8][3] = 3;
matrix[8][4] = 3;
matrix[8][5] = 3;
matrix[8][6] = 3;
matrix[8][7] = 3;
matrix[8][8] = 3;
return undefined;
}
if (lvl == 29) {
matrix[1][5] = 8;
matrix[1][6] = 7;
matrix[1][7] = 8;
matrix[1][8] = 8;
matrix[1][9] = 8;
matrix[1][13] = 9;
matrix[2][3] = 1;
matrix[2][4] = 1;
matrix[2][5] = 1;
matrix[2][6] = 3;
matrix[2][7] = 1;
matrix[2][8] = 1;
matrix[2][9] = 1;
matrix[2][12] = 3;
matrix[2][13] = 3;
matrix[2][14] = 3;
matrix[3][3] = 1;
matrix[3][4] = 1;
matrix[3][5] = 1;
matrix[3][6] = 10;
matrix[3][7] = 1;
matrix[3][8] = 1;
matrix[3][9] = 1;
matrix[4][3] = 1;
matrix[4][4] = 1;
matrix[4][5] = 1;
matrix[4][6] = 1;
matrix[4][7] = 1;
matrix[4][8] = 1;
matrix[4][9] = 1;
matrix[5][1] = 1;
matrix[5][5] = 5;
matrix[5][6] = 4;
matrix[5][11] = 1;
matrix[6][1] = 1;
matrix[6][2] = 1;
matrix[6][3] = 1;
matrix[6][4] = 1;
matrix[6][5] = 1;
matrix[6][6] = 1;
matrix[6][7] = 1;
matrix[6][8] = 1;
matrix[6][9] = 1;
matrix[6][10] = 1;
matrix[6][11] = 1;
return undefined;
}
if (lvl == 30) {
matrix[0][6] = 9;
matrix[1][0] = 8;
matrix[1][5] = 3;
matrix[1][6] = 3;
matrix[1][7] = 3;
matrix[2][0] = 1;
matrix[2][5] = 7;
matrix[3][5] = 3;
matrix[3][6] = 2;
matrix[3][7] = 2;
matrix[3][11] = 4;
matrix[4][9] = 1;
matrix[4][10] = 1;
matrix[4][11] = 1;
matrix[5][9] = 1;
matrix[5][10] = 1;
matrix[5][11] = 1;
matrix[5][12] = 1;
matrix[6][7] = 10;
matrix[6][9] = 6;
matrix[6][11] = 6;
matrix[6][13] = 1;
matrix[6][14] = 5;
matrix[7][7] = 1;
matrix[7][9] = 3;
matrix[7][10] = 3;
matrix[7][11] = 3;
matrix[7][12] = 3;
matrix[7][13] = 3;
matrix[7][14] = 3;
matrix[8][14] = 6;
matrix[9][0] = 2;
matrix[9][1] = 3;
matrix[9][2] = 3;
matrix[9][3] = 3;
matrix[9][4] = 3;
matrix[9][5] = 3;
matrix[9][6] = 3;
matrix[9][7] = 3;
matrix[9][8] = 3;
matrix[9][9] = 3;
matrix[9][10] = 3;
matrix[9][11] = 3;
matrix[9][12] = 3;
matrix[9][13] = 3;
matrix[9][14] = 3;
return undefined;
}
};
loadBonus = function (lvl) {
if (lvl == 1) {
matrix[6][0] = 3;
matrix[6][14] = 3;
matrix[7][0] = 3;
matrix[7][4] = 3;
matrix[7][6] = 3;
matrix[7][8] = 3;
matrix[7][10] = 3;
matrix[7][14] = 3;
matrix[8][0] = 3;
matrix[8][1] = 3;
matrix[8][2] = 3;
matrix[8][7] = 4;
matrix[8][12] = 3;
matrix[8][13] = 3;
matrix[8][14] = 3;
matrix[9][3] = 3;
matrix[9][4] = 3;
matrix[9][5] = 3;
matrix[9][6] = 3;
matrix[9][7] = 3;
matrix[9][8] = 3;
matrix[9][9] = 3;
matrix[9][10] = 3;
matrix[9][11] = 3;
return undefined;
}
if (lvl == 2) {
matrix[0][7] = 4;
matrix[1][6] = 3;
matrix[1][7] = 3;
matrix[1][8] = 3;
matrix[2][0] = 3;
matrix[2][14] = 3;
matrix[3][0] = 3;
matrix[3][4] = 2;
matrix[3][5] = 2;
matrix[3][6] = 2;
matrix[3][7] = 2;
matrix[3][8] = 2;
matrix[3][9] = 2;
matrix[3][10] = 2;
matrix[3][14] = 3;
matrix[4][0] = 3;
matrix[4][1] = 10;
matrix[4][3] = 3;
matrix[4][4] = 2;
matrix[4][5] = 2;
matrix[4][6] = 2;
matrix[4][7] = 2;
matrix[4][8] = 2;
matrix[4][9] = 2;
matrix[4][10] = 2;
matrix[4][11] = 3;
matrix[4][13] = 10;
matrix[4][14] = 3;
matrix[5][0] = 3;
matrix[5][1] = 3;
matrix[5][7] = 2;
matrix[5][13] = 3;
matrix[5][14] = 3;
matrix[6][0] = 3;
matrix[6][1] = 3;
matrix[6][2] = 3;
matrix[6][6] = 3;
matrix[6][7] = 2;
matrix[6][8] = 3;
matrix[6][12] = 3;
matrix[6][13] = 3;
matrix[6][14] = 3;
matrix[7][0] = 3;
matrix[7][2] = 2;
matrix[7][3] = 2;
matrix[7][4] = 3;
matrix[7][7] = 2;
matrix[7][10] = 3;
matrix[7][11] = 2;
matrix[7][12] = 2;
matrix[7][14] = 3;
matrix[8][0] = 3;
matrix[8][1] = 10;
matrix[8][6] = 3;
matrix[8][7] = 10;
matrix[8][8] = 3;
matrix[8][13] = 10;
matrix[8][14] = 3;
matrix[9][0] = 3;
matrix[9][1] = 3;
matrix[9][2] = 3;
matrix[9][3] = 3;
matrix[9][4] = 3;
matrix[9][5] = 3;
matrix[9][6] = 3;
matrix[9][7] = 3;
matrix[9][8] = 3;
matrix[9][9] = 3;
matrix[9][10] = 3;
matrix[9][11] = 3;
matrix[9][12] = 3;
matrix[9][13] = 3;
matrix[9][14] = 3;
return undefined;
}
if (lvl == 3) {
matrix[0][1] = 3;
matrix[0][2] = 3;
matrix[0][3] = 3;
matrix[0][4] = 3;
matrix[0][5] = 3;
matrix[0][6] = 3;
matrix[0][8] = 3;
matrix[0][9] = 3;
matrix[0][10] = 3;
matrix[0][11] = 3;
matrix[0][12] = 3;
matrix[0][13] = 3;
matrix[1][0] = 3;
matrix[1][1] = 3;
matrix[1][5] = 10;
matrix[1][6] = 3;
matrix[1][7] = 3;
matrix[1][8] = 3;
matrix[1][9] = 10;
matrix[1][13] = 3;
matrix[1][14] = 3;
matrix[2][0] = 3;
matrix[2][1] = 2;
matrix[2][2] = 2;
matrix[2][4] = 3;
matrix[2][7] = 4;
matrix[2][10] = 3;
matrix[2][12] = 2;
matrix[2][13] = 2;
matrix[2][14] = 3;
matrix[3][0] = 3;
matrix[3][1] = 2;
matrix[3][2] = 10;
matrix[3][3] = 3;
matrix[3][4] = 3;
matrix[3][5] = 3;
matrix[3][6] = 3;
matrix[3][7] = 3;
matrix[3][8] = 3;
matrix[3][9] = 3;
matrix[3][10] = 3;
matrix[3][11] = 3;
matrix[3][12] = 10;
matrix[3][13] = 2;
matrix[3][14] = 3;
matrix[4][0] = 3;
matrix[4][1] = 2;
matrix[4][2] = 3;
matrix[4][7] = 3;
matrix[4][12] = 3;
matrix[4][13] = 2;
matrix[4][14] = 3;
matrix[5][0] = 3;
matrix[5][1] = 2;
matrix[5][2] = 2;
matrix[5][4] = 10;
matrix[5][5] = 3;
matrix[5][7] = 10;
matrix[5][9] = 3;
matrix[5][10] = 10;
matrix[5][12] = 2;
matrix[5][13] = 2;
matrix[5][14] = 3;
matrix[6][0] = 3;
matrix[6][1] = 2;
matrix[6][2] = 2;
matrix[6][3] = 3;
matrix[6][4] = 3;
matrix[6][5] = 3;
matrix[6][6] = 3;
matrix[6][7] = 3;
matrix[6][8] = 3;
matrix[6][9] = 3;
matrix[6][10] = 3;
matrix[6][11] = 3;
matrix[6][12] = 2;
matrix[6][13] = 2;
matrix[6][14] = 3;
matrix[7][0] = 3;
matrix[7][1] = 3;
matrix[7][2] = 2;
matrix[7][3] = 10;
matrix[7][4] = 3;
matrix[7][5] = 10;
matrix[7][7] = 10;
matrix[7][9] = 10;
matrix[7][10] = 3;
matrix[7][11] = 10;
matrix[7][12] = 2;
matrix[7][13] = 3;
matrix[7][14] = 3;
matrix[8][1] = 3;
matrix[8][2] = 2;
matrix[8][6] = 3;
matrix[8][7] = 3;
matrix[8][8] = 3;
matrix[8][12] = 2;
matrix[8][13] = 3;
matrix[9][1] = 3;
matrix[9][2] = 3;
matrix[9][3] = 3;
matrix[9][4] = 3;
matrix[9][5] = 3;
matrix[9][6] = 3;
matrix[9][8] = 3;
matrix[9][9] = 3;
matrix[9][10] = 3;
matrix[9][11] = 3;
matrix[9][12] = 3;
matrix[9][13] = 3;
return undefined;
}
};
}
frame 36 {
stop();
}
frame 36 {
if (!bonus) {
numOfSnow = (Math.floor((_root.curLvl - 1) / 10) + 1) * 15;
k = 0;
while (k < numOfSnow) {
r = random(2);
if (r) {
duplicateMovieClip(_root.snow, 'snow' + k, -10000 - k);
} else {
duplicateMovieClip(_root.snow, 'snow' + k, 10000 + k);
}
++k;
}
}
}
frame 36 {
var m = 10;
var n = 15;
_root.lastStar = null;
_root.stopSnow = false;
_root.pause = false;
_root.newLevel = false;
_root.starPicked = 0;
_root.blocksDestroyed = 0;
var startTime = getTimer();
var b1Time = 30000;
wid = block._width;
stX = 19;
stY = 75;
var waterMatrix = new Array();
var iceMatrix = new Array();
var groundMatrix = new Array();
var matrix = new Array();
var wid = 50;
var stX = 25;
var stY = 125;
var numOfSwap = 0;
var numOfEnemy = 0;
var numOfCoins = 0;
swap = function () {
pom = waterMatrix;
waterMatrix = iceMatrix;
iceMatrix = pom;
ground.drawBlocks(true);
water.drawBlocks(true);
};
isGround = function (i, j) {
return iceMatrix[i][j] or groundMatrix[i][j];
};
i = 0;
while (i < m) {
waterMatrix[i] = new Array();
iceMatrix[i] = new Array();
groundMatrix[i] = new Array();
matrix[i] = new Array();
++i;
}
if (!bonus) {
loadLevel(curLvl);
} else {
loadBonus(bonus);
}
i = 0;
while (i < m) {
j = 0;
while (j < n) {
if (matrix[i][j] == 1) {
iceMatrix[i][j] = 1;
}
if (matrix[i][j] == 2) {
waterMatrix[i][j] = 1;
}
if (matrix[i][j] == 3) {
groundMatrix[i][j] = 1;
}
if (matrix[i][j] == 4) {
hero._x = wid * j + stX + wid / 2;
hero._y = wid * i + stY - wid / 2;
}
if (matrix[i][j] == 5) {
crossBow._x = wid * j + stX + wid / 2;
crossBow._y = wid * i + stY - wid / 2;
}
if (matrix[i][j] == 6) {
duplicateMovieClip(swapping, 'swap_' + numOfSwap, -2000 - numOfSwap);
this['swap_' + numOfSwap]._x = wid * j + stX + wid / 2;
this['swap_' + numOfSwap]._y = wid * i + stY - wid / 2;
++numOfSwap;
}
if (matrix[i][j] == 7) {
goal._x = wid * j + stX + wid / 2;
goal._y = wid * i + stY - wid / 2;
}
if (matrix[i][j] == 8) {
duplicateMovieClip(enemy, 'enemy_' + numOfEnemy, -1000 - numOfEnemy);
this['enemy_' + numOfEnemy]._x = wid * j + stX + wid / 2;
this['enemy_' + numOfEnemy]._y = wid * i + stY - wid / 2;
++numOfEnemy;
}
if (matrix[i][j] == 9) {
boss._x = wid * j + stX + wid / 2;
boss._y = wid * i + stY - wid;
boss.exist = true;
}
if (matrix[i][j] == 10) {
duplicateMovieClip(coin, 'coin_' + numOfCoins, -3000 - numOfCoins);
this['coin_' + numOfCoins]._x = wid * j + stX + wid / 2;
this['coin_' + numOfCoins]._y = wid * i + stY - wid / 2;
++numOfCoins;
}
if (matrix[i][j] == 11) {
key._x = wid * j + stX + wid / 2;
key._y = wid * i + stY - wid / 2;
}
++j;
}
++i;
}
enemy._x = 5000;
if (bonus == 1) {
_root.b1Pow = false;
bonusStar0._x = 100 + random(600);
bonusStar0._y = -random(500);
i = 1;
while (i < 40) {
duplicateMovieClip(bonusStar0, 'bonusStar' + i, -200 - i);
++i;
}
}
if (bonus == 2) {
resetStars = function () {
_root.lastStar = null;
_root.soundPlay(_root.starAppearS, 1);
i = 0;
while (i < numOfCoins) {
_root['coin_' + i].gotoAndPlay(1);
_root['coin_' + i].star.gotoAndStop(1);
_root['coin_' + i]._alpha = 0;
++i;
}
};
resetStarsIn = function (t) {
setTimeout(resetStars, t);
};
makeShadow = function (num) {
duplicateMovieClip(shadow, 'shadow' + num, -1000 - num);
this['shadow' + num].leader = this['shadow' + (num - 1)];
this['shadow' + num]._x = 5000;
};
startShadow = function (num) {
_root.soundPlay(_root.bossAppearS, 1);
this['shadow' + num]._alpha = 1;
};
makeShadow(0);
}
if (bonus == 3) {
_root.b3Speed = 0;
_root.b3lvl = 1;
i = 0;
while (i < numOfCoins * 2) {
if (i > 0) {
duplicateMovieClip(bonus3Star0, 'bonus3Star' + i, -200 - i);
} else {
this['bonus3Star' + i].swapDepths(-200);
}
j = Math.floor(i / 2);
this['bonus3Star' + i].angle = (i % 2) * 180;
this['bonus3Star' + i].centerX = this['coin_' + j]._x;
this['bonus3Star' + i].centerY = this['coin_' + j]._y;
this['bonus3Star' + i].dir = (i % 2) * 2 - 1;
++i;
}
resetStars = function () {
_root.soundPlay(_root.starAppearS, 1);
i = 0;
while (i < numOfCoins) {
_root['coin_' + i].gotoAndPlay(1);
_root['coin_' + i].star.gotoAndStop(1);
_root['coin_' + i]._alpha = 0;
++i;
}
};
resetStarsIn = function (t) {
setTimeout(resetStars, t);
};
}
}
movieClip 585 {
}
movieClip 588 {
}
movieClip 591 {
}
movieClip 614 {
}
movieClip 617 {
}
movieClip 618 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
instance of movieClip 614 {
onClipEvent (load) {
sign = 1;
this.onEnterFrame = function () {
if (random(30) == 0) {
sign *= -1;
}
if (this._x > 700) {
sign = -1;
}
if (this._x < 100) {
sign = 1;
}
this._x += Math.random() * 2 * sign;
};
}
}
}
instance of movieClip 618 {
onClipEvent (load) {
if (!_root.bonus) {
w = Math.floor((_root.curLvl - 1) / 10) + 1;
this.gotoAndStop(w);
if (_root.playIt) {
_root.soundPlay(_root['w' + w + 'BGM'], 9999);
_root['w' + w + 'BGM'].setVolume(100);
_root.playIt = false;
} else {
_root.soundFadeIn(_root['w' + w + 'BGM']);
}
} else {
this.gotoAndStop(_root.bonus);
if (_root.playIt) {
_root.playIt = false;
_root.soundPlay(_root.mainBGM, 9999);
} else {
_root.soundFadeIn(_root.mainBGM);
}
}
}
}
movieClip 620 {
}
instance snow of movieClip 620 {
onClipEvent (load) {
movieWidth = 800;
movieHeight = 600;
i = 1 + Math.random() * 2;
k = -Math.PI + Math.random() * Math.PI;
this._yscale = 50 + Math.random() * 100;
this._xscale = this._yscale;
this._alpha = 75 + Math.random() * 100;
if (!_root.bonus) {
this._x = -10 + Math.random() * movieWidth;
this._y = -10 + Math.random() * movieHeight;
}
}
onClipEvent (enterFrame) {
if (!_root.pause and !_root.bonus) {
rad += Math.random() * 5;
this._x -= Math.cos(rad);
this._y += i;
if (this._y >= movieHeight) {
if (!_root.stopSnow) {
this._y = -5;
} else {
this.onEnterFrame = null;
}
}
if (this._x >= movieWidth || this._x <= 0) {
this._x = -10 + Math.random() * movieWidth;
this._y = -5;
}
}
}
}
movieClip 644 {
frame 1 {
stop();
var nonExisting = 5;
}
frame 2 {
play();
}
frame 5 {
stop();
exists = false;
}
frame 50 {
play();
}
frame 62 {
gotoAndStop('existing');
}
frame 98 {
play();
}
frame 110 {
gotoAndStop('nonExisting');
}
}
movieClip 676 {
frame 1 {
stop();
}
frame 51 {
stop();
}
}
movieClip 677 {
frame 1 {
m = _root.m;
n = _root.n;
wid = block._width;
stX = -375;
stY = -225;
getBlock = function (i, j) {
return this['b_' + i + '_' + j];
};
removeOriginalBlock = function () {
block._x = 5000;
block._y = 5000;
};
countFrameName = function (mat, i, j) {
if (mat == _root.iceMatrix) {
tFrame = 'i';
} else {
tFrame = 'g';
}
if (mat[i - 1][j]) {
tFrame += 'U';
}
if (mat[i][j + 1]) {
tFrame += 'R';
}
if (mat[i + 1][j]) {
tFrame += 'D';
}
if (mat[i][j - 1]) {
tFrame += 'L';
}
return tFrame;
};
fixFrames = function (i, j) {
if (_root.iceMatrix[i - 1][j]) {
bl = getBlock(i - 1, j);
bl.gotoAndStop(countFrameName(_root.iceMatrix, i - 1, j));
}
if (_root.iceMatrix[i][j + 1]) {
bl = getBlock(i, j + 1);
bl.gotoAndStop(countFrameName(_root.iceMatrix, i, j + 1));
}
if (_root.iceMatrix[i + 1][j]) {
bl = getBlock(i + 1, j);
bl.gotoAndStop(countFrameName(_root.iceMatrix, i + 1, j));
}
if (_root.iceMatrix[i][j - 1]) {
bl = getBlock(i, j - 1);
bl.gotoAndStop(countFrameName(_root.iceMatrix, i, j - 1));
}
};
drawBlocks = function (swap) {
i = 0;
while (i < m) {
j = 0;
while (j < n) {
if (_root.iceMatrix[i][j] or _root.groundMatrix[i][j]) {
duplicateMovieClip(block, 'b_' + i + '_' + j, i * n + j);
bl = getBlock(i, j);
bl._x = wid * j + stX;
bl._y = wid * i + stY;
if (_root.iceMatrix[i][j]) {
bl.gotoAndStop(countFrameName(_root.iceMatrix, i, j));
if (swap) {
bl.mask.gotoAndPlay('appear');
}
} else {
bl.gotoAndStop(countFrameName(_root.groundMatrix, i, j));
}
} else {
bl = getBlock(i, j);
if (bl.mask._currentframe != bl.mask.nonExisting) {
bl.mask.gotoAndPlay('vanish');
}
}
++j;
}
++i;
}
removeOriginalBlock();
};
drawBlocks();
}
}
instance ground of movieClip 677 {
onClipEvent (load) {
this.swapDepths(-4000);
}
}
movieClip 679 {
}
instance arrow0 of movieClip 679 {
onClipEvent (load) {
xSpeed = 0;
_alpha = 0;
if (this._name.indexOf('0') != -1) {
i = 1;
while (i < 7) {
duplicateMovieClip(this, 'arrow' + i, -16000 + i);
++i;
}
}
this.swapDepths(100);
}
onClipEvent (enterFrame) {
if (!_root.pause) {
this._x += xSpeed;
if (this._x > 850 or this._x < -50) {
this._alpha = 0;
}
}
}
}
movieClip 684 {
frame 1 {
stop();
}
frame 2 {
_root.soundPlay(_root.pickupS, 1);
}
frame 18 {
stop();
}
}
movieClip 685 {
}
instance crossBow of movieClip 685 {
onClipEvent (load) {
this.swapDepths(-20);
}
}
movieClip 686 {
}
movieClip 688 {
}
movieClip 692 {
}
movieClip 693 {
frame 1 {
stop();
}
frame 150 {
status = 'swimIdle';
}
frame 209 {
gotoAndPlay('swimIdle');
}
frame 300 {
_root.pauseGame(1);
w = Math.floor((_root.curLvl - 1) / 10) + 1;
_root.soundFadeOut(_root['w' + w + 'BGM'], 20);
_root.soundPlay(_root.flagS, 1);
this.swapDepths(_root.hero);
if (_root.curLvl == _root.progress.data.lvl) {
_root.newLevel = true;
++_root.progress.data.lvl;
}
if (_root.starPicked) {
_root['star' + _root.curLvl].data['star' + _root.curLvl] = 1;
}
_root.lvlTime = getTimer() - _root.startTime;
if (_root['time' + _root.curLvl].data['time' + _root.curLvl]) {
_root['time' + _root.curLvl].data['time' + _root.curLvl] = Math.min(_root['time' + _root.curLvl].data['time' + _root.curLvl], _root.lvlTime);
} else {
_root['time' + _root.curLvl].data['time' + _root.curLvl] = _root.lvlTime;
}
timePts = Math.max(Math.round((180000 - _root.lvlTime) / 1000), 0);
_root.lvlPoints = 1000 + _root.starPicked * 500 + timePts + _root.blocksDestroyed * 10;
_root['blocks' + _root.curLvl].data['blocks' + _root.curLvl] = Math.max(_root['blocks' + _root.curLvl].data['blocks' + _root.curLvl], _root.blocksDestroyed);
_root['points' + _root.curLvl].data['points' + _root.curLvl] = Math.max(_root['points' + _root.curLvl].data['points' + _root.curLvl], _root.lvlPoints);
}
frame 333 {
stop();
_root.info.frame = 5;
_root.info.play();
}
}
instance goal of movieClip 693 {
onClipEvent (load) {
var status = 'idle';
var speed = 3.5;
waterSpeed = 2.5;
ga = 0.5;
gravity = 0;
r = _height / 2;
hd = r;
hu = _height - hd;
this.swapDepths(-15);
ground = _root.ground;
water = _root.water;
cb = '';
fr = 0;
sign;
alive = true;
frozenFr = 0;
inWater = false;
}
onClipEvent (enterFrame) {
if (alive) {
kp = false;
wh = _width / 2;
if (!ground.hitTest(_x, _y, true) and !water.hitTest(_x, _y, true)) {
gravity += ga;
_y = _y + gravity;
onGround = false;
} else {
jumping = false;
gravity = 0;
}
if (water.hitTest(_x, _y, true)) {
onGround = false;
inWater = true;
if ((_currentframe % 300 < 150 or _currentframe % 300 >= 200) and !kp) {
gotoAndPlay('swimIdle' + cb);
status = 'swimIdle';
}
if (gravity > 0) {
j = Math.floor((this._x - (water._x + water.stX)) / water.wid);
i = Math.floor((this._y - (water._y + water.stY)) / water.wid);
water['b_' + i + '_' + j].pljus._x = this._x - (water._x + water.stX + j * water.wid);
water['b_' + i + '_' + j].pljus.play();
}
if (water.hitTest(_x, _y - hu, true) and !water.hitTest(_x, _y + hd, true)) {
_y = _y - ga * 2;
}
if (!water.hitTest(_x, _y - hu - 10, true) and water.hitTest(_x, _y + hd, true)) {
_y = _y + ga * 2;
}
if (!water.hitTest(_x + wh, _y, true) and water.hitTest(_x - wh, _y, true)) {
if (!kp) {
_x = _x - ga * 2;
} else {
_x = _x - ga;
}
}
if (water.hitTest(_x + wh, _y, true) and !water.hitTest(_x - wh, _y, true)) {
if (!kp) {
_x = _x + ga * 2;
} else {
_x = _x + ga;
}
}
}
if (!water.hitTest(_x, _y, true) and status == 'idle') {
while (ground.hitTest(_x, _y - ga + hd, true)) {
if (gravity > ga * 20) {
_root.soundPlay(_root.flagFallS, 1);
}
gravity = 0;
jumping = false;
_y = _y - ga;
onGround = true;
}
while (ground.hitTest(_x, _y + ga - hu, true)) {
gravity = 0;
_y = _y + ga;
}
while (ground.hitTest(_x + wh - ga, _y, true)) {
_x = _x - ga;
}
while (ground.hitTest(_x - wh + ga, _y, true)) {
_x = _x + ga;
}
while (ground.hitTest(_x - wh + ga, _y - hu + ga, true)) {
_x = _x + ga;
_y = _y + ga;
}
while (ground.hitTest(_x + wh - ga, _y - hu + ga, true)) {
_x = _x - ga;
_y = _y + ga;
}
while (ground.hitTest(_x - wh + ga, _y + hd - ga, true)) {
_x = _x + ga;
_y = _y - ga;
}
while (ground.hitTest(_x + wh - ga, _y + hd - ga, true)) {
_x = _x - ga;
_y = _y - ga;
}
}
if (jumping) {
gotoAndPlay('jump' + cb);
status = 'jump';
}
if (gravity > 0 and status != 'jump') {
if (status.indexOf('swim') > -1) {
outOfWater = true;
}
}
if (ground.hitTest(arrow._x, arrow._y, true)) {
if (arrow._alpha) {
j = Math.floor((arrow._x - (ground._x + ground.stX)) / ground.wid);
i = Math.floor((arrow._y - (ground._y + ground.stY)) / ground.wid);
if (!_root.iceMatrix[i][j]) {
j += sign;
}
removeMovieClip(ground['b_' + i + '_' + j]);
_root.iceMatrix[i][j] = 0;
ground.fixFrames(i, j);
arrow._alpha = 0;
}
}
if (this.hitTest(_root.hero) and _root.hero.alive) {
if (this._currentframe < 220) {
this.gotoAndPlay('goal');
alive = false;
}
}
if (!water.hitTest(_x, _y, true) and this.status.indexOf('swim') > -1) {
this.alive = false;
this.gotoAndStop('frozen');
this.status = 'frozen';
this._alpha = 70;
j = Math.floor((this._x - (water._x + water.stX)) / water.wid);
i = Math.floor((this._y - (water._y + water.stY)) / water.wid);
this._x = _root.wid * j + _root.stX + _root.wid / 2;
this._y = _root.wid * i + _root.stY - _root.wid / 2;
}
} else {
if (this._currentframe < 250) {
++frozenFr;
if (frozenFr > 40) {
_alpha = _alpha - 3;
}
if (frozenFr == 100) {
_root.transition('resetLvl');
}
}
}
}
}
movieClip 694 {
frame 1 {
water = _root.water;
ground = _root.ground;
onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha += 8;
}
if ((this.hitTest(this._parent.hero) or this._parent.hero.hitTest(this)) and this._parent.hero.alive) {
if (this.star._currentframe == 1 and _root.lastStar != this and this._alpha >= 100) {
stop();
this.star.play();
++_root.starPicked;
_root.soundPlay(_root.starS, 1);
if (_root.bonus == 2) {
_root.lastStar = this;
if (_root.starPicked % _root.numOfCoins == 1) {
num = Math.floor(_root.starPicked / _root.numOfCoins);
_root.startShadow(num);
_root.makeShadow(num + 1);
}
if (_root.starPicked % _root.numOfCoins == 0) {
_root.resetStarsIn(2000);
}
}
if (_root.bonus == 3) {
if (_root.starPicked % _root.numOfCoins == 0) {
_root.resetStarsIn(1000);
_root.b3lvl += 0.5;
}
}
}
}
};
}
}
movieClip 697 {
}
movieClip 706 {
}
movieClip 719 {
}
movieClip 721 {
}
movieClip 728 {
}
movieClip 763 {
}
movieClip 765 {
}
movieClip 781 {
}
movieClip 783 {
}
movieClip 785 {
frame 26 {
gotoAndPlay('idle');
}
frame 50 {
play();
}
frame 65 {
gotoAndPlay('walk');
}
frame 85 {
gotoAndPlay('walk');
}
frame 109 {
stop();
}
frame 150 {
play();
}
frame 171 {
gotoAndPlay('swimIdle');
}
frame 200 {
play();
}
frame 215 {
gotoAndPlay('swimWalk');
}
frame 327 {
gotoAndPlay('idleCB');
}
frame 350 {
play();
}
frame 365 {
gotoAndPlay('walkCB');
}
frame 385 {
gotoAndPlay('walkCB');
}
frame 411 {
stop();
}
frame 450 {
play();
}
frame 470 {
gotoAndPlay('swimIdleCB');
}
frame 500 {
play();
}
frame 515 {
gotoAndPlay('swimWalkCB');
}
frame 550 {
stop();
}
}
instance enemy of movieClip 785 {
onClipEvent (load) {
useHandCursor = false;
var status = 'idle';
var speed = 1.75;
waterSpeed = 1.75;
ga = 1;
gravity = 0;
r = 16;
hd = _height / 2;
hu = _height / 2;
cb = '';
var cbCount = 0;
jumping = false;
jumpheight = 11.6;
ground = _root.ground;
water = _root.water;
upIsUp = true;
xIsUp = true;
fr = 0;
sign;
crossBow = _root.crossBow;
var alive = true;
cmdX = 0;
cmdY = 0;
hero = _root.hero;
frozenFr = 0;
ice = _root.fallingIce;
countCmd = function () {
cmdY = 0;
ch = 0;
j = Math.floor((this._x - (ground._x + ground.stX)) / ground.wid);
i = Math.floor((this._y - (ground._y + ground.stY)) / ground.wid);
if (_root.waterMatrix[i][j]) {
cmdX = 0;
cmdY = 0;
return undefined;
}
if (!_root.isGround(i + 1, j)) {
return undefined;
}
if (cmdX == -1) {
j = Math.floor((this._x + _width - (ground._x + ground.stX)) / ground.wid);
i = Math.floor((this._y - (ground._y + ground.stY)) / ground.wid);
}
if (cmdX == 1) {
j = Math.floor((this._x - _width - (ground._x + ground.stX)) / ground.wid);
i = Math.floor((this._y - (ground._y + ground.stY)) / ground.wid);
}
if (cmdX == 0) {
if (_root.isGround(i + 1, j - 1) or _root.isGround(i, j - 1) or _root.isGround(i + 2, j - 1)) {
if (!_root.waterMatrix[i + 1][j - 1] and !_root.waterMatrix[i][j - 1] or _root.isGround(i, j - 1)) {
if (!_root.isGround(i, j - 1) or !(_root.isGround(i - 1, j - 1) or _root.isGround(i - 1, j) or _root.waterMatrix[i - 1][j - 1] or _root.waterMatrix[i - 1][j])) {
cmdX = -1;
}
}
}
if (_root.isGround(i + 1, j + 1) or _root.isGround(i, j + 1) or _root.isGround(i + 2, j + 1)) {
if (!_root.waterMatrix[i + 1][j + 1] and !_root.waterMatrix[i][j + 1] or _root.isGround(i, j + 1)) {
if (!_root.isGround(i, j + 1) or !(_root.isGround(i - 1, j + 1) or _root.isGround(i - 1, j) or _root.waterMatrix[i - 1][j + 1] or _root.waterMatrix[i - 1][j])) {
cmdX = 1;
}
}
}
}
if (cmdX == 1) {
if (!_root.isGround(i + 1, j + 1) and !_root.isGround(i, j + 1) and !_root.isGround(i + 2, j + 1)) {
cmdX = -1;
}
if ((_root.waterMatrix[i + 1][j + 1] or _root.waterMatrix[i][j + 1]) and !_root.isGround(i, j + 1)) {
cmdX = -1;
}
if (_root.isGround(i, j + 1) and (_root.isGround(i - 1, j + 1) or _root.isGround(i - 1, j) or _root.waterMatrix[i - 1][j + 1] or _root.waterMatrix[i - 1][j])) {
cmdX = -1;
}
if (_root.isGround(i, j + 1) and cmdX == 1) {
cmdY = -1;
}
if (cmdX == -1) {
ch = true;
}
}
if (cmdX == -1) {
if (!_root.isGround(i + 1, j - 1) and !_root.isGround(i, j - 1) and !_root.isGround(i + 2, j - 1)) {
cmdX = 1;
}
if ((_root.waterMatrix[i + 1][j - 1] or _root.waterMatrix[i][j - 1]) and !_root.isGround(i, j - 1)) {
cmdX = 1;
}
if (_root.isGround(i, j - 1) and (_root.isGround(i - 1, j - 1) or _root.isGround(i - 1, j) or _root.waterMatrix[i - 1][j - 1] or _root.waterMatrix[i - 1][j])) {
cmdX = 1;
}
if (_root.isGround(i, j - 1) and cmdX == -1) {
cmdY = -1;
}
if (cmdX == 1 and ch) {
cmdX = 0;
}
}
};
}
onClipEvent (enterFrame) {
if (!_root.pause) {
++fr;
kp = false;
wh = _width / 2;
if (alive) {
if (cmdX == -1) {
this._xscale = -Math.abs(this._xscale);
if (!water.hitTest(_x, _y, true)) {
if (!ground.hitTest(_x - wh - speed, _y, true)) {
_x = _x - speed;
}
if (this._currentframe % 300 < 50 or this._currentframe % 300 > 100) {
this.gotoAndPlay('walk' + cb);
status = 'walk';
}
} else {
if (!ground.hitTest(_x - wh - waterSpeed, _y, true)) {
_x = _x - waterSpeed;
}
if (this._currentframe % 300 < 200 or this._currentframe % 300 >= 250) {
this.gotoAndPlay('swimWalk' + cb);
status = 'swimWalk';
}
}
kp = true;
}
if (cmdX == 1) {
this._xscale = Math.abs(this._xscale);
if (!water.hitTest(_x, _y, true)) {
if (!ground.hitTest(_x + wh + speed, _y - hd, true)) {
_x = _x + speed;
}
if (this._currentframe % 300 < 50 or this._currentframe % 300 > 100) {
this.gotoAndPlay('walk' + cb);
status = 'walk';
}
} else {
if (!ground.hitTest(_x + wh + waterSpeed, _y - hd, true)) {
_x = _x + waterSpeed;
}
if (this._currentframe % 300 < 200 or this._currentframe % 300 >= 250) {
this.gotoAndPlay('swimWalk' + cb);
status = 'swimWalk';
}
}
kp = true;
}
wh = _width / 2;
if (cmdY == -1) {
if (!water.hitTest(_x, _y, true) && !jumping && gravity < ga * 4 && onGround) {
gravity = -jumpheight;
jumping = true;
upIsUp = false;
_root.soundPlay(_root.bearJumpS, 1);
}
if (water.hitTest(_x, _y - hu - waterSpeed - 8, true) and water.hitTest(_x, _y + hd, true)) {
_y = _y - waterSpeed;
}
}
if (!ground.hitTest(_x, _y, true) and !water.hitTest(_x, _y, true)) {
gravity += ga;
_y = _y + gravity;
} else {
jumping = false;
gravity = 0;
}
if (water.hitTest(_x, _y, true)) {
if (gravity > 0) {
onGround = false;
j = Math.floor((this._x - (water._x + water.stX)) / water.wid);
i = Math.floor((this._y - (water._y + water.stY)) / water.wid);
water['b_' + i + '_' + j].pljus._x = this._x - (water._x + water.stX + j * water.wid);
water['b_' + i + '_' + j].pljus.play();
}
if ((_currentframe % 300 < 150 or _currentframe % 300 >= 200) and !kp) {
this.gotoAndPlay('swimIdle' + cb);
status = 'swimIdle';
}
if (cmdY == 1) {
if (water.hitTest(_x, _y - hu, true) and !water.hitTest(_x, _y + hd, true)) {
gravity += ga * 5;
_y = _y + gravity;
} else {
_y = _y + waterSpeed;
}
} else {
if (water.hitTest(_x, _y - hu, true) and !water.hitTest(_x, _y + hd, true)) {
_y = _y - ga * 2;
}
if (!water.hitTest(_x, _y - hu - 8, true) and water.hitTest(_x, _y + hd, true)) {
_y = _y + ga * 2;
}
if (!water.hitTest(_x + wh, _y, true) and water.hitTest(_x - wh, _y, true)) {
if (!kp) {
_x = _x - ga * 2;
} else {
_x = _x - ga;
}
}
if (water.hitTest(_x + wh, _y, true) and !water.hitTest(_x - wh, _y, true)) {
if (!kp) {
_x = _x + ga * 2;
} else {
_x = _x + ga;
}
}
}
}
while (ground.hitTest(_x, _y - ga + hd, true)) {
gravity = 0;
jumping = false;
_y = _y - ga;
onGround = true;
}
while (ground.hitTest(_x, _y + ga - hu, true)) {
gravity = 0;
_y = _y + ga;
}
while (ground.hitTest(_x + wh - ga, _y, true)) {
_x = _x - ga;
}
while (ground.hitTest(_x - wh + ga, _y, true)) {
_x = _x + ga;
}
while (ground.hitTest(_x - wh + ga, _y - hu + ga, true)) {
_x = _x + ga;
_y = _y + ga;
}
while (ground.hitTest(_x + wh - ga, _y - hu + ga, true)) {
_x = _x - ga;
_y = _y + ga;
}
while (ground.hitTest(_x - wh + ga, _y + hd - ga, true)) {
_x = _x + ga;
_y = _y - ga;
}
while (ground.hitTest(_x + wh - ga, _y + hd - ga, true)) {
_x = _x - ga;
_y = _y - ga;
}
if (!kp and !jumping and !water.hitTest(_x, _y, true)) {
if (this._currentframe % 300 >= 50) {
this.gotoAndPlay('idle' + cb);
status = 'idle';
}
}
if (jumping) {
this.gotoAndPlay('jump' + cb);
status = 'jump';
}
if (gravity > 0 and status != 'jump') {
if (status.indexOf('swim') > -1) {
outOfWater = true;
}
this.gotoAndPlay('walk' + cb);
status = 'walk';
}
if (this.hitTest(_root.hero)) {
if (_root.hero.alive and this.alive) {
_root.hero.gotoAndPlay('dead');
_root.hero.alive = false;
}
}
if (fr > 30) {
countCmd();
}
} else {
++frozenFr;
if (frozenFr > 40) {
_alpha = _alpha - 3;
}
}
}
}
}
movieClip 789 {
frame 1 {
stop();
}
frame 2 {
_root.soundPlay(_root.swapS, 1);
}
frame 18 {
stop();
}
}
movieClip 790 {
frame 1 {
water = _root.water;
ground = _root.ground;
goal = _root.goal;
onEnterFrame = function () {
if ((this.hitTest(this._parent.hero) or this._parent.hero.hitTest(this)) and this._parent.hero.alive) {
if (this.mc._currentframe == 1) {
e = 0;
while (e < _root.numOfEnemy) {
enemy = _root['enemy_' + e];
if (enemy.status.indexOf('swim') > -1) {
enemy.alive = false;
enemy.gotoAndStop('frozen');
enemy.status = 'frozen';
enemy._alpha = 70;
j = Math.floor((enemy._x - (water._x + water.stX)) / water.wid);
i = Math.floor((enemy._y - (water._y + water.stY)) / water.wid);
enemy._x = _root.wid * j + _root.stX + _root.wid / 2;
enemy._y = _root.wid * i + _root.stY - _root.wid / 2;
}
++e;
}
if (goal.status.indexOf('swim') > -1) {
goal.alive = false;
goal.gotoAndStop('frozen');
goal.status = 'frozen';
goal._alpha = 70;
j = Math.floor((goal._x - (water._x + water.stX)) / water.wid);
i = Math.floor((goal._y - (water._y + water.stY)) / water.wid);
goal._x = _root.wid * j + _root.stX + _root.wid / 2;
goal._y = _root.wid * i + _root.stY - _root.wid / 2;
}
this.gotoAndStop(1);
this.mc.play();
this._parent.swap();
}
}
i = 0;
while (i < _root.numOfEnemy) {
enemy = _root['enemy_' + i];
if (this.hitTest(enemy) or enemy(this)) {
if (this.mc._currentframe == 1) {
if (_root.hero.status.indexOf('swim') > -1) {
_root.hero.alive = false;
_root.hero.gotoAndStop('frozen');
_root.hero.status = 'frozen';
_root.hero._alpha = 70;
j = Math.floor((_root.hero._x - (water._x + water.stX)) / water.wid);
i = Math.floor((_root.hero._y - (water._y + water.stY)) / water.wid);
_root.hero._x = _root.wid * j + _root.stX + _root.wid / 2;
_root.hero._y = _root.wid * i + _root.stY - _root.wid / 2;
}
if (goal.status.indexOf('swim') > -1) {
goal.alive = false;
goal.gotoAndStop('frozen');
goal.status = 'frozen';
goal._alpha = 70;
j = Math.floor((goal._x - (water._x + water.stX)) / water.wid);
i = Math.floor((goal._y - (water._y + water.stY)) / water.wid);
goal._x = _root.wid * j + _root.stX + _root.wid / 2;
goal._y = _root.wid * i + _root.stY - _root.wid / 2;
}
e = 0;
while (e < _root.numOfEnemy) {
enemy2 = _root['enemy_' + e];
if (enemy2.status.indexOf('swim') > -1) {
enemy2.alive = false;
enemy2.gotoAndStop('frozen');
enemy2.status = 'frozen';
enemy2._alpha = 70;
j = Math.floor((enemy2._x - (water._x + water.stX)) / water.wid);
i = Math.floor((enemy2._y - (water._y + water.stY)) / water.wid);
enemy2._x = _root.wid * j + _root.stX + _root.wid / 2;
enemy2._y = _root.wid * i + _root.stY - _root.wid / 2;
}
++e;
}
this.gotoAndStop(1);
this.mc.play();
this._parent.swap();
}
}
++i;
}
};
}
}
movieClip 794 {
frame 1 {
stop();
}
frame 18 {
stop();
}
}
movieClip 795 {
frame 1 {
water = _root.water;
ground = _root.ground;
onEnterFrame = function () {
if ((this.hitTest(this._parent.hero) or this._parent.hero.hitTest(this)) and this._parent.hero.alive) {
if (this.mc._currentframe == 1) {
stop();
this.mc.play();
}
}
};
}
}
instance key of movieClip 795 {
onClipEvent (load) {
this.swapDepths(-10);
}
}
movieClip 796 {
frame 1 {
stop();
}
frame 1 {
if (_root.bonus == 1) {
water = _root.water;
ground = _root.ground;
ga = 0.3;
gravity = 0;
r = _height / 2;
hd = r;
hu = _height - hd;
wh = _width / 2;
bounce = 5;
this._y = -random(500);
this._x = 100 + random(600);
onEnterFrame = function () {
if (!_root.pause) {
if ((this.hitTest(this._parent.hero) or this._parent.hero.hitTest(this)) and this._parent.hero.alive) {
if (this.star._currentframe == 1) {
this.stop();
this._alpha = 100;
this.star.play();
++_root.starPicked;
if (!_root.b1Pow) {
_root.soundPlay(_root.bonusStarS, 1);
} else {
if (_root.starPicked % 3 == 0) {
_root.soundPlay(_root.bonusStarS, 1);
}
}
}
}
if (this.star._currentframe == this.star._totalframes or this._currentframe == this._totalframes) {
this.gotoAndStop(1);
this.star.gotoAndStop(1);
this._y = -random(500);
this._x = 100 + random(600);
bounce = 5;
}
if (this._currentframe > 1 and this.star._currentframe == 1) {
this.play();
}
if (this.star._currentframe == 1) {
if (!_root.b1Pow) {
if (!ground.hitTest(_x, _y, true) and !water.hitTest(_x, _y, true)) {
gravity += ga;
_y = _y + gravity;
onGround = false;
}
while (ground.hitTest(_x, _y - ga + hd, true)) {
b = true;
_y = _y - ga;
onGround = true;
}
if (onGround) {
bounce = Math.max(0, bounce - 1);
gravity = -bounce;
this.play();
}
while (ground.hitTest(_x, _y + ga - hu, true)) {
gravity = 0;
_y = _y + ga;
}
while (ground.hitTest(_x + wh - ga, _y, true)) {
_x = _x - ga;
}
while (ground.hitTest(_x - wh + ga, _y, true)) {
_x = _x + ga;
}
} else {
dist = Math.sqrt((_root.hero._x - _x) * (_root.hero._x - _x) + (_root.hero._y - _y) * (_root.hero._y - _y));
this._x += (_root.hero._x - this._x) * 20 / dist;
this._y += (_root.hero._y - this._y) * 20 / dist;
}
}
} else {
this.stop();
}
};
}
}
}
movieClip 798 {
}
movieClip 801 {
}
movieClip 805 {
frame 1 {
stop();
}
frame 2 {
_root.soundPlay(_root.pickupS, 1);
play();
this._parent.stop();
this._parent.gotoAndStop(80);
}
frame 45 {
stop();
}
}
movieClip 806 {
frame 1 {
stop();
}
frame 1 {
if (_root.bonus == 1) {
water = _root.water;
ground = _root.ground;
ga = 0.3;
gravity = 0;
r = _height / 2;
hd = r;
hu = _height - hd;
wh = _width / 2;
bounce = 5;
this._y = -random(450) - 50;
this._x = 100 + random(600);
this.swapDepths(-3999);
fr = 0;
onEnterFrame = function () {
if (!_root.pause) {
++fr;
if ((this.hitTest(this._parent.hero) or this._parent.hero.hitTest(this)) and this._parent.hero.alive) {
if (this.star._currentframe == 1) {
this.stop();
this._alpha = 100;
this.star.play();
_root.b1Time += 6000;
}
}
if (this.star._currentframe == this.star._totalframes or this._currentframe == this._totalframes) {
this.gotoAndStop(1);
this.star.gotoAndStop(1);
fr = 0;
this._y = -random(450) - 50;
this._x = 100 + random(600);
bounce = 5;
}
if (this._currentframe > 1 and this.star._currentframe == 1) {
this.play();
this.star.clock.play();
}
if (fr > 120 and this.star._currentframe == 1) {
if (!_root.b1Pow) {
if (!ground.hitTest(_x, _y, true) and !water.hitTest(_x, _y, true)) {
gravity += ga;
_y = _y + gravity;
onGround = false;
}
while (ground.hitTest(_x, _y - ga + hd, true)) {
b = true;
_y = _y - ga;
onGround = true;
}
if (onGround) {
bounce = Math.max(0, bounce - 1);
gravity = -bounce;
this.play();
}
while (ground.hitTest(_x, _y + ga - hu, true)) {
gravity = 0;
_y = _y + ga;
}
while (ground.hitTest(_x + wh - ga, _y, true)) {
_x = _x - ga;
}
while (ground.hitTest(_x - wh + ga, _y, true)) {
_x = _x + ga;
}
} else {
dist = Math.sqrt((_root.hero._x - _x) * (_root.hero._x - _x) + (_root.hero._y - _y) * (_root.hero._y - _y));
this._x += (_root.hero._x - this._x) * 20 / dist;
this._y += (_root.hero._y - this._y) * 20 / dist;
}
}
} else {
this.stop();
this.star.clock.stop();
}
};
}
}
}
movieClip 808 {
}
movieClip 809 {
}
movieClip 810 {
frame 1 {
stop();
}
frame 2 {
_root.soundPlay(_root.pickupS, 1);
}
frame 9 {
stop();
}
}
movieClip 811 {
frame 1 {
stop();
}
frame 1 {
if (_root.bonus == 1) {
water = _root.water;
ground = _root.ground;
ga = 0.3;
gravity = 0;
r = _height / 2;
hd = r;
hu = _height - hd;
wh = _width / 2;
bounce = 5;
this._y = -random(450) - 50;
this._x = 100 + random(600);
this.swapDepths(-3998);
fr = 0;
onEnterFrame = function () {
if (!_root.pause) {
++fr;
if ((this.hitTest(this._parent.hero) or this._parent.hero.hitTest(this)) and this._parent.hero.alive) {
if (this.star._currentframe == 1) {
this.stop();
this._alpha = 100;
this.star.play();
_root.b1Pow = true;
}
}
if (this.star._currentframe == this.star._totalframes or this._currentframe == this._totalframes) {
this.gotoAndStop(1);
this.star.gotoAndStop(1);
fr = 0;
this._y = -random(450) - 50;
this._x = 100 + random(600);
bounce = 5;
}
if (this._currentframe > 1 and this.star._currentframe == 1) {
this.play();
this.star.magnet.play();
}
if (fr == 60) {
_root.b1Pow = false;
}
if (fr > 300 and this.star._currentframe == 1) {
if (!ground.hitTest(_x, _y, true) and !water.hitTest(_x, _y, true)) {
gravity += ga;
_y = _y + gravity;
onGround = false;
}
while (ground.hitTest(_x, _y - ga + hd, true)) {
b = true;
_y = _y - ga;
onGround = true;
}
if (onGround) {
bounce = Math.max(0, bounce - 1);
gravity = -bounce;
this.play();
}
while (ground.hitTest(_x, _y + ga - hu, true)) {
gravity = 0;
_y = _y + ga;
}
while (ground.hitTest(_x + wh - ga, _y, true)) {
_x = _x - ga;
}
while (ground.hitTest(_x - wh + ga, _y, true)) {
_x = _x + ga;
}
}
} else {
this.stop();
this.star.magnet.stop();
}
};
}
}
}
movieClip 851 {
}
movieClip 860 {
}
movieClip 868 {
}
movieClip 870 {
}
movieClip 872 {
}
movieClip 880 {
}
movieClip 882 {
}
movieClip 891 {
frame 1 {
play();
}
frame 26 {
gotoAndPlay('idle');
}
frame 50 {
play();
}
frame 65 {
gotoAndPlay('walk');
}
frame 85 {
gotoAndPlay('walk');
}
frame 108 {
stop();
}
frame 109 {
stop();
}
frame 150 {
play();
}
frame 171 {
gotoAndPlay('swimIdle');
}
frame 200 {
play();
}
frame 215 {
gotoAndPlay('swimWalk');
}
frame 301 {
play();
}
frame 327 {
gotoAndPlay('idleCB');
}
frame 350 {
play();
}
frame 365 {
gotoAndPlay('walkCB');
}
frame 385 {
gotoAndPlay('walkCB');
}
frame 410 {
stop();
}
frame 411 {
stop();
}
frame 450 {
play();
}
frame 470 {
gotoAndPlay('swimIdleCB');
}
frame 500 {
play();
}
frame 515 {
gotoAndPlay('swimWalkCB');
}
frame 550 {
stop();
}
frame 600 {
angelSpeed = 1;
play();
}
frame 602 {
angelSpeed = 2;
play();
}
frame 605 {
angelSpeed = 3;
play();
}
frame 607 {
play();
}
frame 610 {
angelSpeed = -0.6;
play();
}
frame 614 {
play();
}
frame 619 {
gotoAndPlay('dead');
}
}
instance shadow of movieClip 891 {
onClipEvent (load) {
if (_root.bonus == 2 and this._name != 'shadow') {
this._alpha = 0;
maxAlpha = 100;
if (this._name == 'shadow0') {
leader = _root.hero;
}
moves = new Array();
delay = 60;
i = 0;
while (i < delay) {
moves[i] = new Object();
++i;
}
fr = 0;
this.onEnterFrame = function () {
if (!_root.pause) {
++fr;
if (this._alpha < maxAlpha and this._alpha > 0) {
this._alpha += 2;
}
if (fr == delay) {
fr = 0;
}
moves[fr - 1].x = leader._x;
moves[fr - 1].y = leader._y;
moves[fr - 1].fr = leader._currentframe;
moves[fr - 1].xscale = leader._xscale;
if (this._alpha > 0) {
this._x = moves[fr].x;
this._y = moves[fr].y;
this.gotoAndStop(moves[fr].fr);
this._xscale = moves[fr].xscale;
}
if (this.hitTest(_root.hero) and this._alpha >= maxAlpha) {
if (_root.hero.alive) {
_root.hero.gotoAndPlay('dead');
_root.hero.alive = false;
}
}
}
};
}
}
}
movieClip 893 {
frame 1 {
stop();
}
frame 1 {
if (_root.bonus == 3) {
water = _root.water;
ground = _root.ground;
r = 50;
onEnterFrame = function () {
if (!_root.pause) {
this.angle = (this.angle + _root.b3lvl * this.dir) % 360;
if ((this.hitTest(this._parent.hero) or this._parent.hero.hitTest(this)) and this._parent.hero.alive) {
_root.hero.alive = false;
_root.hero.gotoAndPlay('dead');
}
if (this._alpha > 0) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
this._x = centerX + r * Math.sin(this.angle * Math.PI / 180);
this._y = centerY + r * Math.cos(this.angle * Math.PI / 180);
this._rotation = Math.floor(this.angle);
}
}
};
}
}
}
movieClip 905 {
}
movieClip 931 {
}
movieClip 933 {
}
movieClip 937 {
}
movieClip 939 {
}
movieClip 946 {
frame 1 {
play();
}
frame 26 {
gotoAndPlay('idle');
}
frame 50 {
play();
}
frame 65 {
gotoAndPlay('walk');
}
frame 85 {
gotoAndPlay('walk');
}
frame 108 {
stop();
}
frame 109 {
stop();
}
frame 150 {
play();
}
frame 156 {
play();
}
frame 161 {
play();
}
frame 166 {
play();
}
frame 171 {
gotoAndPlay('swimIdle');
}
frame 200 {
play();
}
frame 202 {
play();
}
frame 204 {
play();
}
frame 206 {
play();
}
frame 208 {
play();
}
frame 210 {
play();
}
frame 212 {
play();
}
frame 214 {
play();
}
frame 215 {
gotoAndPlay('swimWalk');
}
frame 301 {
play();
}
frame 327 {
gotoAndPlay('idleCB');
}
frame 350 {
play();
}
frame 365 {
gotoAndPlay('walkCB');
}
frame 385 {
gotoAndPlay('walkCB');
}
frame 410 {
stop();
}
frame 411 {
stop();
}
frame 450 {
play();
}
frame 456 {
play();
}
frame 461 {
play();
}
frame 466 {
play();
}
frame 470 {
gotoAndPlay('swimIdleCB');
}
frame 500 {
play();
}
frame 502 {
play();
}
frame 504 {
play();
}
frame 506 {
play();
}
frame 508 {
play();
}
frame 510 {
play();
}
frame 512 {
play();
}
frame 514 {
play();
}
frame 515 {
gotoAndPlay('swimWalkCB');
}
frame 550 {
stop();
}
frame 600 {
angelSpeed = 1;
play();
}
frame 602 {
angelSpeed = 2;
play();
}
frame 605 {
angelSpeed = 3;
play();
}
frame 607 {
play();
}
frame 610 {
angelSpeed = -0.6;
play();
}
frame 614 {
play();
}
frame 619 {
gotoAndPlay('dead');
}
}
instance hero of movieClip 946 {
onClipEvent (load) {
this.gotoAndPlay(1);
useHandCursor = false;
var status = 'idle';
var speed = 3.5;
if (_root.bonus) {
speed = 5;
}
waterSpeed = 2.5;
if (_root.bonus) {
waterSpeed = 4;
}
ga = 1;
gravity = 0;
r = 14;
hd = _height / 2;
hu = _height / 2;
cb = '';
var cbCount = 0;
jumping = false;
jumpheight = 11.75;
ground = _root.ground;
water = _root.water;
upIsUp = true;
xIsUp = true;
fr = 0;
sign;
crossBow = _root.crossBow;
ice = _root.fallingIce;
var alive = true;
var angelSpeed;
aFr = 0;
cbLimit = 299;
this.swapDepths(0);
}
onClipEvent (enterFrame) {
if (!_root.pause) {
++fr;
if (alive) {
kp = false;
wh = _width / 2;
if (Key.isDown(37) or Key.isDown(65)) {
this._xscale = -Math.abs(this._xscale);
if (!water.hitTest(_x, _y, true)) {
if (!ground.hitTest(_x - wh - speed, _y, true)) {
_x = _x - speed;
}
if (this._currentframe % cbLimit < 50 or this._currentframe % cbLimit >= 100) {
if (!jumping) {
this.gotoAndPlay('walk' + cb);
status = 'walk';
}
}
} else {
if (!ground.hitTest(_x - wh - waterSpeed, _y, true)) {
_x = _x - waterSpeed;
}
if (this._currentframe % cbLimit < 200 or this._currentframe % cbLimit >= 250) {
this.gotoAndPlay('swimWalk' + cb);
status = 'swimWalk';
}
}
kp = true;
if (_root.bonus == 3) {
_root.b3Speed = -2;
}
}
if ((Key.isDown(39) or Key.isDown(68)) and !kp) {
this._xscale = Math.abs(this._xscale);
if (!water.hitTest(_x, _y, true)) {
if (!ground.hitTest(_x + wh + speed, _y - hd, true)) {
_x = _x + speed;
}
if (this._currentframe % cbLimit < 50 or this._currentframe % cbLimit >= 100) {
if (!jumping) {
this.gotoAndPlay('walk' + cb);
status = 'walk';
}
}
} else {
if (!ground.hitTest(_x + wh + waterSpeed, _y - hd, true)) {
_x = _x + waterSpeed;
}
if (this._currentframe % cbLimit < 200 or this._currentframe % cbLimit >= 250) {
this.gotoAndPlay('swimWalk' + cb);
status = 'swimWalk';
}
}
kp = true;
if (_root.bonus == 3) {
_root.b3Speed = 2;
}
}
wh = _width / 2;
if (Key.isDown(38) or Key.isDown(87)) {
if (!water.hitTest(_x, _y, true) && !jumping && gravity < ga * 4 && upIsUp && onGround) {
gravity = -jumpheight;
jumping = true;
upIsUp = false;
_root.soundPlay(_root.jumpS, 1);
if (status != 'jump') {
this.gotoAndPlay('jump' + cb);
status = 'jump';
}
}
if (water.hitTest(_x, _y - hu - waterSpeed - 8, true) and water.hitTest(_x, _y + hd, true)) {
_y = _y - waterSpeed;
}
}
if (!ground.hitTest(_x, _y, true) and !water.hitTest(_x, _y, true)) {
gravity += ga;
_y = _y + gravity;
} else {
jumping = false;
gravity = 0;
}
if (water.hitTest(_x, _y, true)) {
onGround = false;
if (gravity > 0) {
j = Math.floor((this._x - (water._x + water.stX)) / water.wid);
i = Math.floor((this._y - (water._y + water.stY)) / water.wid);
water['b_' + i + '_' + j].pljus._x = this._x - (water._x + water.stX + j * water.wid);
water['b_' + i + '_' + j].pljus.play();
}
if ((_currentframe % cbLimit < 150 or _currentframe % cbLimit >= 200) and !kp) {
this.gotoAndPlay('swimIdle' + cb);
status = 'swimIdle';
}
if (Key.isDown(40) or Key.isDown(83)) {
if (water.hitTest(_x, _y - hu, true) and !water.hitTest(_x, _y + hd, true)) {
gravity += ga * 5;
_y = _y + gravity;
} else {
_y = _y + waterSpeed;
}
} else {
if (water.hitTest(_x, _y - hu, true) and !water.hitTest(_x, _y + hd, true)) {
_y = _y - ga * 2;
}
if (!water.hitTest(_x, _y - hu - 8, true) and water.hitTest(_x, _y + hd, true)) {
_y = _y + ga * 2;
}
if (!water.hitTest(_x + wh, _y, true) and water.hitTest(_x - wh, _y, true)) {
if (!kp) {
_x = _x - ga * 2;
} else {
_x = _x - ga / 2;
}
}
if (water.hitTest(_x + wh, _y, true) and !water.hitTest(_x - wh, _y, true)) {
if (!kp) {
_x = _x + ga * 2;
} else {
_x = _x + ga;
}
}
}
}
while (ground.hitTest(_x, _y - ga + hd, true)) {
gravity = 0;
jumping = false;
_y = _y - ga;
onGround = true;
}
while (ground.hitTest(_x, _y + ga - hu, true)) {
gravity = 0;
_y = _y + ga;
}
while (ground.hitTest(_x + wh - ga, _y, true)) {
_x = _x - ga;
}
while (ground.hitTest(_x - wh + ga, _y, true)) {
_x = _x + ga;
}
while (ground.hitTest(_x - wh + ga, _y + hd - ga, true)) {
_x = _x + ga;
_y = _y - ga;
}
while (ground.hitTest(_x + wh - ga, _y + hd - ga, true)) {
_x = _x - ga;
_y = _y - ga;
}
if (!kp and !jumping and !water.hitTest(_x, _y, true)) {
if (this._currentframe % cbLimit >= 50) {
this.gotoAndPlay('idle' + cb);
status = 'idle';
}
}
if (jumping) {
if (status != 'jump') {
this.gotoAndPlay('jump' + cb);
status = 'jump';
}
}
if (gravity > 0 and !jumping) {
if (status.indexOf('swim') > -1) {
outOfWater = true;
}
this.gotoAndStop('fall' + cb);
status = 'fall';
}
if (gravity > -2 and jumping) {
this.gotoAndStop('fall' + cb);
status = 'fall';
}
i = 0;
while (i < 7) {
arrow = _root['arrow' + i];
if (ground.hitTest(arrow._x, arrow._y, true)) {
if (arrow._alpha) {
j = Math.floor((arrow._x - (ground._x + ground.stX)) / ground.wid);
i = Math.floor((arrow._y - (ground._y + ground.stY)) / ground.wid);
if (!_root.iceMatrix[i][j] and !_root.groundMatrix[i][j]) {
j += sign;
}
if (_root.iceMatrix[i][j] == 1) {
ground['b_' + i + '_' + j].mask.gotoAndPlay('hitted');
++_root.blocksDestroyed;
_root.iceMatrix[i][j] = 0;
ground.fixFrames(i, j);
_root.soundPlay(_root['break' + (random(4) + 1) + 'S'], 1);
}
arrow._alpha = 0;
}
}
++i;
}
if (ground.hitTest(ice._x, ice._y, true)) {
if (ice._currentframe == 1) {
j = Math.floor((ice._x - (ground._x + ground.stX)) / ground.wid);
i = Math.floor((ice._y - (ground._y + ground.stY)) / ground.wid);
if (!_root.iceMatrix[i][j] and !_root.groundMatrix[i][j]) {
++i;
}
if (_root.iceMatrix[i][j] == 1) {
ground['b_' + i + '_' + j].mask.gotoAndPlay('hitted');
_root.iceMatrix[i][j] = 0;
ground.fixFrames(i, j);
_root.soundPlay(_root['break' + (random(4) + 1) + 'S'], 1);
}
if (_root.groundMatrix[i][j] == 1) {
_root.soundPlay(_root.icicleS, 1);
}
ice.play();
ice.ready = false;
ice.fall = false;
}
}
if (water.hitTest(ice._x, ice._y, true)) {
if (ice._currentframe == 1) {
j = Math.floor((ice._x - (ground._x + ground.stX)) / ground.wid);
i = Math.floor((ice._y - (ground._y + ground.stY)) / ground.wid);
heJ = Math.floor((_x - (water._x + water.stX)) / water.wid);
heI = Math.floor((_y - (water._y + water.stY)) / water.wid);
if (i == heI and j == heJ) {
alive = false;
gotoAndStop('frozen');
this._alpha = 70;
status = 'frozen';
_x = _root.wid * j + _root.stX + _root.wid / 2;
_y = _root.wid * i + _root.stY - _root.wid / 2;
}
gJ = Math.floor((_root.goal._x - (water._x + water.stX)) / water.wid);
gI = Math.floor((_root.goal._y - (water._y + water.stY)) / water.wid);
if (i == gI and j == gJ) {
_root.goal.alive = false;
_root.goal.gotoAndStop('frozen');
_root.goal._alpha = 70;
_root.goal._x = _root.wid * j + _root.stX + _root.wid / 2;
_root.goal._y = _root.wid * i + _root.stY - _root.wid / 2;
}
e = 0;
while (e < _root.numOfEnemy) {
enemy = _root['enemy_' + e];
eJ = Math.floor((enemy._x - (water._x + water.stX)) / water.wid);
eI = Math.floor((enemy._y - (water._y + water.stY)) / water.wid);
if (i == eI and j == eJ) {
enemy.alive = false;
enemy.gotoAndStop('frozen');
enemy._alpha = 70;
enemy.status = 'frozen';
enemy._x = _root.wid * j + _root.stX + _root.wid / 2;
enemy._y = _root.wid * i + _root.stY - _root.wid / 2;
}
++e;
}
if (!_root.waterMatrix[i][j]) {
++i;
}
water['b_' + i + '_' + j].mask.gotoAndPlay('vanish');
_root.waterMatrix[i][j] = 0;
setTimeout(water.fixFrames, 500, i, j);
_root.iceMatrix[i][j] = 1;
ground.drawBlocks();
ground['b_' + i + '_' + j].mask.gotoAndPlay('appear');
_root.soundPlay(_root.swapS, 1);
ice._x = cbLimit0;
ice.play();
ice.ready = false;
ice.fall = false;
}
}
if (this.hitTest(ice._x, ice._y, true)) {
if (ice._currentframe == 1 and alive) {
this.gotoAndPlay('dead');
this.alive = false;
ice.play();
ice.ready = false;
ice.fall = false;
}
}
if (cbCount > 0) {
if (cb == '') {
cb = 'CB';
gotoAndStop('idle' + cb);
}
} else {
if (cb == 'CB') {
cb = '';
gotoAndStop('idle' + cb);
}
}
if (this._y > 600) {
this.gotoAndPlay('dead');
this.alive = false;
}
if (crossBow.hitTest(this)) {
if (crossBow.mc._currentframe == 1) {
crossBow.stop();
crossBow.mc.play();
cbCount = 99999;
this.gotoAndStop(this._currentframe + cbLimit);
}
}
} else {
if (status != 'frozen') {
if (_currentframe < 600) {
this.gotoAndPlay(600);
}
this._y -= angelSpeed;
}
++aFr;
if (aFr == 1) {
_root.soundPlay(_root.deathS, 1);
}
if (aFr > 40) {
this._alpha -= 1.5;
}
if (aFr == 100) {
if (!_root.bonus) {
_root.transition('resetLvl');
} else {
rec = Math.max(_root['b' + _root.bonus].data['stars' + _root.bonus], _root.starPicked);
_root['b' + _root.bonus].data['stars' + _root.bonus] = rec;
_root.info.frame = 6;
_root.info.play();
_root.soundFadeOut(_root.mainBGM, 25);
}
}
}
if (_root.bonus == 1) {
if (_root.b1Time - (getTimer() - _root.startTime) > 0) {
_root.b1Timer.text = _root.convertTime(_root.b1Time - (getTimer() - _root.startTime));
_root.b1Score.text = _root.starPicked;
} else {
rec = Math.max(_root['b' + _root.bonus].data['stars' + _root.bonus], _root.starPicked);
_root['b' + _root.bonus].data['stars' + _root.bonus] = rec;
_root.pauseGame(1);
_root.info.frame = 6;
_root.info.play();
_root.soundFadeOut(_root.mainBGM, 25);
}
}
if (_root.bonus == 2) {
_root.b1Score.text = _root.starPicked;
}
if (_root.bonus == 3) {
_root.b1Score.text = _root.starPicked;
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 38) {
upIsUp = true;
}
if (Key.getCode() == 87) {
upIsUp = true;
}
if (Key.getCode() == 88) {
xIsUp = true;
}
if (Key.getCode() == 17) {
xIsUp = true;
}
if (Key.getCode() == 80) {
if (!_root.pause and _root.gameMenu._currentframe == 1) {
_root.gameMenu.play();
stopAllSounds();
_root.soundPlay(_root.pauseS, 1);
_root.pauseGame(1);
}
}
if (Key.getCode() == 27) {
if (!_root.pause and !_root.info.lock and _root.gameMenu._currentframe == 1) {
_root.gameMenu.play();
stopAllSounds();
_root.soundPlay(_root.pauseS, 1);
_root.pauseGame(1);
}
}
}
onClipEvent (keyDown) {
if (!_root.pause) {
i = cbCount % 7;
arrow = _root['arrow' + i];
if (Key.getCode() == 88 or Key.getCode() == 17) {
if (arrow._alpha == 0 and cbCount > 0 and xIsUp and alive) {
xIsUp = false;
--cbCount;
_root.soundPlay(_root.arrowS, 1);
arrow._alpha = 100;
sign = Math.abs(_xscale) / _xscale;
arrow._xscale = Math.abs(arrow._xscale) * sign;
arrow._x = this._x + 10 * sign;
arrow._y = this._y + 5;
arrow.xSpeed = speed * 5 * sign;
}
}
}
if (Key.getCode() == 82) {
if (!_root.info.lock) {
_root.transition('resetLvl');
}
}
}
}
movieClip 953 {
frame 1 {
stop();
}
frame 2 {
_root.soundPlay(_root.pljusS, 1);
}
}
movieClip 958 {
frame 1 {
stop();
var nonExisting = 5;
}
frame 5 {
stop();
exists = false;
}
frame 50 {
play();
}
frame 62 {
gotoAndStop('existing');
}
frame 98 {
play();
}
frame 110 {
gotoAndStop('nonExisting');
}
}
movieClip 960 {
}
movieClip 976 {
frame 1 {
stop();
}
frame 1 {
stop();
}
}
movieClip 977 {
frame 1 {
m = _root.m;
n = _root.n;
wid = block._width;
stX = -375;
stY = -225;
getBlock = function (i, j) {
return this['b_' + i + '_' + j];
};
removeOriginalBlock = function () {
block._x = 5000;
block._y = 5000;
};
countFrameName = function (mat, i, j) {
tFrame = 't';
if (mat[i - 1][j]) {
tFrame += 'U';
}
if (mat[i][j + 1]) {
tFrame += 'R';
}
if (mat[i + 1][j]) {
tFrame += 'D';
}
if (mat[i][j - 1]) {
tFrame += 'L';
}
return tFrame;
};
fixFrames = function (i, j) {
bl = getBlock(i - 1, j);
bl.gotoAndStop(countFrameName(_root.waterMatrix, i - 1, j));
bl = getBlock(i, j + 1);
bl.gotoAndStop(countFrameName(_root.waterMatrix, i, j + 1));
bl = getBlock(i + 1, j);
bl.gotoAndStop(countFrameName(_root.waterMatrix, i + 1, j));
bl = getBlock(i, j - 1);
bl.gotoAndStop(countFrameName(_root.waterMatrix, i, j - 1));
};
drawBlocks = function (swap) {
i = 0;
while (i < m) {
j = 0;
while (j < n) {
if (_root.waterMatrix[i][j]) {
duplicateMovieClip(block, 'b_' + i + '_' + j, i * n + j);
bl = getBlock(i, j);
bl._x = wid * j + stX;
bl._y = wid * i + stY;
bl.gotoAndStop(countFrameName(_root.waterMatrix, i, j));
if (swap) {
bl.mask.gotoAndPlay('appear');
}
} else {
bl = getBlock(i, j);
if (bl.mask._currentframe != bl.mask.nonExisting) {
bl.mask.gotoAndPlay('vanish');
}
}
++j;
}
++i;
}
removeOriginalBlock();
};
drawBlocks();
}
}
instance water of movieClip 977 {
onClipEvent (load) {
this.swapDepths(1);
}
}
movieClip 979 {
}
movieClip 984 {
}
movieClip 996 {
}
movieClip 1016 {
frame 1 {
var loopCount = 0;
if (this.exist) {
play();
} else {
stop();
}
}
frame 30 {
_root.soundPlay(_root.bossAppearS, 1);
}
frame 46 {
if (!_root.hero.alive) {
gotoAndPlay('vanish');
}
}
frame 94 {
if (!_root.hero.alive) {
gotoAndPlay('vanish');
}
}
frame 129 {
++loopCount;
if (!_root.hero.alive) {
gotoAndPlay('vanish');
}
if (loopCount < 2) {
gotoAndPlay('looping');
} else {
loopCount = 0;
}
}
frame 147 {
_root.fallingIce.fall = true;
_root.fallingIce.quake = true;
_root.soundPlay(_root.bossHitS, 1);
}
frame 162 {
gotoAndPlay('looping');
}
frame 163 {
_root.soundPlay(_root.bossAppearS, 1);
}
frame 180 {
stop();
}
}
instance boss of movieClip 1016 {
onClipEvent (load) {
this.swapDepths(-5000);
}
}
movieClip 1021 {
frame 1 {
stop();
}
frame 15 {
ready = true;
stop();
}
}
instance fallingIce of movieClip 1021 {
onClipEvent (load) {
var fall = false;
var gra = 0;
var a = 0.5;
var stY = this._y;
hero = _root.hero;
water = _root.water;
var ready = true;
this.swapDepths(2);
var quake = false;
t = 5;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
if (fall and hero.alive) {
this._alpha = 100;
gra += a;
this._y += gra;
} else {
if (this.ready) {
this._y = stY;
this.gotoAndStop(1);
gra = 0;
j = Math.floor((hero._x - (water._x + water.stX)) / water.wid);
this._x = water.wid * j + _root.stX + water.wid / 2;
}
}
if (quake) {
_root._x = t;
_root.ram._x = _root.ram.stX - t;
t *= -0.9;
if (Math.abs(t) < 0.2) {
_root._x = 0;
_root.ram._x = _root.ram.stX;
quake = false;
t = 5;
}
}
if (this._y > 550) {
this.ready = true;
this.fall = false;
}
}
}
}
button 1027 {
on (release) {
if (!_root.pause and _root.gameMenu._currentframe == 1) {
_root.gameMenu.play();
stopAllSounds();
_root.soundPlay(_root.pauseS, 1);
_root.pauseGame(1);
}
if (_root.pause and _root.gameMenu._currentframe == 14) {
_root.gameMenu.play();
_root.pauseGame(0);
}
}
}
button 1031 {
on (release) {
if (!_root.info.lock) {
_root.transition('resetLvl');
}
}
}
button 1032 {
on (press) {
_root.musicOn = !_root.musicOn;
if (!_root.musicOn) {
stopAllSounds();
} else {
if (!_root.pause) {
if (!_root.bonus) {
w = Math.floor((_root.curLvl - 1) / 10) + 1;
_root.soundPlay(_root['w' + w + 'BGM'], 9999);
_root['w' + w + 'BGM'].setVolume(100);
} else {
_root.soundPlay(_root.mainBGM, 9999);
_root['w' + w + 'BGM'].setVolume(100);
}
}
}
}
}
button 1034 {
on (release) {
getURL('http://www.5hippos.com/walkthrough/super-sub-hero', '_blank');
}
}
movieClip 1036 {
}
instance ram of movieClip 1036 {
onClipEvent (load) {
var stX = _x;
var stY = _y;
this.swapDepths(13999);
}
}
movieClip 1039 {
frame 1 {
msg.text = _root.trans('Move');
}
}
instance of movieClip 1039 {
onClipEvent (load) {
if (_root.curLvl == 1 and _root.progress.data.lvl == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 1042 {
frame 1 {
msg.text = _root.trans('Fire');
}
}
instance of movieClip 1042 {
onClipEvent (load) {
if (_root.curLvl == 2 and _root.progress.data.lvl == 2) {
this._visible = true;
} else {
this._visible = false;
}
}
}
button 1050 {
on (release) {
getURL('http://www.5hippos.com', '');
}
}
movieClip 1057 {
instance menuBtn0 of movieClip 154 {
onClipEvent (load) {
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
this._parent._parent.play();
_root.pauseGame(0);
}
};
}
}
instance menuBtn1 of movieClip 154 {
onClipEvent (load) {
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
_root.info.play();
_root.info.frame = 7;
this._parent.lock = true;
}
};
}
}
instance menuBtn2 of movieClip 154 {
onClipEvent (load) {
if (_root.progress.data.lvl == 1) {
this.enabled = false;
this._parent.btnTxt2._alpha = 20;
}
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
_root.info.play();
_root.info.frame = 3;
this._parent.lock = true;
}
};
}
}
instance menuBtn3 of movieClip 154 {
onClipEvent (load) {
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
_root.info.play();
_root.info.frame = 2;
this._parent.lock = true;
}
};
}
}
instance menuBtn4 of movieClip 154 {
onClipEvent (load) {
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
_root.info.play();
if (!_root.bonus) {
_root.info.frame = 21;
} else {
_root.info.frame = 25 + _root.bonus;
}
this._parent.lock = true;
}
};
}
}
instance menuBtn5 of movieClip 154 {
onClipEvent (load) {
this.onRelease = function () {
if (!this._parent.lock) {
_root.soundPlay(_root.clickS, 1);
_root.info.play();
_root.info.frame = 8;
this._parent.lock = true;
}
};
}
}
}
movieClip 1058 {
frame 1 {
stop();
}
instance of movieClip 1057 {
onClipEvent (load) {
var sel = 0;
var numOfBtn = 6;
var lock = false;
this.btnTxt0.text = _root.trans('Resume');
this.btnShTxt0.text = _root.trans('Resume');
this.btnTxt1.text = _root.trans('Map');
this.btnShTxt1.text = _root.trans('Map');
this.btnTxt2.text = _root.trans('Statistics');
this.btnShTxt2.text = _root.trans('Statistics');
this.btnTxt3.text = _root.trans('Achievements');
this.btnShTxt3.text = _root.trans('Achievements');
this.btnTxt4.text = _root.trans('Help');
this.btnShTxt4.text = _root.trans('Help');
this.btnTxt5.text = _root.trans('Quit');
this.btnShTxt5.text = _root.trans('Quit');
}
}
frame 14 {
stop();
}
instance buttonList of movieClip 1057 {
onClipEvent (load) {
var sel = 0;
var numOfBtn = 6;
var lock = false;
this.btnTxt0.text = _root.trans('Resume');
this.btnShTxt0.text = _root.trans('Resume');
this.btnTxt1.text = _root.trans('Map');
this.btnShTxt1.text = _root.trans('Map');
this.btnTxt2.text = _root.trans('Statistics');
this.btnShTxt2.text = _root.trans('Statistics');
this.btnTxt3.text = _root.trans('Achievements');
this.btnShTxt3.text = _root.trans('Achievements');
this.btnTxt4.text = _root.trans('Help');
this.btnShTxt4.text = _root.trans('Help');
this.btnTxt5.text = _root.trans('Quit');
this.btnShTxt5.text = _root.trans('Quit');
}
onClipEvent (keyUp) {
if (!lock) {
if (Key.getCode() == 40) {
this['menuBtn' + sel].onRollOut();
++sel;
if (sel == numOfBtn) {
sel = 0;
}
while (!this['menuBtn' + sel].enabled) {
++sel;
if (sel == numOfBtn) {
sel = 0;
}
}
this['menuBtn' + sel].onRollOver();
}
if (Key.getCode() == 38) {
this['menuBtn' + sel].onRollOut();
--sel;
if (sel < 0) {
sel = numOfBtn - 1;
}
while (!this['menuBtn' + sel].enabled) {
--sel;
if (sel < 0) {
sel = numOfBtn - 1;
}
}
this['menuBtn' + sel].onRollOver();
}
if (Key.getCode() == 13 or Key.getCode() == 32 or Key.getCode() == 88 or Key.getCode() == 17) {
this['menuBtn' + sel].onRelease();
}
}
}
}
instance of movieClip 1057 {
onClipEvent (load) {
var sel = 0;
var numOfBtn = 6;
var lock = false;
this.btnTxt0.text = _root.trans('Resume');
this.btnShTxt0.text = _root.trans('Resume');
this.btnTxt1.text = _root.trans('Map');
this.btnShTxt1.text = _root.trans('Map');
this.btnTxt2.text = _root.trans('Statistics');
this.btnShTxt2.text = _root.trans('Statistics');
this.btnTxt3.text = _root.trans('Achievements');
this.btnShTxt3.text = _root.trans('Achievements');
this.btnTxt4.text = _root.trans('Help');
this.btnShTxt4.text = _root.trans('Help');
this.btnTxt5.text = _root.trans('Quit');
this.btnShTxt5.text = _root.trans('Quit');
}
}
frame 22 {
if (_root.tranz._currentframe == 1) {
if (!_root.bonus) {
w = Math.floor((_root.curLvl - 1) / 10) + 1;
_root.soundPlay(_root['w' + w + 'BGM'], 9999);
} else {
_root.soundPlay(_root.mainBGM, 9999);
}
}
}
}
instance gameMenu of movieClip 1058 {
onClipEvent (load) {
this.swapDepths(13998);
}
}
instance info of movieClip 484 {
onClipEvent (load) {
this.swapDepths(15001);
this.gotoAndStop(1);
}
}
movieClip 1061 {
frame 1 {
msg.text = _root.trans('Swap water and ice');
}
}
instance of movieClip 1061 {
onClipEvent (load) {
if (_root.curLvl == 4 and _root.progress.data.lvl == 4) {
this._visible = true;
this.onEnterFrame = function () {
if (_root.swap_0.mc._currentframe == _root.swap_0.mc._totalframes) {
this._alpha -= 1;
}
};
} else {
this._visible = false;
}
}
}
movieClip 1063 {
frame 1 {
fr = 0;
FPS = 30;
oldTime = getTimer();
onEnterFrame = function () {
++fr;
if (fr % 30 == 0) {
newTime = getTimer();
period = (newTime - oldTime) / 1000;
oldTime = newTime;
curFPS = Math.round(FPS * 10 / period) / 10;
if (curFPS < FPS * 0.8 and _root._quality == 'MEDIUM') {
_root.stopSnow = true;
}
if (curFPS < FPS * 0.8 and _root._quality == 'HIGH') {
_root._quality = 'MEDIUM';
}
tb.text = curFPS + ' FPS';
}
};
}
}
instance tranz of movieClip 494 {
onClipEvent (load) {
this.swapDepths(14001);
}
}
instance tranz1 of movieClip 493 {
onClipEvent (load) {
this.swapDepths(14000);
}
}
frame 65 {
removeEverything();
_root._quality = 'HIGH';
if (_root.pause) {
if (!_root.bonus) {
w = Math.floor((_root.curLvl - 1) / 10) + 1;
if (_root['w' + w + 'BGM'].getVolume() >= 100) {
_root.soundPlay(_root['w' + w + 'BGM'], 9999);
_root['w' + w + 'BGM'].setVolume(100);
}
} else {
if (_root.mainBGM.getVolume() >= 100) {
_root.soundPlay(_root.mainBGM, 9999);
}
_root.mainBGM.setVolume(100);
}
}
gotoAndStop('game');
}
frame 66 {
removeEverything();
_root._quality = 'HIGH';
++curLvl;
b = false;
if (!bonus) {
if (curLvl == 11) {
soundFadeOut(w1BGM);
_root.playIt = true;
}
if (curLvl == 21) {
soundFadeOut(w2BGM);
_root.playIt = true;
}
if (curLvl == 31) {
soundFadeOut(w3BGM);
_root.playIt = true;
}
if (curLvl < 31) {
if (newLevel) {
if (curLvl == 11) {
gotoAndStop('interLvl12');
b = true;
}
if (curLvl == 21) {
gotoAndStop('interLvl23');
b = true;
}
}
if (!b) {
gotoAndStop('game');
}
} else {
curLvl = 30;
if (newLevel) {
gotoAndStop('outro');
} else {
gotoAndStop('map');
}
}
} else {
gotoAndStop('map');
}
}
frame 67 {
removeEverything();
_root._quality = 'HIGH';
w = Math.floor((_root.curLvl - 1) / 10) + 1;
_root['w' + w + 'BGM'].stop();
gotoAndStop('map');
}
frame 68 {
removeEverything();
_root._quality = 'HIGH';
w = Math.floor((_root.curLvl - 1) / 10) + 1;
_root['w' + w + 'BGM'].stop();
gotoAndStop('menu');
}
frame 69 {
stop();
fr = 0;
soundPlay(interWS, 1);
onEnterFrame = function () {
++fr;
if (fr == 90) {
transition('interTomap');
this.onEnterFrame = null;
}
};
}
movieClip 1066 {
}
instance anim1 of movieClip 1066 {
onClipEvent (load) {
this.swapDepths(13999);
}
}
instance tranz1 of movieClip 493 {
onClipEvent (load) {
this.swapDepths(14000);
}
}
instance tranz of movieClip 494 {
onClipEvent (load) {
this.swapDepths(14001);
}
}
frame 70 {
stop();
fr = 0;
soundPlay(interWS, 1);
onEnterFrame = function () {
++fr;
if (fr == 90) {
transition('interToMap');
this.onEnterFrame = null;
}
};
}
movieClip 1069 {
}
instance anim1 of movieClip 1069 {
onClipEvent (load) {
this.swapDepths(13999);
}
}
frame 78 {
removeEverything();
gotoAndStop('map');
}
frame 79 {
stop();
soundPlay(outroS, 1);
fr = 0;
anim2.gotoAndStop(2);
anim2._alpha = 0;
fadeTime = false;
onEnterFrame = function () {
++fr;
if (fadeTime) {
a2._alpha -= 5;
a1._alpha += 5;
trace(a2._alpha);
if (a2._alpha <= 0) {
a2._alpha = 0;
a1._alpha = 100;
fadeTime = false;
a2.gotoAndStop(a2._currentframe + 2);
}
} else {
if (fr % 60 == 0) {
if (anim1._currentframe > anim2._currentframe) {
a1 = anim1;
a2 = anim2;
} else {
a2 = anim1;
a1 = anim2;
}
if (a2._currentframe == a2._totalframes) {
transition('outroToMap');
this.onEnterFrame = null;
} else {
fadeTime = true;
}
}
}
};
}
movieClip 1071 {
}
instance whiteBG of movieClip 1071 {
onClipEvent (load) {
this.swapDepths(13996);
}
}
movieClip 1078 {
frame 1 {
stop();
}
}
instance anim2 of movieClip 1078 {
onClipEvent (load) {
this.swapDepths(13997);
}
}
instance anim1 of movieClip 1078 {
onClipEvent (load) {
this.swapDepths(13998);
}
}
instance tranz1 of movieClip 493 {
onClipEvent (load) {
this.swapDepths(14000);
}
}
instance tranz of movieClip 494 {
onClipEvent (load) {
this.swapDepths(14001);
}
}
frame 81 {
removeEverything();
gotoAndStop('map');
}