Frame 1
mochi.MochiServices.connect("1b5d02ad2c5724df");
mochiscoreID = "a8d764f7884555b8";
Frame 3
stop();
Instance of Symbol 112 MovieClip in Frame 3
on (release) {
getURL ("http://www.playedonline.com", "_blank");
}
Frame 6
function contras_change(val) {
var _local1 = new Array();
_local1 = _local1.concat([1, 0, 0, 0, val]);
_local1 = _local1.concat([0, 1, 0, 0, val]);
_local1 = _local1.concat([0, 0, 1, 0, val]);
_local1 = _local1.concat([0, 0, 0, 1, 0]);
var _local3 = new flash.filters.ColorMatrixFilter(_local1);
return(new Array(_local3));
}
stop();
var mouseListener = new Object();
mouseListener.onMouseUp = function () {
rapid_ok = false;
};
mouseListener.onMouseDown = function () {
if (!game_pause) {
rapid_ok = true;
}
};
mouseListener.onMouseMove = function () {
if (!game_pause) {
xmouse = _xmouse;
ymouse = _ymouse;
}
};
Mouse.addListener(mouseListener);
fscommand ("showmenu", "false");
var stock_sound = new Sound();
stock_sound.attachSound("stock_sound");
var shot1_sound = new Sound();
shot1_sound.attachSound("shot1");
var shot2_sound = new Sound();
shot2_sound.attachSound("shot2");
var shot3_sound = new Sound();
shot3_sound.attachSound("shot3");
var boom_sound = new Sound();
boom_sound.attachSound("boom");
var voice1 = new Sound();
voice1.attachSound("affirmative_voice");
var voice2 = new Sound();
voice2.attachSound("rogerthat_voice");
var buysound = new Sound();
buysound.attachSound("buysound");
var gameover_voice = new Sound();
gameover_voice.attachSound("gameover_voice");
var bgm = new Sound();
bgm.attachSound("bgm");
bgm.start(0, 99999);
mute = false;
var my_so = SharedObject.getLocal("divergence3d", "/");
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "flashgamelicense.com") {
}
Instance of Symbol 352 MovieClip in Frame 6
/* no clip actions */
Frame 9
function loadgame() {
bp = my_so.data.bp;
minimap_last_winned = my_so.data.minimap_last_winned;
basemoney_lv = my_so.data.basemoney_lv;
structure_maxhp_lv = my_so.data.structure_maxhp_lv;
structure_regen_lv = my_so.data.structure_regen_lv;
structure_maxturret_lv = my_so.data.structure_maxturret_lv;
structure_turretarea_lv = my_so.data.structure_turretarea_lv;
var _local1 = 0;
while (_local1 <= 2) {
turret_maxhp_lv[_local1] = my_so.data["turret_maxhp_lv" + _local1];
turret_builttime_lv[_local1] = my_so.data["turret_builttime_lv" + _local1];
turret_builtprice_lv[_local1] = my_so.data["turret_builtprice_lv" + _local1];
turret_available_array[_local1] = my_so.data["turret_available_array" + _local1];
turret_regen_enable[_local1] = my_so.data["turret_regen_enable" + _local1];
_local1++;
}
_local1 = 0;
while (_local1 <= 23) {
map_mission_status[_local1] = my_so.data["map_mission_status" + _local1];
_local1++;
}
}
function savegame() {
my_so.data.bp = bp;
my_so.data.minimap_last_winned = minimap_last_winned;
my_so.data.basemoney_lv = basemoney_lv;
my_so.data.structure_maxhp_lv = structure_maxhp_lv;
my_so.data.structure_regen_lv = structure_regen_lv;
my_so.data.structure_maxturret_lv = structure_maxturret_lv;
my_so.data.structure_turretarea_lv = structure_turretarea_lv;
var _local1 = 0;
while (_local1 <= 2) {
my_so.data["turret_maxhp_lv" + _local1] = turret_maxhp_lv[_local1];
my_so.data["turret_builttime_lv" + _local1] = turret_builttime_lv[_local1];
my_so.data["turret_builtprice_lv" + _local1] = turret_builtprice_lv[_local1];
my_so.data["turret_available_array" + _local1] = turret_available_array[_local1];
my_so.data["turret_regen_enable" + _local1] = turret_regen_enable[_local1];
_local1++;
}
_local1 = 0;
while (_local1 <= 23) {
my_so.data["map_mission_status" + _local1] = map_mission_status[_local1];
if (map_mission_status[_local1] == 1) {
my_so.data["map_mission_status" + _local1] = 0;
}
_local1++;
}
my_so.flush();
}
function wave_init() {
if (minimap_selected_pointer == 0) {
total_timer = 50000;
total_wave = 10;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 8];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 2];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 3];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 3];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 5];
wave_enemykiblat1 = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
wave_enemykiblat2 = [199, 199, 199, 199, 199, 199, 199, 199, 199, 199];
wave_enemydestination = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 5];
}
if (minimap_selected_pointer == 1) {
total_timer = 50000;
total_wave = 12;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 10, 16];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 6, 5];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 6, 5];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 12, 6];
wave_enemykiblat1 = [200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200];
wave_enemykiblat2 = [299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 8, 6];
}
if (minimap_selected_pointer == 2) {
total_timer = 50000;
total_wave = 14;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 1];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 1];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5];
wave_enemykiblat1 = [100, 200, 100, 200, 100, 200, 100, 200, 100, 200, 100, 200, 100, 200];
wave_enemykiblat2 = [199, 299, 199, 299, 199, 299, 199, 299, 199, 299, 199, 299, 199, 299];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 1];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemymoney = [3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 8, 8, 8, 8];
}
if (minimap_selected_pointer == 3) {
total_timer = 19200;
total_wave = 16;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5];
wave_enemykiblat1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
wave_enemykiblat2 = [399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399];
wave_enemydestination = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5];
}
if (minimap_selected_pointer == 4) {
total_timer = 50000;
total_wave = 16;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 12];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 4];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 4];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 40];
wave_enemykiblat1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
wave_enemykiblat2 = [199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 10];
}
if (minimap_selected_pointer == 5) {
total_timer = 50000;
total_wave = 18;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 12, 16];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 6, 7];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 6, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 12, 50];
wave_enemykiblat1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
wave_enemykiblat2 = [199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 3, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 3, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 12, 50];
}
if (minimap_selected_pointer == 6) {
total_timer = 50000;
total_wave = 18;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 10, 16];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 6, 7];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 6, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 12, 50];
wave_enemykiblat1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
wave_enemykiblat2 = [299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 3, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 3, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 8, 50];
}
if (minimap_selected_pointer == 7) {
total_timer = 50000;
total_wave = 20;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6];
wave_enemykiblat1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
wave_enemykiblat2 = [399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399];
wave_enemydestination = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6];
}
if (minimap_selected_pointer == 8) {
total_timer = 50000;
total_wave = 20;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6];
wave_enemykiblat1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
wave_enemykiblat2 = [399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399];
wave_enemydestination = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6];
}
if (minimap_selected_pointer == 9) {
total_timer = 50000;
total_wave = 22;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 12];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 5];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 5];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 120];
wave_enemykiblat1 = [100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0];
wave_enemykiblat2 = [199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 3];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 3];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 30];
}
if (minimap_selected_pointer == 10) {
total_timer = 50000;
total_wave = 22;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 10];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 5];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 5];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 120];
wave_enemykiblat1 = [0, 100, 200, 0, 100, 200, 0, 100, 200, 0, 100, 200, 0, 100, 200, 0, 100, 200, 0, 100, 200, 0];
wave_enemykiblat2 = [99, 199, 299, 99, 199, 299, 99, 199, 299, 99, 199, 299, 99, 199, 299, 99, 199, 299, 99, 199, 299, 99];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 3];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 3];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 30];
}
if (minimap_selected_pointer == 11) {
total_timer = 50000;
total_wave = 24;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 10, 16, 18, 10];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 6, 7];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 6, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 40, 12, 50];
wave_enemykiblat1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
wave_enemykiblat2 = [299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299];
wave_enemydestination = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 3, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 3, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 12, 50];
}
if (minimap_selected_pointer == 12) {
total_timer = 19200;
total_wave = 24;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 4, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 4, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 40, 5, 6, 5, 5, 6, 40, 6, 12, 40, 6, 12];
wave_enemykiblat1 = [100, 0, 100, 200, 100, 0, 100, 200, 100, 0, 100, 200, 100, 0, 100, 200, 100, 0, 100, 200, 100, 0, 100, 200];
wave_enemykiblat2 = [199, 99, 299, 299, 299, 99, 299, 299, 299, 99, 299, 299, 299, 99, 299, 299, 299, 99, 299, 299, 299, 99, 299, 299];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 6, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 10, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 8];
}
if (minimap_selected_pointer == 13) {
total_timer = 50000;
total_wave = 26;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18, 16, 18];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 7, 4, 7];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 7, 4, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 40, 6, 50, 40, 50];
wave_enemykiblat1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
wave_enemykiblat2 = [199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 2, 2, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 2, 2, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 12, 10, 12];
}
if (minimap_selected_pointer == 14) {
total_timer = 50000;
total_wave = 26;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18, 10, 10];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 7, 4, 7];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 7, 4, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 20, 6, 12, 40, 6, 50, 40, 50];
wave_enemykiblat1 = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
wave_enemykiblat2 = [199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 2, 2, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 2, 2, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 12, 10, 12];
}
if (minimap_selected_pointer == 15) {
total_timer = 50000;
total_wave = 26;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 10, 10, 10];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 7, 4, 7];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 7, 4, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 20, 6, 12, 40, 6, 50, 40, 50];
wave_enemykiblat1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
wave_enemykiblat2 = [99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 2, 2, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 2, 2, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 12, 10, 12];
}
if (minimap_selected_pointer == 16) {
total_timer = 50000;
total_wave = 28;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18, 10, 12, 12, 18];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35, 35, 35];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 2, 1];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3, 3, 3];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 40, 6, 12, 40, 8, 50, 40];
wave_enemykiblat1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
wave_enemykiblat2 = [399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399, 399];
wave_enemydestination = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0, 0, 500];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550, 550, 550];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50, 50, 50];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8, 8, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 8, 10, 8, 12, 10];
}
if (minimap_selected_pointer == 17) {
total_timer = 50000;
total_wave = 28;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18, 16, 18, 18, 18];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35, 35, 35];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1];
wave_sprite1 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4];
wave_sprite2 = [1, 1, 4, 1, 1, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3, 3, 3];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 40, 6, 12, 40, 12, 50, 40];
wave_enemykiblat1 = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
wave_enemykiblat2 = [199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199];
wave_enemydestination = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0, 0, 500];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550, 550, 550];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50, 50, 50];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8, 8, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 8, 10, 8, 12, 10];
}
if (minimap_selected_pointer == 18) {
total_timer = 50000;
total_wave = 28;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18, 16, 18, 18, 18];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35, 35, 35];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1];
wave_sprite1 = [1, 3, 4, 1, 3, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4];
wave_sprite2 = [1, 3, 4, 1, 3, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3, 3, 3];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 40, 6, 12, 40, 12, 50, 40];
wave_enemykiblat1 = [100, 300, 100, 0, 300, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0];
wave_enemykiblat2 = [199, 399, 199, 99, 399, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0, 0, 500];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550, 550, 550];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50, 50, 50];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8, 8, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 8, 10, 8, 12, 10];
}
if (minimap_selected_pointer == 19) {
total_timer = 24000;
total_wave = 30;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18, 16, 18, 18, 18, 19, 19];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35, 35, 35, 35, 35];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_sprite1 = [1, 3, 4, 1, 3, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4, 6, 7];
wave_sprite2 = [1, 3, 4, 1, 3, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4, 6, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3, 3, 3, 4, 4];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 40, 6, 12, 40, 12, 50, 40, 12, 50];
wave_enemykiblat1 = [100, 300, 100, 0, 300, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0, 100, 0];
wave_enemykiblat2 = [199, 399, 199, 99, 399, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99, 199, 99];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0, 0, 500, 0, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550, 550, 550, 550, 550];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50, 50, 50, 50, 50];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2, 3, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2, 3, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 8, 10, 8, 12, 10, 8, 12];
}
if (minimap_selected_pointer == 20) {
total_timer = 24000;
total_wave = 30;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18, 16, 18, 18, 18, 19, 19];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35, 35, 35, 35, 35];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1];
wave_sprite1 = [1, 3, 4, 1, 1, 3, 2, 4, 5, 2, 4, 3, 3, 4, 5, 3, 4, 3, 4, 5, 6, 4, 3, 6, 4, 6, 7, 4, 6, 7];
wave_sprite2 = [1, 3, 4, 1, 1, 3, 2, 4, 5, 2, 4, 3, 3, 4, 5, 3, 4, 3, 4, 5, 6, 4, 3, 6, 4, 6, 7, 4, 6, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3, 3, 3, 4, 4];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 5, 5, 5, 6, 5, 5, 5, 40, 6, 12, 40, 5, 12, 40, 12, 50, 40, 12, 50];
wave_enemykiblat1 = [100, 300, 100, 100, 100, 300, 100, 100, 100, 100, 100, 300, 100, 100, 100, 100, 100, 300, 100, 100, 100, 100, 300, 100, 100, 100, 100, 100, 100, 100];
wave_enemykiblat2 = [199, 399, 199, 199, 199, 399, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 399, 199, 199, 199, 199, 399, 199, 199, 199, 199, 199, 199, 199];
wave_enemydestination = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0, 0, 500, 0, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550, 550, 550, 550, 550];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50, 50, 50, 50, 50];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2, 3, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2, 3, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 8, 10, 8, 12, 10, 8, 12];
}
if (minimap_selected_pointer == 21) {
total_timer = 50000;
total_wave = 30;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18, 16, 18, 18, 18, 19, 19];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35, 35, 35, 35, 35];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
wave_sprite1 = [1, 3, 4, 1, 3, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4, 6, 7];
wave_sprite2 = [1, 3, 4, 1, 3, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4, 6, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3, 3, 3, 4, 4];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 40, 6, 12, 40, 12, 50, 40, 12, 50];
wave_enemykiblat1 = [100, 300, 300, 100, 300, 300, 100, 200, 300, 100, 200, 300, 100, 200, 300, 100, 200, 300, 100, 200, 300, 100, 200, 300, 100, 200, 300, 100, 200, 300];
wave_enemykiblat2 = [199, 399, 399, 199, 399, 399, 199, 299, 399, 199, 299, 399, 199, 299, 399, 199, 299, 399, 199, 299, 399, 199, 299, 399, 199, 299, 399, 199, 299, 399];
wave_enemydestination = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0, 0, 500, 0, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550, 550, 550, 550, 550];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50, 50, 50, 50, 50];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2, 3, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2, 3, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 8, 10, 8, 12, 10, 8, 12];
}
if (minimap_selected_pointer == 22) {
total_timer = 50000;
total_wave = 32;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18, 16, 18, 18, 18, 19, 19, 18, 19];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35, 35, 35, 35, 35, 30, 30];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3];
wave_sprite1 = [1, 3, 4, 1, 3, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4, 6, 7, 5, 7];
wave_sprite2 = [1, 3, 4, 1, 3, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4, 6, 7, 5, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3, 3, 3, 4, 4, 3, 4];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 40, 6, 12, 40, 12, 50, 40, 12, 50, 120, 50];
wave_enemykiblat1 = [0, 300, 100, 300, 300, 200, 100, 300, 0, 200, 100, 300, 0, 200, 100, 300, 0, 200, 100, 300, 0, 200, 100, 300, 0, 200, 100, 300, 0, 200, 100, 300];
wave_enemykiblat2 = [99, 399, 199, 399, 399, 299, 199, 399, 99, 299, 199, 399, 99, 299, 199, 399, 99, 299, 199, 399, 99, 299, 199, 399, 99, 299, 199, 399, 99, 299, 199, 399];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0, 0, 500, 0, 0, 500, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550, 550, 550, 550, 550, 600, 600];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50, 50, 50, 50, 50, 40, 40];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2, 3, 2, 3, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2, 3, 2, 3, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 8, 10, 8, 12, 10, 8, 12, 30, 12];
}
if (minimap_selected_pointer == 23) {
total_timer = 36000;
total_wave = 32;
wave_numenemy = [12, 14, 14, 12, 14, 14, 12, 14, 14, 14, 16, 16, 14, 16, 16, 14, 16, 16, 16, 18, 18, 16, 18, 18, 16, 18, 18, 18, 19, 19, 18, 19];
wave_delay = [60, 60, 60, 60, 60, 55, 55, 55, 55, 55, 50, 50, 50, 50, 50, 45, 45, 45, 45, 45, 40, 40, 40, 40, 40, 35, 35, 35, 35, 35, 30, 30];
wave_landorair = [1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2];
wave_enemyappearcount = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3];
wave_sprite1 = [1, 3, 4, 1, 3, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4, 6, 7, 5, 7];
wave_sprite2 = [1, 3, 4, 1, 3, 4, 2, 4, 5, 2, 4, 5, 3, 4, 5, 3, 4, 5, 4, 5, 6, 4, 5, 6, 4, 6, 7, 4, 6, 7, 5, 7];
wave_enemyspeed = [1, 1.5, 1.5, 1, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 2, 2, 1.5, 2, 2, 1.5, 2, 2, 2, 3, 3, 2, 3, 3, 2, 3, 3, 3, 4, 4, 3, 4];
wave_enemyhp = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 40, 6, 12, 40, 6, 12, 40, 12, 50, 40, 12, 50, 120, 50];
wave_enemykiblat1 = [0, 300, 100, 100, 300, 200, 100, 100, 0, 200, 100, 100, 0, 200, 100, 100, 0, 200, 100, 100, 0, 200, 100, 100, 0, 200, 100, 100, 0, 200, 100, 100];
wave_enemykiblat2 = [99, 399, 199, 199, 399, 299, 199, 199, 99, 299, 199, 199, 99, 299, 199, 199, 99, 299, 199, 199, 99, 299, 199, 199, 99, 299, 199, 199, 99, 299, 199, 199];
wave_enemydestination = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
wave_enemyrangestop = [200, 0, 0, 200, 0, 0, 200, 0, 0, 300, 0, 0, 300, 0, 0, 300, 0, 0, 400, 0, 0, 400, 0, 0, 400, 0, 0, 500, 0, 0, 500, 0];
wave_enemyrangeattack = [300, 300, 300, 300, 300, 350, 350, 350, 350, 350, 400, 400, 400, 400, 400, 450, 450, 450, 450, 450, 500, 500, 500, 500, 500, 550, 550, 550, 550, 550, 600, 600];
wave_enemydelayattack = [100, 100, 100, 100, 100, 90, 90, 90, 90, 90, 80, 80, 80, 80, 80, 70, 70, 70, 70, 70, 60, 60, 60, 60, 60, 50, 50, 50, 50, 50, 40, 40];
wave_enemybullettipe = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2, 3, 2, 3, 2];
wave_enemybulletspeed = [3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9];
wave_enemybulletdamage = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 3, 2, 1, 3, 2, 3, 2, 2, 3, 2, 3, 2];
wave_enemybullethp = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3];
wave_enemymoney = [3, 3, 5, 3, 3, 5, 4, 5, 6, 4, 5, 6, 5, 5, 6, 5, 5, 6, 10, 6, 8, 10, 6, 8, 10, 8, 12, 10, 8, 12, 30, 12];
}
}
function cek_menang() {
if (total_timer <= 0) {
menangkalah = 1;
}
}
function cek_kalah() {
if (building_alive <= 0) {
menangkalah = 2;
}
if (minimap_selected_pointer == 5) {
if (structure[1].hp <= 0) {
menangkalah = 2;
}
}
if (minimap_selected_pointer == 6) {
if (structure[1].hp <= 0) {
menangkalah = 2;
}
}
if (minimap_selected_pointer == 11) {
if (structure[1].hp <= 0) {
menangkalah = 2;
}
}
if (minimap_selected_pointer == 17) {
if (building_alive < num_building) {
menangkalah = 2;
}
}
if (minimap_selected_pointer == 21) {
if (building_alive < num_building) {
menangkalah = 2;
}
}
if (minimap_selected_pointer == 22) {
if (structure[1].hp <= 0) {
menangkalah = 2;
}
}
}
stop();
total_score = 0;
enemies_killed = 0;
menangkalah = 0;
basemoney_lv = 1;
regenmoney_lv = 1;
structure_maxhp_lv = 1;
structure_regen_lv = 1;
structure_maxturret_lv = 1;
structure_turretarea_lv = 1;
turret_maxhp_lv = [1, 1, 1];
turret_builttime_lv = [1, 1, 1];
turret_builtprice_lv = [1, 1, 1];
turret_available_array = [true, false, false];
turret_regen_enable = [false, false, false];
item = ["damagelv", "rangelv", "speedlv", "reloadlv", "regenlv", "speciallv"];
info_content = ["gun turret (z)\nlow damage", "missile turret (x)\nmed damage", "lazer turret (c)\nhigh damage", "increase damage (f)", "increase projectile range (g)", "increase projectile speed (h)", "increase reload speed (b)", "increase turret hp regen (n)", "increase projectile spread (v)", "increase explosion size (v)", "increase lazer strength (v)"];
turret_type_array = ["gun", "missile", "bullet"];
jumlah_gedung_array = [1, 2, 2, 1, 2, 2, 2, 1, 1, 2, 1, 3, 2, 2, 2, 2, 3, 3, 2, 2, 3, 3, 2, 2];
keterangan_misi_array = ["This is site 0. An unknown land. We are waiting for supply and backup. Defend this teritory", "Our supply are met. The backup is coming. Wacthout for the patrol.", "We are at the frontline. The Discerntal has spotted our town. Defend this perimeter.", "We find resource and supply in the North. The Discerntal will try to get it.", "This is the frontline. Defend it.", "We receive an incoming SOS. There are other colony at East. Block the path from Discerntal.", "We found the city. Defend the power plant while our men rescuing the survivor.", "Other colony inform about site that has been searched by Discerntal. Settle this area and wait.", "A new information arrive about an artifact and about energy in it. Patrol and wait for new information.", "All Discerntal army were sent to find this artifact. We have to find shelter to protect from their colony.", "Discerntal know the location. They decrypt on a code. We must get it.", "Discerntal know about this new shelter. We have to defend from the incoming wave.", "The code must be decipher. Protect the lab until we figure it out.", "Other colony has been engage. Send a batalyon to protect them.", "This is the path to artifact. The Discerntal must through this way. We must block it.", "Another wave from The Discerntal. They release their full squad.", "This is our last stand. Do not break it until we know what they looking for. Our victory is near", "We found the artifact. It's an orbs. Research team are set and we must defend from Discerntal.", "The remaining army of Discerntal. Will it be the end?", "We receive message about the artifact. It is hostile. The other troops are in critical situation. Save and rescue.", "The orbs are hostile. All the data about it has to be send to the other colony. Don't let Discerntal get it.", "We receive an incoming data about an orbs. The other troops inform that we must evacuate.", "Our research team cannot be save. We're in the middle of war. SOS!!..", "Our last resistance. Defend it while remaining survivor can evacuate."];
victory_condition_array = ["Survive until end of wave", "Survive until end of wave", "Survive until end of wave", "Survive until 8 minutes", "Survive until end of wave", "Defend the lab until end of wave", "Defend the power plant", "Survive until end of wave", "Survive until end of wave", "Survive until end of wave", "Survive until end of wave", "Defend the dock until end of wave", "Survive until 8 minutes", "Survive until end of wave", "Survive until end of wave", "Survive until end of wave", "Survive until end of wave", "Defend all building until end of wave", "Survive until end of wave", "Survive until 10 minutes", "Survive until 10 minutes", "Defend all building until end of wave", "Defend the dock until end of wave", "Survive until 15 minutes"];
map_mc = ["stage01", "stage02", "stage03", "stage041", "stage042", "stage051", "stage052", "stage061", "stage062", "stage071", "stage072", "stage081", "stage082", "stage091", "stage092", "stage093", "stage101", "stage102", "stage103", "stage111", "stage112", "stage113", "stage121", "stage122"];
mission_name_array = ["The Arrival", "Patrol", "Perimeter", "Find Resource", "Perimeter 2", "Other City", "Defend The City", "Bad News", "The Artifact", "Find The Shelter", "Get The Code", "Defend Shelter", "Decrypt", "Need Help", "The Path", "Left Flank", "Our Victory", "The Orbs", "Right Flank", "Danger", "Save The Data", "Data received", "SOS", "Last Resistance"];
map_mission_status = Array(25);
map_displayed = Array(25);
var i = 0;
while (i <= 23) {
map_mission_status[i] = 0;
map_displayed[i] = 0;
i++;
}
minimap_current_pointer = 0;
minimap_last_winned = undefined;
map_mission_status[0] = 1;
next_count = Array(25);
next1 = Array(25);
next2 = Array(25);
next_count[0] = 1;
next1[0] = 1;
next_count[1] = 1;
next1[1] = 2;
next_count[2] = 2;
next1[2] = 3;
next2[2] = 4;
next_count[3] = 1;
next1[3] = 5;
next_count[4] = 1;
next1[4] = 6;
next_count[5] = 1;
next1[5] = 7;
next_count[6] = 1;
next1[6] = 8;
next_count[7] = 2;
next1[7] = 9;
next2[7] = 10;
next_count[8] = 1;
next1[8] = 9;
next_count[9] = 1;
next1[9] = 11;
next_count[10] = 1;
next1[10] = 12;
next_count[11] = 2;
next1[11] = 13;
next2[11] = 15;
next_count[12] = 1;
next1[12] = 14;
next_count[13] = 1;
next1[13] = 16;
next_count[14] = 1;
next1[14] = 17;
next_count[15] = 1;
next1[15] = 18;
next_count[16] = 1;
next1[16] = 19;
next_count[17] = 1;
next1[17] = 20;
next_count[18] = 1;
next1[18] = 21;
next_count[19] = 1;
next1[19] = 22;
next_count[20] = 0;
next_count[21] = 1;
next1[21] = 23;
next_count[22] = 0;
next_count[23] = 0;
structure_maxhp_array = [200, 300, 400];
structure_regen_array = [0, 0.015, 0.03];
structure_maxturret_array = [2, 4, 6];
structure_turretarea_array = [200, 300, 400];
turret_maxhp_array = [[10, 12, 14], [15, 18, 21], [30, 35, 40]];
turret_builttimepercentage_array = [1, 0.75, 0.5];
turret_builtpricepercentage_array = [1, 0.75, 0.5];
turret_builtprice_array = [100, 200, 500];
turret_upgrade_array = [[40, 80], [40, 80], [100, 120], [100, 120], [140, 200], [200, 300]];
turret_delay_array = [[60, 80], [60, 80], [80, 100], [80, 100], [100, 150], [100, 150]];
turret_builttimer_array = [120, 160, 200];
max_reload_timer = 40;
turret_regen_array = [0, 0.01, 0.02, 0.03];
bullet_speed_array = [[5, 7, 9], [7, 9, 11], [9, 11, 13]];
bullet_damage_array = [[2, 2.5, 3], [3, 4, 5], [5, 8, 11]];
bullet_reload_array = [[1, 2, 3], [0.5, 1, 2], [0.2, 0.5, 1]];
bullet_range_array = [[200, 250, 300], [300, 350, 400], [400, 450, 500]];
bullet_special_array = [[1, 2, 3], [100, 150, 200], [2, 3, 4]];
basemoney_array = [500, 1000, 2000];
regenmoney_array = [0, 1, 2];
max_level_upgrade = 3;
score = 0;
bp = 0;
init_wave_timer = 1600;
onEnterFrame = function () {
};
Frame 15
gotoAndStop ("title");
Frame 18
onEnterFrame = function () {
};
Instance of Symbol 422 MovieClip in Frame 20
on (release) {
getURL ("http://www.blessflasher.com", "_blank");
}
Frame 23
function added_wave() {
var _local3 = turn_container.createEmptyMovieClip("turn" + wave_number, turn_container.getNextHighestDepth());
_local3.numenemy = wave_numenemy[wave_number - 1];
_local3.maxdelay = (_local3._delay = wave_delay[wave_number - 1]);
_local3.landorair = wave_landorair[wave_number - 1];
_local3.enemyappearcount = wave_enemyappearcount[wave_number - 1];
enemyspawned = enemyspawned + (_local3.numenemy * _local3.enemyappearcount);
_local3.sprite1 = wave_sprite1[wave_number - 1];
_local3.sprite2 = wave_sprite2[wave_number - 1];
_local3.enemyspeed = wave_enemyspeed[wave_number - 1];
_local3.enemyhp = wave_enemyhp[wave_number - 1];
_local3.enemykiblat1 = wave_enemykiblat1[wave_number - 1];
_local3.enemykiblat2 = wave_enemykiblat2[wave_number - 1];
_local3.enemydestination = wave_enemydestination[wave_number - 1];
_local3.enemyrangestop = wave_enemyrangestop[wave_number - 1];
_local3.enemyrangeattack = wave_enemyrangeattack[wave_number - 1];
_local3.enemydelayattack = wave_enemydelayattack[wave_number - 1];
_local3.enemybullettipe = wave_enemybullettipe[wave_number - 1];
_local3.enemybulletspeed = wave_enemybulletspeed[wave_number - 1];
_local3.enemybulletdamage = wave_enemybulletdamage[wave_number - 1];
_local3.enemybullethp = wave_enemybullethp[wave_number - 1];
_local3.enemymoney = wave_enemymoney[wave_number - 1];
_local3.onEnterFrame = function () {
if (!game_pause) {
if (this.numenemy > 0) {
if (this._delay > 0) {
this._delay--;
} else {
var _local3 = 1;
while (_local3 <= this.enemyappearcount) {
var _local2 = randRange(this.enemykiblat1, this.enemykiblat2);
if (_local2 < 100) {
posx = -30;
posy = (landheight / 100) * _local2;
} else if (_local2 < 200) {
_local2 = _local2 - 100;
posx = (landwidth / 100) * _local2;
posy = -30;
} else if (_local2 < 300) {
_local2 = _local2 - 200;
posx = landwidth + 30;
posy = (landheight / 100) * _local2;
} else {
_local2 = _local2 - 300;
posx = (landwidth / 100) * _local2;
posy = landheight + 30;
}
if (this.landorair == 1) {
land_enemy(posx, posy, randRange(this.sprite1, this.sprite2), this.enemyhp, this.enemyspeed, this.enemydestination, this.enemyrangestop, this.enemyrangeattack, this.enemydelayattack, this.enemybullettipe, this.enemybulletspeed, this.enemybulletdamage, this.enemybullethp, this.enemymoney);
} else {
air_enemy(posx, posy, randRange(this.sprite1, this.sprite2), this.enemyhp, this.enemyspeed, this.enemydestination, this.enemyrangestop, this.enemyrangeattack, this.enemydelayattack, this.enemybullettipe, this.enemybulletspeed, this.enemybulletdamage, this.enemybullethp, this.enemymoney);
}
_local3++;
}
this.numenemy--;
this._delay = this.maxdelay;
}
} else {
this.removeMovieClip();
}
}
};
}
function upgrade_done(isi) {
money = money - Math.round(turret_upgrade_array[isi][selected_turret[item[isi]] - 1] * turret_builtpricepercentage_array[turret_builtprice_lv[selected_turret.tipe - 1] - 1]);
selected_turret.sell_price = selected_turret.sell_price + Math.round(turret_upgrade_array[isi][selected_turret[item[isi]] - 1] * turret_builtpricepercentage_array[turret_builtprice_lv[selected_turret.tipe - 1] - 1]);
selected_turret.idle_timer = (selected_turret.max_idle_timer = turret_delay_array[isi][selected_turret[item[isi]] - 1] * turret_builttimepercentage_array[turret_builttime_lv[selected_turret.tipe - 1] - 1]);
selected_turret[item[isi]]++;
active_info_display();
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function active_info_display() {
type_active = "";
power_active = "";
range_active = "";
speed_active = "";
special_active = "";
reload_active = "";
regen_active = "";
upgrade_shop._visible = false;
upgrade_shop.upgrade_btn5._visible = false;
upgrade_shop.upgrade_price5._visible = false;
if (selected_turret != undefined) {
upgrade_shop._visible = true;
upgrade_shop.upgrade_btn5._visible = turret_regen_enable[selected_turret.tipe - 1];
upgrade_shop.upgrade_price5._visible = turret_regen_enable[selected_turret.tipe - 1];
upgrade_shop.upgrade_btn6.gotoAndStop(selected_turret.tipe);
var _local1 = 1;
while (_local1 <= 6) {
if (max_level_upgrade <= selected_turret[item[_local1 - 1]]) {
upgrade_shop["upgrade_prc" + _local1] = "MAX";
} else {
upgrade_shop["upgrade_prc" + _local1] = Math.round(turret_upgrade_array[_local1 - 1][selected_turret[item[_local1 - 1]] - 1] * turret_builtpricepercentage_array[turret_builtprice_lv[selected_turret.tipe - 1] - 1]);
}
_local1++;
}
type_active = turret_type_array[selected_turret.tipe - 1];
power_active = bullet_damage_array[selected_turret.tipe - 1][selected_turret.damagelv - 1];
range_active = bullet_range_array[selected_turret.tipe - 1][selected_turret.rangelv - 1];
speed_active = bullet_speed_array[selected_turret.tipe - 1][selected_turret.speedlv - 1];
special_active = "lv. " + selected_turret.speciallv;
reload_active = bullet_reload_array[selected_turret.tipe - 1][selected_turret.reloadlv - 1];
regen_active = turret_regen_array[selected_turret.regenlv];
}
}
function search_destination(posx, posy) {
var _local5 = 1;
var _local2 = 1000000 /* 0x0F4240 */;
var _local1 = 1;
while (_local1 <= num_building) {
if (structure[_local1].hp > 0) {
temp = Math.sqrt(((structure[_local1]._x - posx) * (structure[_local1]._x - posx)) + ((structure[_local1]._y - posy) * (structure[_local1]._y - posy)));
if (temp < _local2) {
_local2 = temp;
_local5 = _local1;
}
}
_local1++;
}
if (structure[active_group].hp <= 0) {
active_selected(_local5);
}
return(_local5);
}
function building(mc, _group, hp, range) {
var _local2 = mc;
_local2.gotoAndStop(1);
_local2.contras = 0;
structure[_group] = _local2;
var _local11 = land.atas.attachMovie("turret_sensor", "structure_snsr" + _group, land.atas.getNextHighestDepth(), {_x:_local2._x, _y:_local2._y, _width:_local2.perim._width, _height:_local2.perim._height});
_local2.hp = (_local2.maxhp = hp);
_local2.range._height = (_local2.range._width = range);
_local2.range._x = (_local2.range._y = (-range) / 2);
_local2._group = (_local2._counter = _group);
_local2.num_turret = 0;
var _local4 = map.container2.attachMovie("mapnode", "buildingnode" + _group, map.container2.getNextHighestDepth(), {_x:_local2._x * scalewidth, _y:_local2._y * scaleheight});
_local4.gotoAndStop(3);
_local4.ring._height = (_local2.range._height * scaleheight) + 2;
_local4.ring._width = (_local2.range._width * scalewidth) + 2;
_local4._group = _group;
_local2.node = _local4;
var _local3 = 1;
while (_local3 <= max_turret) {
_local2["turret" + _local3] = "none";
_local3++;
}
_local2.onEnterFrame = function () {
if (!game_pause) {
if (this.hp > 0) {
this.hp = this.hp + structure_regen_array[structure_regen_lv - 1];
}
if (this.hp > this.maxhp) {
this.hp = this.maxhp;
}
this.hpbar.bar._xscale = (this.hp * 100) / this.maxhp;
if (this.contras > 0) {
this.contras = this.contras - 10;
this.filters = contras_change(this.contras);
}
}
};
}
function active_selected(nomor) {
if ((structure[nomor].hp > 0) and (num_building >= nomor)) {
active_change = true;
destination_active_x = (-structure[nomor]._x) + (stagewidth / 2);
destination_active_y = (-structure[nomor]._y) + (stageheight / 2);
if (destination_active_x > 0) {
destination_active_x = 0;
}
if (destination_active_x < ((-landwidth) + stagewidth)) {
destination_active_x = (-landwidth) + stagewidth;
}
if (destination_active_y > 0) {
destination_active_y = 0;
}
if (destination_active_y < ((-landheight) + stageheight)) {
destination_active_y = (-landheight) + stageheight;
}
jarak_active = Math.sqrt(((destination_active_y - land._y) * (destination_active_y - land._y)) + ((destination_active_x - land._x) * (destination_active_x - land._x)));
rot_tujuan_active = ((Math.atan2(destination_active_y - land._y, destination_active_x - land._x) * 180) / Math.PI) + 90;
speed_active_x = Math.sin((Math.PI/180) * rot_tujuan_active);
speed_active_y = Math.cos((Math.PI/180) * rot_tujuan_active);
speed_map = 35;
active_group = nomor;
var _local1 = 1;
while (_local1 <= num_building) {
structure[_local1].node.ring.gotoAndStop(1);
_local1++;
}
structure[nomor].node.ring.gotoAndStop(2);
land.active_circle._width = (land.active_circle._height = structure[nomor].range._width + 7);
land.active_circle._x = structure[nomor]._x;
land.active_circle._y = structure[nomor]._y;
}
}
function structure_damage(mc) {
if (mc._currentframe < 3) {
if (mc.hp <= 0) {
mc.hp = 0;
mc.node.removeMovieClip();
mc.gotoAndStop(3);
building_alive--;
explode_enemy(mc._x + randRange(-30, 30), mc._y + randRange(-30, 30));
explode_enemy(mc._x + randRange(-30, 30), mc._y + randRange(-30, 30));
explode_enemy(mc._x + randRange(-30, 30), mc._y + randRange(-30, 30));
explode_enemy(mc._x + randRange(-30, 30), mc._y + randRange(-30, 30));
var _local1 = 1;
while (_local1 <= mc.num_turret) {
mc["turret" + _local1].hp = 0;
_local1++;
}
} else if (mc.hp <= (mc.maxhp * 0.4)) {
mc.gotoAndStop(2);
}
}
}
function your_bullet(posx, posy, tipe, rotate, speed, damage, range, special) {
_root[("shot" + tipe) + "_sound"].start(0, 1);
var _local3 = land.bullet_area.attachMovie("bullet", "bullet" + (counter++), counter, {_x:posx, _y:posy});
_local3.gotoAndStop(tipe);
_local3.counter = counter;
_local3._rotation = rotate;
_local3.dx = speed * Math.sin((Math.PI/180) * rotate);
_local3.dy = speed * Math.cos((Math.PI/180) * rotate);
_local3.perpindahan = Math.sqrt((_local3.dx * _local3.dx) + (_local3.dy * _local3.dy));
_local3.damage = damage;
_local3.range = range;
_local3.bullethp = 1;
_local3.ledakansize = special;
if (tipe == 3) {
_local3.bullethp = special;
}
_local3.onEnterFrame = function () {
if (!game_pause) {
this._y = this._y - this.dy;
this._x = this._x + this.dx;
this.range = this.range - this.perpindahan;
var _local2 = {x:this.perim._x, y:this.perim._y};
this.localToGlobal(_local2);
if (land.atas.hitTest(_local2.x, _local2.y, true)) {
for (var _local3 in land.atas) {
if (this.perim.hitTest(land.atas[_local3]) and (land.atas[_local3]._name.substr(0, 5) == "pohon")) {
if (this._currentframe != 3) {
if (this._currentframe == 1) {
explode_bullet(this._x, this._y, this._rotation);
}
if (this._currentframe == 2) {
explode_missile(this._x, this._y, this.ledakansize, this.damage * 0.5, true);
}
this.bullethp--;
}
}
}
}
if ((this.bullethp > 0) and land.enemy_area.hitTest(_local2.x, _local2.y, true)) {
for (var _local3 in land.enemy_area) {
if (((this.bullethp > 0) and (land.enemy_area[_local3].hp > 0)) and this.perim.hitTest(land.enemy_area[_local3].car.perim)) {
if (!this["bc" + land.enemy_area[_local3].number]) {
land.enemy_area[_local3].hp = land.enemy_area[_local3].hp - this.damage;
land.enemy_area[_local3].contras = 100;
this["bc" + land.enemy_area[_local3].number] = true;
if (this._currentframe == 1) {
explode_bullet(this._x, this._y, this._rotation);
}
if (this._currentframe == 2) {
explode_missile(this._x, this._y, this.ledakansize, this.damage * 0.5, true);
}
this.bullethp--;
}
}
}
}
if ((this.bullethp > 0) and land.air_area.hitTest(_local2.x, _local2.y, true)) {
for (var _local3 in land.air_area) {
if (((this.bullethp > 0) and (land.air_area[_local3].hp > 0)) and this.perim.hitTest(land.air_area[_local3].plane.perim)) {
if (!this["bc" + land.air_area[_local3].number]) {
land.air_area[_local3].hp = land.air_area[_local3].hp - this.damage;
land.air_area[_local3].contras = 100;
this["bc" + land.air_area[_local3].number] = true;
if (this._currentframe == 1) {
explode_bullet(this._x, this._y, this._rotation);
}
if (this._currentframe == 2) {
explode_missile(this._x, this._y, this.ledakansize, this.damage * 0.5, true);
}
this.bullethp--;
}
}
}
}
if ((this.bullethp <= 0) or (this.range <= 0)) {
this.removeMovieClip();
}
}
};
}
function en_bullet(posx, posy, tipe, rotate, speed, damage, bullethp, pesawat) {
var _local2 = land.bullet_area.attachMovie("enemy_bullet", "bullet" + (counter++), counter, {_x:posx, _y:posy});
_local2.gotoAndStop(tipe);
_local2.pesawat = pesawat;
_local2.counter = counter;
_local2._rotation = rotate;
_local2.dx = speed * Math.sin((Math.PI/180) * rotate);
_local2.dy = speed * Math.cos((Math.PI/180) * rotate);
_local2.damage = damage;
_local2.bullethp = 1;
if (tipe == 3) {
_local2.bullethp = bullethp;
}
_local2.onEnterFrame = function () {
if (!game_pause) {
this._y = this._y - this.dy;
this._x = this._x + this.dx;
var _local2 = {x:this.perim._x, y:this.perim._y};
this.localToGlobal(_local2);
if (land.atas.hitTest(_local2.x, _local2.y, true) and (!this.pesawat)) {
for (var _local3 in land.atas) {
if (this.perim.hitTest(land.atas[_local3]) and (land.atas[_local3]._name.substr(0, 5) == "pohon")) {
if (this._currentframe != 3) {
if (this._currentframe == 1) {
explode_bullet(this._x, this._y, this._rotation);
}
if (this._currentframe == 2) {
explode_missile(this._x, this._y, 200, this.damage * 0.5, false);
}
this.bullethp--;
}
}
}
}
if ((this.bullethp > 0) and land.building_area.hitTest(_local2.x, _local2.y, true)) {
for (var _local3 in land.building_area) {
if (((this.bullethp > 0) and (land.building_area[_local3].hp > 0)) and this.perim.hitTest(land.building_area[_local3].perim)) {
if (!this["bc" + land.building_area[_local3]._counter]) {
land.building_area[_local3].hp = land.building_area[_local3].hp - this.damage;
land.building_area[_local3].contras = 100;
this["bc" + land.building_area[_local3]._counter] = true;
if (this._currentframe == 1) {
explode_bullet(this._x, this._y, this._rotation);
}
if (this._currentframe == 2) {
explode_missile(this._x, this._y, 200, this.damage * 0.5, false);
}
structure_damage(land.building_area[_local3]);
this.bullethp--;
}
}
}
}
if ((this.bullethp > 0) and land.turret_area.hitTest(_local2.x, _local2.y, true)) {
for (var _local3 in land.turret_area) {
if (((this.bullethp > 0) and (land.turret_area[_local3].hp > 0)) and this.perim.hitTest(land.turret_area[_local3].perim)) {
if (!this["bc" + land.turret_area[_local3]._counter]) {
land.turret_area[_local3].hp = land.turret_area[_local3].hp - this.damage;
land.turret_area[_local3].contras = 100;
this["bc" + land.turret_area[_local3]._counter] = true;
if (this._currentframe == 1) {
explode_bullet(this._x, this._y, this._rotation);
}
if (this._currentframe == 2) {
explode_missile(this._x, this._y, 200, this.damage * 0.5, false);
}
this.bullethp--;
}
}
}
}
if (((((this.bullethp <= 0) or (this._x < 0)) or (this._y < 0)) or (this._x > landwidth)) or (this._y > landheight)) {
this.removeMovieClip();
}
}
};
}
function explode_bullet(posx, posy, rot) {
var _local3 = land.explode_area.attachMovie("bullet_explode", "be" + (counter++), counter, {_x:posx, _y:posy, _rotation:rot});
}
function explode_enemy(posx, posy) {
boom_sound.start(0, 1);
var _local2 = land.explode_area.attachMovie("explode", "enemy" + (counter++), counter, {_x:posx, _y:posy, _xscale:150, _yscale:150});
}
function explode_missile(posx, posy, scale, damage, isplayer) {
boom_sound.start(0, 1);
var _local3 = land.bullet_area.attachMovie("missile_explode", "em" + (counter++), counter, {_x:posx, _y:posy, _xscale:scale, _yscale:scale, damage:damage, isplayer:isplayer});
_local3.onEnterFrame = function () {
if (!game_pause) {
this.play();
if (this._currentframe == 5) {
if (this.isplayer) {
for (var _local2 in land.enemy_area) {
if (this.perim.hitTest(land.enemy_area[_local2].car.perim)) {
land.enemy_area[_local2].hp = land.enemy_area[_local2].hp - this.damage;
land.enemy_area[_local2].contras = 100;
}
}
for (var _local2 in land.air_area) {
if (this.perim.hitTest(land.air_area[_local2].plane.perim)) {
land.air_area[_local2].hp = land.air_area[_local2].hp - this.damage;
land.air_area[_local2].contras = 100;
}
}
} else {
for (var _local2 in land.building_area) {
if (this.perim.hitTest(land.building_area[_local2].perim)) {
land.building_area[_local2].hp = land.building_area[_local2].hp - this.damage;
structure_damage(land.building_area[_local2]);
land.building_area[_local2].contras = 100;
}
}
for (var _local2 in land.turret_area) {
if (this.perim.hitTest(land.turret_area[_local2].perim)) {
land.turret_area[_local2].hp = land.turret_area[_local2].hp - this.damage;
land.turret_area[_local2].contras = 100;
}
}
}
}
} else {
this.stop();
}
};
}
function land_enemy(posx, posy, tipe, hp, speed, destination, rangestop, rangeattack, delayattack, bullettipe, bulletspeed, bulletdamage, bullethp, moneygained) {
var _local2 = land.enemy_area.attachMovie("enemycar", "enemy" + (counter++), counter, {_x:posx, _y:posy, moneygained:moneygained});
var _local12 = land.perimeter_range.attachMovie("perimeter_range_box", "prs" + counter, land.perimeter_range.getNextHighestDepth());
var _local10 = land.perimeter_range.attachMovie("perimeter_range_box", "pra" + counter, land.perimeter_range.getNextHighestDepth());
var _local7 = map.container.attachMovie("mapnode", "enemynode" + counter, map.container.getNextHighestDepth(), {_x:posx * scalewidth, _y:posy * scaleheight});
_local7.gotoAndStop(1);
_local2.prs = _local12;
_local2.pra = _local10;
var _local5 = rangestop - randRange(0, 80);
if (_local5 < 10) {
_local5 = 10;
}
_local2.prs._width = (_local2.prs._height = _local5);
_local2.pra._width = (_local2.pra._height = rangeattack);
_local2.prs._x = (_local2.pra._x = posx);
_local2.prs._y = (_local2.pra._y = posy);
_local2.prs.cacheAsBitmap = true;
_local2.pra.cacheAsBitmap = true;
_local2.node = _local7;
enemyonscreen++;
_local2.contras = 100;
_local2.number = counter;
_local2.car.gotoAndStop(tipe);
_local2.car.perim._visible = false;
_local2.hp = (_local2.maxhp = hp);
_local2.speed = speed;
_local2.destination = destination;
_local2.target_building = 0;
_local2.delayattack = 0;
_local2.maxdelayattack = delayattack;
_local2.bullettipe = bullettipe;
_local2.bulletspeed = bulletspeed;
_local2.bulletdamage = bulletdamage;
_local2.bullethp = bullethp;
_local2.radAngle = Math.atan2(structure[destination]._y - _local2._y, structure[destination]._x - _local2._x);
_local2.rot_tujuan = ((_local2.radAngle * 180) / Math.PI) + 90;
_local2.rot_mobil = ((_local2.radAngle * 180) / Math.PI) + 90;
_local2.car._rotation = rot_mobil;
_local2.countertemp = 6;
_local2.onEnterFrame = function () {
if (!game_pause) {
if (this.hp > 0) {
this.hpbar.bar._xscale = (this.hp * 100) / this.maxhp;
if (this.contras > 0) {
this.contras = this.contras - 10;
this.filters = contras_change(this.contras);
}
if (structure[this.destination].hp <= 0) {
this.destination = search_destination(this._x, this._y);
}
var _local6 = structure[this.destination]._x;
var _local5 = structure[this.destination]._y;
if (this.countertemp > 0) {
this.countertemp--;
} else {
this.countertemp = 12;
this.radAngle = Math.atan2(_local5 - this._y, _local6 - this._x);
this.rot_tujuan = int(((this.radAngle * 180) / Math.PI) + 90);
}
var _local3 = {x:this.car.kiri._x, y:this.car.kiri._y};
var _local2 = {x:this.car.kanan._x, y:this.car.kanan._y};
this.car.localToGlobal(_local3);
this.car.localToGlobal(_local2);
if (land.atas.hitTest(_local3.x, _local3.y, true) or land.atas.hitTest(_local2.x, _local2.y, true)) {
if (land.atas.hitTest(_local3.x, _local3.y, true)) {
this.rot_mobil = this.rot_mobil + 2;
} else {
this.rot_mobil = this.rot_mobil - 2;
}
this.car._rotation = this.rot_mobil;
} else {
this.pergerakan = this.rot_tujuan - this.rot_mobil;
if (this.pergerakan < -180) {
this.pergerakan = this.pergerakan + 360;
}
if (this.pergerakan > 180) {
this.pergerakan = this.pergerakan - 360;
}
if (Math.abs(this.pergerakan) > 5) {
if (this.pergerakan > 0) {
this.rot_mobil = this.rot_mobil + 2;
} else {
this.rot_mobil = this.rot_mobil - 2;
}
this.car._rotation = this.rot_mobil;
}
_local3 = {x:this.car.kiri._x, y:this.car.kiri._y};
_local2 = {x:this.car.kanan._x, y:this.car.kanan._y};
this.car.localToGlobal(_local3);
this.car.localToGlobal(_local2);
if (land.atas.hitTest(_local3.x, _local3.y, true)) {
this.rot_mobil = this.rot_mobil + 2;
}
if (land.atas.hitTest(_local2.x, _local2.y, true)) {
this.rot_mobil = this.rot_mobil - 2;
}
this.car._rotation = this.rot_mobil;
}
var _local4 = {x:structure[this.destination].perim._x, y:structure[this.destination].perim._y};
structure[this.destination].localToGlobal(_local4);
if ((!this.prs.hitTest(_local4.x, _local4.y, true)) or (this.prs._width < 30)) {
this._y = this._y - (this.speed * Math.cos((Math.PI/180) * this.car._rotation));
this._x = this._x + (this.speed * Math.sin((Math.PI/180) * this.car._rotation));
if (this.countertemp <= 0) {
this.prs._x = (this.pra._x = this._x);
this.prs._y = (this.pra._y = this._y);
}
}
if (this.delayattack > 0) {
this.delayattack--;
} else {
if (this.pra.hitTest(_local4.x, _local4.y, true)) {
if (structure[this.destination].hp > 0) {
this.target_building = this.destination;
this.targetx = structure[this.destination]._x;
this.targety = structure[this.destination]._y;
}
}
if (this.target_building == 0) {
if (structure[1].hp > 0) {
_local4 = {x:structure[1].perim._x, y:structure[1].perim._y};
structure[1].localToGlobal(_local4);
if (this.pra.hitTest(_local4.x, _local4.y, true)) {
this.target_building = 1;
}
} else if ((num_building > 1) and (structure[2].hp > 0)) {
_local4 = {x:structure[2].perim._x, y:structure[2].perim._y};
structure[2].localToGlobal(_local4);
if (this.pra.hitTest(_local4.x, _local4.y, true)) {
this.target_building = 2;
}
} else if ((num_building > 2) and (structure[3].hp > 0)) {
_local4 = {x:structure[3].perim._x, y:structure[3].perim._y};
structure[3].localToGlobal(_local4);
if (this.pra.hitTest(_local4.x, _local4.y, true)) {
this.target_building = 3;
}
}
this.targetx = structure[this.target_building]._x;
this.targety = structure[this.target_building]._y;
} else {
this.turretAngle = Math.atan2(this.targety - this._y, this.targetx - this._x);
this.rot_turret = int(((this.turretAngle * 180) / Math.PI) + 90);
this.car.turret._rotation = (this.rot_turret - this.rot_mobil) + 180;
en_bullet(this._x, this._y, this.bullettipe, this.rot_turret, this.bulletspeed, this.bulletdamage, this.bullethp, false);
if ((!structure[this.target_building].perim.hitTest(this.pra)) or (structure[this.target_building].hp <= 0)) {
this.target_building = 0;
}
}
this.delayattack = this.maxdelayattack;
}
this.node._x = this._x * scalewidth;
this.node._y = this._y * scaleheight;
} else {
money = money + this.moneygained;
total_score = total_score + this.maxhp;
enemies_killed++;
score = score + this.maxhp;
explode_enemy(this._x, this._y);
enemyonscreen--;
enemyspawned--;
this.prs.removeMovieClip();
this.pra.removeMovieClip();
this.node.removeMovieClip();
this.removeMovieClip();
}
}
};
}
function air_enemy(posx, posy, tipe, hp, speed, destination, rangestop, rangeattack, delayattack, bullettipe, bulletspeed, bulletdamage, bullethp, moneygained) {
var _local2 = land.air_area.attachMovie("enemyair", "enemy" + (counter++), counter, {_x:posx, _y:posy, moneygained:moneygained});
var _local11 = land.perimeter_range.attachMovie("perimeter_range_box", "prs" + counter, land.perimeter_range.getNextHighestDepth());
var _local9 = land.perimeter_range.attachMovie("perimeter_range_box", "pra" + counter, land.perimeter_range.getNextHighestDepth());
var _local6 = map.container.attachMovie("mapnode", "enemynode" + counter, map.container.getNextHighestDepth(), {_x:posx * scalewidth, _y:posy * scaleheight});
_local6.gotoAndStop(1);
_local2.prs = _local11;
_local2.pra = _local9;
var _local5 = rangestop - randRange(0, 80);
if (_local5 < 10) {
_local5 = 10;
}
_local2.prs._width = (_local2.prs._height = _local5);
_local2.pra._width = (_local2.pra._height = rangeattack);
_local2.prs._x = (_local2.pra._x = posx);
_local2.prs._y = (_local2.pra._y = posy);
_local2.prs.cacheAsBitmap = true;
_local2.pra.cacheAsBitmap = true;
_local2.node = _local6;
enemyonscreen++;
_local2.contras = 100;
_local2.number = counter;
_local2.plane.gotoAndStop(tipe);
if (tipe < 4) {
_local2.plane.turret._visible = false;
}
_local2.plane.perim._visible = false;
_local2.speed = speed;
_local2.hp = (_local2.maxhp = hp);
_local2.destination = destination;
_local2.target_building = 0;
_local2.delayattack = 0;
_local2.maxdelayattack = delayattack;
_local2.bullettipe = bullettipe;
_local2.bulletspeed = bulletspeed;
_local2.bulletdamage = bulletdamage;
_local2.bullethp = bullethp;
_local2.radAngle = Math.atan2(structure[destination]._y - _local2._y, structure[destination]._x - _local2._x);
_local2.rot_tujuan = ((_local2.radAngle * 180) / Math.PI) + 90;
_local2.rot_mobil = ((_local2.radAngle * 180) / Math.PI) + 90;
_local2.plane._rotation = rot_mobil;
_local2.countertemp = 5;
_local2.onEnterFrame = function () {
if (!game_pause) {
if (this.hp > 0) {
this.hpbar.bar._xscale = (this.hp * 100) / this.maxhp;
if (this.contras > 0) {
this.contras = this.contras - 10;
this.filters = contras_change(this.contras);
}
if (structure[this.destination].hp <= 0) {
this.destination = search_destination(this._x, this._y);
}
var _local5 = structure[this.destination]._x;
var _local4 = structure[this.destination]._y;
if (this.countertemp > 0) {
this.countertemp--;
} else {
this.countertemp = 12;
this.radAngle = Math.atan2(_local4 - this._y, _local5 - this._x);
this.rot_tujuan = int(((this.radAngle * 180) / Math.PI) + 90);
}
this.pergerakan = this.rot_tujuan - this.rot_mobil;
if (this.pergerakan < -180) {
this.pergerakan = this.pergerakan + 360;
}
if (this.pergerakan > 180) {
this.pergerakan = this.pergerakan - 360;
}
if (Math.abs(this.pergerakan) > 5) {
if (this.pergerakan > 0) {
this.rot_mobil = this.rot_mobil + 2;
} else {
this.rot_mobil = this.rot_mobil - 2;
}
}
this.plane._rotation = this.rot_mobil;
var _local2 = {x:structure[this.destination].perim._x, y:structure[this.destination].perim._y};
structure[this.destination].localToGlobal(_local2);
if ((!this.prs.hitTest(_local2.x, _local2.y, true)) or (this.prs._width < 20)) {
this._y = this._y - (this.speed * Math.cos((Math.PI/180) * this.plane._rotation));
this._x = this._x + (this.speed * Math.sin((Math.PI/180) * this.plane._rotation));
if (this.countertemp <= 0) {
this.prs._x = (this.pra._x = this._x);
this.prs._y = (this.pra._y = this._y);
}
}
if (this.plane.turret._visible) {
if (this.delayattack > 0) {
this.delayattack--;
} else {
if (this.pra.hitTest(_local2.x, _local2.y, true)) {
if (structure[this.destination].hp > 0) {
this.target_building = this.destination;
this.targetx = structure[this.destination]._x;
this.targety = structure[this.destination]._y;
}
}
if (this.target_building == 0) {
if (structure[1].hp > 0) {
_local2 = {x:structure[1].perim._x, y:structure[1].perim._y};
structure[1].localToGlobal(_local2);
if (this.pra.hitTest(_local2.x, _local2.y, true)) {
this.target_building = 1;
}
} else if ((num_building > 1) and (structure[2].hp > 0)) {
_local2 = {x:structure[2].perim._x, y:structure[2].perim._y};
structure[2].localToGlobal(_local2);
if (this.pra.hitTest(_local2.x, _local2.y, true)) {
this.target_building = 2;
}
} else if ((num_building > 2) and (structure[3].hp > 0)) {
_local2 = {x:structure[3].perim._x, y:structure[3].perim._y};
structure[3].localToGlobal(_local2);
if (this.pra.hitTest(_local2.x, _local2.y, true)) {
this.target_building = 3;
}
}
this.targetx = structure[this.target_building]._x;
this.targety = structure[this.target_building]._y;
} else {
this.turretAngle = Math.atan2(this.targety - this._y, this.targetx - this._x);
this.rot_turret = ((this.turretAngle * 180) / Math.PI) + 90;
this.plane.turret._rotation = (this.rot_turret - this.rot_mobil) + 180;
en_bullet(this._x, this._y, this.bullettipe, this.rot_turret, this.bulletspeed, this.bulletdamage, this.bullethp, true);
if ((!structure[this.target_building].perim.hitTest(this.pra)) or (structure[this.target_building].hp <= 0)) {
this.target_building = 0;
}
}
this.delayattack = this.maxdelayattack;
}
}
if (this.plane._currentframe < 4) {
_local2 = {x:this.plane.perim._x, y:this.plane.perim._y};
this.plane.localToGlobal(_local2);
if (land.building_area.hitTest(_local2.x, _local2.y, true)) {
for (var _local3 in land.building_area) {
if ((land.building_area[_local3].hp > 0) and this.plane.perim.hitTest(land.building_area[_local3].perim)) {
land.building_area[_local3].hp = land.building_area[_local3].hp - this.maxhp;
structure_damage(land.building_area[_local3]);
this.hp = 0;
}
}
}
if ((this.hp > 0) and land.turret_area.hitTest(_local2.x, _local2.y, true)) {
for (var _local3 in land.turret_area) {
if (((this.hp > 0) and (land.turret_area[_local3].hp > 0)) and this.plane.perim.hitTest(land.turret_area[_local3].perim)) {
land.turret_area[_local3].hp = land.turret_area[_local3].hp - this.maxhp;
this.hp = 0;
}
}
}
}
this.node._x = this._x * scalewidth;
this.node._y = this._y * scaleheight;
} else {
money = money + this.moneygained;
total_score = total_score + this.maxhp;
enemies_killed++;
score = score + this.maxhp;
explode_enemy(this._x, this._y);
enemyonscreen--;
enemyspawned--;
this.prs.removeMovieClip();
this.pra.removeMovieClip();
this.node.removeMovieClip();
this.removeMovieClip();
}
}
};
}
function built_turret(posx, posy, tipe, group, hp) {
var _local4 = land.turret_area.attachMovie("turret", "turret" + (counter++), counter, {_x:posx, _y:posy, tipe:tipe, _group:group, hp:hp, maxhp:hp});
var _local6 = map.container.attachMovie("mapnode", "towernode" + counter, map.container.getNextHighestDepth(), {_x:_local4._x * scalewidth, _y:_local4._y * scaleheight});
_local6.gotoAndStop(2);
_local4.node = _local6;
_local4.sell_price = turret_price_array[tipe - 1];
_local4.sold = false;
_local4.idle_timer = (_local4.max_idle_timer = turret_builttimer_array[tipe - 1] * turret_builttimepercentage_array[turret_builttime_lv[tipe - 1] - 1]);
_local4.gun.gotoAndStop(tipe);
_local4.contras = 100;
_local4.speedlv = 1;
_local4.damagelv = 1;
_local4.reloadlv = 1;
_local4.rangelv = 1;
_local4.speciallv = 1;
_local4.regenlv = 0;
if (turret_regen_enable[tipe - 1]) {
_local4.regenlv = 1;
}
selected_turret = _local4;
sellbutton._visible = true;
land.selected_circle._x = selected_turret._x;
land.selected_circle._y = selected_turret._y;
active_info_display();
_local4.reload_timer = max_reload_timer;
structure[group].num_turret++;
structure[group]["turret" + structure[group].num_turret] = _local4;
_local4.number = structure[group].num_turret;
_local4._counter = counter;
_local4.perim.onPress = function () {
selected_turret = this._parent;
sellbutton._visible = true;
land.selected_circle._x = selected_turret._x;
land.selected_circle._y = selected_turret._y;
active_info_display();
};
_local4.onEnterFrame = function () {
if (!game_pause) {
if ((this.hp > 0) and (!this.sold)) {
if (this.reload_timer < max_reload_timer) {
this.reload_timer = this.reload_timer + bullet_reload_array[this.tipe - 1][this.reloadlv - 1];
}
if (this.reload_timer > max_reload_timer) {
this.reload_timer = max_reload_timer;
}
this.redbar._xscale = (this.reload_timer * 100) / max_reload_timer;
if (this.contras > 0) {
this.contras = this.contras - 10;
this.filters = contras_change(this.contras);
}
this.hpbar.bar._xscale = (this.hp * 100) / this.maxhp;
if (this.idle_timer > 0) {
this.idle_timer--;
this.progress_circle._visible = true;
this.progress_circle.gotoAndStop(60 - Math.floor((this.idle_timer / this.max_idle_timer) * 60));
if (this.idle_timer <= 0) {
active_info_display();
_root["voice" + randRange(1, 2)].start(0, 1);
this.progress_circle._visible = false;
}
} else {
if (this.hp < this.maxhp) {
this.hp = this.hp + turret_regen_array[this.regenlv];
}
if (this.hp > this.maxhp) {
this.hp = this.maxhp;
}
if (this._group == active_group) {
this.radAngle = Math.atan2((ymouse - this._y) - land._y, (xmouse - this._x) - land._x);
this.gun._rotation = ((this.radAngle * 180) / Math.PI) + 90;
if (rapid_ok and (this.reload_timer >= max_reload_timer)) {
this.reload_timer = 0;
if (this._group == active_group) {
if (this.tipe == 1) {
if (this.speciallv == 1) {
your_bullet(this._x, this._y, this.tipe, this.gun._rotation, bullet_speed_array[this.tipe - 1][this.speedlv - 1], bullet_damage_array[this.tipe - 1][this.damagelv - 1], bullet_range_array[this.tipe - 1][this.rangelv - 1], this.speciallv);
}
if (this.speciallv == 2) {
your_bullet(this._x, this._y, this.tipe, this.gun._rotation - 6, bullet_speed_array[this.tipe - 1][this.speedlv - 1], bullet_damage_array[this.tipe - 1][this.damagelv - 1], bullet_range_array[this.tipe - 1][this.rangelv - 1], this.speciallv);
your_bullet(this._x, this._y, this.tipe, this.gun._rotation + 6, bullet_speed_array[this.tipe - 1][this.speedlv - 1], bullet_damage_array[this.tipe - 1][this.damagelv - 1], bullet_range_array[this.tipe - 1][this.rangelv - 1], this.speciallv);
}
if (this.speciallv == 3) {
your_bullet(this._x, this._y, this.tipe, this.gun._rotation - 15, bullet_speed_array[this.tipe - 1][this.speedlv - 1], bullet_damage_array[this.tipe - 1][this.damagelv - 1], bullet_range_array[this.tipe - 1][this.rangelv - 1], this.speciallv);
your_bullet(this._x, this._y, this.tipe, this.gun._rotation, bullet_speed_array[this.tipe - 1][this.speedlv - 1], bullet_damage_array[this.tipe - 1][this.damagelv - 1], bullet_range_array[this.tipe - 1][this.rangelv - 1], this.speciallv);
your_bullet(this._x, this._y, this.tipe, this.gun._rotation + 15, bullet_speed_array[this.tipe - 1][this.speedlv - 1], bullet_damage_array[this.tipe - 1][this.damagelv - 1], bullet_range_array[this.tipe - 1][this.rangelv - 1], this.speciallv);
}
} else {
your_bullet(this._x, this._y, this.tipe, this.gun._rotation, bullet_speed_array[this.tipe - 1][this.speedlv - 1], bullet_damage_array[this.tipe - 1][this.damagelv - 1], bullet_range_array[this.tipe - 1][this.rangelv - 1], bullet_special_array[this.tipe - 1][this.speciallv - 1]);
}
}
}
}
}
} else {
if (selected_turret == this) {
selected_turret = undefined;
sellbutton._visible = false;
active_info_display();
land.selected_circle._x = -1000;
land.selected_circle._y = -1000;
}
var _local3 = this.number;
while (_local3 <= (structure[this._group].num_turret - 1)) {
structure[this._group]["turret" + _local3] = structure[this._group]["turret" + (_local3 + 1)];
structure[this._group]["turret" + _local3].number = _local3;
_local3++;
}
structure[this._group]["turret" + structure[this._group].num_turret] = "none";
structure[this._group].num_turret--;
if (this.sold) {
buysound.start(0, 1);
money = money + Math.round(this.sell_price / 2);
} else {
explode_enemy(this._x, this._y);
}
this.node.removeMovieClip();
this.removeMovieClip();
}
}
};
}
function main_game() {
if (!game_pause) {
if (regenmoneytimer > 0) {
regenmoneytimer--;
} else {
regenmoneytimer = 40;
money = money + getmoneypersecond;
}
if (total_timer > 0) {
total_timer--;
}
timerdisplayminute = int(total_timer / 2400);
timerdisplaysecond = int((total_timer % 2400) / 40);
if (timerdisplaysecond <= 9) {
timerdisplaysecond = "0" + timerdisplaysecond;
}
if (wave_number < total_wave) {
if (!wave_skip) {
if (wave_sign_appear < wave_timer) {
wavebutton._alpha = 50;
} else {
wavebutton._alpha = 100;
}
wave_timer--;
} else {
wavebutton._alpha = 50;
wave_timer = wave_timer - 50;
money = money + 1;
total_score = total_score + 3;
score = score + 3;
}
if (wave_timer <= 0) {
wave_number++;
added_wave();
wave_timer = init_wave_timer;
wave_skip = false;
}
} else {
wavebar._visible = false;
wavebutton._visible = false;
if (enemyspawned <= 0) {
menangkalah = 1;
}
}
wavebar._width = (wave_timer / init_wave_timer) * 53;
if (menangkalah == 0) {
cek_menang();
cek_kalah();
} else if (winloseanim._currentframe == 1) {
winloseanim.endgame.gotoAndStop(menangkalah);
winloseanim.gotoAndPlay(2);
}
if (Key.isDown(49)) {
active_selected(1);
}
if (Key.isDown(50)) {
active_selected(2);
}
if (Key.isDown(51)) {
active_selected(3);
}
if (Key.isDown(70)) {
if (upgrade_shop.upgrade_btn1._alpha == 100) {
upgrade_done(0);
}
}
if (Key.isDown(71)) {
if (upgrade_shop.upgrade_btn2._alpha == 100) {
upgrade_done(1);
}
}
if (Key.isDown(72)) {
if (upgrade_shop.upgrade_btn3._alpha == 100) {
upgrade_done(2);
}
}
if (Key.isDown(86)) {
if (upgrade_shop.upgrade_btn6._alpha == 100) {
upgrade_done(5);
}
}
if (Key.isDown(66)) {
if (upgrade_shop.upgrade_btn4._alpha == 100) {
upgrade_done(3);
}
}
if (Key.isDown(78)) {
if ((upgrade_shop.upgrade_btn5._alpha == 100) and (selected_turret.regenlv > 0)) {
upgrade_done(4);
}
}
if (!active_change) {
if (mapmove) {
map.box._x = map._xmouse - (map.box._width / 2);
map.box._y = map._ymouse - (map.box._height / 2);
if (map.box._x < 0) {
map.box._x = 0;
}
if (map.box._y < 0) {
map.box._y = 0;
}
if ((map.box._x + map.box._width) > mapwidth) {
map.box._x = mapwidth - map.box._width;
}
if ((map.box._y + map.box._height) > mapheight) {
map.box._y = mapheight - map.box._height;
}
land._x = (-map.box._x) / scalewidth;
land._y = (-map.box._y) / scaleheight;
}
if (((Key.isDown(83) or Key.isDown(40)) or (ymouse > 490)) and ((landheight + land._y) > stageheight)) {
land._y = land._y - scrollspeed;
if ((landheight + land._y) < stageheight) {
land._y = stageheight - landheight;
}
map.box._y = (-land._y) * scaleheight;
}
if (((Key.isDown(87) or Key.isDown(38)) or (ymouse < 20)) and (land._y < 0)) {
land._y = land._y + scrollspeed;
if (land._y > 0) {
land._y = 0;
}
map.box._y = (-land._y) * scaleheight;
}
if (((Key.isDown(65) or Key.isDown(37)) or (xmouse < 20)) and (land._x < 0)) {
land._x = land._x + scrollspeed;
if (land._x > 0) {
land._x = 0;
}
map.box._x = (-land._x) * scalewidth;
}
if (((Key.isDown(68) or Key.isDown(39)) or (xmouse > 535)) and ((landwidth + land._x) > stagewidth)) {
land._x = land._x - scrollspeed;
if ((landwidth + land._x) < stagewidth) {
land._x = stagewidth - landwidth;
}
map.box._x = (-land._x) * scalewidth;
}
if ((Key.isDown(90) and turret_shop.buy_turret_btn1._visible) and (turret_shop.buy_turret_btn1._alpha == 100)) {
dragged_turret._visible = (cancelsign._visible = true);
dragged_turret.gun.gotoAndStop(1);
}
if ((Key.isDown(88) and turret_shop.buy_turret_btn2._visible) and (turret_shop.buy_turret_btn2._alpha == 100)) {
dragged_turret._visible = (cancelsign._visible = true);
dragged_turret.gun.gotoAndStop(2);
}
if ((Key.isDown(67) and turret_shop.buy_turret_btn3._visible) and (turret_shop.buy_turret_btn3._alpha == 100)) {
dragged_turret._visible = (cancelsign._visible = true);
dragged_turret.gun.gotoAndStop(3);
}
if (Key.isDown(32)) {
dragged_turret._visible = (cancelsign._visible = false);
}
} else {
if (jarak_active <= 250) {
speed_map = speed_map * 0.9;
}
if (speed_map < 2) {
speed_map = 2;
}
land._x = land._x + (speed_map * speed_active_x);
land._y = land._y - (speed_map * speed_active_y);
jarak_active = jarak_active - speed_map;
if (jarak_active <= 0) {
land._x = destination_active_x;
land._y = destination_active_y;
active_change = false;
}
map.box._x = (-land._x) * scalewidth;
map.box._y = (-land._y) * scaleheight;
}
}
}
stop();
temp_score = total_score;
temp_enemies_killed = enemies_killed;
activate_sign._visible = false;
if (minimap_selected_pointer == 1) {
activate_sign._visible = true;
}
time_display._visible = false;
if (minimap_selected_pointer == 3) {
time_display._visible = true;
}
if (minimap_selected_pointer == 12) {
time_display._visible = true;
}
if (minimap_selected_pointer == 19) {
time_display._visible = true;
}
if (minimap_selected_pointer == 20) {
time_display._visible = true;
}
if (minimap_selected_pointer == 23) {
time_display._visible = true;
}
score = 0;
regenmoneytimer = 40;
getmoneypersecond = regenmoney_array[regenmoney_lv - 1];
winloseanim.gotoAndStop(1);
winloseanim.endgame.gotoAndStop(1);
minimapbg.gotoAndStop(minimap_selected_pointer + 1);
land.bg.gotoAndStop(minimap_selected_pointer + 1);
land.tree.gotoAndStop(minimap_selected_pointer + 1);
land.atas.gotoAndStop(minimap_selected_pointer + 1);
land.atas._visible = false;
land.building_area.gotoAndStop(minimap_selected_pointer + 1);
land.perimeter_range._visible = false;
money = basemoney_array[basemoney_lv - 1];
turret_price_array = [turret_builtprice_array[0] * turret_builtpricepercentage_array[turret_builtprice_lv[0] - 1], turret_builtprice_array[1] * turret_builtpricepercentage_array[turret_builtprice_lv[1] - 1], turret_builtprice_array[2] * turret_builtpricepercentage_array[turret_builtprice_lv[2] - 1]];
var i = 0;
while (i < 3) {
turret_price_array[i] = Math.round(turret_price_array[i]);
i++;
}
turret_hp_array = [turret_maxhp_array[0][turret_maxhp_lv[0] - 1], turret_maxhp_array[1][turret_maxhp_lv[1] - 1], turret_maxhp_array[2][turret_maxhp_lv[2] - 1]];
landwidth_array = [1000, 1000, 1000, 1000, 1000, 1200, 1200, 1200, 1200, 1200, 1200, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600];
landheight_array = [1000, 1000, 1000, 1000, 1000, 1200, 1200, 1200, 1200, 1200, 1200, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600];
landwidth = landwidth_array[minimap_selected_pointer];
landheight = landheight_array[minimap_selected_pointer];
num_building = 0;
for (var i in land.building_area) {
num_building++;
}
building_alive = num_building;
max_turret = structure_maxturret_array[structure_maxturret_lv - 1];
menangkalah = 0;
_root.turret_price1 = turret_price_array[0];
_root.turret_price2 = turret_price_array[1];
_root.turret_price3 = turret_price_array[2];
info_panel = "";
wave_skip = false;
enemyonscreen = 0;
wave_number = 0;
enemyspawned = 0;
wavebar._visible = true;
wavebutton._visible = true;
wave_timer = init_wave_timer / 5;
wave_sign_appear = init_wave_timer * 0.99;
wave_init();
var i = 1;
while (i <= 3) {
turret_shop["buy_turret_btn" + i].isi = i;
turret_shop["buy_turret_btn" + i].onRollOver = function () {
info_panel = info_content[this.isi - 1];
this.gotoAndStop(2);
};
turret_shop["buy_turret_btn" + i].onRollOut = function () {
info_panel = "";
this.gotoAndStop(1);
};
turret_shop["buy_turret_btn" + i].onPress = function () {
if (this._alpha == 100) {
dragged_turret._visible = (cancelsign._visible = true);
dragged_turret.gun.gotoAndStop(this.isi);
}
};
turret_shop["buy_turret_btn" + i].onEnterFrame = function () {
this._alpha = 100;
turret_shop["buy_turret_price" + this.isi]._alpha = 100;
if (turret_price_array[this.isi - 1] > money) {
this._alpha = 50;
turret_shop["buy_turret_price" + this.isi]._alpha = 50;
}
};
turret_shop["buy_turret_btn" + i]._visible = turret_available_array[i - 1];
turret_shop["buy_turret_price" + i]._visible = turret_available_array[i - 1];
i++;
}
var i = 1;
while (i <= 6) {
upgrade_shop["upgrade_btn" + i].isi = i;
if (i < 6) {
upgrade_shop["upgrade_btn" + i].gotoAndStop(1);
upgrade_shop["upgrade_btn" + i].onRollOver = function () {
info_panel = info_content[this.isi + 2];
this.gotoAndStop(2);
};
upgrade_shop["upgrade_btn" + i].onRollOut = function () {
info_panel = "";
this.gotoAndStop(1);
};
}
upgrade_shop["upgrade_btn" + i].onPress = function () {
if ((!game_pause) and (this._alpha == 100)) {
upgrade_done(this.isi - 1);
}
};
upgrade_shop["upgrade_btn" + i].onEnterFrame = function () {
this._alpha = 100;
upgrade_shop["upgrade_price" + this.isi]._alpha = 100;
if ((((upgrade_shop["upgrade_prc" + this.isi] > money) or (upgrade_shop["upgrade_prc" + this.isi] == "MAX")) or (selected_turret.idle_timer > 0)) or (!this._parent._visible)) {
this._alpha = 50;
upgrade_shop["upgrade_price" + this.isi]._alpha = 50;
}
};
i++;
}
upgrade_shop.upgrade_btn6.onRollOver = function () {
info_panel = info_content[this._currentframe + 7];
this.btn.gotoAndStop(2);
};
upgrade_shop.upgrade_btn6.onRollOut = function () {
info_panel = "";
this.btn.gotoAndStop(1);
};
game_pause = false;
if (mute) {
mute_but.gotoAndStop(2);
bgm.setVolume(0);
} else {
mute_but.gotoAndStop(1);
bgm.setVolume(100);
}
counter = 10;
active_group = 1;
stagewidth = 550;
stageheight = 400;
mapwidth = map.perimeter._width;
mapheight = map.perimeter._height;
map.box._width = (mapwidth * stagewidth) / landwidth;
map.box._height = (mapheight * stageheight) / landheight;
map.box._x = ((-land._x) / stagewidth) * map.box._width;
map.box._y = ((-land._y) / stageheight) * map.box._height;
scalewidth = map.box._width / stagewidth;
scaleheight = map.box._height / stageheight;
map.perimeter.cacheAsBitmap = true;
map.box.cacheAsBitmap = true;
map.useHandCursor = false;
scrollspeed = 12;
enemy_count = 0;
dragged_turret._visible = false;
dragged_turret.gun.gotoAndStop(1);
dragged_turret.hpbar._visible = (dragged_turret.redbar._visible = (dragged_turret.progress_circle._visible = false));
startDrag (dragged_turret, true);
selected_turret = undefined;
sellbutton._visible = false;
cancelsign._visible = false;
active_info_display();
map.onPress = function () {
mapmove = true;
};
map.onRelease = function () {
mapmove = false;
};
map.onReleaseOutside = function () {
mapmove = false;
};
var structure = new Array(num_building + 1);
var i = 1;
while (i <= num_building) {
building(land.building_area["d" + i], i, structure_maxhp_array[structure_maxhp_lv - 1], structure_turretarea_array[structure_turretarea_lv - 1]);
i++;
}
active_selected(active_group);
var i = 1;
while (i <= num_building) {
structure[i].onPress = function () {
if (this.perim.hitTest(xmouse, ymouse, true)) {
if (this.hp > 0) {
active_group = this._group;
var _local2 = 1;
while (_local2 <= num_building) {
structure[_local2].node.ring.gotoAndStop(1);
_local2++;
}
this.node.ring.gotoAndStop(2);
land.active_circle._width = (land.active_circle._height = this.range._width + 7);
land.active_circle._x = this._x;
land.active_circle._y = this._y;
}
}
if ((((((this.hp > 0) and (this.num_turret < max_turret)) and (!land.atas.hitTest(xmouse, ymouse, true))) and dragged_turret._visible) and this.range.hitTest(xmouse, ymouse, true)) and (!this.perim.hitTest(dragged_turret.perim))) {
var _local3 = true;
var _local2 = 1;
while (_local2 <= this.num_turret) {
if (this["turret" + _local2].perim.hitTest(dragged_turret.perim)) {
_local3 = false;
break;
}
_local2++;
}
if (((_local3 and (!game_pause)) and (ymouse <= stageheight)) and (money >= turret_price_array[dragged_turret.gun._currentframe - 1])) {
dragged_turret._visible = (cancelsign._visible = false);
money = money - turret_price_array[dragged_turret.gun._currentframe - 1];
built_turret(xmouse - land._x, ymouse - land._y, dragged_turret.gun._currentframe, this._group, turret_hp_array[dragged_turret.gun._currentframe - 1]);
}
}
};
i++;
}
onEnterFrame = main_game;
Instance of Symbol 617 MovieClip "mute_but" in Frame 23
on (release) {
_root.mute = !_root.mute;
if (_root.mute) {
_root.mute_but.gotoAndStop(2);
_root.bgm.setVolume(0);
} else {
_root.mute_but.gotoAndStop(1);
_root.bgm.setVolume(100);
}
}
Frame 26
function worldmap_check() {
if (world_map.bigmap._x > 0) {
world_map.bigmap._x = 0;
}
if (world_map.bigmap._x < -354) {
world_map.bigmap._x = -354;
}
if (world_map.bigmap._y > 0) {
world_map.bigmap._y = 0;
}
if (world_map.bigmap._y < -301) {
world_map.bigmap._y = -301;
}
}
stop();
missionresultanim.gotoAndStop(1);
missionresultanim._visible = false;
if (menangkalah == 1) {
missionresultanim._visible = true;
bpgained = int(score / 10);
bp = bp + bpgained;
missionresultanim.gotoAndPlay(2);
}
status_turretavail1 = "AVAILABLE";
status_turretavail2 = "NONE";
if (turret_available_array[1]) {
status_turretavail2 = "AVAILABLE";
}
status_turretavail3 = "NONE";
if (turret_available_array[2]) {
status_turretavail3 = "AVAILABLE";
}
structure_maxhp = structure_maxhp_array[structure_maxhp_lv - 1];
structure_turretallowed = structure_maxturret_array[structure_maxturret_lv - 1];
structure_turretarea = structure_turretarea_array[structure_turretarea_lv - 1];
money = basemoney_array[basemoney_lv - 1];
getmoneypersecond = regenmoney_array[regenmoney_lv - 1];
minimap_selected_pointer = undefined;
if (minimap_last_winned != undefined) {
if (minimap_last_winned == 20) {
gotoAndPlay ("ending1");
}
if (minimap_last_winned == 22) {
gotoAndPlay ("ending2");
}
if (minimap_last_winned == 23) {
gotoAndPlay ("ending3");
}
map_mission_status[minimap_last_winned] = 2;
var i = 0;
while (i <= 23) {
if (map_mission_status[i] != 2) {
map_displayed[i] = 0;
} else {
map_displayed[i] = 100;
}
i++;
}
if (next_count[minimap_last_winned] >= 1) {
map_mission_status[next1[minimap_last_winned]] = 1;
}
if (next_count[minimap_last_winned] >= 2) {
map_mission_status[next2[minimap_last_winned]] = 1;
}
minimap_current_pointer = minimap_last_winned;
} else {
minimap_current_pointer = 0;
map_mission_status[0] = 1;
}
world_map.bigmap._x = (-world_map.bigmap[map_mc[minimap_current_pointer]]._x) + 90;
world_map.bigmap._y = (-world_map.bigmap[map_mc[minimap_current_pointer]]._y) + 70;
worldmap_check();
var i = 0;
while (i <= 23) {
world_map.bigmap[map_mc[i]]._alpha = map_displayed[i];
world_map.bigmap[map_mc[i]]._visible = true;
world_map.bigmap[map_mc[i]].gotoAndStop(i + 1);
world_map.bigmap[map_mc[i]].blink._visible = false;
world_map.bigmap[map_mc[i]].completed_sign._visible = false;
world_map.bigmap[map_mc[i]].mapbox._visible = false;
world_map.bigmap[map_mc[i]].isi = i;
if (map_mission_status[i] == 0) {
world_map.bigmap[map_mc[i]]._visible = false;
}
if (map_mission_status[i] == 2) {
world_map.bigmap[map_mc[i]].completed_sign._visible = true;
}
world_map.bigmap[map_mc[i]].onRollOver = function () {
if (map_mission_status[this.isi] == 1) {
this.blink.gotoAndPlay(1);
this.blink._visible = true;
}
};
world_map.bigmap[map_mc[i]].onRollOut = (world_map.bigmap[map_mc[i]].onDragOut = function () {
this.blink._visible = false;
});
world_map.bigmap[map_mc[i]].onPress = function () {
if ((map_mission_status[this.isi] == 1) and (menangkalah != 1)) {
var _local2 = 0;
while (_local2 <= 23) {
world_map.bigmap[map_mc[_local2]].mapbox._visible = false;
_local2++;
}
this.mapbox._visible = true;
minimap_selected_pointer = this.isi;
mission_name = mission_name_array[minimap_selected_pointer];
jumlah_gedung = jumlah_gedung_array[minimap_selected_pointer];
victory_condition = victory_condition_array[minimap_selected_pointer];
keterangan_misi = keterangan_misi_array[minimap_selected_pointer];
enterwarzone_btn._visible = true;
}
};
world_map.bigmap[map_mc[i]].onEnterFrame = function () {
if (((menangkalah != 1) and (map_mission_status[this.isi] == 1)) and (map_displayed[this.isi] < 100)) {
map_displayed[this.isi] = map_displayed[this.isi] + 2;
this._alpha = map_displayed[this.isi];
}
};
i++;
}
mission_name = "";
jumlah_gedung = "";
victory_condition = "";
keterangan_misi = "";
yes._visible = (no._visible = false);
enterwarzone_btn._visible = false;
onEnterFrame = function () {
if (menangkalah != 1) {
if (Key.isDown(83) or Key.isDown(40)) {
world_map.bigmap._y = world_map.bigmap._y - 15;
}
if (Key.isDown(87) or Key.isDown(38)) {
world_map.bigmap._y = world_map.bigmap._y + 15;
}
if (Key.isDown(65) or Key.isDown(37)) {
world_map.bigmap._x = world_map.bigmap._x + 15;
}
if (Key.isDown(68) or Key.isDown(39)) {
world_map.bigmap._x = world_map.bigmap._x - 15;
}
}
worldmap_check();
};
Frame 30
stop();
basemoney_bp = [150, 300];
regenmoney_bp = [150, 300];
turret_provide_bp = [0, 80, 160];
turret_regen_bp = [20, 40, 60];
turret_maxhp_bp = [[20, 30], [30, 40], [40, 50]];
turret_builttime_bp = [[40, 50], [50, 60], [60, 70]];
turret_builtprice_bp = [[40, 50], [50, 60], [60, 70]];
structure_maxhp_bp = [75, 150];
structure_regen_bp = [75, 150];
structure_maxturret_bp = [30, 60];
structure_turretarea_bp = [30, 60];
maxhp_button.onRelease = function () {
if ((structure_maxhp_lv < 3) and (bp >= structure_maxhp_bp[structure_maxhp_lv - 1])) {
bp = bp - structure_maxhp_bp[structure_maxhp_lv - 1];
structure_maxhp_lv++;
}
};
regen_button.onRelease = function () {
if ((structure_regen_lv < 3) and (bp >= structure_regen_bp[structure_regen_lv - 1])) {
bp = bp - structure_regen_bp[structure_regen_lv - 1];
structure_regen_lv++;
}
};
maxturret_button.onRelease = function () {
if ((structure_maxturret_lv < 3) and (bp >= structure_maxturret_bp[structure_maxturret_lv - 1])) {
bp = bp - structure_maxturret_bp[structure_maxturret_lv - 1];
structure_maxturret_lv++;
}
};
turretarea_button.onRelease = function () {
if ((structure_turretarea_lv < 3) and (bp >= structure_turretarea_bp[structure_turretarea_lv - 1])) {
bp = bp - structure_turretarea_bp[structure_turretarea_lv - 1];
structure_turretarea_lv++;
}
};
basemoney_button.onRelease = function () {
if ((basemoney_lv < 3) and (bp >= basemoney_bp[basemoney_lv - 1])) {
bp = bp - basemoney_bp[basemoney_lv - 1];
basemoney_lv++;
}
};
regenmoney_button.onRelease = function () {
if ((regenmoney_lv < 3) and (bp >= regenmoney_bp[regenmoney_lv - 1])) {
bp = bp - regenmoney_bp[regenmoney_lv - 1];
regenmoney_lv++;
}
};
turretbuy2_button.onRelease = function () {
if ((!turret_available_array[1]) and (bp >= turret_provide_bp[1])) {
turret_available_array[1] = true;
bp = bp - turret_provide_bp[1];
}
};
turretbuy3_button.onRelease = function () {
if ((!turret_available_array[2]) and (bp >= turret_provide_bp[2])) {
turret_available_array[2] = true;
bp = bp - turret_provide_bp[2];
}
};
var i = 1;
while (i <= 3) {
_root["turretshop" + i].isi = i;
_root["turretshop" + i].regen_button.onRelease = function () {
if ((!turret_regen_enable[this._parent.isi - 1]) and (bp >= turret_regen_bp[this._parent.isi - 1])) {
turret_regen_enable[this._parent.isi - 1] = true;
bp = bp - turret_regen_bp[this._parent.isi - 1];
}
};
_root["turretshop" + i].maxhp_button.onRelease = function () {
if ((turret_maxhp_lv[this._parent.isi - 1] < 3) and (bp >= turret_maxhp_bp[this._parent.isi - 1][turret_maxhp_lv[this._parent.isi - 1] - 1])) {
bp = bp - turret_maxhp_bp[this._parent.isi - 1][turret_maxhp_lv[this._parent.isi - 1] - 1];
turret_maxhp_lv[this._parent.isi - 1]++;
}
};
_root["turretshop" + i].time_button.onRelease = function () {
if ((turret_builttime_lv[this._parent.isi - 1] < 3) and (bp >= turret_builttime_bp[this._parent.isi - 1][turret_builttime_lv[this._parent.isi - 1] - 1])) {
bp = bp - turret_builttime_bp[this._parent.isi - 1][turret_builttime_lv[this._parent.isi - 1] - 1];
turret_builttime_lv[this._parent.isi - 1]++;
}
};
_root["turretshop" + i].price_button.onRelease = function () {
if ((turret_builtprice_lv[this._parent.isi - 1] < 3) and (bp >= turret_builtprice_bp[this._parent.isi - 1][turret_builtprice_lv[this._parent.isi - 1] - 1])) {
bp = bp - turret_builtprice_bp[this._parent.isi - 1][turret_builtprice_lv[this._parent.isi - 1] - 1];
turret_builtprice_lv[this._parent.isi - 1]++;
}
};
i++;
}
onEnterFrame = function () {
var _local2 = 1;
while (_local2 <= 3) {
if (turret_available_array[_local2 - 1]) {
_root["turretshop" + _local2]._visible = true;
_root[("turretbuy" + _local2) + "_button"]._visible = false;
_root[("turretbuy" + _local2) + "_prc"] = "$OLD";
} else {
_root["turretshop" + _local2]._visible = false;
_root[("turretbuy" + _local2) + "_button"]._visible = true;
_root[("turretbuy" + _local2) + "_prc"] = turret_provide_bp[_local2 - 1];
}
if (turret_regen_enable[_local2 - 1]) {
_root["turretshop" + _local2].regen_button._visible = false;
_root["turretshop" + _local2].regen_prc = "$OLD";
} else {
_root["turretshop" + _local2].regen_button._visible = true;
_root["turretshop" + _local2].regen_prc = turret_regen_bp[_local2 - 1];
}
if (turret_maxhp_lv[_local2 - 1] >= 3) {
_root["turretshop" + _local2].maxhp_button._visible = false;
_root["turretshop" + _local2].maxhp_prc = "$OLD";
} else {
_root["turretshop" + _local2].maxhp_button._visible = true;
_root["turretshop" + _local2].maxhp_prc = turret_maxhp_bp[_local2 - 1][turret_maxhp_lv[_local2 - 1] - 1];
}
if (turret_builttime_lv[_local2 - 1] >= 3) {
_root["turretshop" + _local2].time_button._visible = false;
_root["turretshop" + _local2].time_prc = "$OLD";
} else {
_root["turretshop" + _local2].time_button._visible = true;
_root["turretshop" + _local2].time_prc = turret_builttime_bp[_local2 - 1][turret_builttime_lv[_local2 - 1] - 1];
}
if (turret_builtprice_lv[_local2 - 1] >= 3) {
_root["turretshop" + _local2].price_button._visible = false;
_root["turretshop" + _local2].price_prc = "$OLD";
} else {
_root["turretshop" + _local2].price_button._visible = true;
_root["turretshop" + _local2].price_prc = turret_builtprice_bp[_local2 - 1][turret_builtprice_lv[_local2 - 1] - 1];
}
_local2++;
}
if (structure_maxhp_lv < 3) {
maxhp_button._visible = true;
maxhp_prc = structure_maxhp_bp[structure_maxhp_lv - 1];
} else {
maxhp_button._visible = false;
maxhp_prc = "$OLD";
}
if (structure_regen_lv < 3) {
regen_button._visible = true;
regen_prc = structure_regen_bp[structure_regen_lv - 1];
} else {
regen_button._visible = false;
regen_prc = "$OLD";
}
if (structure_maxturret_lv < 3) {
maxturret_button._visible = true;
maxturret_prc = structure_maxturret_bp[structure_maxturret_lv - 1];
} else {
maxturret_button._visible = false;
maxturret_prc = "$OLD";
}
if (structure_turretarea_lv < 3) {
turretarea_button._visible = true;
turretarea_prc = structure_turretarea_bp[structure_turretarea_lv - 1];
} else {
turretarea_button._visible = false;
turretarea_prc = "$OLD";
}
if (basemoney_lv < 3) {
basemoney_button._visible = true;
basemoney_prc = basemoney_bp[basemoney_lv - 1];
} else {
basemoney_button._visible = false;
basemoney_prc = "$OLD";
}
if (regenmoney_lv < 3) {
regenmoney_button._visible = true;
regenmoney_prc = regenmoney_bp[regenmoney_lv - 1];
} else {
regenmoney_button._visible = false;
regenmoney_prc = "$OLD";
}
};
Frame 33
onEnterFrame = function () {
};
Frame 37
total_score = 0;
enemies_killed = 0;
gotoAndStop ("world_map");
Frame 42
stop();
onEnterFrame = function () {
};
Frame 45
stop();
onEnterFrame = function () {
};
Frame 48
stop();
onEnterFrame = function () {
};
Symbol 10 MovieClip Frame 1
_root.stop();
Symbol 10 MovieClip Frame 7
loaderbar.gotoAndStop(Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
if ((_root.getBytesLoaded() / _root.getBytesTotal()) < 1) {
gotoAndPlay (5);
}
Symbol 10 MovieClip Frame 11
_root.play();
Symbol 860 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.35");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static function addLinkEvent(url, burl, btn, onClick) {
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
var _local3;
var _local2 = new LoadVars();
var timeout = 1500;
var t0 = getTimer();
var ping = this.createEmptyMovieClip("ping", 777);
this.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
delete this.ping;
getURL (url + s, "_blank");
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
delete this.ping;
getURL (burl, "_blank");
}
};
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
if (onClick != undefined) {
onClick();
}
};
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 861 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 17 MovieClip Frame 77
stop();
Symbol 98 MovieClip Frame 164
stop();
_root.play();
Symbol 108 MovieClip Frame 135
stop();
Symbol 110 MovieClip Frame 136
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
stop();
Symbol 267 MovieClip [explode] Frame 25
this.removeMovieClip();
Symbol 284 MovieClip [missile_explode] Frame 17
this.removeMovieClip();
Symbol 289 MovieClip Frame 17
_parent.removeMovieClip();
Symbol 325 MovieClip Frame 100
gotoAndPlay (1);
Symbol 346 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 123
_root.play();
Symbol 360 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 363 Button
on (release) {
_root.gotoAndStop("world_map");
}
Symbol 365 MovieClip Frame 1
stop();
Symbol 366 Button
on (release) {
if (_root.my_so.data.bp != undefined) {
_root.loadgame();
_root.gotoAndStop("world_map");
}
}
Symbol 369 Button
on (release) {
_root.gotoAndStop("instruction");
}
Symbol 371 MovieClip Frame 1
stop();
Symbol 372 Button
on (release) {
mochi.MochiScores.showLeaderboard({boardID:_root.mochiscoreID});
_root.gotoAndStop("hsc");
}
Symbol 375 Button
on (release) {
getURL ("http://www.playedonline.com", "_blank");
}
Symbol 376 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 377 MovieClip Frame 66
loadbutton._alpha = 100;
if (_root.my_so.data.bp == undefined) {
loadbutton._alpha = 50;
}
Symbol 377 MovieClip Frame 89
stop();
Symbol 380 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 584 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 1
stop();
Symbol 621 Button
on (release) {
_root._quality = "LOW";
}
Symbol 623 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 625 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 697 Button
on (release) {
if (!_root.game_pause) {
_root.selected_turret.sold = true;
}
}
Symbol 700 Button
on (release) {
_root.pause_menu._x = 250;
_root.pause_menu.yes._visible = false;
_root.pause_menu.no._visible = false;
_root.game_pause = true;
}
Symbol 702 Button
on (release) {
if (((!_root.game_pause) and (wave_sign_appear >= wave_timer)) and (!_root.wave_skip)) {
voice2.start(0, 1);
_root.wave_skip = true;
}
}
Symbol 723 Button
on (release) {
this._x = 1000;
_root.game_pause = false;
}
Symbol 727 Button
on (release) {
yes._visible = true;
no._visible = true;
}
Symbol 730 Button
on (release) {
_root.total_score = _root.temp_score;
_root.enemies_killed = _root.temp_enemies_killed;
_root.gotoAndStop("world_map");
}
Symbol 733 Button
on (release) {
yes._visible = false;
no._visible = false;
}
Symbol 739 MovieClip Frame 1
stop();
Symbol 740 MovieClip Frame 1
stop();
Symbol 740 MovieClip Frame 106
if (_root.menangkalah == 1) {
_root.minimap_last_winned = _root.minimap_selected_pointer;
_root.gotoAndStop("world_map");
} else {
mochi.MochiScores.showLeaderboard({boardID:_root.mochiscoreID, score:_root.total_score});
_root.gotoAndStop("hsc2");
}
Symbol 786 Button
on (release) {
_root.savegame();
}
Symbol 789 Button
on (release) {
if (_root.menangkalah != 1) {
gotoAndStop ("shop");
}
}
Symbol 792 Button
on (release) {
gotoAndStop ("game_on");
}
Symbol 793 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 807 MovieClip Frame 123
_root.menangkalah = 0;
stop();
Symbol 810 Button
on (release) {
gotoAndStop ("world_map");
}
Symbol 852 MovieClip Frame 2398
stop();
Symbol 853 Button
on (release) {
mochi.MochiScores.showLeaderboard({boardID:_root.mochiscoreID, score:_root.total_score});
_root.gotoAndStop("hsc");
}
Symbol 856 MovieClip Frame 2193
stop();
Symbol 859 MovieClip Frame 2058
stop();