Frame 2
fscommand ("fullscreen", true);
Frame 4
bounce1sound = new Sound();
bounce1sound.attachSound("bounce1_snd");
bounce2sound = new Sound();
bounce2sound.attachSound("bounce2_snd");
bounce2bsound = new Sound();
bounce2bsound.attachSound("bounce2b_snd");
bounce2csound = new Sound();
bounce2csound.attachSound("bounce2c_snd");
bounce2dsound = new Sound();
bounce2dsound.attachSound("bounce2d_snd");
bounce2esound = new Sound();
bounce2esound.attachSound("bounce2e_snd");
hit1sound = new Sound();
hit1sound.attachSound("hitbrick1_snd");
collectsound = new Sound();
collectsound.attachSound("collect_snd");
hitbatsound = new Sound();
hitbatsound.attachSound("hitbatsnd1");
hitbonus1 = new Sound();
hitbonus1.attachSound("hitbonus_1");
bonuscollected_snd = new Sound();
bonuscollected_snd.attachSound("bonuscollected");
multi_snd = new Sound();
multi_snd.attachSound("multi_snd");
lostball_snd = new Sound();
lostball_snd.attachSound("lostball");
extralife_snd = new Sound();
extralife_snd.attachSound("extralife_sound");
super_snd = new Sound();
super_snd.attachSound("super_snd");
awesome_snd = new Sound();
awesome_snd.attachSound("awesome_snd");
wild_snd = new Sound();
wild_snd.attachSound("wild_snd");
mega_snd = new Sound();
mega_snd.attachSound("mega_snd");
legend_snd = new Sound();
legend_snd.attachSound("legend_snd");
lsr_snd = new Sound();
lsr_snd.attachSound("lsr_snd");
musictrack1 = new Sound();
musictrack1.attachSound("track1");
musictrack2 = new Sound();
musictrack2.attachSound("track2");
musictrack3 = new Sound();
musictrack3.attachSound("track3");
gameovermusic = new Sound();
gameovermusic.attachSound("gameovermusic");
menumusic = new Sound();
menumusic.attachSound("menumusic");
optionsmusic = new Sound();
optionsmusic.attachSound("optionsmusic");
level99data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1);
level12data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 20, 20, 20, 20, 0, 0, 0, 0, 0, 1, 13, 8, 9, 9, 8, 13, 1, 0, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 0, 1, 13, 8, 9, 9, 8, 13, 1, 0, 0, 0, 0, 0, 20, 20, 20, 20, 20, 20);
level13data = new Array(0, 20, 0, 20, 0, 20, 0, 20, 0, 20, 0, 20, 0, 12, 0, 11, 0, 12, 0, 11, 0, 12, 0, 11, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13);
level14data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 13, 13, 13, 13, 11, 11, 13, 13, 13, 13, 0, 0, 13, 13, 13, 13, 11, 11, 13, 13, 13, 13, 0, 0, 0, 1, 1, 1, 1,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 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1);
level17data = new Array(0, 0, 5, 5, 5, 12, 12, 5, 5, 5, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 4, 4, 4, 13, 13, 4, 4, 4, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 3, 3, 3, 12, 12, 3, 3, 3, 0, 0, 0, 0, 1, 1, 1, 11, 11, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 13, 13, 2, 2, 2, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 12, 12, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 0, 0, 0, 0, 20, 20, 0, 0, 0, 20, 20, 0, 0, 0, 0, 0, 0, 20, 20, 0, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20);
level18data = new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13);
level19data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 20, 11, 11, 11, 11, 20, 20, 20, 0, 0, 20, 1, 1, 1, 1, 1, 1, 1, 1, 20, 0, 0, 20, 1, 2, 2, 2, 2, 2, 2, 1, 20, 0, 0, 20, 1, 2, 3, 3, 3, 3, 2, 1, 20, 0, 0, 20, 1, 2, 3, 13, 13, 3, 2, 1, 20, 0, 0, 20, 1, 2, 3, 11, 11, 3, 2, 1, 20, 0, 0, 20, 1, 2, 3, 13, 13, 3, 2, 1, 20, 0, 0, 20, 1, 2, 3, 3, 3, 3, 2, 1, 20, 0, 0, 20, 1, 2, 2, 2, 2, 2, 2, 1, 20, 0, 0, 20, 1, 1, 1, 1, 1, 1, 1, 1, 20, 0, 0, 20, 20, 20, 11, 11, 11, 11, 20, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level20data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 15, 15, 1, 1, 0, 0, 0, 0, 0, 1, 3, 3, 1, 1, 3, 3, 1, 0, 0, 0, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 0, 13, 13, 3, 3, 3, 3, 3, 3, 3, 3, 13, 13, 12, 12, 13, 3, 13, 13, 13, 13, 3, 13, 12, 12, 13, 12, 12, 13, 12, 12, 12, 12, 13, 12, 12, 13, 0, 13, 12, 12, 12, 13, 13, 12, 12, 12, 13, 0, 0, 0, 13, 12, 13, 0, 0, 13, 12, 13, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 13);
level21data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 12, 12, 12, 12, 12, 12, 0, 0, 20, 20, 0, 2, 2, 13, 13, 13, 13, 2, 2, 0, 20, 20, 0, 2, 2, 13, 13, 13, 13, 2, 2, 0, 20, 20, 0, 2, 2, 13, 13, 13, 13, 2, 2, 0, 20, 20, 0, 0, 12, 12, 12, 12, 12, 12, 0, 0, 20, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 0, 20, 20, 0, 0, 20, 20, 0, 0, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level22data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 14, 14, 10, 2, 2, 10, 14, 14, 0, 0, 0, 14, 7, 11, 10, 2, 2, 10, 11, 7, 14, 0, 14, 3, 7, 11, 10, 2, 2, 10, 11, 7, 3, 14, 5, 3, 7, 11, 10, 2, 2, 10, 11, 7, 3, 5, 5, 3, 7, 0, 0, 0, 0, 0, 0, 7, 3, 5, 5, 3, 0, 20, 20, 20, 20, 20, 20, 0, 3, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5);
level23data = new Array(4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 20, 0, 20, 0, 20, 0, 20, 0, 20, 0, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 0, 20, 0, 11, 0, 20, 0, 20, 0, 11, 0, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 0, 20, 0, 20, 0, 20, 0, 20, 0, 20, 0, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0);
level24data = new Array(0, 0, 7, 0, 2, 0, 0, 2, 0, 7, 0, 0, 0, 7, 0, 2, 0, 10, 10, 0, 2, 0, 7, 0, 7, 0, 2, 0, 10, 0, 0, 10, 0, 2, 0, 7, 7, 0, 2, 0, 10, 0, 0, 10, 0, 2, 0, 7, 7, 0, 2, 14, 10, 11, 11, 10, 14, 2, 0, 7, 7, 0, 2, 14, 10, 9, 9, 10, 14, 2, 0, 7, 7, 0, 2, 14, 10, 9, 9, 10, 14, 2, 0, 7, 7, 0, 2, 14, 10, 9, 9, 10, 14, 2, 0, 7, 7, 0, 2, 14, 10, 11, 11, 10, 14, 2, 0, 7, 7, 0, 2, 14, 10, 0, 0, 10, 14, 2, 0, 7, 7, 0, 2, 0, 10, 0, 0, 10, 0, 2, 0, 7, 0, 7, 0, 2, 0, 10, 10, 0, 2, 0, 7, 0, 0, 0, 7, 0, 2, 0, 0, 2, 0, 7);
Frame 5
level25data = new Array(0, 0, 7, 0, 3, 0, 0, 3, 0, 7, 0, 0, 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0, 0, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 11, 4, 4, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 4, 4, 4, 10, 4, 4, 4, 4, 0, 0, 0, 0, 4, 4, 4, 10, 10, 4, 4, 0, 0, 0, 0, 0, 0, 4, 4, 10, 10, 4, 14, 0, 0, 0, 0, 0, 0, 14, 0, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 10, 10);
level28data = new Array(0, 0, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 10, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 0, 0, 10, 1, 1, 11, 1, 1, 11, 1, 1, 10, 0, 0, 10, 1, 1, 11, 1, 1, 11, 1, 1, 10, 0, 0, 10, 1, 1, 11, 1, 1, 11, 1, 1, 10, 0, 0, 10, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 10, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 10, 1, 20, 1, 1, 1, 1, 20, 1, 10, 0, 0, 10, 1, 20, 1, 1, 1, 1, 20, 1, 10, 0, 0, 10, 10, 1, 20, 1, 1, 20, 1, 10, 10, 0, 0, 0, 10, 1, 1, 20, 20, 1, 1, 10, 0, 0, 0, 0, 10, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 10, 10, 10, 10, 10, 10, 10, 10);
level29data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 20, 20, 0, 0, 20, 20, 20, 20, 0, 0, 7, 7, 7, 7, 0, 0, 7, 7, 7, 7, 0, 0, 3, 3, 3, 3, 0, 0, 3, 3, 3, 3, 0, 0, 20, 20, 20, 20, 0, 0, 20, 20, 20, 20, 0, 0, 7, 7, 7, 7, 0, 0, 7, 7, 7, 7, 11, 11, 3, 3, 3, 3, 0, 0, 3, 3, 3, 3, 0, 0, 20, 20, 20, 20, 0, 0, 20, 20, 20, 20, 0, 0, 7, 7, 7, 7, 0, 0, 7, 7, 7, 7, 0, 0, 3, 3, 3, 3, 0, 0, 3, 3, 3, 3);
level30data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 7, 11, 11, 11, 7, 11, 11, 11, 7, 11, 7, 0, 7, 7, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0, 7, 7, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0, 7, 11, 11, 11, 7, 11, 7, 11, 7, 11, 7, 0, 7, 7, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0, 7, 7, 7, 11, 7, 11, 7, 11, 7, 7, 7, 0, 7, 11, 11, 11, 7, 11, 11, 11, 7, 11, 7, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7);
level31data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 12, 7, 7, 15, 0, 0, 4, 4, 0, 0, 0, 0, 12, 12, 7, 7, 15, 4, 4, 12, 0, 0, 0, 0, 12, 12, 12, 7, 4, 4, 12, 12, 0, 0, 0, 0, 1, 12, 12, 12, 4, 12, 12, 12, 0, 0, 0, 0, 1, 1, 12, 12, 12, 12, 12, 3, 0, 0, 0, 0, 0, 1, 1, 12, 12, 12, 3, 3, 0, 0, 0, 0, 0, 0, 1, 1, 12, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level32data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 12, 0, 0, 12, 11, 11, 11, 11, 12, 0, 0, 12, 12, 0, 0, 12, 1, 1, 1, 1, 12, 0, 0, 12, 12, 0, 0, 12, 1, 1, 1, 1, 12, 0, 0, 12, 13, 13, 13, 20, 20, 20, 20, 20, 20, 13, 13, 13);
level33data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 20, 7, 0, 0, 0, 0, 7, 20, 10, 0, 0, 1, 20, 7, 0, 0, 0, 0, 7, 20, 10, 0, 0, 1, 20, 7, 0, 0, 0, 0, 7, 20, 10, 0, 0, 1, 20, 7, 0, 0, 0, 0, 7, 20, 10, 0, 0, 1, 20, 7, 0, 0, 0, 0, 7, 20, 10, 0, 0, 1, 11, 7, 0, 0, 0, 0, 7, 11, 10, 0, 0, 1, 11, 7, 0, 0, 0, 0, 7, 11, 10, 0, 0, 1, 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2, 0, 2, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 20, 0, 20, 0, 20, 0, 20, 0, 20);
level36data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 11, 11, 20, 11, 11, 20, 11, 11, 20, 0, 0, 20, 2, 2, 20, 6, 6, 20, 2, 2, 20, 0, 0, 20, 2, 2, 20, 6, 6, 20, 2, 2, 20, 0, 0, 20, 2, 2, 20, 6, 6, 20, 2, 2, 20, 0, 0, 20, 2, 2, 20, 6, 6, 20, 2, 2, 20, 0, 0, 20, 11, 11, 20, 11, 11, 20, 11, 11, 20);
level37data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 11, 7, 11, 7, 7, 11, 7, 7, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 11, 11, 11, 7, 11, 7, 11, 7, 11, 11, 11, 7, 7, 11, 7, 7, 11, 11, 11, 7, 11, 11, 7, 7, 7, 11, 7, 7, 11, 7, 11, 7, 7, 11, 7, 7, 7, 11, 7, 7, 11, 7, 11, 7, 7, 11, 7, 7, 7, 11, 7, 7, 11, 7, 11, 7, 7, 11, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12);
level38data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 14, 13, 13, 13, 13, 14, 0, 0, 0, 0, 0, 0, 14, 13, 12, 12, 13, 14, 0, 0, 0, 0, 20, 20, 14, 13, 12, 12, 13, 14, 20, 20, 0, 0, 0, 0, 14, 13, 12, 12, 13, 14, 0, 0, 0, 0, 0, 0, 14, 13, 12, 12, 13, 14, 0, 0, 0, 0, 0, 0, 14, 13, 12, 12, 13, 14, 0, 0, 0, 0, 0, 0, 14, 13, 13, 13, 13, 14, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14);
level39data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 0, 14, 14, 14, 0, 14, 14, 0, 14, 14, 14, 0, 0, 12, 12, 12, 0, 12, 12, 0, 12, 12, 12, 0, 0, 13, 13, 13, 0, 13, 13, 0, 13, 13, 13);
level40data = new Array(20, 20, 20, 20, 20, 7, 7, 20, 20, 20, 20, 20, 20, 20, 20, 20, 7, 3, 3, 7, 20, 20, 20, 20, 20, 20, 20, 7, 3, 14, 14, 3, 7, 20, 20, 20, 20, 20, 7, 3, 14, 9, 9, 14, 3, 7, 20, 20, 20, 7, 3, 14, 9, 9, 9, 9, 14, 3, 7, 20, 7, 3, 14, 15, 9, 9, 9, 9, 15, 14, 3, 20, 3, 14, 11, 9, 9, 0, 0, 9, 9, 11, 1, 7, 14, 9, 9, 9, 0, 0, 0, 0, 9, 9, 9, 1, 9, 9, 9, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level41data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 9, 11, 0, 0, 12, 12, 0, 0, 11, 9, 0, 0, 9, 7, 14, 14, 14, 14, 14, 14, 7, 9, 0, 0, 9, 7, 0, 0, 12, 12, 0, 0, 7, 9, 0, 0, 9, 7, 0, 0, 12, 12, 0, 0, 7, 9, 0, 0, 9, 7, 14, 14, 14, 14, 14, 14, 7, 9, 0, 0, 9, 7, 0, 0, 12, 12, 0, 0, 7, 9, 0, 0, 9, 7, 0, 0, 12, 12, 0, 0, 7, 9, 0, 0, 9, 7, 14, 14, 14, 14, 14, 14, 7, 9, 0, 0, 9, 7, 0, 0, 12, 12, 0, 0, 7, 9, 0, 0, 9, 11, 0, 0, 12, 12, 0, 0, 11, 9, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14);
level42data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, 0, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, 0, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, 0, 20, 20, 9, 9, 9, 9, 9, 9, 20, 20, 0, 0, 20, 20, 9, 9, 9, 9, 9, 9, 20, 20, 0, 0, 20, 20, 9, 9, 9, 9, 9, 9, 20, 20, 0, 0, 20, 20, 7, 7, 7, 7, 7, 7, 20, 20, 0, 0, 20, 20, 11, 1, 1, 1, 1, 11, 20, 20, 0, 20, 20, 20, 12, 12, 12, 12, 12, 12, 20, 20, 20, 20, 20, 20, 13, 13, 13, 13, 13, 13, 20, 20, 20, 20, 20, 20, 14, 14, 14, 14, 14, 14, 20, 20, 20);
level43data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 20, 9, 9, 9, 9, 20, 0, 0, 0, 0, 0, 0, 20, 9, 9, 9, 9, 20, 0, 0, 0, 0, 0, 0, 20, 9, 9, 9, 9, 20, 0, 0, 0, 20, 1, 1, 20, 9, 9, 9, 9, 20, 1, 1, 20, 20, 1, 1, 20, 9, 9, 9, 9, 20, 1, 1, 20, 20, 12, 12, 0, 0, 0, 0, 0, 0, 12, 12, 20, 20, 13, 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1, 1, 1, 1, 1, 1, 1);
level48data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 9, 20, 20, 8, 8, 8, 8, 20, 20, 9, 0, 0, 9, 8, 8, 8, 8, 8, 8, 8, 8, 9, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 9, 11, 11, 11, 11, 11, 11, 11, 11, 9, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 9, 8, 8, 8, 8, 8, 8, 8, 8, 9, 0, 0, 9, 20, 20, 8, 8, 8, 8, 20, 20, 9, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9);
level49data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 11, 20, 11, 20, 11, 11, 20, 11, 20, 11, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13);
level50data = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 1, 1, 11, 11, 11, 1, 1, 1, 11, 1, 1, 1, 1, 11, 1, 1, 11, 11, 1, 1, 11, 1, 1, 1, 1, 11, 1, 1, 11, 11, 1, 1, 11, 1, 1, 1, 1, 11, 1, 11, 1, 11, 1, 1, 11, 11, 11, 1, 1, 11, 1, 11, 1, 11, 1, 1, 1, 1, 1, 11, 1, 11, 1, 11, 1, 11, 1, 1, 1, 1, 1, 11, 1, 11, 1, 11, 1, 11, 1, 1, 1, 1, 1, 11, 1, 11, 11, 1, 1, 11, 1, 1, 1, 1, 1, 11, 1, 11, 11, 1, 1, 11, 1, 1, 11, 11, 11, 1, 1, 1, 11, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
level51data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 0);
level53data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 11, 11, 11, 11, 11, 11, 11, 0, 0, 16, 16, 16, 16, 15, 15, 15, 15, 15, 15, 0);
Frame 6
function stopmusic() {
musictrack1.stop();
musictrack2.stop();
musictrack3.stop();
optionsmusic.stop();
menumusic.stop();
gameovermusic.stop();
}
function playmusic() {
if (musicstate == 1) {
stopmusic();
if (gamescene == "options") {
optionsmusic.start(0, 90);
}
if (gamescene == "playing") {
b = level - (int(level / 3) * 3);
switch (b) {
case 0 :
musictrack1.start(0, 30);
break;
case 1 :
musictrack2.start(0, 30);
break;
case 2 :
musictrack3.start(0, 30);
break;
default :
musictrack1.start(0, 30);
}
}
if (gamescene == "game over") {
gameovermusic.start(0, 9);
}
if (gamescene == "main menu") {
menumusic.start(0, 90);
}
} else {
stopmusic();
}
}
storage = SharedObject.getLocal("store");
level = storage.data.uptolevel;
if (level == undefined) {
storage.data.uptolevel = 10;
level = 10;
}
yourhigh = storage.data.myhighscore;
if (yourhigh == undefined) {
storage.data.myhighscore = 0;
yourhigh = 0;
}
tileset = storage.data.mytileset;
if (tileset == undefined) {
tileset = random(4) + 1;
storage.data.mytileset = tileset;
}
musicstate = storage.data.musicsetting;
if ((musicstate == undefined) || (musicstate == 2)) {
musicstate = 1;
storage.data.musicsetting = 1;
}
trace("musicstate = " + musicstate);
Frame 7
function playgame() {
gotoAndPlay (16);
}
function resetlevel() {
_root.level = 1;
playcont.gotoAndStop(1);
_root.resetclip.gotoAndPlay(2);
storage.data.uptolevel = 1;
storage.flush();
}
function breakitMenu(menu, obj) {
}
delete state;
_quality = "HIGH";
if (level > 1) {
playcont.gotoAndStop(2);
}
var menu_cm = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem("BREAKIT!", breakitMenu));
menu_cm.hideBuiltInItems();
_root.menu = menu_cm;
gamescene = "main menu";
playmusic();
Frame 15
stop();
Frame 16
function ballClass() {
}
ballClass.prototype = new MovieClip();
ballClass.prototype.onLoad = function () {
this.x = this._x;
this.y = this._y;
this.startx = this.x;
this.starty = this.y;
this.ballwidth = 7;
this.lastbrickhit = 0;
this.lasthitbat = 0;
this.yspeed = 2;
this.xspeed = -2 + random(4);
this.ballstarttime = getTimer();
this.timer = 0;
this.brickhits = 0;
_root.maxspeed = _root.maxspeedstart;
};
ballClass.prototype.onEnterFrame = function () {
if (_root.state == "playing") {
this.y = this.y + this.yspeed;
this.x = this.x + this.xspeed;
if (this.y > 300) {
this.temp = getTimer();
if ((this.temp - this.lasthitbat) > 200) {
this.lasthitbat = 0;
this.hitplayer = _root.player.hitTest(this.x, this.y + this.ballwidth, true);
if (this.hitplayer == true) {
this.yspeed = (-this.yspeed) - (Math.abs(prot) * 0.3);
if (prot < 0) {
this.xspeed = this.xspeed - (Math.abs(prot) * 0.3);
} else {
this.xspeed = this.xspeed + (Math.abs(prot) * 0.3);
}
hitbatsound.start();
this.lasthitbat = this.temp;
this.y = this.y - 5;
this.brickhits = 0;
}
}
}
if (this.y > 490) {
trace("ball lost");
_root.ballnum--;
_root.testforlifelost();
removeMovieClip(this);
}
if (this.y < 25) {
this.y = 25;
this.yspeed = -(this.yspeed - random(3));
bounce2sound.start();
this.lastbrickhit = 0;
}
if (this.x < (25 + this.ballwidth)) {
this.x = 25 + this.ballwidth;
this.xspeed = -(this.xspeed - random(3));
bounce1sound.start();
this.lastbrickhit = 0;
}
if (this.x > (615 - this.ballwidth)) {
this.x = 615 - this.ballwidth;
this.xspeed = -(this.xspeed - random(3));
bounce1sound.start();
this.lastbrickhit = 0;
}
if (this.y < 300) {
if (_root.brickholder.hitTest(this.x, this.y, true) == true) {
this.ac = 0;
this.i = _root.bricklevelstart;
while (this.i < (_root.bricklevelstart + 168)) {
this.tb = _root.bricksArray[this.ac];
this.ac++;
if (this.tb > 0) {
if (this.hitTest(eval ("_root.brickholder.br" + this.i)) == true) {
this.hitby = eval ("_root.brickholder.br" + this.i).y;
this.ydiff = Math.abs(int(this.y - this.hitby));
this.hitbx = eval ("_root.brickholder.br" + this.i).x;
this.xdiff = Math.abs(int(this.x - this.hitbx));
if (eval ("_root.brickholder.br" + this.i).clip.brickkind != 20) {
this.brickhits++;
switch (this.brickhits) {
case 10 :
_root.tellplayer(1);
break;
case 20 :
_root.tellplayer(2);
break;
case 30 :
_root.tellplayer(3);
break;
case 40 :
_root.tellplayer(4);
break;
case 50 :
_root.tellplayer(5);
break;
case 60 :
_root.tellplayer(6);
}
}
_root.hitbrick(this.i);
if ((this.ydiff > 10) && (this.y < this.lasty)) {
this.yspeed = -this.yspeed;
this.y = (this.hitby + 25) + this.ballwidth;
break;
}
if ((this.ydiff < 11) && (this.lasty < this.y)) {
this.yspeed = -this.yspeed;
this.y = this.hitby - this.ballwidth;
break;
}
if ((this.xdiff > 25) && (this.lastx > this.x)) {
if ((this.ydiff > 0) && (this.ydiff < 25)) {
this.xspeed = -this.xspeed;
this.x = (this.hitbx + 50) + this.ballwidth;
}
break;
}
if ((this.xdiff < 25) && (this.x > this.lastx)) {
if ((this.ydiff > 0) && (this.ydiff < 25)) {
this.xspeed = -this.xspeed;
this.x = this.hitbx - this.ballwidth;
}
break;
}
}
}
this.i++;
}
}
}
this._x = int(this.x);
this._y = int(this.y);
this.lastx = this.x;
this.lasty = this.y;
if (this.xspeed > _root.maxspeed) {
this.xspeed = _root.maxspeed;
} else if (this.xspeed < (-_root.maxspeed)) {
this.xspeed = -_root.maxspeed;
}
if (this.yspeed > _root.maxspeed) {
this.yspeed = _root.maxspeed;
} else if (this.yspeed < (-_root.maxspeed)) {
this.yspeed = -_root.maxspeed;
}
}
};
Object.registerClass("ball", ballClass);
function bonuspointsClass() {
}
bonuspointsClass.prototype = new MovieClip();
bonuspointsClass.prototype.onLoad = function () {
this.y = this._y;
this.state = "normal";
this.fs = 1;
};
bonuspointsClass.prototype.onEnterFrame = function () {
if (_root.state != "paused") {
this.y = this.y + this.fs;
if (this.y > 490) {
removeMovieClip(this);
}
if (this.y > (_root.batheight - 20)) {
if (this.hitTest(_root.player) == true) {
trace("BONUS POINTS");
player.gotoAndPlay("collectglow");
collectsound.start();
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + this.clip.bonusamount;
removeMovieClip(this);
}
}
this._y = int(this.y);
this.fs = this.fs * 1.06;
}
};
Object.registerClass("bonuspoints", bonuspointsClass);
function bonusClass() {
}
bonusClass.prototype = new MovieClip();
bonusClass.prototype.onLoad = function () {
this.x = this._x;
this.y = this._y;
this.state = "normal";
this.fs = 1;
};
bonusClass.prototype.onEnterFrame = function () {
if (_root.state != "paused") {
this.y = this.y + this.fs;
if (this.y > 490) {
removeMovieClip(this);
}
if (this.y > (_root.batheight - 20)) {
if (this.hitTest(_root.player) == true) {
player.gotoAndPlay("collectglow");
bonuscollected_snd.start();
switch (this.clip.bonuskind) {
case 1 :
_root.laserbat();
break;
case 2 :
_root.growbat();
break;
case 3 :
_root.shrinkbat();
break;
case 4 :
_root.multiball();
break;
case 5 :
_root.twobat();
break;
case 6 :
_root.curvebat();
break;
}
removeMovieClip(this);
}
}
this.y = int(this.y);
this._y = int(this.y);
this.fs = this.fs * 1.06;
}
};
Object.registerClass("bonus", bonusClass);
function brickClass() {
}
brickClass.prototype = new MovieClip();
brickClass.prototype.onLoad = function () {
this.x = this._x;
this.y = this._y;
this.clip.state = "normal";
this.yspeed = 0;
};
brickClass.prototype.onEnterFrame = function () {
switch (this.clip.state) {
case "disolve" :
trace("disolve");
if (this.clip.brickkind < 11) {
this.tc = random(8) + 1;
if (this.tc < 5) {
this.tempc = 50 * this.tc;
bonusholder.attachMovie("bonuspoints", "bs" + _root.bonusn, _root.bonusn);
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = this.x + 25;
_y = this.y + 12;
clip.bonusamount = this.tempc;
clip.gotoAndStop(this.tc);
}
_root.bonusn++;
if (_root.bonusn > 200) {
_root.bonusn = 1;
}
}
}
if (((this.clip.brickkind > 14) && (this.clip.brickkind < 20)) || (this.clip.brickkind == 21)) {
this.pointsawarded = 200;
hitbonus1.start();
switch (this.clip.brickkind) {
case 15 :
this.tn = 1;
break;
case 16 :
this.tn = 2;
break;
case 17 :
this.tn = 3;
break;
case 18 :
this.tn = 4;
break;
case 19 :
this.tn = 5;
break;
case 21 :
this.tn = 6;
break;
default :
this.tn = 1;
}
bonusholder.attachMovie("bonus", "bs" + _root.bonusn, _root.bonusn);
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = this.x + 25;
_y = this.y + 12;
clip.bonuskind = this.tn;
gotoAndStop(this.tn);
}
_root.bonusn++;
if (_root.bonusn > 599) {
_root.bonusn = 501;
}
}
if (this.clip.brickkind == 11) {
this.pointsawarded = 200;
this.tempran = random(6) + 1;
if (_root.multiballdone == 1) {
while (this.tempran == 3) {
this.tempran = random(6) + 1;
}
}
if (this.tempran == 3) {
_root.multiballdone = 1;
}
hitbonus1.start();
bonusholder.attachMovie("bonus", "bs" + _root.bonusn, _root.bonusn);
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = this.x + 25;
_y = this.y + 12;
clip.bonuskind = this.tempran;
gotoAndStop(this.tempran);
}
_root.bonusn++;
if (_root.bonusn > 599) {
_root.bonusn = 501;
}
}
this.clip.state = "fade";
return;
case "fade" :
this.pointsawarded = 0;
if (this.clip.brickkind < 12) {
this.pointsawarded = 50;
}
if (this.clip.brickkind == 12) {
this.pointsawarded = 250;
}
if (this.clip.brickkind == 13) {
this.pointsawarded = 450;
}
_root.score = _root.score + this.pointsawarded;
this.clip.state = "waittogo";
_root.bricksArray[this.clip.brickkind] = 0;
this.clip.t = 10;
return;
case "shake brick" :
this.sc = 10;
this.clip.state = "shakingbrick";
return;
case "shakingbrick" :
this.r = random(this.sc) - (this.sc / 2);
this._x = this.x + this.r;
this._y = this.y + this.r;
this.sc--;
if (this.sc < 1) {
this.clip.state = "normal";
this._x = this.x;
this._y = this.y;
}
return;
case "waittogo" :
this.r = random(6) - 3;
this._x = this.x + this.r;
this._y = this.y + this.r;
this._alpha = this._alpha * 0.9;
this.clip.t--;
if (this.clip.t >= 1) {
break;
}
_root.bricksArray[this.clip.brickkind] = 0;
removeMovieClip(this);
this.clip.state = "remove";
}
};
switch (tileset) {
case 1 :
Object.registerClass("bricksa", brickClass);
bname = "bricksa";
break;
case 2 :
Object.registerClass("bricksb", brickClass);
bname = "bricksb";
break;
case 3 :
Object.registerClass("bricksc", brickClass);
bname = "bricksc";
break;
case 4 :
Object.registerClass("bricksd", brickClass);
bname = "bricksd";
break;
default :
Object.registerClass("bricksa", brickClass);
}
function curvebat() {
if (playerbatstate != 6) {
_root.playerscore.gotoAndPlay(2);
playerbatstate = 6;
attachMovie("playercv", "player", 199);
}
}
function frameaction() {
if (state == "start again") {
dropbonus = 0;
attachMovie("ready_announce", "la", 900);
la._x = 320;
la._y = 240;
attachMovie("ball", "b" + _root.balllevel, _root.balllevel);
eval ("b" + _root.balllevel)._x = 320;
eval ("b" + _root.balllevel)._y = 330;
eval ("b" + _root.balllevel).yspeed = 10;
eval ("b" + _root.balllevel).xspeed = 0;
ballnum++;
_root.balllevel++;
_global.playerbatstate = 1;
attachMovie("player", "player", 199);
player._x = 320;
player._y = 430;
_root.batwidth = player._width;
this.state = "paused";
this.batjoin._x = -100;
}
if (state == "paused") {
}
if (state == "begin") {
if (level > 50) {
removeMovieClip(player);
i = 0;
while (i < 100) {
removeMovieClip(eval ("b" + i));
i++;
}
gotoAndPlay (45);
} else {
setuplevel();
}
state = "paused";
}
if (state == "playing") {
if (playerbatstate == 5) {
this.batjoin._x = px;
} else {
this.batjoin._x = -100;
}
if (dropbonus == 1) {
trace("DROP STARTS");
dropc = 0;
dropbonus = 2;
}
if (dropbonus == 2) {
dropc++;
if (dropc > 200) {
dropc = 0;
tr = random(6) + 1;
bonusholder.attachMovie("bonus", "bs" + _root.bonusn, _root.bonusn);
a = random(600) + 20;
this.bonusdropper._x = a;
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = a;
_y = -40;
bonusdropper.gotoAndPlay(2);
clip.bonuskind = tr;
gotoAndStop(tr);
}
_root.bonusn++;
}
}
tx = int(_root._xmouse);
acl = px - tx;
px = px - (acl / 5);
if (px < 15) {
px = 15;
}
if (px > 615) {
px = 615;
}
prot = int((-acl) / 2);
if (prot > 30) {
prot = 30;
}
if (prot < -30) {
prot = -30;
}
lastprot = prot;
player._x = px;
player._y = py;
player._rotation = prot;
}
if (state == "game over") {
removeMovieClip(player);
gotoAndPlay ("GAMEOVER");
}
}
function growbat() {
if (playerbatstate != 3) {
_root.playerscore.gotoAndPlay(2);
playerbatstate = 3;
attachMovie("playerlg", "player", 199);
}
}
function hitbrick(brickhit) {
hit1sound.start();
this.tempb = _root.bricksArray[brickhit - _root.bricklevelstart];
if (this.tempb == 20) {
trace("SOLID");
eval ("brickholder.br" + brickhit).clip.state = "shake brick";
}
if (this.tempb != 20) {
this.tempc = eval ("brickholder.br" + brickhit).clip.state;
this.tempclipstr = eval ("brickholder.br" + brickhit).clip.strength;
this.tempclipstr--;
eval ("brickholder.br" + brickhit).clip.strength = this.tempclipstr;
if (this.tempclipstr < 1) {
if ((this.tempc != "fade") || (this.tempc != "disolve")) {
savegame.flush();
_root.bricksArray[brickhit - _root.bricklevelstart] = 0;
this.tempd = eval ("brickholder.br" + brickhit).clip.brickkind;
if (this.tempd != 20) {
eval ("brickholder.br" + brickhit).clip.state = "disolve";
}
_root.addup = 0;
i = _root.bricklevelstart;
while (i < (_root.bricklevelstart + 168)) {
tc = eval ("brickholder.br" + i).clip.state;
td = eval ("brickholder.br" + i).clip.brickkind;
if ((tc == "normal") && (td != 20)) {
_root.addup = _root.addup + 1;
}
i++;
}
if (addup < 11) {
if (dropbonus == 0) {
dropbonus = 1;
}
}
if (addup == 0) {
dropbonus = 0;
level++;
i = 0;
while (i < 100) {
removeMovieClip(eval ("b" + i));
i++;
}
i = 500;
while (i < 521) {
removeMovieClip(eval ("l" + i));
i++;
}
i = 1;
while (i < 500) {
removeMovieClip(eval ("brickholder.br" + i));
i++;
}
i = 0;
while (i < 120) {
removeMovieClip(eval ("bonusholder.bs" + i));
i++;
}
attachMovie("player", "player", 199);
player._x = 320;
player._y = 430;
_root.batwidth = player._width;
state = "begin";
savegame.flush();
}
if ((score > 30000) && (extralives == 0)) {
extralives++;
lives++;
tellplayer(9);
}
if ((score > 60000) && (extralives == 1)) {
extralives++;
lives++;
tellplayer(9);
}
if ((score > 90000) && (extralives == 2)) {
extralives++;
lives++;
tellplayer(9);
}
if ((score > 120000) && (extralives == 3)) {
extralives++;
lives++;
tellplayer(9);
}
if ((score > 150000) && (extralives == 4)) {
extralives++;
lives++;
tellplayer(9);
}
}
}
}
if (this.tempclipstr > 0) {
eval ("brickholder.br" + brickhit).clip.state = "shake brick";
eval ("brickholder.br" + brickhit).crack.nextFrame();
}
}
function laserbat() {
if (playerbatstate != 2) {
_root.playerscore.gotoAndPlay(2);
playerbatstate = 2;
attachMovie("playerlsr", "player", 199);
}
}
function laserClass() {
}
laserClass.prototype = new MovieClip();
laserClass.prototype.onLoad = function () {
this.x = this._x;
this.y = this._y;
this.fs = 1;
this.state = "norm";
};
laserClass.prototype.onEnterFrame = function () {
if (this.state == "norm") {
if (this.y < 300) {
if (_root.brickholder.hitTest(this.x, this.y, true) == true) {
trace("YES");
this.ac = 0;
this.i = _root.bricklevelstart;
while (this.i < (_root.bricklevelstart + 168)) {
this.tb = _root.bricksArray[this.ac];
this.ac++;
if (this.tb > 0) {
this.hitby = eval ("_root.brickholder.br" + this.i).y;
this.ydiff = Math.abs(Math.floor(this.y - this.hitby));
if (this.ydiff < 50) {
this.hitbx = eval ("_root.brickholder.br" + this.i).x;
this.xdiff = Math.abs(Math.floor(this.x - this.hitbx));
if (this.xdiff < 60) {
if (this.hitTest(eval ("_root.brickholder.br" + this.i)) == true) {
if (eval ("_root.brickholder.br" + this.i).clip.brickkind != 20) {
this.brickhits++;
switch (this.brickhits) {
case 10 :
_root.tellplayer(1);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 500;
_root.multi_snd.start();
break;
case 20 :
_root.tellplayer(2);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 750;
_root.super_snd.start();
break;
case 30 :
_root.tellplayer(3);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 1000;
_root.wild_snd.start();
break;
case 40 :
_root.tellplayer(4);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 2000;
_root.awesome_snd.start();
break;
case 50 :
_root.tellplayer(5);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 3000;
_root.mega_snd.start();
break;
case 60 :
_root.tellplayer(6);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 4000;
_root.legend_snd.start();
}
}
hitbrick(this.i);
this.gotoAndPlay("explode");
this.state = "explode";
}
}
}
}
this.i++;
}
}
}
this.y = this.y - this.fs;
if (this.y < 10) {
this.gotoAndPlay("explode");
this.state = "explode";
}
this.y = Math.floor(this.y);
this._y = Math.floor(this.y);
this.fs = this.fs * 1.05;
}
if (this.state == "explode") {
trace("dafing");
}
};
Object.registerClass("laserbullet", laserClass);
function pausebtnpress() {
if (_root.state == "playing") {
_root.state = "paused";
attachMovie("paused_clip", "tp", 9);
tp._x = 320;
tp._y = 240;
} else if (_root.state == "paused") {
removeMovieClip("tp");
_root.state = "playing";
}
}
function setupsounds() {
}
function setup() {
gamescene = "playing";
_quality = "LOW";
lnum = 500;
var mlisten = new Object();
mlisten.onMouseDown = function () {
if ((playerbatstate == 2) && (state == "playing")) {
_root.player.laser.gotoAndPlay(2);
attachMovie("laserbullet", "l" + _root.lnum, _root.lnum);
eval ("l" + _root.lnum)._x = px;
eval ("l" + _root.lnum)._y = py;
lsr_snd.start();
_root.lnum++;
if (_root.lnum > 580) {
_root.lnum = 500;
}
}
};
Mouse.addListener(mlisten);
extralives = 0;
_root.lives = 2;
_root.score = 0;
acl = 0;
_root.batheight = 430;
_global.playerbatstate = 1;
_global.prot = 0;
_global.px = 200;
_global.py = _root.batheight;
_global.state = "begin";
_root.pnum = 2;
}
function musicon() {
this.on_off.gotoAndStop(1);
musicstate = 1;
storage.data.musicsetting = 1;
playmusic();
}
function musicoff() {
stopmusic();
this.on_off.gotoAndStop(2);
musicstate = 0;
storage.data.musicsetting = 0;
}
if (musicstate == 0) {
this.on_off.gotoAndStop(2);
}
function setuplevel() {
playmusic();
dropbonus = 0;
this.batjoin._x = -100;
_root.state = "paused";
_root.levelann = "Level " + level;
trace("LEVEL START" + level);
attachMovie("level_announce", "la", 3999);
la._x = 320;
la._y = 240;
background.gotoAndStop(level);
_root.multiballdone = 0;
i = 0;
while (i < 100) {
removeMovieClip(eval ("b" + i));
i++;
}
i = 500;
while (i < 521) {
removeMovieClip(eval ("l" + i));
i++;
}
i = 1;
while (i < 500) {
removeMovieClip(eval ("brickholder.br" + i));
i++;
}
i = 0;
while (i < 120) {
removeMovieClip(eval ("bonusholder.bs" + i));
i++;
}
playerbatstate = 1;
setupsounds();
_root.maxspeedstart = 5 + (level / 50);
_root.maxspeed = _root.maxspeedstart;
_root.bonusn = 1;
attachMovie("player", "player", 199);
player._x = 320;
player._y = 430;
_root.batwidth = player._width;
_root.balllevel = 10;
_root.ballnum = 0;
attachMovie("ball", "b" + _root.balllevel, _root.balllevel);
eval ("b" + _root.balllevel)._x = 320;
eval ("b" + _root.balllevel)._y = 330;
eval ("b" + _root.balllevel).yspeed = 10;
eval ("b" + _root.balllevel).xspeed = 0;
ballnum++;
_root.balllevel++;
temparray = eval (("level" + level) + "data");
_root.bricklevelstart = 1;
_root.bricklevel = _root.bricklevelstart;
_root.bricksArray = new Array();
i = 0;
while (i < 168) {
ran = temparray[i];
tempstr = 0;
if (ran > 0) {
if (ran < 12) {
tempstr = 1;
}
if (ran == 12) {
tempstr = 2;
}
if (ran == 13) {
tempstr = 3;
}
if (ran == 14) {
tempstr = 4;
}
if (ran == 20) {
tempstr = 20;
}
if (((ran > 14) && (ran < 20)) || (ran == 21)) {
tempstr = 1;
}
ty = Math.floor(i / 12);
tx = i - (ty * 12);
brickholder.attachMovie(bname, "br" + _root.bricklevel, _root.bricklevel + i);
with (eval ("brickholder.br" + _root.bricklevel)) {
gotoAndStop(ran);
_x = 20 + (50 * tx);
_y = 25 + (ty * 20);
clip.brickkind = ran;
clip.state = "normal";
clip.strength = tempstr;
}
}
_root.bricklevel++;
bricksArray[i] = tempstr;
i++;
}
_root.lastbrickhit = getTimer();
}
function shrinkbat() {
if (playerbatstate != 4) {
_root.playerscore.gotoAndPlay(2);
playerbatstate = 4;
attachMovie("playersm", "player", 199);
}
}
function tellplayer(num) {
attachMovie("tell_player", "tp", 9);
tp._x = 320;
tp._y = 240;
tp.clip.gotoAndStop(num);
_root.playerscore.gotoAndPlay(2);
if (num == 9) {
extralife_snd.start();
}
switch (num) {
case 1 :
_root.score = _root.score + 500;
_root.multi_snd.start();
break;
case 2 :
_root.score = _root.score + 750;
_root.super_snd.start();
break;
case 3 :
_root.score = _root.score + 1000;
_root.wild_snd.start();
break;
case 4 :
_root.score = _root.score + 2000;
_root.awesome_snd.start();
break;
case 5 :
_root.score = _root.score + 3000;
_root.mega_snd.start();
break;
case 6 :
_root.score = _root.score + 4000;
_root.legend_snd.start();
break;
}
}
function testforlifelost() {
lostball_snd.start();
if (_root.ballnum == 0) {
playerbatstate = 1;
player.gotoAndPlay("lifelost");
n = bonusholder.getNextHighestDepth();
bonusholder.attachMovie("lifelost", "ll", n);
bonusholder.ll._x = 320;
bonusholder.ll._y = 240;
lives--;
if (lives < 0) {
trace("game over");
state = "game over";
} else {
_root.gamestate = "paused";
}
}
}
function twobat() {
if (playerbatstate != 5) {
playerbatstate = 5;
_root.playerscore.gotoAndPlay(2);
attachMovie("playertwo", "player", 199);
}
}
function multiball() {
ballnum++;
_root.balllevel++;
_root.playerscore.gotoAndPlay(2);
attachMovie("ball", "b" + _root.balllevel, _root.balllevel);
with (eval ("b" + _root.balllevel)) {
_x = px - 10;
_y = py - 40;
}
ballnum++;
_root.balllevel++;
attachMovie("ball", "b" + _root.balllevel, _root.balllevel);
with (eval ("b" + _root.balllevel)) {
_x = px + 10;
_y = py - 40;
}
_root.balllevel++;
if (_root.balllevel > 90) {
_root.balllevel = 10;
}
}
Instance of Symbol 350 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.frameaction();
}
Frame 25
setup();
stop();
Frame 28
if (score > yourhigh) {
yourhigh = score;
newscore.gotoAndStop(2);
storage.data.myhighscore = score;
}
storage.data.uptolevel = level;
storage.flush();
gamescene = "game over";
playmusic();
Frame 35
stop();
Frame 36
function gomain() {
_root.state = "start again";
gotoAndPlay (7);
}
function savetilechoice() {
storage.data.mytileset = tileset;
storage.flush();
}
function musicon() {
this.options.on_off.gotoAndStop(1);
musicstate = 1;
storage.data.musicsetting = 1;
playmusic();
}
function musicoff() {
stopmusic();
this.options.on_off.gotoAndStop(2);
musicstate = 0;
storage.data.musicsetting = 0;
}
if (musicstate == 0) {
this.options.on_off.gotoAndStop(2);
}
gamescene = "options";
playmusic();
trace("YO");
trace(gamescene);
this.options.preview.gotoAndStop(tileset + 1);
Frame 44
stop();
Frame 46
if (score > yourhigh) {
yourhigh = score;
storage.data.myhighscore = score;
}
storage.data.uptolevel = 1;
level = 1;
Frame 53
stop();
Symbol 6 MovieClip [playercv] Frame 15
stop();
Symbol 6 MovieClip [playercv] Frame 24
gotoAndStop ("norm");
Symbol 6 MovieClip [playercv] Frame 35
removeMovieClip(this);
Symbol 13 MovieClip Frame 1
_root.stop();
PercentLoaded = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
_root.play();
}
Symbol 13 MovieClip Frame 2
gotoAndPlay (1);
Symbol 19 MovieClip [trail] Frame 10
removeMovieClip(this);
Symbol 29 MovieClip Frame 1
stop();
Symbol 30 MovieClip [tell_player] Frame 65
removeMovieClip(this);
Symbol 34 MovieClip [ready_announce] Frame 76
_root.state = "playing";
removeMovieClip(this);
Symbol 37 MovieClip [points] Frame 2
trace("1");
Symbol 37 MovieClip [points] Frame 30
removeMovieClip(this);
Symbol 41 MovieClip [playertwo] Frame 9
stop();
Symbol 41 MovieClip [playertwo] Frame 18
gotoAndStop ("norm");
Symbol 41 MovieClip [playertwo] Frame 31
removeMovieClip(this);
Symbol 44 MovieClip [playersm] Frame 9
stop();
Symbol 44 MovieClip [playersm] Frame 18
gotoAndStop ("norm");
Symbol 44 MovieClip [playersm] Frame 31
removeMovieClip(this);
Symbol 47 MovieClip Frame 1
stop();
Symbol 49 MovieClip [playerlsr] Frame 9
stop();
Symbol 49 MovieClip [playerlsr] Frame 15
gotoAndStop (9);
Symbol 49 MovieClip [playerlsr] Frame 27
removeMovieClip(this);
Symbol 51 MovieClip [playerlg] Frame 9
stop();
Symbol 51 MovieClip [playerlg] Frame 18
gotoAndStop ("norm");
Symbol 51 MovieClip [playerlg] Frame 31
removeMovieClip(this);
Symbol 52 MovieClip [player] Frame 1
stop();
Symbol 52 MovieClip [player] Frame 7
gotoAndStop (1);
Symbol 52 MovieClip [player] Frame 19
removeMovieClip(this);
Symbol 56 Button
on (release) {
_root.pausebtnpress();
}
Symbol 57 MovieClip [paused_clip] Frame 30
stop();
Symbol 59 MovieClip [lifelost] Frame 80
_root.state = "start again";
removeMovieClip(this);
Symbol 62 MovieClip [level_announce] Frame 77
_root.state = "playing";
removeMovieClip(this);
Symbol 64 MovieClip [laserbullet] Frame 1
stop();
Symbol 64 MovieClip [laserbullet] Frame 12
removeMovieClip(this);
Symbol 65 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 8
this.gotoAndStop(1);
Symbol 118 MovieClip [bricksa] Frame 1
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 143 MovieClip [bonus] Frame 1
stop();
Symbol 147 MovieClip [ball] Frame 20
stop();
Symbol 190 MovieClip [bricksc] Frame 1
stop();
Symbol 219 MovieClip [bricksd] Frame 1
stop();
Symbol 248 MovieClip [bricksb] Frame 1
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 288 Button
on (release) {
_root.resetlevel();
}
Symbol 293 MovieClip Frame 23
stop();
Symbol 295 Button
on (release) {
gotoAndPlay (36);
}
Symbol 299 Button
on (release) {
fscommand ("quit");
}
Symbol 305 Button
on (press) {
_root.playgame();
}
Symbol 310 Button
on (press) {
_root.playgame();
}
Symbol 312 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 343 Button
on (press) {
_root.musicoff();
}
Symbol 346 Button
on (press) {
_root.musicon();
}
Symbol 347 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 370 Button
on (press) {
_root.pausebtnpress();
}
Symbol 377 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 1
stop();
Symbol 383 Button
on (release) {
_root.state = "start again";
gotoAndPlay (7);
}
Symbol 392 Button
on (release) {
nextFrame();
}
Symbol 395 Button
on (release) {
prevFrame();
}
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 2
_root.tileset = 1;
_root.savetilechoice();
Symbol 398 MovieClip Frame 3
_root.tileset = 2;
_root.savetilechoice();
Symbol 398 MovieClip Frame 4
_root.tileset = 3;
_root.savetilechoice();
Symbol 398 MovieClip Frame 5
_root.tileset = 4;
_root.savetilechoice();
Symbol 408 Button
on (release) {
getURL ("mailto:terrypaton1@bigpond.com");
}
Symbol 409 Button
on (release) {
_root.gomain();
}
Symbol 412 Button
on (release) {
gotoAndPlay (7);
}