Frame 1
if (_root.gamezhero == undefined) {
System.security.allowDomain("gamezhero.com", "www.gamezhero.com", "files.gamezhero.com");
_root.createEmptyMovieClip("gamezhero", 100000);
_root.gamezhero.loadMovie("http://files.gamezhero.com/flash/gamezhero2.swf?x=20&y=380&from=gamename&scale=80&t=1156838873841");
}
var total_backs = 10;
var attack_order1 = [{release_time:-300, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-300, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-750, attack_type:"wave", attack_number:5, y:200, frame:1, life:1, speed:4, fire_chance:900, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-750, attack_type:"wave", attack_number:4, y:165, frame:1, life:1, speed:4, fire_chance:900, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-1200, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-1200, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-1650, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-1650, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-2100, attack_type:"wave", attack_number:5, y:200, frame:1, life:1, speed:4, fire_chance:900, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-2100, attack_type:"wave", attack_number:4, y:165, frame:1, life:1, speed:4, fire_chance:900, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-2550, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-2550, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3000, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-3000, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-3450, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-3450, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:1200, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}];
var pop_order1 = [{x:-1000, y:20, type_of:11}, {x:-3500, y:220, type_of:10}];
var attack_order2 = [{release_time:-300, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-300, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-750, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-750, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-1200, attack_type:"wave", attack_number:9, y:240, frame:4, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:20, fire_speed:3, amount_in_wave:4}, {release_time:-1650, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-1650, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-2100, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-2100, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-2550, attack_type:"wave", attack_number:9, y:240, frame:4, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:20, fire_speed:3, amount_in_wave:4}, {release_time:-2550, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3000, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3200, attack_type:"wave", attack_number:9, y:240, frame:4, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:20, fire_speed:3, amount_in_wave:4}, {release_time:-3450, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3450, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}];
var pop_order2 = [{x:-1000, y:20, type_of:11}, {x:-3500, y:220, type_of:10}];
var attack_order3 = [{release_time:-300, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-450, attack_type:"wave", attack_number:9, y:240, frame:4, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:20, fire_speed:4, amount_in_wave:4}, {release_time:-300, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-750, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-900, attack_type:"wave", attack_number:9, y:240, frame:5, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:2, fire_angle:40, fire_speed:4, amount_in_wave:4}, {release_time:-750, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-1400, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-1600, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-1800, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-2100, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-2100, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-2550, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-2550, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-3200, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-3400, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-3600, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3800, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-4000, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-4200, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-4400, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-4600, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-4800, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-5000, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}];
var pop_order3 = [{x:-1000, y:20, type_of:11}, {x:-3500, y:220, type_of:10}];
var attack_order4 = [{release_time:-300, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-500, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-700, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-900, attack_type:"wave", attack_number:9, y:240, frame:5, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:2, fire_angle:40, fire_speed:4, amount_in_wave:3}, {release_time:-1300, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-1500, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-1600, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-1600, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-1700, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-1900, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-2000, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:1200, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-2000, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:1200, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-2100, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-2300, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-2400, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-2400, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-2500, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-2700, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-3000, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-3300, attack_type:"wave", attack_number:9, y:240, frame:5, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:2, fire_angle:40, fire_speed:4, amount_in_wave:4}, {release_time:-3400, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-3400, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-3700, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-3800, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-3900, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4000, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-4100, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4300, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-4300, attack_type:"wave", attack_number:9, y:240, frame:5, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:2, fire_angle:40, fire_speed:4, amount_in_wave:4}, {release_time:-4300, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-4500, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4600, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4700, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4900, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-5100, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, fly_on:true}];
var pop_order4 = [{x:-1000, y:20, type_of:11}, {x:-3500, y:220, type_of:10}];
var attack_order5 = [{release_time:-300, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-400, attack_type:"wave", attack_number:6, y:125, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-500, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-600, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-800, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-1000, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-1000, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-1300, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-1300, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-1600, attack_type:"wave", attack_number:2, y:80, frame:7, life:3, speed:5, fire_chance:150, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-1600, attack_type:"wave", attack_number:3, y:125, frame:7, life:3, speed:5, fire_chance:300, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:2}, {release_time:-1900, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:150, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-1900, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:150, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-2200, attack_type:"wave", attack_number:9, y:240, frame:4, life:1, speed:0, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:20, fire_speed:5, amount_in_wave:3}, {release_time:-2400, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-2400, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-2700, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-2900, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-3000, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3000, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3100, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-3300, attack_type:"walk", frame:2, life:2, speed:3, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-3400, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3400, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3700, attack_type:"wave", attack_number:9, y:240, frame:4, life:1, speed:0, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:20, fire_speed:3, amount_in_wave:3}, {release_time:-4000, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-4000, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:600, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-4100, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4200, attack_type:"wave", attack_number:6, y:125, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4300, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:600, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4700, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:150, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4700, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:150, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4800, attack_type:"wave", attack_number:9, y:240, frame:4, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:20, fire_speed:3, amount_in_wave:3}, {release_time:-5000, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:150, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-5000, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:150, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}];
var pop_order5 = [{x:-1000, y:20, type_of:11}, {x:-3500, y:220, type_of:10}];
var attack_order6 = [{release_time:-300, attack_type:"wave", attack_number:9, y:240, frame:4, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:20, fire_speed:3, amount_in_wave:3}, {release_time:-600, attack_type:"wave", attack_number:9, y:240, frame:5, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:2, fire_angle:20, fire_speed:4, amount_in_wave:3}, {release_time:-900, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-900, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-1200, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:2, missile_type:3, fire_angle:20, fire_speed:7, amount_in_wave:1}, {release_time:-1500, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:400, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-1600, attack_type:"wave", attack_number:6, y:125, frame:6, life:3, speed:3, fire_chance:400, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-1800, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:3, amount_in_wave:4}, {release_time:-1800, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-2100, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:2, missile_type:3, fire_angle:20, fire_speed:7, amount_in_wave:1}, {release_time:-2300, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:4, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-2300, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:4, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:3}, {release_time:-2600, attack_type:"walk", frame:3, life:3, speed:4, fire_chance:300, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-2700, attack_type:"walk", frame:3, life:3, speed:4, fire_chance:300, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-3000, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3000, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-3300, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:150, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-3300, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:150, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-3600, attack_type:"walk", frame:3, life:3, speed:4, fire_chance:300, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-3700, attack_type:"walk", frame:3, life:3, speed:4, fire_chance:300, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-3800, attack_type:"walk", frame:3, life:3, speed:4, fire_chance:300, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-4000, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:4, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-4000, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:4, fire_chance:400, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:5, amount_in_wave:4}, {release_time:-4300, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:2, missile_type:3, fire_angle:20, fire_speed:7, amount_in_wave:1}, {release_time:-4400, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:400, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4500, attack_type:"wave", attack_number:6, y:125, frame:6, life:3, speed:3, fire_chance:400, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4600, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:400, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-4800, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:2, missile_type:3, fire_angle:20, fire_speed:7, amount_in_wave:1}, {release_time:-5200, attack_type:"wave", attack_number:9, y:240, frame:5, life:1, speed:0, fire_chance:400, explosion_frame:2, missile_type:2, fire_angle:20, fire_speed:4, amount_in_wave:3}];
var pop_order6 = [{x:-1000, y:20, type_of:11}, {x:-3500, y:220, type_of:10}];
var attack_order7 = [{release_time:-300, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:2, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-600, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:350, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:6}, {release_time:-600, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:350, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:6}, {release_time:-900, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:350, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-1000, attack_type:"wave", attack_number:6, y:125, frame:6, life:3, speed:3, fire_chance:350, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-1100, attack_type:"wave", attack_number:6, y:80, frame:6, life:3, speed:3, fire_chance:350, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-1200, attack_type:"wave", attack_number:6, y:125, frame:6, life:3, speed:3, fire_chance:350, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, amount_in_wave:1}, {release_time:-1500, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-1700, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-1800, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-2000, attack_type:"wave", attack_number:6, y:50, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-2000, attack_type:"wave", attack_number:6, y:125, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-2300, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:350, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:6}, {release_time:-2300, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:350, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:6}, {release_time:-2600, attack_type:"walk", frame:3, life:3, speed:4, fire_chance:300, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-2700, attack_type:"walk", frame:3, life:3, speed:4, fire_chance:300, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-2800, attack_type:"walk", frame:3, life:3, speed:4, fire_chance:300, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-2900, attack_type:"walk", frame:3, life:3, speed:4, fire_chance:300, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:5, fly_on:true}, {release_time:-3200, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:5, fire_chance:350, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:6}, {release_time:-3200, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:5, fire_chance:350, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:6}, {release_time:-3450, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-3500, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:5, fire_chance:350, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:6}, {release_time:-3500, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:5, fire_chance:350, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:6}, {release_time:-3750, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-3800, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-3800, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-4100, attack_type:"wave", attack_number:6, y:50, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-4100, attack_type:"wave", attack_number:6, y:125, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-4300, attack_type:"wave", attack_number:6, y:75, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-4300, attack_type:"wave", attack_number:6, y:150, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-4600, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-4750, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:6}, {release_time:-4750, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:6}, {release_time:-4900, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:2, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}];
var pop_order7 = [{x:-1000, y:20, type_of:11}, {x:-3500, y:220, type_of:10}];
var attack_order8 = [{release_time:-300, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-300, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-600, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-600, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-1100, attack_type:"walk", frame:4, life:20, speed:1, fire_chance:150, explosion_frame:4, missile_type:3, fire_angle:-20, fire_speed:7, fly_on:false}, {release_time:-1500, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-1500, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-1800, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-2000, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-2100, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-2100, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-2200, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-2400, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-2800, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-3100, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-3100, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-3400, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-3600, attack_type:"wave", attack_number:6, y:50, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-3600, attack_type:"wave", attack_number:6, y:125, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-3700, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-3800, attack_type:"wave", attack_number:6, y:75, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-3800, attack_type:"wave", attack_number:6, y:150, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-4300, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-4300, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-4300, attack_type:"walk", frame:4, life:10, speed:1, fire_chance:100, explosion_frame:4, missile_type:3, fire_angle:0, fire_speed:7, fly_on:false}, {release_time:-4300, attack_type:"wave", attack_number:6, y:50, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-4300, attack_type:"wave", attack_number:6, y:125, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-4500, attack_type:"wave", attack_number:6, y:75, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-4500, attack_type:"wave", attack_number:6, y:150, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-4600, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-4600, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-4800, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-4900, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-5000, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-5000, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-5000, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-5100, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-5300, attack_type:"walk", frame:4, life:10, speed:1, fire_chance:100, explosion_frame:4, missile_type:3, fire_angle:0, fire_speed:7, fly_on:false}];
var pop_order8 = [{x:-1000, y:20, type_of:11}, {x:-3500, y:220, type_of:10}];
var attack_order9 = [{release_time:-300, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-400, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-450, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-450, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-500, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-600, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-900, attack_type:"wave", attack_number:2, y:80, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-900, attack_type:"wave", attack_number:3, y:125, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-1000, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-1200, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-1500, attack_type:"walk", frame:4, life:20, speed:1, fire_chance:150, explosion_frame:4, missile_type:3, fire_angle:-20, fire_speed:7, fly_on:false}, {release_time:-1600, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-1600, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-1900, attack_type:"wave", attack_number:6, y:50, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-1900, attack_type:"wave", attack_number:6, y:125, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-2100, attack_type:"wave", attack_number:6, y:75, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-2100, attack_type:"wave", attack_number:6, y:150, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-2200, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-2200, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-2500, attack_type:"walk", frame:4, life:20, speed:1, fire_chance:150, explosion_frame:4, missile_type:3, fire_angle:-20, fire_speed:7, fly_on:false}, {release_time:-2600, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-2600, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-2700, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-2800, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-2800, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-2900, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-3000, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-3000, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-3100, attack_type:"wave", attack_number:6, y:50, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-3100, attack_type:"wave", attack_number:6, y:125, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-3200, attack_type:"wave", attack_number:6, y:75, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-3200, attack_type:"wave", attack_number:6, y:150, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-3300, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-3400, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-3550, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:5, fire_chance:500, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-3550, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:5, fire_chance:500, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-3600, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-3700, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-4000, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-4000, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-4100, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-4200, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-4200, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}];
var pop_order9 = [{x:-1000, y:20, type_of:11}, {x:-3500, y:220, type_of:10}];
var attack_order10 = [{release_time:-300, attack_type:"walk", frame:4, life:20, speed:1, fire_chance:150, explosion_frame:4, missile_type:3, fire_angle:-20, fire_speed:7, fly_on:false}, {release_time:-450, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-450, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-600, attack_type:"walk", frame:4, life:20, speed:1, fire_chance:150, explosion_frame:4, missile_type:3, fire_angle:-20, fire_speed:7, fly_on:false}, {release_time:-750, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-750, attack_type:"wave", attack_number:5, y:125, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-900, attack_type:"walk", frame:4, life:20, speed:1, fire_chance:150, explosion_frame:4, missile_type:3, fire_angle:-20, fire_speed:7, fly_on:false}, {release_time:-1200, attack_type:"wave", attack_number:6, y:50, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-1200, attack_type:"wave", attack_number:6, y:125, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-1400, attack_type:"wave", attack_number:6, y:75, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-1400, attack_type:"wave", attack_number:6, y:150, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-1700, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-1800, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-1950, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-1950, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-2000, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:2, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-2100, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:2, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-2400, attack_type:"walk", frame:4, life:10, speed:1, fire_chance:150, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, fly_on:false}, {release_time:-2550, attack_type:"wave", attack_number:6, y:50, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-2550, attack_type:"wave", attack_number:6, y:125, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-2700, attack_type:"walk", frame:4, life:20, speed:1, fire_chance:150, explosion_frame:4, missile_type:3, fire_angle:-20, fire_speed:7, fly_on:false}, {release_time:-2750, attack_type:"wave", attack_number:6, y:75, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-2750, attack_type:"wave", attack_number:6, y:150, frame:9, life:5, speed:7, fire_chance:100, explosion_frame:3, missile_type:3, fire_angle:0, fire_speed:7, amount_in_wave:1}, {release_time:-3000, attack_type:"wave", attack_number:4, y:60, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-3000, attack_type:"wave", attack_number:4, y:80, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-3100, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:3, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-3000, attack_type:"wave", attack_number:5, y:120, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-3000, attack_type:"wave", attack_number:5, y:140, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-3300, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-3400, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-3450, attack_type:"wave", attack_number:8, y:60, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-3450, attack_type:"wave", attack_number:7, y:120, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-3500, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-3600, attack_type:"walk", frame:1, life:4, speed:4, fire_chance:300, explosion_frame:3, missile_type:2, fire_angle:0, fire_speed:6, fly_on:true}, {release_time:-3900, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-3900, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-4050, attack_type:"walk", frame:4, life:20, speed:1, fire_chance:150, explosion_frame:4, missile_type:3, fire_angle:-20, fire_speed:7, fly_on:false}, {release_time:-4200, attack_type:"wave", attack_number:8, y:60, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-4200, attack_type:"wave", attack_number:7, y:110, frame:7, life:3, speed:5, fire_chance:100, explosion_frame:2, missile_type:3, fire_angle:0, fire_speed:6, amount_in_wave:1}, {release_time:-4500, attack_type:"wave", attack_number:9, y:240, frame:8, life:4, speed:0, fire_chance:25, explosion_frame:2, missile_type:3, fire_angle:20, fire_speed:8, amount_in_wave:1}, {release_time:-4800, attack_type:"walk", frame:4, life:20, speed:1, fire_chance:150, explosion_frame:4, missile_type:3, fire_angle:-20, fire_speed:7, fly_on:false}, {release_time:-5000, attack_type:"wave", attack_number:4, y:100, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-5000, attack_type:"wave", attack_number:5, y:120, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-5000, attack_type:"wave", attack_number:5, y:140, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}, {release_time:-5000, attack_type:"wave", attack_number:5, y:160, frame:1, life:1, speed:5, fire_chance:250, explosion_frame:2, missile_type:1, fire_angle:0, fire_speed:6, amount_in_wave:4}];
var pop_order10 = [{x:-1000, y:20, type_of:11}, {x:-3500, y:220, type_of:10}];
Frame 2
loadMovieNum ("http://files.gamezhero.com/online/megasvsuniverse/theme.swf", 101);
this.onEnterFrame = function () {
if (!done1) {
total = _root.getBytesTotal() + _level101.getBytesTotal();
loads = _root.getBytesLoaded() + _level101.getBytesLoaded();
percent = int(loads / (total / 100));
card.gotoAndStop(percent);
if (total == loads) {
done1 = true;
gotoAndStop (3);
}
}
};
loadMovieNum (controlSWF, 1000);
stop();
Frame 3
myGameObject.displayBillboard();
stop();
gotoAndStop (4);
Frame 4
stop();
Frame 52
this._quality = "low";
if (!started_theme) {
_level101.theme.start_tune();
started_theme = true;
}
Frame 53
function start_amb() {
amb.start(0, 99999999);
}
function play_s(piece) {
this[piece].start();
}
function start_stage() {
_level101.theme.fade_out = true;
ended = false;
dash.gotoAndStop("start_stage");
the_stage++;
the_back++;
the_back = the_back % total_backs;
if (the_stage < 10) {
stage_zero = "0";
} else {
stage_zero = "";
}
dash.stage = stage_zero + the_stage;
hold_pose = true;
panel_ready = false;
x_place = 0;
scene_pos = 0;
released = 0;
p_released = 0;
panel_inc = 0;
panel_pop = 0;
shield_time = 0;
placed_pad = false;
attack_order = this["attack_order" + (the_back + 1)];
pop_order = this["pop_order" + (the_back + 1)];
dash.type_ani.gotoAndPlay(1);
dash.faces.gotoAndStop(player);
level_score = 0;
bots_destroyed = 0;
bots_released = 0;
make_scene();
}
function add_score(sc_amount) {
level_score = level_score + sc_amount;
my_score = my_score + sc_amount;
if (my_score >= (250000 * adder)) {
adder++;
add_life();
}
}
function add_life() {
if (lives < 5) {
play_s("freeman");
lives++;
lives = math_min(lives, total_lives);
dash.lives.gotoAndStop(lives + 1);
dash.lives.blink.onb = true;
}
}
function make_scene() {
all.sky.attachMovie("sky" + (the_back + 1), "piece", 1);
if ((the_back == 0) && (not_first)) {
global_change();
}
not_first = true;
all.createEmptyMovieClip("self", 30);
all.self.createEmptyMovieClip("holder", 1);
all.self.holder.attachMovie("robot_shadow", "shadow", 1);
all.self.holder.attachMovie("robot", "robot", 2);
all.self.holder.attachMovie("effects", "effects", 3);
all.self.holder.attachMovie("shield", "shield", 4);
all.self.holder.attachMovie("sm_effects", "sm_effects", 5);
robot = all.self.holder.robot;
self = all.self;
robot._x = 64;
robot._y = ground;
robot.attachMovie("stand_none", "body", 1);
robot.body.stop();
shadow = all.self.holder.shadow;
shadow._x = robot._x + 8;
shadow._y = ground + 58;
effects = all.self.holder.effects;
sm_effects = all.self.holder.sm_effects;
shield = all.self.holder.shield;
sm_effects._x = (effects._x = (shield._x = robot._x));
effects.gotoAndStop(player);
setup_weapons();
end_mark = this["attack_order" + (the_back + 1)][this["attack_order" + (the_back + 1)].length - 1].release_time;
all.scene.holder.loadMovie(("http://files.gamezhero.com/online/megasvsuniverse/m_fg" + (the_back + 1)) + ".swf", 1);
}
function global_change() {
global_speed = global_speed + 2;
global_chance = global_chance + 150;
}
function remove_scene_objects() {
var _local1 = -1;
while (_local1++ , _local1 < 90) {
all.elements.holder["missile" + _local1].removeMovieClip();
all.elements.holder["gun" + _local1].removeMovieClip();
all.elements.holder["special" + _local1].removeMovieClip();
all.elements.holder["explosion" + _local1].removeMovieClip();
all.elements.holder["enemy" + (_local1 + 1)].removeMovieClip();
all.elements.holder["enemy_missile" + _local1].removeMovieClip();
all.elements.holder["pickup" + _local1].removeMovieClip();
all.scene.pops["poptv" + _local1].removeMovieClip();
}
all.scene.pops.pad.removeMovieClip();
all.scene.pops._x = 0;
hover.stop();
shield_duration.stop();
}
function main_menu() {
all.removeMovieClip();
dash.removeMovieClip();
dead = false;
my_score = 0;
dis_score = 0;
smart_bombs = 0;
_root.gotoAndStop("choose");
}
function play_again() {
dash.gun_blocks.gotoAndStop(1);
dash.missile_blocks.gotoAndStop(1);
dash.specials.blocks.gotoAndStop(1);
dash.smart_blocks.gotoAndStop(1);
dash.health.gotoAndStop(1);
if (dash.d3._currentframe == 2) {
dash.d3.gotoAndStop(3);
} else {
dash.d3.gotoAndStop(1);
}
if (dash.d4._currentframe == 2) {
dash.d4.gotoAndStop(3);
} else {
dash.d4.gotoAndStop(1);
}
lives = total_lives;
dash.lives.gotoAndStop(lives + 1);
smart_bombs = 0;
the_stage = 0;
the_back = -1;
adder = 1;
not_first = false;
global_speed = 0;
global_chance = 0;
start_stage();
dead = false;
my_score = 0;
dis_score = 0;
bots_destroyed = 0;
bots_released = 0;
tot_tot_bot = 0;
tot_acc_bot = 0;
}
function sort_panels() {
var _local1 = -1;
while (_local1++ , _local1 < 4) {
all.scene.holder["panel" + (_local1 + 1)]._x = _local1 * 414;
}
scene = all.scene;
panel_width = all.scene.holder.panel1._width - 2;
panel_ready = true;
}
function place_pad() {
all.scene.pops.attachMovie("enemy1", "pad", 100);
pad_name = all.scene.pops.pad;
pad_name.gotoAndStop(12);
pad_name.inv = true;
pad_name._x = (-x_place) + 900;
pad_name._y = 252;
}
function end_stage() {
amb.stop();
ended = true;
beam_loop.stop();
hover.stop();
hold_pose = true;
old_weapon = "none";
_level101.theme.start_tune();
dash.gotoAndStop("end_stage");
}
function setup_weapons() {
gun_positions = new Array(gun_info.allowance);
missile_positions = new Array(missile_info.allowance);
special_positions = new Array(special_info.allowance);
}
function get_stats() {
tot_bot = bots_destroyed;
acc_bot = int((100 / bots_released) * bots_destroyed);
acc_bot = math_max(math_min(acc_bot, 100), 0);
tot_tot_bot = tot_tot_bot + tot_bot;
tot_acc_bot = tot_acc_bot + acc_bot;
}
function get_final_stats() {
tot_acc_bot = int(tot_acc_bot / the_stage);
}
function upgrade_weapon(u_type, u_player) {
play_s("power_pickup");
dash.faces.player.gotoAndStop("power");
if (((u_type == "missile") || (u_type == "gun")) || (u_type == "special")) {
this[u_type + "_u"]++;
this[u_type + "_info"] = this[((u_player + u_type) + "_upgrade") + this[u_type + "_u"]];
dash.state.gotoAndStop(u_type + "_upgrade");
dash[u_type + "_blocks"].nextFrame();
}
if (u_type == "special") {
dash.d3.gotoAndStop("open");
dash.specials.blocks.gotoAndStop(special_u);
special_recharge = 0;
}
if (u_type == "shield") {
dash.state.gotoAndStop("shield");
shield.gotoAndStop(2);
robot._visible = 1;
play_s("shield_up");
shield_duration.start(0, 999999);
shield_time = 160;
}
if (u_type == "smart") {
dash.d4.gotoAndStop("open");
dash.state.gotoAndStop("smart");
smart_bombs++;
dash.smart_blocks.gotoAndStop(smart_bombs);
}
}
function smart_bomb() {
dash.state.gotoAndStop("smart");
smart_time = 2;
smart_bombs--;
dash.smart_blocks.gotoAndStop(smart_bombs);
if (!smart_bombs) {
dash.d4.gotoAndStop("close");
}
}
function swap_panel() {
panel_inc++;
panel_inc = panel_inc % 4;
panel_pop = panel_inc - 1;
var _local1 = -1;
while (_local1++ , _local1 < 4) {
panel_pop++;
panel_pop = panel_pop % 4;
all.scene.holder["panel" + (panel_pop + 1)]._x = _local1 * 414;
}
}
function swap_state(new_ani, old_wep) {
robot.attachMovie((new_ani + "_") + old_wep, "body", 1);
old_state = new_ani;
}
function swap_weapon(old_ani, new_wep, new_frame) {
if (new_wep != "special") {
robot.attachMovie((old_ani + "_") + new_wep, "body", 1);
old_weapon = new_wep;
robot.body.gotoAndPlay(new_frame);
}
if ((new_wep == "special") && (special_u > 0)) {
robot.attachMovie((old_ani + "_") + special_list[special_u], "body", 1);
old_weapon = new_wep;
robot.body.gotoAndPlay(new_frame);
special_func();
}
}
function special_func() {
hold_pose = true;
x_speed = 0;
y_speed = 0;
x_potential = 0;
}
function special_over() {
hold_pose = false;
effects.effect.gotoAndStop(1);
new_weapon = "none";
}
function stomp(stomp_force) {
s_force = stomp_force * 0.5;
if (!dead) {
pop_lev++;
pop_lev = pop_lev % 20;
all.scene.pops.attachMovie("enemy1", "smoke" + pop_lev, pop_lev + 1);
p_name = all.scene.pops["smoke" + pop_lev];
p_name.inv = true;
p_name.gotoAndStop(13);
p_name._x = (-x_place) + 72;
p_name._y = 248;
}
}
function camera_update(c_type, c_amount) {
var _local7 = (ground - robot._y) * camera_limit;
var _local3 = _local7 * c_amount;
var _local5 = int(_local3 - this[c_type]._y) * camera_glide;
((this[c_type]._y < _local3) ? ((this[c_type]._y = this[c_type]._y + Math.abs(_local5))) : ((this[c_type]._y = this[c_type]._y - Math.abs(_local5 * 5))));
_local7 = (-x_speed) * 26;
var _local4 = math_min(_local7 * c_amount, 104);
var _local6 = int(_local4 - this[c_type]._x) * camera_glide;
((this[c_type]._x < _local4) ? ((this[c_type]._x = this[c_type]._x + Math.abs(_local6))) : ((this[c_type]._x = this[c_type]._x - Math.abs(_local6))));
}
function make_effect(w_type) {
if (w_type == "gun") {
effects.effect.gotoAndStop(this[w_type + "_u"] + 1);
fire_weapon(w_type);
}
if (w_type == "missile") {
effects.effect.gotoAndStop(6);
fire_weapon(w_type);
}
if (w_type == "special") {
effects.effect.gotoAndStop(special_list[special_u]);
}
}
function fire_weapon(w_type) {
if (w_type == "gun") {
play_s(((player + "_") + Number(gun_u > 2)) + "_gun");
}
if (w_type == "missile") {
play_s("missiles");
}
if (w_type == "special") {
if (shield_time <= 0) {
shield_time = 1;
}
shield.gotoAndStop(2);
if (special_u == 1) {
play_s("fist");
} else {
play_s(((player + "_") + special_u) + "_special");
}
}
var _local2 = this[w_type + "_info"];
var _local3 = -1;
while (_local3++ , _local3 < _local2.amount) {
fire_lev++;
fire_lev = fire_lev % 90;
var _local4 = this[w_type + "_id"]++;
var _local6 = _local2.allowance;
_local4 = _local4 % _local6;
this[w_type + "_recharge"] = _local2.recharge;
all.elements.holder.attachMovie("missile", w_type + _local4, fire_lev + 200);
w_name = all.elements.holder[w_type + _local4];
w_name._x = ((robot._x + 40) - this.x_place) + _local2.x_adj;
w_name._y = (robot._y - 6) + _local2.y_adj;
w_name.gotoAndStop(player);
w_name.missile.gotoAndStop(_local2.frame[_local3]);
w_name.momentium = -x_speed;
w_name.thrust = _local2.thrust;
w_name.id = _local4;
w_name.array = w_type;
w_name.wdth = _local2.wdth[_local3];
w_name.life = _local2.life;
w_name.angle = _local2.angle[_local3];
w_name.rot = _local2.rot[_local3];
w_name.lift = _local2.lift[_local3];
w_name.span = _local2.span;
}
}
function enemy_fire(emx, emy, emm, emf, ema, ems) {
play_s("enemy_gun1");
em_fire_lev++;
em_fire_lev = em_fire_lev % 90;
em_id++;
em_id = em_id % emissile_limit;
all.elements.holder.attachMovie("enemy_missile", "enemy_missile" + em_id, em_fire_lev + 300);
em_name = all.elements.holder["enemy_missile" + em_id];
em_name.gotoAndStop(emf);
em_name._x = emx;
em_name._y = emy;
em_name.momentium = emm;
em_name.id = em_id;
em_name.angle = ema;
em_name.fire_speed = ems + 2;
}
function make_pop(px, py, pf) {
pop_lev++;
pop_lev = pop_lev % 20;
all.scene.pops.attachMovie("enemy1", "poptv" + pop_lev, pop_lev + 1);
p_name = all.scene.pops["poptv" + pop_lev];
p_name.gotoAndStop(pf);
p_name.life = 1;
p_name.ex_fr = 1;
p_name.my_size = 30;
p_name._x = (-px) + 600;
p_name._y = py;
}
function make_walk(w_type) {
bots_released++;
var _local3 = w_type.frame;
var _local11 = w_type.life;
var _local4 = w_type.speed;
var _local8 = w_type.fire_chance;
var _local12 = w_type.explosion_frame;
var _local10 = w_type.missile_type;
var _local14 = w_type.fire_angle;
var _local6 = w_type.fire_speed;
var _local13 = w_type.fly_on;
var _local9 = enemy_ground[_local3 - 1];
var _local15 = enemy_firey2[_local3 - 1];
var _local5 = enemy_firex2[_local3 - 1];
var _local7 = enemy_size2[_local3 - 1];
enemy_lev++;
enemy_lev = enemy_lev % 90;
all.elements.holder.attachMovie("enemy2", "enemy" + (enemy_lev + 1), enemy_lev + 100);
e_name = all.elements.holder["enemy" + (enemy_lev + 1)];
e_name.gotoAndStop(_local3);
e_name._x = 640 - this.x_place;
e_name._y = _local9;
e_name.frame = _local3;
e_name.life = _local11;
e_name.x_speed = _local4 + (global_speed * (_local4 != 0));
e_name.chance = math_max(_local8 - global_chance, 100);
e_name.ex_fr = _local12;
e_name.firey = _local15;
e_name.firex = _local5;
e_name.my_size = _local7;
e_name.weapon = _local10;
e_name.fire_angle = _local14;
e_name.fire_speed = _local6 + global_speed;
e_name.fly_on = _local13;
}
function make_wave(w_type) {
var _local9 = w_type.attack_number;
var _local11 = w_type.y;
var _local5 = w_type.frame;
var _local13 = w_type.life;
var _local3 = w_type.speed;
var _local10 = w_type.fire_chance;
var _local15 = w_type.explosion_frame;
var _local12 = w_type.missile_type;
var _local16 = w_type.fire_angle;
var _local7 = w_type.fire_speed;
var _local14 = w_type.amount_in_wave;
var _local17 = enemy_firey1[_local5 - 1];
var _local6 = enemy_firex1[_local5 - 1];
var _local8 = enemy_size1[_local5 - 1];
var _local2 = -1;
while (_local2++ , _local2 < _local14) {
bots_released++;
enemy_lev++;
enemy_lev = enemy_lev % 90;
all.elements.holder.attachMovie("enemy1", "enemy" + (enemy_lev + 1), enemy_lev + 100);
e_name = all.elements.holder["enemy" + (enemy_lev + 1)];
e_name.gotoAndStop(_local5);
e_name._x = (640 - this.x_place) + (_local2 * 80);
e_name._y = _local11;
e_name.attack_number = _local9;
e_name.life = _local13;
e_name.speed = _local3 + (global_speed * (_local3 != 0));
e_name.chance = math_max(_local10 - global_chance, 100);
e_name.ex_fr = _local15;
e_name.weapon = _local12;
e_name.fire_angle = _local16;
e_name.fire_speed = _local7 + global_speed;
e_name.firey = _local17;
e_name.firex = _local6;
e_name.my_size = _local8;
e_name.distance_adj = (-_local2) * 80;
}
}
function place_pickup(p_x, p_y, pop_on) {
pick_rnd = int(math_ran() * pick_chance);
if (((pick_rnd == 0) || (pop_on)) && (!pick_on_screen)) {
if (int(math_ran() * 2) == 0) {
p_chose = "weapon";
} else {
p_chose = "extra";
}
if (p_chose == "weapon") {
t_chose = which_order[int(math_ran() * 3)];
w_full = (this[t_chose + "_u"] + (t_chose == "special")) == 4;
all_full = ((gun_u == 4) && (missile_u == 4)) && (special_u == 3);
if (all_full) {
p_chose = "extra";
}
if (w_full && (!all_full)) {
var _local2 = 0;
while (_local2 < 3) {
if ((this[which_order[_local2] + "_u"] + (which_order[_local2] == "special")) < 4) {
t_chose = which_order[_local2];
_local2 = 3;
}
_local2++;
}
}
if (p_chose != "extra") {
if (t_chose != "special") {
pick_frame = t_chose + (this[t_chose + "_u"] + 1);
which_kind = t_chose;
}
if (t_chose == "special") {
pick_frame = player + special_order[this[t_chose + "_u"]];
which_kind = "special";
}
}
}
if (p_chose == "extra") {
pick_frame = extra_order[int(math_ran() * 2)];
which_kind = pick_frame;
}
smart_bug = ((p_chose == "extra") && (which_kind == "smart")) && (smart_bombs >= 4);
if (!smart_bug) {
pick_lev++;
pick_lev = pick_lev % 90;
all.elements.holder.attachMovie("pickup", "pickup" + pick_lev, pick_lev + 500);
pick_name = all.elements.holder["pickup" + pick_lev];
pick_name._x = p_x;
pick_name._y = p_y;
pick_on_screen = true;
pick_name.gotoAndStop(pick_frame);
pick_name.p_kind = which_kind;
}
}
}
function hit_robot() {
effects.effect.gotoAndStop(1);
effects.effect.gotoAndStop(1);
lives--;
dash.lives.blink.off = true;
hold_pose = true;
dead = true;
robot.attachMovie("dead", "body", 1);
dash.type_ani.gotoAndStop("dead");
dash.faces.gotoAndStop("dead");
dash.health.gotoAndStop("dead");
shield_time = 0;
smart_bombs = 0;
if (int(math_ran() * 5) == 0) {
play_s(player + "_damage_critical");
}
}
function wake() {
gun_u = 1;
missile_u = 1;
special_u = 0;
gun_info = this["gun_upgrade" + gun_u];
missile_info = this[(player + "missile_upgrade") + missile_u];
if (lives != 0) {
effects.effect.gotoAndStop(1);
dash.gun_blocks.gotoAndStop(1);
dash.missile_blocks.gotoAndStop(1);
dash.specials.blocks.gotoAndStop(1);
dash.smart_blocks.gotoAndStop(1);
if (dash.d3._currentframe == 2) {
dash.d3.gotoAndStop(3);
} else {
dash.d3.gotoAndStop(1);
}
if (dash.d4._currentframe == 2) {
dash.d4.gotoAndStop(3);
} else {
dash.d4.gotoAndStop(1);
}
shield_time = 50;
dash.type_ani.gotoAndStop(1);
dash.faces.gotoAndStop(player);
dash.specials.gotoAndStop(player);
dash.health.gotoAndStop(1);
hold_pose = false;
dead = false;
old_weapon = "none";
new_weapon = "none";
old_state = "stand";
new_state = "stand";
robot.attachMovie("stand_none", "body", 1);
} else {
shield_duration.stop();
beam_loop.stop();
_level101.theme.start_tune();
amb.stop();
dash.gotoAndStop("dead");
}
}
function make_explosion(expx, expy, ex_frame) {
exp_lev++;
exp_lev = exp_lev % 90;
all.elements.holder.attachMovie("explosion", "explosion" + exp_lev, exp_lev + 400);
exp_name = all.elements.holder["explosion" + exp_lev];
exp_name._x = expx;
exp_name._y = expy;
exp_name.gotoAndStop(ex_frame);
play_s("small_explosion");
}
var math_abs = Math.abs;
var math_sin = Math.sin;
var math_cos = Math.cos;
var math_min = Math.min;
var math_max = Math.max;
var math_ran = Math.random;
var total_lives = 5;
var my_score;
var dis_score;
var max_speed = 12;
var ground = 196;
var hover = 180;
var the_stage = 0;
var the_back = -1;
var not_first = false;
var global_speed = 0;
var global_chance = 0;
var emissile_limit = 20;
var pick_chance = 16;
var end_mark;
var smart_bombs;
var key_left;
var key_right;
var key_down;
var key_up;
var weapon1;
var weapon2;
var weapon3;
var w_pick;
var new_weapon;
var x_potential;
var x_speed;
var x_adjust;
var scene_pos;
var x_place;
var actual_y;
var vel_y;
var gun_recharge;
var missile_recharge;
var special_recharge;
var smart_time;
var attack_order;
var dead;
var bots_destroyed = 0;
var total_bots_destroyed = 0;
var tot_tot_bot = 0;
var tot_acc_bot = 0;
var bots_released = 0;
var adder = 1;
var enemy_size1 = [20, 40, 20, 20, 30, 24, 24, 40, 30, 30];
var enemy_firex1 = [0, 0, 0, -28, -20, -26, -40, 0, -20, 0];
var enemy_firey1 = [4, -30, 14, -20, -12, 16, 0, -30, 0, 0];
var enemy_size2 = [40, 40, 40, 160];
var enemy_firex2 = [0, -40, -40, -40];
var enemy_firey2 = [-12, -12, -34, -56];
var enemy_ground = [218, 224, 208, 160];
var released = 0;
var p_released = 0;
var gun_u = 1;
var gun_upgrade1 = {amount:1, frame:[1], thrust:16, allowance:4, recharge:14, life:1, wdth:[16]};
var gun_upgrade2 = {amount:1, frame:[2], thrust:18, allowance:8, recharge:10, life:1, wdth:[28]};
var gun_upgrade3 = {amount:3, frame:[1, 1, 1], thrust:20, allowance:18, recharge:14, life:1, wdth:[16, 16, 16], angle:[-6, 0, 6]};
var gun_upgrade4 = {amount:3, frame:[3, 1, 1], thrust:22, allowance:18, recharge:10, life:1, wdth:[36, 16, 16], angle:[0, -10, 10]};
var missile_u = 1;
var special_u = 0;
var jamiemissile_upgrade1 = {amount:2, frame:[4, 4], thrust:12, allowance:8, recharge:20, life:2, wdth:[8, 8], angle:[-20, 20]};
var jamiemissile_upgrade2 = {amount:4, frame:[4, 4, 4, 4], thrust:12, allowance:16, recharge:20, life:2, wdth:[8, 8, 8, 8], angle:[-30, 30, -20, 20]};
var jamiemissile_upgrade3 = {amount:6, frame:[4, 4, 4, 4, 4, 4], thrust:12, allowance:24, recharge:20, life:2, wdth:[8, 8, 8, 8, 8, 8], angle:[40, -40, 30, -30, 20, -20]};
var jamiemissile_upgrade4 = {amount:8, frame:[4, 4, 4, 4, 4, 4, 4, 4], thrust:12, allowance:32, recharge:20, life:2, wdth:[8, 8, 8, 8, 8, 8, 8, 8], angle:[20, -20, 30, -30, 40, -40, 50, -50, 60, -60]};
var coopmissile_upgrade1 = {amount:2, frame:[4, 4], thrust:12, allowance:8, recharge:20, life:2, wdth:[8, 8], angle:[-40, 40], rot:[2, -2]};
var coopmissile_upgrade2 = {amount:4, frame:[4, 4, 4, 4], thrust:12, allowance:16, recharge:20, life:2, wdth:[8, 8, 8, 8], angle:[-40, 40, -48, 48], rot:[2, -2, 2, -2]};
var coopmissile_upgrade3 = {amount:6, frame:[4, 4, 4, 4, 4, 4], thrust:12, allowance:24, recharge:20, life:2, wdth:[8, 8, 8, 8, 8, 8], angle:[-40, 40, -48, 48, -56, 56], rot:[2, -2, 2, -2, 2, -2]};
var coopmissile_upgrade4 = {amount:8, frame:[4, 4, 4, 4, 4, 4, 4, 4], thrust:12, allowance:32, recharge:20, life:2, wdth:[8, 8, 8, 8, 8, 8, 8, 8], angle:[-40, 40, -48, 48, -56, 56, -64, 64], rot:[2, -2, 2, -2, 2, -2, 2, -2]};
var kivamissile_upgrade1 = {amount:2, frame:[4, 4], thrust:12, allowance:8, recharge:20, life:2, wdth:[8, 8], angle:[-50, 50], lift:[12, 12]};
var kivamissile_upgrade2 = {amount:4, frame:[4, 4, 4, 4], thrust:12, allowance:16, recharge:20, life:2, wdth:[8, 8, 8, 8], angle:[-50, 50, -60, 60], lift:[12, 12, 20, 20]};
var kivamissile_upgrade3 = {amount:6, frame:[4, 4, 4, 4, 4, 4], thrust:12, allowance:24, recharge:20, life:2, wdth:[8, 8, 8, 8, 8, 8], angle:[-50, 50, -60, 60, -70, 70], lift:[12, 12, 20, 20, 28, 28]};
var kivamissile_upgrade4 = {amount:8, frame:[4, 4, 4, 4, 4, 4, 4, 4], thrust:12, allowance:32, recharge:20, life:2, wdth:[8, 8, 8, 8, 8, 8, 8, 8], angle:[-50, 50, -60, 60, -70, 70, -80, 80], lift:[12, 12, 20, 20, 28, 28, 36, 36]};
var coopspecial_upgrade1 = {amount:1, frame:[5], thrust:14, allowance:1, recharge:150, life:100, wdth:[30], y_adj:-8, x_adj:0};
var coopspecial_upgrade2 = {amount:1, frame:[6], thrust:14, allowance:1, recharge:150, life:100, wdth:[30], y_adj:-4, x_adj:60};
var coopspecial_upgrade3 = {amount:1, frame:[7], thrust:20, allowance:6, recharge:150, life:100, wdth:[30], y_adj:-13, x_adj:-18};
var jamiespecial_upgrade1 = {amount:1, frame:[5], thrust:14, allowance:1, recharge:150, life:100, wdth:[30], y_adj:-8, x_adj:0};
var jamiespecial_upgrade2 = {amount:1, frame:[6], thrust:18, allowance:4, recharge:150, life:100, wdth:[36], y_adj:-4, x_adj:60};
var jamiespecial_upgrade3 = {amount:2, frame:[7, 7], thrust:18, allowance:6, recharge:150, life:100, wdth:[40, 40], angle:[-10, 10], y_adj:-13, x_adj:-18};
var kivaspecial_upgrade1 = {amount:1, frame:[5], thrust:14, allowance:1, recharge:150, life:100, wdth:[30], y_adj:-8, x_adj:0};
var kivaspecial_upgrade2 = {amount:2, frame:[6, 6], thrust:18, allowance:6, recharge:150, life:100, wdth:[40, 40], angle:[-10, 10], y_adj:-13, x_adj:-18};
var kivaspecial_upgrade3 = {amount:2, frame:[7, 7], thrust:5, allowance:2, recharge:150, life:100, angle:[-180, 0], wdth:[300, 300], y_adj:-13, x_adj:-18, span:40};
var gun_info = this["gun_upgrade" + gun_u];
var missile_info = this[(player + "missile_upgrade") + missile_u];
var special_list = ["none", "fist", "clap", "chest"];
var weapon_list = ["none", "gun", "missile", "special"];
var sound_clips = [["walk", 30], ["land", 80], ["coop_0_gun", 100], ["jamie_0_gun", 100], ["kiva_0_gun", 100], ["coop_1_gun", 100], ["jamie_1_gun", 100], ["kiva_1_gun", 100], ["missiles", 70], ["small_explosion", 100], ["hit", 100], ["enemy_walk", 80], ["enemy_gun1", 100], ["fist", 100], ["coop_2_special", 100], ["coop_3_special", 100], ["jamie_2_special", 100], ["jamie_3_special", 100], ["kiva_2_special", 100], ["kiva_3_special", 100], ["shield_up", 100], ["smart", 100], ["heal", 100], ["coop_startoflevel", 100], ["coop_damage_critical", 100], ["coop_powerup", 100], ["jamie_startoflevel", 100], ["jamie_damage_critical", 100], ["jamie_powerup", 100], ["kiva_startoflevel", 100], ["kiva_damage_critical", 100], ["kiva_powerup", 100], ["power_pickup", 100], ["reach_goal", 100], ["tv", 100], ["get_ready", 100], ["die", 100], ["hitground", 100], ["freeman", 100], ["cheer1", 50], ["cheer2", 50]];
this.createEmptyMovieClip("sounds", 100);
var s = -1;
snd_amount = sound_clips.length;
while ((++s) < snd_amount) {
s_name = sound_clips[s][0];
s_vol = sound_clips[s][1];
sounds.createEmptyMovieClip(s_name, s + 1);
this[s_name] = new Sound(sounds[s_name]);
this[s_name].attachSound(s_name);
this[s_name].setVolume(s_vol);
}
if (!snd_done) {
sounds.createEmptyMovieClip("hover", 100);
hover = new Sound("sounds.hover");
hover.attachSound("hover");
hover.setVolume(30);
sounds.createEmptyMovieClip("shield_duration", 101);
shield_duration = new Sound("sounds.shield_duration");
shield_duration.attachSound("shield_duration");
shield_duration.setVolume(50);
sounds.createEmptyMovieClip("beam_loop", 102);
beam_loop = new Sound("sounds.beam_loop");
beam_loop.attachSound("beam_loop");
beam_loop.setVolume(100);
sounds.createEmptyMovieClip("amb", 103);
amb = new Sound("sounds.amb");
amb.attachSound("amb");
amb.setVolume(20);
snd_done = true;
}
this.createEmptyMovieClip("all", 1);
all.createEmptyMovieClip("sky", 10);
all.createEmptyMovieClip("scene", 20);
all.scene.createEmptyMovieClip("holder", 1);
all.scene.createEmptyMovieClip("pops", 2);
all.createEmptyMovieClip("elements", 40);
all.elements.createEmptyMovieClip("holder", 1);
elements = all.elements;
_root.attachMovie("dash", "dash", 8000);
dash.faces.gotoAndStop(player);
dash.specials.gotoAndStop(player);
lives = total_lives;
dash.lives.gotoAndStop(lives + 1);
var panel_inc = 0;
var panel_pop;
var tension = 0.5;
var damp = 0.9;
var low_y = _y;
var s_force;
var camera_glide = 0.1;
var camera_limit = 1;
var fire_lev;
var em_fire_lev;
var em_id;
var enemy_lev;
var pick_lev;
var which_order = ["gun", "missile", "special"];
var extra_order = ["smart", "shield"];
var special_order = ["fist", "clap", "chest"];
var pick_rnd;
var pick_on_screen;
var p_chose;
var w_full;
var all_full;
var pick_frame;
var which_kind;
var exp_lev;
_global.robot_class = function () {
};
robot_class.prototype = new MovieClip();
robot_class.prototype.onLoad = function () {
var _local10;
var _local5;
var _local6;
var _local7;
var _local1;
var _local3;
var _local2;
var _local8;
var _local4;
var _local9;
};
robot_class.prototype.onEnterFrame = function () {
if ((old_state == "walk") && (this.body._currentframe == 7)) {
play_s("walk");
stomp(5);
}
if (this._y < ground) {
new_state = "air";
}
if ((this._y == ground) && (x_speed != 0)) {
new_state = "walk";
}
if ((this._y == ground) && (x_speed == 0)) {
new_state = "stand";
}
if (((((this._y == ground) && (key_duck)) && (old_weapon == "none")) && (x_speed == 0)) && (new_weapon != "special")) {
new_state = "duck";
}
if ((new_state != old_state) && (!dead)) {
swap_state(new_state, old_weapon);
}
if ((new_weapon != old_weapon) && (!hold_pose)) {
if (old_state == "duck") {
new_state = "stand";
}
if (_root[new_weapon + "_recharge"] <= 0) {
swap_weapon(old_state, new_weapon, this.body._currentframe);
}
}
if (this._y > (ground - y_speed)) {
stomp(y_speed);
play_s("land");
hover.stop();
hover_snd = false;
y_speed = 0;
fall = false;
this._y = ground;
}
if ((!fall) && (!dead)) {
y_potential = int((key_down - key_up) * (max_speed - 2));
}
y_speed = y_speed + ((y_speed < y_potential) * 2);
y_speed = y_speed - ((y_speed > y_potential) * 2);
if ((this._y < ground) && (e_t == 0)) {
if (!hover_snd) {
hover.start(0, 999999);
hover_snd = true;
}
h_mov = math_sin((this.x = this.x + 0.35)) * 0.5;
this._y = this._y + h_mov;
}
_root.shadow._yscale = (_root.shadow._xscale = 100 + ((ground - this._y) * 0.2));
this._y = this._y + (y_speed * ((!hold_pose) || (dead)));
if (key_down && (!d_held)) {
if (d_time <= 0) {
fall = true;
this.body.s_thrusters._visible = 0;
}
d_held = true;
d_time = -8;
}
d_held = key_down;
d_time++;
if (dead) {
y_speed = math_max(y_speed, 0);
y_potential = 8 * (this._y < ground);
}
if ((fall && (!hold_pose)) || (dead)) {
hover.stop();
y_speed = math_abs(y_speed);
y_speed = y_speed * 1.4;
y_speed = math_min(y_speed, 20);
}
charged = _root[old_weapon + "_recharge"] <= 0;
if ((((old_weapon != "none") && (old_weapon != undefined)) && (charged)) && (!dead)) {
make_effect(old_weapon);
}
_root.shield._y = (_root.effects._y = (_root.sm_effects._y = this._y));
};
Object.registerClass("robot", robot_class);
_global.pickup_class = function () {
};
pickup_class.prototype = new MovieClip();
pickup_class.prototype.onLoad = function () {
this.velocity = -100;
this.gravity = 100;
this.elastic = 0.5;
this.x_slow = 6;
};
pickup_class.prototype.onUnload = function () {
pick_on_screen = false;
};
pickup_class.prototype.onEnterFrame = function () {
this.travel = (this._x - 120) + _root.x_place;
if ((math_abs(this._y - (_root.robot._y + 10)) < 56) && (math_abs(this.travel + 42) < 40)) {
if ((this.p_kind == "missile") || (this.p_kind == "special")) {
this.player = player;
}
upgrade_weapon(this.p_kind, this.player);
this.removeMovieClip();
}
if ((this.travel < -200) || (dead)) {
this.removeMovieClip();
}
this.my_y = this._y;
this.velocity = this.velocity + (this.gravity / 10);
this.my_y = this.my_y + (this.velocity / 10);
if (this.my_y > (ground + 54)) {
this.my_y = ground + 54;
this.velocity = int(-(this.velocity * this.elastic));
}
this._y = this.my_y;
this.x_slow = this.x_slow * 0.95;
this._x = this._x + this.x_slow;
};
Object.registerClass("pickup", pickup_class);
_global.missile_class = function () {
};
missile_class.prototype = new MovieClip();
missile_class.prototype.onLoad = function () {
this.conv = 0.0174532925199433 /* Math.PI/180 */;
};
missile_class.prototype.onEnterFrame = function () {
this.travel = (this._x - 120) + _root.x_place;
if (this.rot != 0) {
if (math_abs(int(this.angle)) > 1) {
this.angle = this.angle + (this.rot * (this.speed * 0.1));
} else {
this.angle = 0;
}
}
this.speed = this.thrust + this.momentium;
if (this.lift && (this.count < this.lift)) {
this.speed = this.speed * (((this.lift - this.count) / this.lift) * (0.8 - (this.momentium * 0.025)));
this.count++;
if (this.lift == this.count) {
this.angle = 0;
}
}
this._x = this._x + (math_cos(this.angle * this.conv) * this.speed);
this._y = this._y + (math_sin(this.angle * this.conv) * this.speed);
this._rotation = this.angle * (!this.lift);
this.span--;
_root[this.array + "_positions"][this.id] = [this._x, this._y, this.wdth];
if ((this.life <= 0) || ((this.span == 1) || (this.span < -42))) {
_root[this.array + "_positions"][this.id] = undefined;
if ((this.span != 1) && (this.travel < 600)) {
make_explosion(this._x, this._y, 1);
}
this.removeMovieClip();
}
};
Object.registerClass("missile", missile_class);
_global.enemy_missile_class = function () {
};
enemy_missile_class.prototype = new MovieClip();
enemy_missile_class.prototype.onLoad = function () {
this.conv = 0.0174532925199433 /* Math.PI/180 */;
_root.emissiles_on++;
this.speed = math_max(this.fire_speed + this.momentium, 2);
this._rotation = this.angle;
};
enemy_missile_class.prototype.onUnload = function () {
_root.emissiles_on--;
};
enemy_missile_class.prototype.onEnterFrame = function () {
this.travel = (this._x - 120) + _root.x_place;
this._x = this._x - (math_cos(this.angle * this.conv) * this.speed);
this._y = this._y - (math_sin(this.angle * this.conv) * this.speed);
if ((this.travel < -200) || (this._y < -130)) {
this.removeMovieClip();
}
if (old_state == "duck") {
this.y_area = math_abs(this._y - (_root.robot._y + 22)) < 36;
} else {
this.y_area = math_abs(this._y - (_root.robot._y + 10)) < 48;
}
if (((this.y_area && (math_abs(this.travel + 42) < 10)) && (_root.shield_time < 0)) && (!dead)) {
make_explosion(this._x, this._y, 1);
hit_robot();
this.removeMovieClip();
}
if (!_root.smart_time) {
make_explosion(this._x, this._y, 1);
this.removeMovieClip();
}
};
Object.registerClass("enemy_missile", enemy_missile_class);
_global.enemy1_class = function () {
};
enemy1_class.prototype = new MovieClip();
enemy1_class.prototype.onLoad = function () {
this.start_x = this._x;
this.start_y = this._y;
this.chance_div = this.chance * 0.01;
this["wave" + this.attack_number] = true;
this.original_speed = this.speed;
};
enemy1_class.prototype.onUnload = function () {
};
enemy1_class.prototype.onEnterFrame = function () {
this.travel = (this._x - 120) + _root.x_place;
if ((this.travel < -260) || (this.travel > 1000)) {
this.removeMovieClip();
}
this.y_level = math_abs(this._y - _root.robot._y);
this.rnd = int(math_ran() * this.chance);
if ((((((this.y_level < 48) && (this.rnd < this.chance_div)) || (this.rnd == 0)) && (_root.emissiles_on < _root.emissile_limit)) && (!this.bash)) && (!_root.placed_pad)) {
this.body.gotoAndStop("fire");
}
if (((this.life <= 0) || (!_root.smart_time)) && (!this.inv)) {
make_explosion(this._x, this._y, this.ex_fr);
place_pickup(this._x, this._y, (this._currentframe == 10) || (this._currentframe == 11));
add_score(1500);
_root.bots_destroyed = _root.bots_destroyed + (this._currentframe <= 9);
this.removeMovieClip();
}
delete this.g_target;
this.a = -1;
while ((++this.a) < _root.gun_positions.length) {
this.wdth = _root.gun_positions[this.a][2] + this.my_size;
this.x_dist = math_abs(this._x - _root.gun_positions[this.a][0]);
this.y_dist = math_abs(this._y - _root.gun_positions[this.a][1]);
if ((this.x_dist <= 12) && (this.y_dist <= this.wdth)) {
this.g_target = this.a;
}
}
if (this.g_target != undefined) {
all.elements.holder["gun" + this.g_target].life--;
this.hit_r = true;
}
delete this.m_target;
this.a = -1;
while ((++this.a) < _root.missile_positions.length) {
this.wdth = _root.missile_positions[this.a][2] + this.my_size;
this.x_dist = math_abs(this._x - _root.missile_positions[this.a][0]);
this.y_dist = math_abs(this._y - _root.missile_positions[this.a][1]);
if ((this.x_dist <= 20) && (this.y_dist <= this.wdth)) {
this.m_target = this.a;
}
}
if (this.m_target != undefined) {
all.elements.holder["missile" + this.m_target].life--;
this.hit_r = true;
}
delete this.s_target;
this.a = -1;
while ((++this.a) < _root.special_positions.length) {
this.wdth = _root.special_positions[this.a][2] + this.my_size;
this.x_dist = math_abs(this._x - _root.special_positions[this.a][0]);
this.y_dist = math_abs(this._y - _root.special_positions[this.a][1]);
if ((this.x_dist <= 20) && (this.y_dist <= this.wdth)) {
this.s_target = this.a;
}
}
if (this.s_target != undefined) {
all.elements.holder["special" + this.s_target].life--;
this.hit_r = true;
}
if (this.hit_r) {
play_s("hit_enemy");
this.life--;
this.bash = 8;
this.body.gotoAndStop("hit");
this.hit_r = false;
}
if (this.bash) {
this.bash = this.bash - 1;
if (this.bash == 1) {
this.body.gotoAndStop("air");
}
}
if (this.fire_now) {
this.fire_now = false;
_root.enemy_fire(this._x + this.firex, this._y + this.firey, this.x_speed, this.weapon, this.fire_angle, this.fire_speed);
}
if (this.wave1) {
this._x = this._x - this.speed;
if ((this.travel < 200) || (this.go)) {
this.speed = this.speed - 0.25;
this.go = true;
}
}
if (this.wave2 || (this.wave3)) {
this._x = this._x - this.speed;
this.distance_adj = this.distance_adj + this.speed;
if ((this.distance_adj > 50) || (this.go)) {
this.speed = this.speed - 0.25;
if (this.wave2) {
this._y = this._y + (this.original_speed * 0.5);
} else {
this._y = this._y - (this.original_speed * 0.5);
}
this.go = true;
}
}
if (this.wave4 || (this.wave5)) {
this._x = this._x - this.speed;
if (this.turn) {
this.h_mov = math_cos((this.s = this.s + (this.speed * 0.01))) * 80;
if (this.wave4) {
this._y = (this.st_y + (this.h_mov * -1)) + 80;
} else {
this._y = (this.st_y + (this.h_mov * 1)) - 80;
}
this.v_mov = math_sin((this.s = this.s + (this.speed * 0.01))) * 80;
this._x = this.st_x + (this.v_mov * -1);
if (((int(this._y - this.st_y) >= 159) && (this.wave4)) || ((int(this._y - this.st_y) <= -159) && (this.wave5))) {
this.speed = -this.speed;
this.run_away = true;
this.turn = false;
}
}
if (this.run_away) {
this.speed = this.speed * 1.1;
}
this.distance_adj = this.distance_adj + this.speed;
if ((this.distance_adj > 20) && (!this.go)) {
this.st_x = this._x;
this.st_y = this._y;
this.turn = true;
this.go = true;
}
}
if (this.wave6) {
this.h_mov = math_sin((this.s = this.s + (this.speed * 0.005))) * 120;
this._y = this.start_y + (this.h_mov * 1);
this.v_mov = math_cos((this.s = this.s + (this.speed * 0.005))) * 120;
this._x = (this.start_x + (this.v_mov * -1)) + 100;
if (((this.travel + this.v_mov) < 240) || (this.go)) {
this.start_x = this.start_x - _root.x_adjust;
this.go = true;
}
}
if (this.wave7 || (this.wave8)) {
if (this.part5 || (!this.begin)) {
this._x = this._x - this.speed;
}
if (this.part2) {
this.v_mov = Math.sin((this.s = this.s + (this.speed * 0.01))) * 80;
this._x = this.st_x + (this.v_mov * -1);
if (this.v_mov >= 79) {
this.part2 = false;
this.part3 = true;
this.s = 0;
this.st_x = this._x;
this.st_y = this._y;
}
}
if (this.part3) {
this.h_mov = Math.cos((this.s = this.s + (this.speed * 0.005))) * 80;
if (this.wave7) {
this._y = (this.st_y + (this.h_mov * 1)) - 80;
} else {
this._y = (this.st_y + (this.h_mov * -1)) + 80;
}
this.v_mov = Math.cos((this.s = this.s + (this.speed * 0.005))) * 220;
this._x = (this.st_x + (this.v_mov * -1)) + 220;
if (this.v_mov <= -219) {
this.part3 = false;
this.part4 = true;
this.s = 0;
this.st_x = this._x;
this.st_y = this._y;
}
}
if (this.part4) {
this.v_mov = Math.cos((this.s = this.s + (this.speed * 0.01))) * 80;
this._x = (this.st_x + (this.v_mov * 1)) - 80;
if (this.v_mov <= 0) {
this.part4 = false;
this.part5 = true;
}
}
this.distance_adj = this.distance_adj + this.speed;
if ((this.distance_adj > 50) && (!this.go)) {
this.st_x = this._x;
this.st_y = this._y;
this.part2 = true;
this.begin = true;
this.go = true;
}
}
if (this.wave9) {
this._x = this._x + this.speed;
}
};
Object.registerClass("enemy1", enemy1_class);
_global.enemy2_class = function () {
};
enemy2_class.prototype = new MovieClip();
enemy2_class.prototype.onLoad = function () {
this.my_default = "stand";
this.pos_mode = "ground";
this.state = "walk";
this.my_speed = this.x_speed;
this.chance_div = this.chance * 0.01;
this.st_t = (this._x - 120) + _root.x_place;
this.bash = 0;
};
enemy2_class.prototype.onUnload = function () {
};
enemy2_class.prototype.onEnterFrame = function () {
if (this.body.body._currentframe == 11) {
play_s("enemy_walk");
}
this.travel = (this._x - 120) + _root.x_place;
this.rnd = int(math_ran() * this.chance);
this._x = this._x - this.my_speed;
if (this.pos_mode == "ground") {
if (((((this.travel < 100) && (this.travel > 0)) && (this.state != "walk_back")) && (!this.fire)) && (this.bash == 0)) {
this.state = "walk_back";
this.my_speed = (-this.x_speed) * 2;
}
if (((((this.travel > 400) || (this.travel <= 0)) && (this.state != "walk")) && (!this.fire)) && (this.bash == 0)) {
this.state = "walk";
this.my_speed = this.x_speed;
}
if (this.state == "stand") {
if ((this.travel < 300) && (this.travel > 0)) {
this.state = "walk_back";
this.my_speed = (-this.x_speed) * 2;
} else {
this.state = "walk";
this.my_speed = this.x_speed;
}
}
this.fly = int(math_ran() * 100);
if (((this.fly == 0) && (this.travel > 200)) && (this.fly_on)) {
this.state = (this.my_default = (this.pos_mode = "air"));
this.my_speed = this.x_speed * 0.5;
}
if (this.resume) {
this.fire = (this.resume = false);
this.state = this.temp_state;
if (this.state == "walk") {
this.my_speed = this.x_speed;
}
if (this.state == "walk_back") {
this.my_speed = -this.x_speed;
}
}
this.close_fire = (this.st_t - this.travel) * 0.005;
if ((((this.rnd < (this.chance_div + this.close_fire)) && (_root.emissiles_on < _root.emissile_limit)) && (!this.fire)) && (!_root.placed_pad)) {
this.temp_state = this.state;
if (this.fly_on) {
this.state = "stand_fire";
} else {
temp_rnd = int(math_ran() * 2) + 1;
this.state = "stand_fire" + temp_rnd;
}
this.fire = true;
this.my_speed = 0;
}
}
if (this.pos_mode == "air") {
this._y = this._y - this.x_speed;
if ((this.rnd < 10) && (_root.emissiles_on < _root.emissile_limit)) {
this.state = "air_fire";
}
}
if ((this.travel < -220) || (this._y < -220)) {
this.removeMovieClip();
}
if (((this.life <= 0) || (!_root.smart_time)) && (!this.inv)) {
make_explosion(this._x, this._y, this.ex_fr);
place_pickup(this._x, this._y);
add_score(1500);
_root.bots_destroyed++;
this.removeMovieClip();
}
delete this.g_target;
this.a = -1;
while ((++this.a) < _root.gun_positions.length) {
this.wdth = _root.gun_positions[this.a][2] + this.my_size;
this.x_dist = math_abs(this._x - _root.gun_positions[this.a][0]);
this.y_dist = math_abs(this._y - _root.gun_positions[this.a][1]);
if ((this.x_dist <= 12) && (this.y_dist <= this.wdth)) {
this.g_target = this.a;
}
}
if (this.g_target != undefined) {
all.elements.holder["gun" + this.g_target].life--;
this.hit_r = true;
}
delete this.m_target;
this.a = -1;
while ((++this.a) < _root.missile_positions.length) {
this.wdth = _root.missile_positions[this.a][2] + this.my_size;
this.x_dist = math_abs(this._x - _root.missile_positions[this.a][0]);
this.y_dist = math_abs(this._y - _root.missile_positions[this.a][1]);
if ((this.x_dist <= 20) && (this.y_dist <= this.wdth)) {
this.m_target = this.a;
}
}
if (this.m_target != undefined) {
all.elements.holder["missile" + this.m_target].life--;
this.hit_r = true;
}
delete this.s_target;
this.a = -1;
while ((++this.a) < _root.special_positions.length) {
this.wdth = _root.special_positions[this.a][2] + this.my_size;
this.x_dist = math_abs(this._x - _root.special_positions[this.a][0]);
this.y_dist = math_abs(this._y - _root.special_positions[this.a][1]);
if ((this.x_dist <= 20) && (this.y_dist <= this.wdth)) {
this.s_target = this.a;
}
}
if (this.s_target != undefined) {
all.elements.holder["special" + this.s_target].life--;
this.hit_r = true;
}
if (this.hit_r) {
play_s("hit_enemy");
this.life--;
if (this.frame != 4) {
this.bash = 8;
this.state = "hit";
this.temp_state = this.state;
if (this.pos_mode == "ground") {
this.my_speed = 0;
}
this.fire = false;
}
this.hit_r = false;
}
if (this.bash > 0) {
this.bash = this.bash - 1;
if (this.bash == 1) {
if (this.pos_mode == "ground") {
this.my_speed = 0;
}
this.state = this.my_default;
}
}
if (this.fire_now) {
this.fire_now = false;
_root.enemy_fire((this._x + this.firex) + this.a_firex, (this._y + this.firey) + this.a_firey, this.x_speed, this.weapon, this.fire_angle, this.fire_speed);
}
this.body.gotoAndStop(this.state);
};
Object.registerClass("enemy2", enemy2_class);
this.onEnterFrame = function () {
key_right = Key.isDown(39) && (!hold_pose);
key_up = Key.isDown(38) && (((!key_down) && (robot._y > 30)) && (!hold_pose));
key_down = Key.isDown(40) && (((robot._y < ground) && (!hold_pose)) && (!key_up));
key_duck = Key.isDown(40) && (((robot._y == ground) && (!hold_pose)) && (!key_up));
if (((Key.isDown(49) && (!key_weapon2)) && (!key_weapon3)) && (gun_recharge <= 0)) {
key_weapon1 = true;
}
if (!Key.isDown(49)) {
key_weapon1 = false;
}
if (((Key.isDown(50) && (!key_weapon1)) && (!key_weapon3)) && (missile_recharge <= 0)) {
key_weapon2 = true;
}
if (!Key.isDown(50)) {
key_weapon2 = false;
}
if (((Key.isDown(51) && (!key_weapon2)) && (!key_weapon1)) && (special_recharge <= 0)) {
key_weapon3 = true;
}
if (!Key.isDown(51)) {
key_weapon3 = false;
}
if ((((Key.isDown(52) && (smart_bombs > 0)) && (smart_time <= -31)) && (sm_effects._currentframe == 1)) && (!hold_pose)) {
play_s("smart");
sm_effects.play();
}
w_pick = ((1 * key_weapon1) + (2 * key_weapon2)) + (3 * key_weapon3);
new_weapon = weapon_list[w_pick];
x_potential = (key_left - key_right) * max_speed;
x_speed = x_speed + (x_speed < x_potential);
x_speed = x_speed - (x_speed > x_potential);
x_adjust = Math.min(x_speed, (-(robot._y < ground)) * (!hold_pose));
scene_pos = scene_pos + x_adjust;
if ((scene_pos + 100) < (-panel_width)) {
swap_panel();
scene_pos = scene_pos + panel_width;
}
all.scene.holder._x = scene_pos;
all.scene.pops._x = all.scene.pops._x + x_adjust;
x_place = x_place + x_adjust;
all.elements.holder._x = x_place;
actual_y = (-s_force) * tension;
vel_y = vel_y + actual_y;
vel_y = vel_y * damp;
s_force = s_force + vel_y;
dash.stick._y = (all.self.holder._y = (all.scene.holder._y = (all.scene.pops._y = (all.elements.holder._y = s_force))));
camera_update("scene", 0.5);
self._y = (elements._y = scene._y);
self._x = (elements._x = scene._x);
gun_recharge--;
missile_recharge--;
special_recharge--;
if ((!special_recharge) && (special_u > 0)) {
dash.state.gotoAndStop("charge");
}
if ((x_place <= attack_order[released].release_time) && (released != attack_order.length)) {
this["make_" + attack_order[released].attack_type](attack_order[released]);
released++;
}
if ((x_place <= pop_order[p_released].x) && (p_released != pop_order.length)) {
make_pop(pop_order[p_released].x, pop_order[p_released].y, pop_order[p_released].type_of);
p_released++;
}
shield_time = shield_time - (!s_shield);
if (shield_time == 0) {
shield_duration.stop();
shield.gotoAndStop(1);
robot._visible = 1;
}
if ((shield_time > 0) && (shield._currentframe == 1)) {
s_t = s_t + 0.5;
s_t = s_t % 2;
s_a = int(s_t);
robot._visible = s_a;
}
if ((shield_time == 30) && (shield._currentframe == 2)) {
shield.gotoAndStop(3);
}
s_shield = effects.effect._currentframe > 6;
smart_time--;
if (((x_place + 500) < end_mark) && (!placed_pad)) {
beam_loop.start(0, 9999);
place_pad();
placed_pad = true;
}
if ((((x_place + 1400) < end_mark) && (placed_pad)) && (!ended)) {
hold_pose = true;
x_potential = 0;
x_speed = 0;
robot.attachMovie("stand_none", "body", 1);
end_done = true;
}
if (end_done) {
e_t++;
if (e_t == 1) {
play_s("reach_goal");
}
if (e_t == 12) {
play_s("cheer1");
play_s("cheer2");
e_t = 0;
end_done = false;
end_stage();
}
}
score_diff = my_score - dis_score;
if (score_diff >= 100) {
dis_score = dis_score + 100;
}
if (score_diff >= 1000) {
dis_score = dis_score + 1000;
}
if (score_diff >= 10000) {
dis_score = dis_score + 10000;
}
if (score_diff >= 100000) {
dis_score = dis_score + 100000;
}
if (score_diff >= 1000000) {
dis_score = dis_score + 1000000;
}
score_string = dis_score.toString();
score_length = score_string.length;
zero_amount = 9 - score_length;
delete zeros;
s = 0;
while (s < zero_amount) {
zeros = zeros + "0";
s++;
}
dash.score = zeros + dis_score;
re_frame = int(special_recharge * 0.1);
re_frame = math_max(1, math_min(re_frame, 15));
dash.specials.blocks.recharge.gotoAndStop(re_frame);
if (Key.isDown(67) && (Key.isDown(83))) {
end_stage();
}
if (Key.isDown(67) && (Key.isDown(76))) {
add_life();
}
};
start_stage();
Instance of Symbol 1662 MovieClip "fpsSpeedometer" in Frame 53
onClipEvent (load) {
this.swapDepths(99998);
}
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 100
stop();
Symbol 26 Button
on (release) {
this.play();
}
on (keyPress "<Space>") {
this.play();
}
Symbol 27 MovieClip Frame 5
stop();
Symbol 27 MovieClip Frame 10
stop();
_parent.gotoAndPlay("select");
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 10
stop();
_root.gotoAndStop("choose");
Symbol 96 MovieClip Frame 1
t++;
Symbol 96 MovieClip Frame 2
if (t < 200) {
gotoAndPlay (1);
}
Symbol 96 MovieClip Frame 24
t = 0;
Symbol 154 MovieClip [shield] Frame 1
stop();
Instance of Symbol 153 MovieClip in Symbol 154 MovieClip [shield] Frame 3
onClipEvent (enterFrame) {
s_t = s_t + 0.5;
s_t = s_t % 2;
s_a = int(s_t);
this._visible = s_a;
}
Symbol 194 MovieClip Frame 14
_parent.removeMovieClip();
Symbol 221 MovieClip Frame 23
_parent.removeMovieClip();
Symbol 248 MovieClip Frame 29
_parent.removeMovieClip();
Symbol 249 MovieClip Frame 40
_parent.removeMovieClip();
Symbol 294 MovieClip Frame 20
_parent._parent.fire_now = true;
Symbol 294 MovieClip Frame 30
_parent._parent.resume = true;
Symbol 301 MovieClip Frame 1
_parent._parent.fire_now = true;
Symbol 301 MovieClip Frame 17
_parent._parent.state = "air";
Symbol 303 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 6
_parent._parent.fire_now = true;
Symbol 346 MovieClip Frame 17
_parent._parent.resume = true;
Symbol 358 MovieClip Frame 4
_parent._parent.fire_now = true;
Symbol 358 MovieClip Frame 11
_parent._parent.state = "air";
Symbol 360 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 7
_parent._parent.fire_now = true;
Symbol 383 MovieClip Frame 10
_parent._parent.resume = true;
Symbol 388 MovieClip Frame 7
_parent._parent.fire_now = true;
Symbol 388 MovieClip Frame 10
_parent._parent.state = "air";
Symbol 390 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 1
_parent._parent.weapon = 5;
Symbol 411 MovieClip Frame 10
_parent._parent.fire_now = true;
Symbol 411 MovieClip Frame 17
_parent._parent.resume = true;
Symbol 412 MovieClip Frame 1
_parent._parent.a_firey = 40;
_parent._parent.a_firex = 20;
_parent._parent.weapon = 1;
Symbol 412 MovieClip Frame 10
_parent._parent.fire_angle = -30;
_parent._parent.fire_now = true;
Symbol 412 MovieClip Frame 11
_parent._parent.fire_angle = 0;
_parent._parent.fire_now = true;
Symbol 412 MovieClip Frame 12
_parent._parent.fire_angle = 30;
_parent._parent.fire_now = true;
Symbol 412 MovieClip Frame 16
_parent._parent.resume = true;
Symbol 417 MovieClip Frame 1
stop();
Instance of Symbol 412 MovieClip in Symbol 417 MovieClip Frame 4
onClipEvent (unload) {
_parent._parent.fire_angle = 0;
_parent._parent.a_firey = 0;
_parent._parent.a_firex = 0;
}
Symbol 425 MovieClip Frame 2
_parent._parent.fire_now = true;
Symbol 425 MovieClip Frame 3
_parent.gotoAndStop("air");
Symbol 426 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 4
_parent._parent.fire_now = true;
Symbol 427 MovieClip Frame 7
_parent.gotoAndStop("air");
Symbol 428 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 4
_parent._parent.fire_now = true;
Symbol 431 MovieClip Frame 11
_parent.gotoAndStop("air");
Symbol 432 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 3
_parent._parent.fire_now = true;
Symbol 436 MovieClip Frame 5
_parent.gotoAndStop("air");
Symbol 437 MovieClip Frame 1
stop();
Symbol 441 MovieClip Frame 3
_parent._parent.fire_now = true;
Symbol 441 MovieClip Frame 5
_parent.gotoAndStop("air");
Symbol 442 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 2
_parent._parent.fire_now = true;
Symbol 446 MovieClip Frame 5
_parent.gotoAndStop("air");
Symbol 447 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 4
_parent._parent.fire_now = true;
Symbol 451 MovieClip Frame 8
_parent.gotoAndStop("air");
Symbol 452 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 1
fire_adj = 22;
Symbol 470 MovieClip Frame 13
_parent._parent.fire_now = true;
Symbol 470 MovieClip Frame 49
_parent._parent.fire_angle = _parent._parent.fire_angle + fire_adj;
_parent._parent.fire_now = true;
Symbol 470 MovieClip Frame 85
_parent._parent.fire_angle = _parent._parent.fire_angle + fire_adj;
_parent._parent.fire_now = true;
Symbol 470 MovieClip Frame 121
_parent._parent.fire_angle = _parent._parent.fire_angle + fire_adj;
_parent._parent.fire_now = true;
Symbol 470 MovieClip Frame 157
_parent._parent.fire_angle = _parent._parent.fire_angle + fire_adj;
_parent._parent.fire_now = true;
Symbol 470 MovieClip Frame 193
_parent._parent.fire_angle = _parent._parent.fire_angle + fire_adj;
_parent._parent.fire_now = true;
Symbol 470 MovieClip Frame 229
_parent._parent.fire_angle = _parent._parent.fire_angle + fire_adj;
_parent._parent.fire_now = true;
Symbol 470 MovieClip Frame 238
_parent._parent.fire_angle = _parent._parent.fire_angle - (6 * fire_adj);
_parent.gotoAndStop("air");
Symbol 471 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 15
_parent._parent.fire_now = true;
Symbol 484 MovieClip Frame 32
_parent.gotoAndStop("air");
Symbol 485 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 538 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 541 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 548 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 553 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 560 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 571 MovieClip Frame 5
_root.fire_weapon(_root.old_weapon);
Symbol 571 MovieClip Frame 20
_root.special_over();
Symbol 578 MovieClip Frame 5
_root.fire_weapon(_root.old_weapon);
Symbol 578 MovieClip Frame 20
_root.special_over();
Symbol 599 MovieClip Frame 5
_root.fire_weapon(_root.old_weapon);
Symbol 599 MovieClip Frame 12
_root.fire_weapon(_root.old_weapon);
Symbol 599 MovieClip Frame 19
_root.fire_weapon(_root.old_weapon);
Symbol 599 MovieClip Frame 26
_root.fire_weapon(_root.old_weapon);
Symbol 599 MovieClip Frame 33
_root.fire_weapon(_root.old_weapon);
Symbol 599 MovieClip Frame 40
_root.fire_weapon(_root.old_weapon);
Symbol 599 MovieClip Frame 51
_root.special_over();
Symbol 600 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 612 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 619 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 622 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 623 MovieClip Frame 5
_root.fire_weapon(_root.old_weapon);
Symbol 623 MovieClip Frame 20
_root.special_over();
Symbol 638 MovieClip Frame 6
_root.fire_weapon(_root.old_weapon);
Symbol 638 MovieClip Frame 14
_root.fire_weapon(_root.old_weapon);
Symbol 638 MovieClip Frame 22
_root.fire_weapon(_root.old_weapon);
Symbol 638 MovieClip Frame 30
_root.fire_weapon(_root.old_weapon);
Symbol 638 MovieClip Frame 59
_root.special_over();
Symbol 719 MovieClip Frame 6
_root.fire_weapon(_root.old_weapon);
Symbol 719 MovieClip Frame 19
_root.fire_weapon(_root.old_weapon);
Symbol 719 MovieClip Frame 32
_root.fire_weapon(_root.old_weapon);
Symbol 719 MovieClip Frame 62
_root.special_over();
Symbol 720 MovieClip Frame 1
stop();
Symbol 729 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 732 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 739 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 742 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 743 MovieClip Frame 5
_root.fire_weapon(_root.old_weapon);
Symbol 743 MovieClip Frame 20
_root.special_over();
Symbol 778 MovieClip Frame 5
_root.fire_weapon(_root.old_weapon);
Symbol 778 MovieClip Frame 14
_root.fire_weapon(_root.old_weapon);
Symbol 778 MovieClip Frame 23
_root.fire_weapon(_root.old_weapon);
Symbol 778 MovieClip Frame 35
_root.special_over();
Symbol 819 MovieClip Frame 10
_root.fire_weapon(_root.old_weapon);
Symbol 819 MovieClip Frame 39
_root.special_over();
Symbol 820 MovieClip Frame 1
stop();
Symbol 859 MovieClip Frame 1
stop();
Symbol 859 MovieClip Frame 7
stop();
Symbol 859 MovieClip Frame 14
stop();
Symbol 885 MovieClip Frame 1
stop();
Instance of Symbol 872 MovieClip "blink" in Symbol 885 MovieClip Frame 2
onClipEvent (enterFrame) {
if (off || (onb)) {
t++;
s_t = s_t + 1;
s_t = s_t % 2;
s_a = int(s_t);
this._visible = s_a;
if (t == 13) {
if (off) {
_parent.prevFrame();
}
st = 0;
s_a = 0;
t = 0;
off = false;
onb = false;
}
}
}
Instance of Symbol 875 MovieClip "blink" in Symbol 885 MovieClip Frame 3
onClipEvent (enterFrame) {
if (off || (onb)) {
t++;
s_t = s_t + 1;
s_t = s_t % 2;
s_a = int(s_t);
this._visible = s_a;
if (t == 13) {
if (off) {
_parent.prevFrame();
}
st = 0;
s_a = 0;
t = 0;
off = false;
onb = false;
}
}
}
Instance of Symbol 878 MovieClip "blink" in Symbol 885 MovieClip Frame 4
onClipEvent (enterFrame) {
if (off || (onb)) {
t++;
s_t = s_t + 1;
s_t = s_t % 2;
s_a = int(s_t);
this._visible = s_a;
if (t == 13) {
if (off) {
_parent.prevFrame();
}
st = 0;
s_a = 0;
t = 0;
off = false;
onb = false;
}
}
}
Instance of Symbol 881 MovieClip "blink" in Symbol 885 MovieClip Frame 5
onClipEvent (enterFrame) {
if (off || (onb)) {
t++;
s_t = s_t + 1;
s_t = s_t % 2;
s_a = int(s_t);
this._visible = s_a;
if (t == 13) {
if (off) {
_parent.prevFrame();
}
st = 0;
s_a = 0;
t = 0;
off = false;
onb = false;
}
}
}
Instance of Symbol 884 MovieClip "blink" in Symbol 885 MovieClip Frame 6
onClipEvent (enterFrame) {
if (off || (onb)) {
t++;
s_t = s_t + 1;
s_t = s_t % 2;
s_a = int(s_t);
this._visible = s_a;
if (t == 13) {
if (off) {
_parent.prevFrame();
}
st = 0;
s_a = 0;
t = 0;
off = false;
onb = false;
}
}
}
Symbol 906 MovieClip Frame 70
gotoAndPlay (1);
Symbol 922 MovieClip Frame 46
_parent.gotoAndStop(1);
Symbol 925 MovieClip Frame 45
_parent.gotoAndStop(1);
Symbol 926 MovieClip Frame 1
stop();
Symbol 934 MovieClip Frame 46
_parent.gotoAndStop(1);
Symbol 937 MovieClip Frame 45
_parent.gotoAndStop(1);
Symbol 938 MovieClip Frame 1
stop();
Symbol 946 MovieClip Frame 46
_parent.gotoAndStop(1);
Symbol 949 MovieClip Frame 45
_parent.gotoAndStop(1);
Symbol 950 MovieClip Frame 1
stop();
Symbol 966 MovieClip Frame 1
stop();
Symbol 969 MovieClip Frame 1
stop();
Symbol 972 MovieClip Frame 1
stop();
Symbol 975 MovieClip Frame 1
stop();
Symbol 978 MovieClip Frame 1
stop();
Symbol 983 MovieClip Frame 44
gotoAndPlay (2);
Symbol 991 MovieClip Frame 1
stop();
Symbol 1002 MovieClip Frame 46
_parent.gotoAndStop(1);
Symbol 1007 MovieClip Frame 44
_parent.gotoAndStop(1);
Symbol 1010 MovieClip Frame 43
_parent.gotoAndStop(1);
Symbol 1013 MovieClip Frame 45
_parent.gotoAndStop(1);
Symbol 1018 MovieClip Frame 44
_parent.gotoAndStop(1);
Symbol 1021 MovieClip Frame 44
_parent.gotoAndStop(1);
Symbol 1024 MovieClip Frame 44
_parent.gotoAndStop(1);
Symbol 1027 MovieClip Frame 44
_parent.gotoAndStop(1);
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1038 MovieClip Frame 4
stop();
Symbol 1041 MovieClip Frame 4
stop();
Symbol 1042 MovieClip Frame 1
stop();
Symbol 1045 MovieClip Frame 4
stop();
Symbol 1048 MovieClip Frame 4
stop();
Symbol 1049 MovieClip Frame 1
stop();
Symbol 1052 MovieClip Frame 4
stop();
Symbol 1055 MovieClip Frame 4
stop();
Symbol 1056 MovieClip Frame 1
stop();
Symbol 1065 MovieClip Frame 10
stop();
Symbol 1066 MovieClip Frame 10
stop();
Symbol 1067 MovieClip Frame 1
stop();
Symbol 1070 MovieClip Frame 4
stop();
Symbol 1071 MovieClip Frame 1
stop();
Symbol 1078 MovieClip Frame 10
stop();
Symbol 1079 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 1080 MovieClip Frame 1
stop();
Symbol 1085 MovieClip Frame 4
stop();
Symbol 1088 MovieClip Frame 4
stop();
Symbol 1091 MovieClip Frame 4
stop();
Symbol 1092 MovieClip Frame 1
stop();
Symbol 1092 MovieClip Frame 4
_root.play_s(_root.player + "_powerup");
Symbol 1097 MovieClip Frame 4
stop();
Symbol 1100 MovieClip Frame 4
stop();
Symbol 1103 MovieClip Frame 4
stop();
Symbol 1104 MovieClip Frame 1
stop();
Symbol 1104 MovieClip Frame 4
_root.play_s(_root.player + "_powerup");
Symbol 1106 MovieClip Frame 6
stop();
Symbol 1107 MovieClip Frame 5
stop();
Symbol 1129 MovieClip Frame 131
gotoAndPlay ("loop01");
Symbol 1134 MovieClip Frame 8
if (_root.panel_ready) {
gotoAndPlay (10);
}
play();
Symbol 1134 MovieClip Frame 9
prevFrame();
Symbol 1134 MovieClip Frame 15
_parent.texture.gotoAndPlay("out");
_root.play_s("get_ready");
Instance of Symbol 1133 MovieClip in Symbol 1134 MovieClip Frame 23
onClipEvent (load) {
if (_root.the_stage < 10) {
zero = "0";
} else {
zero = "";
}
the_text = ("LEVEL " + zero) + _root.the_stage;
}
Symbol 1134 MovieClip Frame 104
_root.start_amb();
_root.hold_pose = false;
_parent.texture.gotoAndStop("off");
if (_root.the_stage == 1) {
_root.play_s(_root.player + "_startoflevel");
}
_parent.gotoAndStop("game");
Symbol 1139 MovieClip Frame 100
gotoAndPlay ("loop01");
Symbol 1147 MovieClip Frame 10
stop();
Symbol 1152 MovieClip Frame 1
play();
Symbol 1152 MovieClip Frame 44
stop();
Symbol 1153 Button
on (press) {
gotoAndPlay ("out01");
}
on (keyPress "<Space>") {
gotoAndPlay ("out01");
}
Symbol 1154 MovieClip Frame 8
_parent.texture.gotoAndPlay("in");
Symbol 1154 MovieClip Frame 21
stop();
_root.get_stats();
_root.remove_scene_objects();
Symbol 1154 MovieClip Frame 41
_root.start_stage();
Symbol 1169 MovieClip Frame 1
play();
Symbol 1169 MovieClip Frame 44
stop();
Symbol 1170 Button
on (press) {
_root.myTracker.track();
func = "again";
gotoAndPlay ("out");
}
on (keyPress "<Space>") {
_root.myTracker.track();
func = "again";
gotoAndPlay ("out");
}
Symbol 1175 Button
on (press) {
func = "main";
gotoAndPlay ("out");
}
Symbol 1176 MovieClip Frame 8
_parent.texture.gotoAndPlay("in");
Symbol 1176 MovieClip Frame 20
_root.get_stats();
Symbol 1176 MovieClip Frame 21
stop();
_root.get_final_stats();
_root.remove_scene_objects();
if (_root.my_score >= 100000) {
_root.myGameObject.callGameEventJS();
}
Symbol 1176 MovieClip Frame 57
stop();
if (func == "main") {
_root.main_menu();
}
if (func == "again") {
_root.play_again();
}
Symbol 1177 MovieClip [dash] Frame 1
stop();
Instance of Symbol 1107 MovieClip in Symbol 1177 MovieClip [dash] Frame 2
onClipEvent (load) {
if (_root.from_menu) {
this.gotoAndStop(5);
_root.from_menu = false;
}
}
Symbol 1179 MovieClip Frame 13
stop();
Symbol 1207 MovieClip Frame 6
_parent.mask.gotoAndStop(13);
Symbol 1258 MovieClip [sm_effects] Frame 1
stop();
Symbol 1258 MovieClip [sm_effects] Frame 24
_root.smart_bomb();
Symbol 1307 MovieClip Frame 1
stop();
Symbol 1307 MovieClip Frame 2
play();
Symbol 1307 MovieClip Frame 69
stop();
Symbol 1312 MovieClip [dead] Frame 1
_root.play_s("die");
Symbol 1312 MovieClip [dead] Frame 20
play();
Symbol 1312 MovieClip [dead] Frame 21
if (_parent._y != _root.ground) {
prevFrame();
}
Symbol 1312 MovieClip [dead] Frame 22
_root.stomp(10);
_root.play_s("land");
Symbol 1312 MovieClip [dead] Frame 44
_root.play_s("hitground");
Instance of Symbol 1307 MovieClip in Symbol 1312 MovieClip [dead] Frame 44
onClipEvent (load) {
if (_root.lives == 0) {
this.gotoAndPlay(2);
}
}
Symbol 1312 MovieClip [dead] Frame 100
stop();
_root.wake();
Symbol 1459 MovieClip Frame 1
stop();
Symbol 1532 MovieClip Frame 1
stop();
Symbol 1611 MovieClip Frame 1
stop();
Symbol 1616 Button
on (press) {
change_i("coop");
}
on (rollOver) {
rollover("coop");
}
on (rollOut) {
rollout("coop");
}
Symbol 1617 Button
on (press) {
change_i("kiva");
}
on (rollOver) {
rollover("kiva");
}
on (rollOut) {
rollout("kiva");
}
Symbol 1618 Button
on (press) {
change_i("jamie");
}
on (rollOver) {
rollover("jamie");
}
on (rollOut) {
rollout("jamie");
}
Symbol 1635 MovieClip Frame 1
stop();
Symbol 1635 MovieClip Frame 30
stop();
Symbol 1639 MovieClip Frame 1
stop();
Symbol 1639 MovieClip Frame 30
stop();
Symbol 1643 MovieClip Frame 1
stop();
Symbol 1643 MovieClip Frame 30
stop();
Symbol 1644 MovieClip Frame 1
function change_i(named) {
_root.player = named;
_parent.gotoAndPlay("out01");
}
function rollover(named) {
var _local2 = -1;
while (_local2++ , _local2 < 3) {
if (named != names[_local2]) {
na = this[names[_local2]];
na.gotoAndStop(1);
this[names[_local2] + "f"].gotoAndStop(1);
}
}
this[named].gotoAndStop(2);
this[named + "f"].gotoAndPlay(2);
}
function rollout(named) {
this[named].gotoAndStop(1);
}
stop();
names = ["coop", "kiva", "jamie"];
Symbol 1655 MovieClip Frame 10
stop();
Symbol 1655 MovieClip Frame 21
stop();
Symbol 1656 Button
on (press) {
back = true;
this.play();
}
Symbol 1657 Button
on (press) {
if (inst._currentframe == 10) {
inst.play();
}
if (inst._currentframe == 21) {
this.play();
}
}
on (keyPress "<Space>") {
if (inst._currentframe == 10) {
inst.play();
}
if (inst._currentframe == 21) {
this.play();
}
}
Symbol 1658 MovieClip Frame 18
stop();
Symbol 1658 MovieClip Frame 55
stop();
Symbol 1658 MovieClip Frame 71
if (back) {
this.gotoAndPlay(1);
back = false;
} else {
_root.from_menu = true;
_root.gotoAndStop("game");
}
Symbol 1662 MovieClip Frame 1
var startTime = getTimer();
var numFrames = 0;
var recentSetting = 10;
var recentNumFrames = 0;
var recentStartTime = startTime;
function calcFPS() {
numFrames++;
var _local1 = getTimer();
elapsedSeconds = (_local1 - startTime) / 1000;
actualFPS = numFrames / elapsedSeconds;
recentNumFrames++;
if (recentNumFrames == recentSetting) {
var _local2 = (_local1 - recentStartTime) / 1000;
recentFPSoutput = recentNumFrames / _local2;
recentStartTime = _local1;
recentNumFrames = 0;
}
}
Instance of Symbol 1661 MovieClip "callCalcFPS" in Symbol 1662 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.calcFPS();
}