Frame 1
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
trace("sitelocked");
_root.npLogo.gotoAndStop(2);
adTime = 2600000 /* 0x27AC40 */;
}
}
if (lock) {
adTime = 0;
var _local3 = "1183QFD52451D";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + _local3);
}
}
function preloader() {
if (adTime < 2600000) {
adTime = adTime + 8666.66666666667;
}
idn = Math.floor(((((_root.getBytesLoaded() - firstFrame) / (_root.getBytesTotal() - firstFrame)) * 100) * adTime) / 2600000);
loadedtxt.text = idn + "%";
if (idn == 100) {
_root.loadingPlay.gotoAndStop(2);
_root.removeMovieClip(adBox);
_root.mascara._x = 1000;
_root.loadbar._x = 1000;
delete _root.onEnterFrame;
}
idn = (origin / 100) * idn;
mascara.clear();
mascara.beginFill(0);
mascara.moveTo(0, 0);
mascara.lineTo(0, loadbar._height);
mascara.lineTo(idn, loadbar._height);
mascara.lineTo(idn, 0);
mascara.lineTo(0, 0);
mascara.endFill();
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
qualidade = 2;
Stage.showMenu = false;
stop();
mochi.as2.MochiServices.connect("ab795851a78278ea");
npLogo.onRelease = function () {
getURL ("http://notdoppler.com/?ref=diepixheroes-01", "_blank");
};
urls_allowed = ["chat.kongregate.com", "www.chat.kongregate.com", "www.kongregate.com", "www.notdoppler.com", "notdoppler.com"];
sitelock(urls_allowed);
mascara = _root.createEmptyMovieClip("mascara", _root.getNextHighestDepth());
mascara._x = loadbar._x;
mascara._y = loadbar._y;
origin = loadbar._width;
loadbar.setMask(mascara);
firstFrame = 374940 /* 0x05B89C */;
_root.onEnterFrame = preloader;
preloader();
__com_mochibot__("1ad70118", this, 10301, true);
quality1.onRelease = function () {
_root.qualidade = 1;
_root.qualitySelector._y = this._y;
};
quality2.onRelease = function () {
_root.qualidade = 2;
_root.qualitySelector._y = this._y;
};
quality3.onRelease = function () {
_root.qualidade = 3;
_root.qualitySelector._y = this._y;
};
Frame 2
function getAwards() {
}
function processar() {
((so.data.finalScore < _root.finalscore) ? ((so.data.finalScore = _root.finalscore)) : "");
((so.data.maxCombos < _root.maxcombo) ? ((so.data.maxCombos = _root.maxcombo)) : "");
so.data.inimigosMortos = so.data.inimigosMortos + _root.nowKilledEnemies;
so.flush();
}
stop();
_root.mouse._alpha = 0;
Frame 4
english.onRelease = function () {
_root.box.language = "en";
_root.gotoAndStop(5);
};
portugues.onRelease = function () {
_root.box.language = "pt";
_root.gotoAndStop(5);
};
Frame 5
function mutar() {
_root.mudo = (_root.mudo ? false : true);
if (_root.mudo) {
music_menu.setVolume(0);
music_game.setVolume(0);
music_boss.setVolume(0);
music_end.setVolume(0);
did.setVolume(0);
over.setVolume(0);
tiroson.setVolume(0);
explosao.setVolume(0);
up.setVolume(0);
edie.setVolume(0);
phealth.setVolume(0);
alvo.setVolume(0);
_root.box.volume = 0;
} else {
music_menu.setVolume(100);
music_game.setVolume(100);
music_boss.setVolume(100);
music_end.setVolume(100);
did.setVolume(100);
over.setVolume(100);
tiroson.setVolume(100);
explosao.setVolume(100);
up.setVolume(100);
edie.setVolume(100);
phealth.setVolume(100);
alvo.setVolume(100);
_root.box.volume = 100;
}
}
_x = 0;
_root.box.volume = 0;
stop();
_root.mouse._alpha = 0;
Mouse.show();
stopAllSounds();
music_end = new Sound();
music_end.attachSound("end");
music_end.onSoundComplete = function () {
music_end.start();
};
music_game = new Sound();
music_game.attachSound("chap1");
music_game.onSoundComplete = function () {
music_game.start();
};
music_win = new Sound();
music_win.attachSound("win");
music_win.onSoundComplete = function () {
music_win.start();
};
music_menu = new Sound();
music_menu.attachSound("mmenu");
music_menu.onSoundComplete = function () {
music_menu.start();
};
did = new Sound();
did.attachSound("did");
over = new Sound();
over.attachSound("over");
tiroson = new Sound();
tiroson.attachSound("Tiro");
explosao = new Sound();
explosao.attachSound("edie");
up = new Sound();
up.attachSound("up");
edie = new Sound();
edie.attachSound("pop");
phealth = new Sound();
phealth.attachSound("phealth");
alvo = new Sound();
alvo.attachSound("alvo");
diepixArena.onRelease = function () {
getURL ("http://www.notdoppler.com/diepixarena.php", "_blank");
};
i = 0;
while (i <= 100) {
_root["tiroe" + i]._alpha = 0;
_root["tiroe" + i]._x = -100;
_root["tiro" + i]._alpha = 0;
_root["tiro" + i]._x = -100;
i++;
}
_root.mudo = false;
attachMovie("tip", "tip", _root.getNextHighestDepth());
tip._visible = false;
tip.onEnterFrame = function () {
if (_root.destroy) {
this._visible = false;
}
};
var so = SharedObject.getLocal("diepix");
if (so.data.engineer == undefined) {
so.data.engineer = false;
}
if (so.data.destroyer == undefined) {
so.data.destroyer = false;
}
so.data.maxCombos = ((so.data.maxCombos == undefined) ? 0 : (so.data.maxCombos));
so.data.finalScore = ((so.data.finalScore == undefined) ? 0 : (so.data.finalScore));
so.data.inimigosMortos = ((so.data.inimigosMortos == undefined) ? 0 : (so.data.inimigosMortos));
so.data.wave = ((so.data.wave == undefined) ? 0 : (so.data.wave));
so.data.unlocked = ((so.data.unlocked == undefined) ? 0 : (so.data.unlocked));
so.data.firstTime = ((so.data.firstTime == undefined) ? true : (so.data.firstTime));
_root.kongregateStats.submit("finalScore", so.data.finalScore);
_root.kongregateStats.submit("maxCombo", so.data.maxCombos);
_root.kongregateStats.submit("enemiesKilled", so.data.inimigosMortos);
_root.kongregateStats.submit("waveReached", so.data.wave);
_root.destroy = true;
btn_play.onRelease = function () {
_root.gotoAndStop("chapter");
};
HS.onRelease = function () {
var _local2 = {n:[1, 0, 15, 5, 14, 8, 0, 9, 2, 8, 13, 4, 7, 12, 11, 2], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local3 = _local2.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local3});
};
_root._quality = "HIGH";
NP.onRelease = function () {
getURL ("http://notdoppler.com/?ref=diepixheroes-03", "_blank");
};
creditos.onRelease = function () {
_root.gotoAndStop(6);
};
if (_root.box.language == "pt") {
this.developed.text = "DESENVOLVIDO POR: MATHEUS28 E AWOKE";
}
submitScore.onRelease = function () {
var _local3 = {n:[1, 0, 15, 5, 14, 8, 0, 9, 2, 8, 13, 4, 7, 12, 11, 2], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local4 = _local3.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local4, score:_root.box.overScore});
};
_root.box.onEnterFrame();
if (_root.box.overScore > 0) {
_root.overScore.text = _root.box.overScore;
} else {
_root.submitScore._visible = 0;
_root.overScore._alpha = 0;
_root.overScoreText._alpha = 0;
}
Frame 6
btn_back.onRelease = function () {
_root.gotoAndStop("pmenu");
};
stop();
if (_root.box.language == "pt") {
credits.text = "CR\u00C9DITOS";
cred1.text = "C\u00D3DIGO E ARTE";
cred2.text = "CORRE\u00C7\u00C3O GRAMATICAL";
cred3.text = "M\u00DASICA";
cred4.text = "PATROC\u00CDNIO";
cred5.text = "TESTADORES";
cred6.text = "AGRADECIMENTOS";
}
_root.box.volume = 0;
Frame 7
gotoAndStop (5);
Frame 8
function checkAwards() {
}
function createHero() {
switch (_root.selecao) {
case 0 :
_root.attachMovie("shooter", "heroi", _root.getNextHighestDepth());
break;
case 1 :
_root.attachMovie("machineGun", "heroi", _root.getNextHighestDepth());
break;
case 2 :
_root.attachMovie("sniper", "heroi", _root.getNextHighestDepth());
break;
case 3 :
_root.attachMovie("engineer", "heroi", _root.getNextHighestDepth());
break;
case 4 :
_root.attachMovie("destroyer", "heroi", _root.getNextHighestDepth());
}
heroi._x = 170.5;
heroi._y = 269;
heroi._xscale = (heroi._yscale = 90);
}
function updateInfos() {
fundo.level.text = _root.heroi.atrib.level;
combo = _root.heroi.atrib.combo;
fundo.scored.text = _root.heroi.atrib.score;
points = _root.heroi.atrib.points / 3.75;
if (points >= 1) {
_root.shadow.upgrade._alpha = 100;
} else {
_root.shadow.upgrade._alpha = 0;
}
power.barra._xscale = ((_root.heroi.atrib.dano - 1) * 100) / 7;
speed.barra._xscale = ((_root.heroi.atrib.velocidade - 1) * 100) / 7;
reload.barra._xscale = ((_root.heroi.atrib.recarregar - 1) * 100) / 7;
fundo.armorText.text = Math.floor((_root.heroi.atrib.hp / 15) * 1000);
}
function levelupup() {
if (_root.ignore == false) {
levelUpText._y--;
levelUpText._alpha = levelUpText._alpha - 2.5;
if (levelUpText._alpha == 0) {
clearInterval(lvlupi);
}
}
}
function criarInimigo() {
if (_root.pausar) {
return(undefined);
}
if (inimigos[nivelAtual][numero] == undefined) {
if (_root.inimigosMortos >= inimigos[nivelAtual].length) {
nivelAtual++;
inispa = 12;
if (nivelAtual >= 10) {
fundo.wave.wave2.text = nivelAtual;
} else {
fundo.wave.wave2.text = "0" + nivelAtual;
}
if (_root.so.data.wave < (nivelAtual + (27 * _root.chapter))) {
_root.so.data.wave = nivelAtual + (27 * _root.chapter);
_root.so.flush();
}
if (_root.inimigos[nivelAtual][0] == undefined) {
_root.finalscore = _root.heroi.atrib.score;
_root.checkAwards();
if ((_root.chapter == 1) && (_root.heroi.atrib.score > _root.box.score.data.awokeChapScore)) {
_root.box.score.data.awokeChapScore = _root.heroi.atrib.score;
chapWon = 1;
}
if ((_root.chapter == 2) && (_root.heroi.atrib.score > _root.box.score.data.matheusChapScore)) {
_root.box.score.data.matheusChapScore = _root.heroi.atrib.score;
chapWon = 2;
}
_root.gotoAndStop("win");
_root.destroy = true;
return(undefined);
}
if ((nivelAtual == 25) && (_root.chapter == 1)) {
_root.heroi.recuperar();
}
if ((nivelAtual == 32) && (_root.chapter == 2)) {
_root.heroi.recuperar();
}
wave = ((nivelAtual >= 26) ? "BOSS" : ("Wave " + nivelAtual));
numero = 0;
inimigosMortos = 0;
inispa = 0;
inilim = true;
}
_root.canDu = true;
return(undefined);
}
_root.icache++;
if (_root.icache > 8) {
_root.icache = 1;
}
_root["inimigo" + _root.icache].removeMovieClip();
atalho = _root.attachMovie(inimigos[nivelAtual][numero], "inimigo" + _root.icache, _root.getNextHighestDepth());
portao = Math.floor(Math.random() * 4) + 1;
atalho._x = _root.fundo["gate" + portao]._x + _root.fundo._x;
atalho._y = _root.fundo["gate" + portao]._y + _root.fundo._y;
numero++;
}
stop();
_root._x = 144;
_root.maxtcache = 100;
if (_root.mudo) {
music_menu.setVolume(0);
music_game.setVolume(0);
music_boss.setVolume(0);
music_end.setVolume(0);
did.setVolume(0);
over.setVolume(0);
tiroson.setVolume(0);
explosao.setVolume(0);
up.setVolume(0);
edie.setVolume(0);
phealth.setVolume(0);
alvo.setVolume(0);
_root.box.volume = 0;
} else {
music_menu.setVolume(100);
music_game.setVolume(100);
music_boss.setVolume(100);
music_end.setVolume(100);
did.setVolume(100);
over.setVolume(100);
tiroson.setVolume(100);
explosao.setVolume(100);
up.setVolume(100);
edie.setVolume(100);
phealth.setVolume(100);
alvo.setVolume(100);
_root.box.volume = 100;
}
_root.pressSpaceBar._alpha = 0;
chapWon = 0;
_root.scache = 0;
mcache = 0;
cheater = false;
ewarn._alpha = true;
btn_more.onRelease = function () {
getURL ("http://notdoppler.com/?ref=diepixheroes-05", "_blank");
};
devMore.onRelease = function () {
getURL ("http://awokerr.newgrounds.com/flash/", "_blank");
};
if (_root.box.language == "pt") {
_root.text2.text = "DISPON\u00CDVEL";
_root.info1.text = "PODER";
_root.info2.text = "RECARGA";
_root.info3.text = "VELOCIDADE";
_root.bt1.text = "VOLTA";
_root.bt2.text = "VAI";
}
i = 0;
a = 0;
spawninterval = 2;
shake_i = 0;
shaker = _root.createEmptyMovieClip("shaker", _root.getNextHighestDepth());
_root.shake = function () {
if (_root.qualidade != 3) {
_root.shake_n = 8;
_root.shake_i = random(5);
shaker.onEnterFrame = function () {
_root.shake_i++;
_root.shake_n--;
if (_root.shake_n < 0) {
delete shaker.onEnterFrame;
}
_root._y = Math.round(Math.sin(shake_i) * _root.shake_n);
};
}
};
stopAllSounds();
inispa = 0;
inilim = false;
pausar = false;
destroy = false;
finalscore = 0;
maxcombo = 0;
_root.mouse._alpha = 100;
Mouse.hide();
nowKilledEnemies = 0;
drop = new flash.filters.DropShadowFilter(3, 45, 0, 0.5, 3, 3, 1, 1, false, false, false);
inimigosMortos = 0;
cache = 0;
armorbar.barra._xscale = 0;
expbar.barra._xscale = 0;
icache = 1;
switch (_root.qualidade) {
case 1 :
_root._quality = "HIGH";
break;
case 2 :
_root._quality = "HIGH";
break;
case 3 :
_root._quality = "LOW";
}
_root.tiroecache = 0;
_root.ignore = false;
_root.onEnterFrame = function () {
if (_root.fundo.hitTest(mouse._x, mouse._y, yes)) {
_root.pausar = false;
} else if (_root.mouse._x >= 415) {
_root.pausar = true;
}
if (_root.pausar) {
_root.tutorial1._visible = false;
_root.ignore = true;
_root._x = 0;
_root.shadow.gotoAndStop(2);
} else {
_root.shadow.gotoAndStop(1);
_root._x = 144;
_root.ignore = false;
}
if (_root.destroy) {
delete this.onEnterFrame;
}
inispa++;
if (inispa >= 8) {
criarInimigo();
if (inilim) {
__i = 0;
while (__i <= 8) {
_root["inimigo" + __i].removeMovieClip();
__i++;
}
inilim = false;
}
inispa = 0;
}
};
btn_mute.onRelease = function () {
mutar();
};
btn_menu.onRelease = function () {
_root.confirm._x = 539.5;
_root.confirm._y = 172.3;
};
i = 1;
while (i <= 5) {
_root["trail" + i].gotoAndStop(_root.selecao + 1);
i++;
}
levelUpText._alpha = 0;
_root.levelup = function (silent) {
if (silent != true) {
up.start();
}
levelUpText._alpha = 90;
levelUpText._y = heroi._y;
levelUpText._x = heroi._x;
clearInterval(lvlupi);
lvlupi = setInterval(levelupup, 40);
};
createHero();
updateInfos();
startGame();
fpscmc = _root.createEmptyMovieClip("fpscmc", _root.getNextHighestDepth());
fpscmc.onEnterFrame = function () {
if (_root.destroy) {
fpscounter = 0;
_root.pausar = false;
clearInterval(fpsintervalo);
this.removeMovieClip();
return(undefined);
}
fpscounter++;
if (Key.isDown(69) && (_root.ignore == false)) {
_root.pausar = true;
} else if (_root.ignore == false) {
_root.pausar = false;
}
};
numero = 0;
nivelAtual = 0;
inimigos = new Array();
inimigos[0] = new Array();
_root.box.chap1.setVolume(_root.box.volume);
_root.box.chap1.start(0, 999);
if (chapter == 1) {
bossWave = 25;
_root.bossName = "boss";
inimigos[1] = new Array("enemy08", "enemy08", "enemy08", "enemy08");
inimigos[2] = new Array("enemy08", "enemy08", "enemy08", "enemy08", "enemy08", "enemy08");
inimigos[3] = new Array("enemy08", "enemy08", "enemy08", "enemy08", "enemy08", "enemy08", "enemy08", "enemy08");
inimigos[4] = new Array("enemy08", "enemy09", "enemy08", "enemy09", "enemy08", "enemy09", "enemy08", "enemy09");
inimigos[5] = new Array("enemy08", "enemy09", "enemy09", "enemy09", "enemy09", "enemy09", "enemy08", "enemy09");
inimigos[6] = new Array("enemy09", "enemy09", "enemy09", "enemy09", "enemy09", "enemy09", "enemy09", "enemy09");
inimigos[7] = new Array("enemy10", "enemy10", "enemy09", "enemy09", "enemy10", "enemy10", "enemy09", "enemy09");
inimigos[8] = new Array("enemy10", "enemy10", "enemy09", "enemy10", "enemy10", "enemy10", "enemy10", "enemy09");
inimigos[9] = new Array("enemy10", "enemy10", "enemy10", "enemy10", "enemy10", "enemy10", "enemy10", "enemy10");
inimigos[10] = new Array("enemy11", "enemy10", "enemy10", "enemy11", "enemy10", "enemy11", "enemy11", "enemy10");
inimigos[11] = new Array("enemy11", "enemy11", "enemy10", "enemy11", "enemy11", "enemy10", "enemy11", "enemy11");
inimigos[12] = new Array("enemy11", "enemy11", "enemy11", "enemy11", "enemy11", "enemy11", "enemy11", "enemy11");
inimigos[13] = new Array("enemy11", "enemy12", "enemy12", "enemy12", "enemy12", "enemy11", "enemy11", "enemy11");
inimigos[14] = new Array("enemy12", "enemy12", "enemy12", "enemy12", "enemy12", "enemy11", "enemy12", "enemy11");
inimigos[15] = new Array("enemy12", "enemy12", "enemy12", "enemy12", "enemy12", "enemy12", "enemy12", "enemy12");
inimigos[16] = new Array("enemy12", "enemy13", "enemy12", "enemy13", "enemy12", "enemy13", "enemy13", "enemy12");
inimigos[17] = new Array("enemy13", "enemy13", "enemy13", "enemy13", "enemy12", "enemy13", "enemy13", "enemy12");
inimigos[18] = new Array("enemy13", "enemy13", "enemy13", "enemy13", "enemy13", "enemy13", "enemy13", "enemy13");
inimigos[19] = new Array("enemy13", "enemy14", "enemy13", "enemy14", "enemy13", "enemy14", "enemy13", "enemy14");
inimigos[20] = new Array("enemy13", "enemy14", "enemy14", "enemy14", "enemy14", "enemy14", "enemy13", "enemy14");
inimigos[21] = new Array("enemy14", "enemy14", "enemy14", "enemy14", "enemy14", "enemy14", "enemy14", "enemy14");
inimigos[22] = new Array("enemy14", "enemy15", "enemy14", "enemy15", "enemy14", "enemy15", "enemy14", "enemy15");
inimigos[23] = new Array("enemy15", "enemy15", "enemy14", "enemy15", "enemy15", "enemy15", "enemy14", "enemy15");
inimigos[24] = new Array("enemy15", "enemy15", "enemy15", "enemy15", "enemy15", "enemy15", "enemy15", "enemy15");
inimigos[25] = new Array("boss");
} else if (chapter == 2) {
bossWave = 32;
_root.bossName = "boss2";
inimigos[1] = new Array("enemy16", "enemy16", "enemy16", "enemy16");
inimigos[2] = new Array("enemy16", "enemy16", "enemy16", "enemy16", "enemy16", "enemy16");
inimigos[3] = new Array("enemy16", "enemy16", "enemy16", "enemy16", "enemy16", "enemy16", "enemy16", "enemy16");
inimigos[4] = new Array("enemy16", "enemy17", "enemy16", "enemy17", "enemy16", "enemy16", "enemy16", "enemy16");
inimigos[5] = new Array("enemy17", "enemy17", "enemy16", "enemy17", "enemy17", "enemy16", "enemy17", "enemy17");
inimigos[6] = new Array("enemy17", "enemy17", "enemy18", "enemy17", "enemy17", "enemy18", "enemy17", "enemy17");
inimigos[7] = new Array("enemy18", "enemy17", "enemy18", "enemy17", "enemy17", "enemy18", "enemy17", "enemy18");
inimigos[8] = new Array("enemy18", "enemy18", "enemy18", "enemy17", "enemy18", "enemy18", "enemy17", "enemy18");
inimigos[9] = new Array("enemy18", "enemy18", "enemy18", "enemy18", "enemy19", "enemy18", "enemy19", "enemy18");
inimigos[10] = new Array("enemy18", "enemy19", "enemy19", "enemy18", "enemy19", "enemy18", "enemy19", "enemy18");
inimigos[11] = new Array("enemy19", "enemy19", "enemy19", "enemy19", "enemy19", "enemy18", "enemy19", "enemy18");
inimigos[12] = new Array("enemy19", "enemy19", "enemy19", "enemy19", "enemy19", "enemy20", "enemy19", "enemy20");
inimigos[13] = new Array("enemy19", "enemy20", "enemy20", "enemy19", "enemy19", "enemy20", "enemy19", "enemy20");
inimigos[14] = new Array("enemy20", "enemy20", "enemy20", "enemy19", "enemy19", "enemy20", "enemy20", "enemy20");
inimigos[15] = new Array("enemy20", "enemy20", "enemy20", "enemy22", "enemy22", "enemy20", "enemy20", "enemy20");
inimigos[16] = new Array("enemy20", "enemy22", "enemy20", "enemy22", "enemy22", "enemy20", "enemy22", "enemy20");
inimigos[17] = new Array("enemy22", "enemy22", "enemy20", "enemy22", "enemy22", "enemy22", "enemy22", "enemy20");
inimigos[18] = new Array("enemy22", "enemy22", "enemy23", "enemy22", "enemy22", "enemy22", "enemy22", "enemy23");
inimigos[19] = new Array("enemy22", "enemy22", "enemy23", "enemy22", "enemy22", "enemy23", "enemy23", "enemy23");
inimigos[20] = new Array("enemy22", "enemy23", "enemy23", "enemy22", "enemy23", "enemy23", "enemy23", "enemy23");
inimigos[21] = new Array("enemy24", "enemy23", "enemy23", "enemy24", "enemy23", "enemy23", "enemy23", "enemy23");
inimigos[22] = new Array("enemy24", "enemy24", "enemy23", "enemy24", "enemy23", "enemy24", "enemy23", "enemy23");
inimigos[23] = new Array("enemy24", "enemy24", "enemy24", "enemy24", "enemy23", "enemy24", "enemy24", "enemy23");
inimigos[24] = new Array("enemy24", "enemy24", "enemy24", "enemy24", "enemy15", "enemy24", "enemy24", "enemy15");
inimigos[25] = new Array("enemy24", "enemy15", "enemy15", "enemy24", "enemy15", "enemy24", "enemy24", "enemy15");
inimigos[26] = new Array("enemy24", "enemy15", "enemy15", "enemy15", "enemy15", "enemy15", "enemy24", "enemy15");
inimigos[27] = new Array("enemy25", "enemy15", "enemy15", "enemy15", "enemy15", "enemy15", "enemy25", "enemy15");
inimigos[28] = new Array("enemy25", "enemy15", "enemy15", "enemy25", "enemy15", "enemy25", "enemy25", "enemy15");
inimigos[29] = new Array("enemy25", "enemy25", "enemy15", "enemy25", "enemy25", "enemy25", "enemy25", "enemy15");
inimigos[30] = new Array("enemy25", "enemy25", "enemy25", "enemy15", "enemy25", "enemy25", "enemy25", "enemy25");
inimigos[31] = new Array("enemy25", "enemy25", "enemy25", "enemy25", "enemy25", "enemy25", "enemy25", "enemy25");
inimigos[32] = new Array("boss2");
}
_root.tip._alpha = 100;
Instance of Symbol 378 MovieClip "mouse" in Frame 8
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
this.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 392 MovieClip in Frame 8
onClipEvent (load) {
this.swaper2.gotoAndStop(_root.qualidade);
}
on (release) {
this.swaper2.play();
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 398 MovieClip "c" in Frame 8
on (release) {
_root.heroi.addAtrib(2);
}
on (rollOver) {
if ((_root.heroi.atrib.points > 0) && (_root.heroi.atrib.recarregar < 8)) {
this.gotoAndStop(3);
}
_root.tip._x = _root._xmouse;
_root.tip._y = _root._ymouse;
_root.tip.texto.text = "Rate of Fire decreases the time of reload.";
if (_root.box.language == "pt") {
_root.tip.texto.text = "Recarga faz com que voc\u00EA atire mais vezes por minuto.";
}
_root.tip._visible = true;
}
on (rollOut) {
if ((_root.heroi.atrib.points > 0) && (_root.heroi.atrib.recarregar < 8)) {
this.gotoAndStop(1);
}
_root.tip._visible = false;
}
onClipEvent (mouseDown) {
if ((_root.heroi.atrib.points > 0) && (_root.heroi.atrib.recarregar < 8)) {
this.gotoAndStop(1);
}
_root.tip._visible = false;
}
onClipEvent (mouseMove) {
if (_root.tip) {
_root.tip._x = _root._xmouse;
_root.tip._y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if ((_root.heroi.atrib.points <= 0) || (_root.heroi.atrib.recarregar >= 8)) {
this.useHandCursor = false;
this.gotoAndStop(2);
} else {
this.useHandCursor = true;
if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 398 MovieClip "b" in Frame 8
on (release) {
_root.heroi.addAtrib(1);
}
on (rollOver) {
if ((_root.heroi.atrib.points > 0) && (_root.heroi.atrib.velocidade < 8)) {
this.gotoAndStop(3);
}
_root.tip._x = _root._xmouse;
_root.tip._y = _root._ymouse;
_root.tip.texto.text = "Speed makes you move faster";
if (_root.box.language == "pt") {
_root.tip.texto.text = "Velocidade faz voc\u00EA se mover mais r\u00E1pido.";
}
_root.tip._visible = true;
}
on (rollOut) {
if ((_root.heroi.atrib.points > 0) && (_root.heroi.atrib.velocidade < 8)) {
this.gotoAndStop(1);
}
_root.tip._visible = false;
}
onClipEvent (mouseDown) {
if ((_root.heroi.atrib.points > 0) && (_root.heroi.atrib.velocidade < 8)) {
this.gotoAndStop(1);
}
_root.tip._visible = false;
}
onClipEvent (mouseMove) {
if (_root.tip) {
_root.tip._x = _root._xmouse;
_root.tip._y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if ((_root.heroi.atrib.points <= 0) || (_root.heroi.atrib.velocidade >= 8)) {
this.useHandCursor = false;
this.gotoAndStop(2);
} else {
this.useHandCursor = true;
if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 398 MovieClip "a" in Frame 8
on (release) {
_root.heroi.addAtrib(0);
}
on (rollOver) {
if ((_root.heroi.atrib.points > 0) && (_root.heroi.atrib.dano < 8)) {
this.gotoAndStop(3);
}
_root.tip._x = _root._xmouse;
_root.tip._y = _root._ymouse;
_root.tip.texto.text = "Power increases the damage made by your bullets.";
if (_root.box.language == "pt") {
_root.tip.texto.text = "Poder aumenta o dano causado por seus proj\u00E9teis.";
}
_root.tip._visible = true;
}
on (rollOut) {
if ((_root.heroi.atrib.points > 0) && (_root.heroi.atrib.dano < 8)) {
this.gotoAndStop(1);
}
_root.tip._visible = false;
}
onClipEvent (mouseDown) {
if ((_root.heroi.atrib.points > 0) && (_root.heroi.atrib.dano < 8)) {
this.gotoAndStop(1);
}
_root.tip._visible = false;
}
onClipEvent (mouseMove) {
if (_root.tip) {
_root.tip._x = _root._xmouse;
_root.tip._y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if ((_root.heroi.atrib.points <= 0) || (_root.heroi.atrib.dano >= 8)) {
this.useHandCursor = false;
this.gotoAndStop(2);
} else {
this.useHandCursor = true;
if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 402 MovieClip [btn_blanck2] "btn_mute" in Frame 8
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 402 MovieClip [btn_blanck2] "btn_menu" in Frame 8
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Frame 9
stop();
stopAllSounds();
music_end.start();
_root.destroy = true;
processar();
getAwards();
((nivelAtual >= 26) ? "Boss" : (nivelAtual));
btn_back.onRelease = function () {
_root.gotoAndStop("pmenu");
};
diepixArena.onRelease = function () {
getURL (" http://www.notdoppler.com/diepixarena.php", "_blank");
};
i = 0;
while (i <= 100) {
_root["tiroe" + i]._alpha = 0;
_root["tiro" + i]._alpha = 0;
i++;
}
_root.overScore.text = _root.box.overScore;
_root._quality = "HIGH";
if (_root.box.language == "pt") {
_root.text1.text = "VOC\u00CA PERDEU";
_root.text2.text = "tente novamente...";
_root.text3.text = "Pontua\u00E7\u00E3o";
}
Frame 10
_root._x = 0;
stop();
stopAllSounds();
music_win.start();
_root.destroy = true;
processar();
getAwards();
_root._x = 144;
btn_back.onRelease = function () {
_root.gotoAndStop("pmenu");
};
i = 0;
while (i <= 100) {
_root["tiroe" + i]._alpha = 0;
_root["tiro" + i]._alpha = 0;
i++;
}
submit.onRelease = function () {
_root.gotoAndStop(13);
};
_root.overScore.text = _root.box.overScore;
_root._quality = "HIGH";
if (_root.box.language == "pt") {
_root.text0.text = "PARAB\u00C9NS!";
_root.text1.text = "VOC\u00CA VENCEU";
_root.text2.text = "Agora esta regi\u00E3o est\u00E1 segura e humanos podem viver em paz.";
_root.text3.text = "Pontua\u00E7\u00E3o";
}
btn_more.onRelease = function () {
getURL ("http://notdoppler.com/?ref=diepixheroes-06", "_blank");
};
diepixArena.onRelease = function () {
getURL ("http://www.notdoppler.com/diepixarena.php", "_blank");
};
Instance of Symbol 436 MovieClip "prizes" in Frame 10
onClipEvent (load) {
if (_root.chapter == 1) {
if (!_root.so.data.engineer) {
_root.so.data.engineer = true;
} else {
gotoAndStop (3);
}
}
if (_root.chapter == 2) {
gotoAndStop (2);
if (!_root.so.data.destroyer) {
_root.so.data.destroyer = true;
} else {
gotoAndStop (3);
}
}
}
Frame 11
stop();
_x = 0;
_root.mouse._alpha = 0;
_root.box.volume = 0;
Mouse.show();
stopAllSounds();
_root.tip._visible = false;
_root.destroy = false;
if (so.data.engineer) {
dl._visible = false;
} else {
a3.useHandCursor = false;
}
if (so.data.destroyer) {
dl2._visible = false;
} else {
a4.useHandCursor = false;
}
btn_more.onRelease = function () {
getURL ("http://notdoppler.com/?ref=diepixheroes-04", "_blank");
};
selecao = 0;
onAnyClassChange = function () {
switch (selecao) {
case 0 :
classname.text = "SHOOTER";
specialdescription.text = "The Shooter was developed to move really fast.";
if (_root.box.language == "pt") {
classname.text = "ATIRADOR";
specialdescription.text = "O Atirador foi desenvolvido para se movimentar muito r\u00E1pido.";
}
cpower.barra._xscale = 80;
cspeed.barra._xscale = 80;
creload.barra._xscale = 60;
csspeed.barra._xscale = 60;
break;
case 1 :
classname.text = "MACHINE GUN";
specialdescription.text = "The Machine Gun is equipped with a very fast reload system, what makes him a very good vehicle.";
if (_root.box.language == "pt") {
classname.text = "METRALHADORA";
specialdescription.text = "A Metralhadora \u00E9 equipada com sistema de recarga r\u00E1pida, o que faz dela um ve\u00EDculo muito \u00E1gil.";
}
cpower.barra._xscale = 40;
cspeed.barra._xscale = 80;
creload.barra._xscale = 100;
csspeed.barra._xscale = 60;
break;
case 2 :
classname.text = "SNIPER";
specialdescription.text = "The Sniper is equipped with a system that shoots very strong bullets.";
if (_root.box.language == "pt") {
classname.text = "SNIPER";
specialdescription.text = "O Sniper \u00E9 equipado com um sistema que atira proj\u00E9teis muito poderosos.";
}
cpower.barra._xscale = 100;
cspeed.barra._xscale = 80;
creload.barra._xscale = 40;
csspeed.barra._xscale = 60;
break;
case 3 :
classname.text = "ENGINEER";
specialdescription.text = "The Engineer is able to build turrets to help him to destroy his enemies.";
if (_root.box.language == "pt") {
classname.text = "ENGENHEIRO";
specialdescription.text = "O Engenheiro \u00E9 capaz de construir ajudantes para ajuda-lo a destruir seus inimigos.";
}
cpower.barra._xscale = 80;
cspeed.barra._xscale = 80;
creload.barra._xscale = 80;
csspeed.barra._xscale = 80;
break;
case 4 :
classname.text = "DESTROYER";
specialdescription.text = "Destroyer is the most powerful vehicle. He can destroy almost everything with one shot.";
if (_root.box.language == "pt") {
classname.text = "DESTRUIDOR";
specialdescription.text = "O Destruidor \u00E9 o ve\u00EDculo mais poderoso. Ele pode destruir quase tudo com apenas um tiro.";
}
cpower.barra._xscale = 100;
cspeed.barra._xscale = 100;
creload.barra._xscale = 100;
csspeed.barra._xscale = 60;
}
select._x = _root["a" + selecao]._x;
select._y = _root["a" + selecao]._y;
charselection.gotoAndStop(selecao + 1);
};
onAnyClassChange();
btn_back.onRelease = function () {
_root.gotoAndStop(12);
};
btn_continue.onRelease = function () {
_root.gotoAndStop(8);
};
if (_root.box.language == "pt") {
_root.text1.text = "SELECIONE SEU VE\u00CDCULO";
_root.text2.text = "SOBRE";
_root.info1.text = "PODER";
_root.info2.text = "RECARGA";
_root.bt1.text = "VOLTA";
_root.bt2.text = "IR";
}
Instance of Symbol 463 MovieClip [selections] "a4" in Frame 11
onClipEvent (load) {
gotoAndStop (4);
}
on (release) {
if (!_root.so.data.engineer) {
_alpha = 100;
return(undefined);
}
_root.selecao = 3;
_root.onAnyClassChange();
}
Instance of Symbol 463 MovieClip [selections] "a4" in Frame 11
onClipEvent (load) {
gotoAndStop (5);
}
on (release) {
if (!_root.so.data.destroyer) {
_alpha = 100;
return(undefined);
}
_root.selecao = 4;
_root.onAnyClassChange();
}
Instance of Symbol 463 MovieClip [selections] "a1" in Frame 11
onClipEvent (load) {
gotoAndStop (2);
}
on (release) {
_root.selecao = 1;
_root.onAnyClassChange();
}
Instance of Symbol 463 MovieClip [selections] "a0" in Frame 11
onClipEvent (load) {
gotoAndStop (1);
}
on (release) {
_root.selecao = 0;
_root.onAnyClassChange();
}
Instance of Symbol 463 MovieClip [selections] "a2" in Frame 11
onClipEvent (load) {
gotoAndStop (3);
}
on (release) {
_root.selecao = 2;
_root.onAnyClassChange();
}
Instance of Symbol 469 MovieClip "charselection" in Frame 11
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 409 MovieClip "creload" in Frame 11
on (rollOver) {
_root.tip._x = _root._xmouse;
_root.tip._y = _root._ymouse;
_root.tip.texto.text = "Rate of Fire decreases the time of reload.";
if (_root.box.language == "pt") {
_root.tip.texto.text = "Recarga faz com que voc\u00EA atire mais vezes por minuto.";
}
_root.tip._visible = true;
}
on (rollOut) {
_root.tip._visible = false;
}
Instance of Symbol 409 MovieClip "cpower" in Frame 11
on (rollOver) {
_root.tip._x = _root._xmouse;
_root.tip._y = _root._ymouse;
_root.tip.texto.text = "Power increases the damage made by your bullets.";
if (_root.box.language == "pt") {
_root.tip.texto.text = "Poder aumenta o dano causado por seus proj\u00E9teis.";
}
_root.tip._visible = true;
}
on (rollOut) {
_root.tip._visible = false;
}
onClipEvent (mouseMove) {
if (_root.tip) {
_root.tip._x = _root._xmouse;
_root.tip._y = _root._ymouse;
}
}
Frame 12
stop();
stopAllSounds();
_root.box.volume = 0;
_x = 0;
cselect._x = cha1._x;
cselect._y = cha1._y;
cha1.onRelease = function () {
_root.chapter = 1;
_root.cselect._x = this._x;
_root.cselect._y = this._y;
_root.waves.text = "25";
_root.yourScore.text = _root.box.score.data.awokeChapScore;
if (_root.box.language == "en") {
_root.difficulty.text = "Normal";
_root.prize.text = "Engineer Vehicle";
_root.sector.text = "South";
}
if (_root.box.language == "pt") {
_root.difficulty.text = "M\u00E9dio";
_root.prize.text = "Ve\u00EDculo Engenheiro";
_root.sector.text = "Sul";
}
};
cha2.onRelease = function () {
_root.chapter = 2;
_root.cselect._x = this._x;
_root.cselect._y = this._y;
_root.waves.text = "32";
_root.yourScore.text = _root.box.score.data.matheusChapScore;
if (_root.box.language == "en") {
_root.difficulty.text = "Hard";
_root.prize.text = "Destroyer Vehicle";
_root.sector.text = "North";
}
if (_root.box.language == "pt") {
_root.difficulty.text = "Dif\u00EDcil";
_root.prize.text = "Ve\u00EDculo Destruidor";
_root.sector.text = "Norte";
}
};
if (_root.box.language == "pt") {
_root.text1.text = "Konquake - 2472 D.C";
_root.text2.text = "Nesta cidade esquecida pelos humanos, os rob\u00F4s se tornaram muito poderosos e come\u00E7aram a destruir tudo. Agora, nossos her\u00F3is, Awoke e Matheus, v\u00E3o recuperar a paz nesta cidade, mas eles v\u00E3o precisar de sua ajuda.";
_root.text3.text = "SELECIONE UM HER\u00D3I";
_root.info1.text = "Ondas";
_root.info2.text = "Dificuldade";
_root.info3.text = "Sua pontua\u00E7\u00E3o";
_root.info4.text = "Pr\u00EAmio";
_root.info5.text = "Setor";
_root.bt1.text = "VOLTA";
_root.bt2.text = "IR";
}
chapter = 1;
waves.text = "25";
difficulty.text = "Normal";
yourScore.text = _root.box.score.data.awokeChapScore;
_root.prize.text = "Engineer Vehicle";
_root.sector.text = "South";
if (_root.box.language == "pt") {
_root.difficulty.text = "M\u00E9dio";
_root.prize.text = "Ve\u00EDculo Engenheiro";
_root.sector.text = "Sul";
}
btn_back.onRelease = function () {
_root.gotoAndStop(5);
};
btn_continue.onRelease = function () {
_root.gotoAndStop(11);
};
Frame 13
var o = {n:[1, 0, 15, 5, 14, 8, 0, 9, 2, 8, 13, 4, 7, 12, 11, 2], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:_root.box.overScore});
_root._x = 0;
Frame 14
_root.gotoAndStop(10);
Symbol 10 MovieClip [npLoadingScreen] Frame 1
#initclip 53
Object.registerClass("npLoadingScreen", botao);
#endinitclip
stop();
Instance of Symbol 9 MovieClip "btn_more" in Symbol 10 MovieClip [npLoadingScreen] Frame 1
on (release) {
getURL ("http://www.notdoppler.com/", "_blank");
}
Symbol 11 MovieClip [npLogoBTN] Frame 1
#initclip 42
Object.registerClass("npLogoBTN", botao2);
#endinitclip
Symbol 13 MovieClip [Logo] Frame 1
#initclip 43
Object.registerClass("Logo", botao);
#endinitclip
Symbol 16 MovieClip [diepixArena] Frame 1
#initclip 44
Object.registerClass("diepixArena", botao);
#endinitclip
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 13
stop();
_root.box.score.data.killedEnemies++;
if (_parent.calc) {
_root.inimigosMortos++;
}
this.removeMovieClip();
Symbol 25 MovieClip [enemy23] Frame 1
#initclip 45
Object.registerClass("enemy23", enemy23);
#endinitclip
stop();
Symbol 25 MovieClip [enemy23] Frame 2
stop();
Symbol 29 MovieClip Frame 5
stop();
Symbol 31 MovieClip Frame 5
stop();
Symbol 34 MovieClip Frame 19
stop();
_root._x = 0;
this._parent.gameOver();
Symbol 36 MovieClip [engineer] Frame 1
#initclip 46
Object.registerClass("engineer", engineer);
#endinitclip
stop();
Symbol 36 MovieClip [engineer] Frame 4
stop();
Symbol 40 MovieClip Frame 5
stop();
Symbol 43 MovieClip Frame 5
stop();
Symbol 46 MovieClip [shooter] Frame 1
#initclip 47
Object.registerClass("shooter", shooter);
#endinitclip
stop();
Symbol 46 MovieClip [shooter] Frame 2
stop();
Symbol 46 MovieClip [shooter] Frame 3
stop();
Symbol 46 MovieClip [shooter] Frame 4
stop();
Symbol 46 MovieClip [shooter] Frame 10
stop();
Symbol 50 MovieClip Frame 5
stop();
Symbol 53 MovieClip Frame 5
stop();
Symbol 56 MovieClip [sniper] Frame 1
#initclip 48
Object.registerClass("sniper", sniper);
#endinitclip
stop();
Symbol 56 MovieClip [sniper] Frame 2
stop();
Symbol 56 MovieClip [sniper] Frame 3
stop();
Symbol 56 MovieClip [sniper] Frame 4
stop();
Symbol 56 MovieClip [sniper] Frame 10
stop();
Symbol 59 MovieClip [LoadPlay] Frame 1
#initclip 49
Object.registerClass("LoadPlay", botao);
#endinitclip
Symbol 70 MovieClip Frame 1
stop();
Instance of Symbol 59 MovieClip [LoadPlay] in Symbol 70 MovieClip Frame 2
on (release) {
_root.gotoAndStop(2);
}
Symbol 74 MovieClip [notGoodButton] Frame 1
#initclip 50
Object.registerClass("notGoodButton", botao);
#endinitclip
Symbol 76 MovieClip [goodButton] Frame 1
#initclip 51
Object.registerClass("goodButton", botao);
#endinitclip
Symbol 78 MovieClip [veryGoodButton] Frame 1
#initclip 52
Object.registerClass("veryGoodButton", botao);
#endinitclip
Symbol 505 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _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("3.02 as2");
}
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";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.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();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.as2.MochiServices.disconnect();
mochi.as2.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.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
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.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.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];
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
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 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._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:_listenChannel._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:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
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]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
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 () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 506 MovieClip [__Packages.botao2] Frame 0
class botao2 extends MovieClip
{
var gotoAndStop;
function botao2 () {
super();
}
function onEnterFrame() {
if (e) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
function onRollOver() {
e = true;
}
function onRollOut() {
e = false;
}
function onRelease() {
}
var e = false;
var onReleaseOutside = botao2.prototype.onRelease;
}
Symbol 507 MovieClip [__Packages.botao] Frame 0
class botao extends MovieClip
{
function botao () {
super();
_alpha = 70;
}
function onEnterFrame() {
if (e) {
_alpha = 100;
} else if (_alpha > 70) {
_alpha = _alpha - 4.28571428571429;
}
}
function onRollOver() {
e = true;
}
function onRollOut() {
e = false;
}
function onRelease() {
}
var e = false;
var _alpha = 70;
var onReleaseOutside = botao.prototype.onRelease;
}
Symbol 508 MovieClip [__Packages.enemy] Frame 0
class enemy extends MovieClip
{
var _alpha, _rotation, totalHP, _width, _height, _x, _y, _currentframe, removeMovieClip, gotoAndStop, a, dist_x, dist_y, distance, angle, speed, xspeed, yspeed, ref, distx, disty, distancia, gotoAndPlay, swapDepths, _xscale, _yscale, _name;
function enemy () {
super();
}
function onLoad() {
if (shooter) {
recarregar = recarregar + reloadtime;
}
if (disfarce) {
_alpha = 0;
}
olhar();
angulo = _rotation;
vx = Math.cos((angulo * Math.PI) / 180) * (velocidade + 1);
vy = Math.sin((angulo * Math.PI) / 180) * (velocidade + 1);
checkWalls();
totalHP = hp;
}
function checkWalls() {
var _local2 = _width / 2;
var _local3 = _height / 2;
if (_x > (384.3 - _local2)) {
vx = -Math.abs(vx);
_x = (384.3 - _local2) - 1;
todo = true;
}
if (_x < (-43 + _local2)) {
vx = Math.abs(vx);
_x = (-43 + _local2) + 1;
todo = true;
}
if (_y > (514.8 - _local3)) {
vy = -Math.abs(vy);
_y = (514.8 - _local3) - 1;
todo = true;
}
if (_y < (23.8 + _local3)) {
vy = Math.abs(vy);
_y = (23.8 + _local3) + 1;
todo = true;
}
}
function onEnterFrame() {
if ((valid == false) && (_currentframe == 1)) {
if (_root.qualidade == 3) {
_root.inimigosMortos++;
removeMovieClip();
return(undefined);
}
gotoAndStop(2);
}
if (_root.destroy) {
removeMovieClip();
return(undefined);
}
if (_root.pausar or (!valid)) {
return(undefined);
}
if (a._currentframe == 2) {
a.play();
}
if (movementType == 3) {
dist_x = _root.heroi._x - _x;
dist_y = _root.heroi._y - _y;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
angle = Math.atan2(dist_y, dist_x);
speed = (distance / velocidade) / 10;
xspeed = speed * Math.cos(angle);
yspeed = speed * Math.sin(angle);
_x = _x + (xspeed * 1.26);
_y = _y + (yspeed * 1.26);
_rotation = (angle * 180) / Math.PI;
}
if (piscaPisca) {
if (piscaPiscaFase == 1) {
if (_alpha > -50) {
_alpha = _alpha - 2.5;
} else {
piscaPiscaFase = 2;
}
} else if (_alpha < 100) {
_alpha = _alpha + 2.5;
} else {
piscaPiscaFase = 1;
}
}
if (((vx == 0) && (vy == 0)) && (movementType != -1)) {
callAction();
}
todo = false;
checkWalls();
if (todo) {
callAction();
}
if (look) {
olhar();
}
_x = _x + (vx * 1.05);
_y = _y + (vy * 1.05);
if (smoker) {
if (stime > 0) {
stime--;
} else {
_root.scache++;
ref = _root.attachMovie("smoke", "smoke" + _root.scache, _root.getNextHighestDepth());
ref.setup(_x, _y, ref);
stime = stime + 9;
}
}
if (movementType == 2) {
reCalcAngles();
}
if (shooter) {
if (recarregar > 0) {
recarregar = recarregar - 1;
} else {
shot();
}
}
if (pull) {
puller();
}
if (disfarce) {
distx = _root.heroi._x - _x;
disty = _root.heroi._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
if (distancia >= 250) {
_alpha = 0;
} else if ((distancia < 250) && (distancia > 150)) {
_alpha = 250 - distancia;
} else if (distancia <= 150) {
_alpha = 100;
}
}
if ((com.gskinner.sprites.CollisionDetection.checkForCollision(this, _root.heroi, 0) && (valid)) && (_root.heroi.valid)) {
_root.edie.start();
if (_root.qualidade != 3) {
gotoAndPlay(2);
}
if (_root.heroi.invencible == false) {
_root.hero.atrib.combo = Math.floor(_root.heroi.atrib.combo / 1.5);
}
morrer();
valid = false;
if (calc) {
_root.heroi.ganhar(expe);
}
if (_root.heroi.dano(dano)) {
return(undefined);
}
}
i = 1;
while (i <= 10) {
if ((com.gskinner.sprites.CollisionDetection.checkForCollision(this, _root["sentrygun" + i], 0) && (valid)) && (_root["sentrygun" + i].valid)) {
createHealth();
_root.edie.start();
if ((_root.qualidade == 1) or (_root.qualidade == 2)) {
gotoAndPlay(2);
}
morrer();
valid = false;
if (calc) {
_root.heroi.ganhar(expe);
}
if (_root.heroi.invencible == false) {
_root["sentrygun" + i].dano(dano);
}
}
i++;
}
}
function reCalcVxVy() {
var _local2 = _width / 2;
var _local3 = _height / 2;
if (_x == ((28.8 + _local2) + 1)) {
vx = 3;
} else if (_x == ((425.5 - _local2) - 1)) {
vx = -3;
}
if (_y == ((26.8 + _local3) + 1)) {
vy = 3;
} else if (_y == ((573.5 - _local3) - 1)) {
vy = -3;
}
olharFront();
}
function olharFront() {
angle = Math.atan(vy / vx) / (Math.PI/180);
if (vx < 0) {
angle = angle + 180;
}
if ((vx >= 0) && (vy < 0)) {
angle = angle + 360;
}
_rotation = angle;
}
function reCalcAngles() {
olhar();
angulo = _rotation;
vx = Math.cos((angulo * Math.PI) / 180) * (velocidade + 1);
vy = Math.sin((angulo * Math.PI) / 180) * (velocidade + 1);
}
function callAction() {
switch (movementType) {
case 0 :
reCalcVxVy();
break;
case 1 :
reCalcAngles();
break;
case 2 :
reCalcAngles();
}
}
function shot() {
createShot(_root.heroi._x, _root.heroi._y, shotSpeed, dano, _x, _y);
recarregar = recarregar + reloadtime;
}
function createShot(px, py, velocidade, dano, fx, fy, fh, adi, ra, crit, ip) {
cachear();
olhar();
_root["tiroe" + _root.tiroecache].removeMovieClip();
_root.box.tiroInimigo.setVolume(_root.box.volume);
_root.box.tiroInimigo.start(0, 1);
_root.attachMovie("tiromc2", "tiroe" + _root.tiroecache, _root.getNextHighestDepth());
_root["tiroe" + _root.tiroecache].direcao(px, py, velocidade, dano, fx, fy, fh, adi, ra, crit, ip, 1);
toFront();
_root["tiroe" + _root.tiroecache].tamanho = bulletSize;
return(_root["tiroe" + _root.tiroecache]);
}
function olhar() {
tmp[0] = _y - _root.heroi._y;
tmp[1] = _x - _root.heroi._x;
tmp[2] = Math.atan2(tmp[0], tmp[1]);
tmp[3] = tmp[2] / (Math.PI/180);
_rotation = tmp[3] + 180;
}
function morrer() {
_root.nowKilledEnemies++;
_alpha = 100;
}
function toFront() {
swapDepths(_root.getNextHighestDepth());
}
function checkCollision(tiro) {
_xscale = 150;
_yscale = 150;
ref = tiro;
if (ref == undefined) {
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, ref, 0) && (ref.valid)) {
hp = hp - ref.dano;
ref.valid = false;
ref._alpha = 0;
if (hp <= 0) {
createHealth();
_root.edie.start();
morrer();
_root.heroi.specialReload = _root.heroi.specialReload - Math.floor(totalHP);
if (_root.heroi.specialReload < 0) {
_root.heroi.specialReload = 0;
}
if (calc) {
_root.hero.atrib.combo++;
_root.heroi.ganhar(expe);
}
valid = false;
vx = (vy = 0);
if ((_root.qualidade == 1) or (_root.qualidade == 2)) {
gotoAndPlay(2);
_xscale = (_yscale = 100);
}
return(true);
}
if ((_root.qualidade == 1) or (_root.qualidade == 2)) {
a.gotoAndPlay(2);
}
}
_xscale = 100;
_yscale = 100;
return(false);
}
function puller() {
pulli++;
if (pulli >= 8) {
_root.scache++;
ref = _root.attachMovie("smokeB", "smokeB" + _root.scache, _root.getNextHighestDepth());
ref.setup(_root.heroi._x, _root.heroi._y, this);
toFront();
_root.heroi.toFront();
switch (_root.qualidade) {
case 1 :
pulli = 0;
break;
case 2 :
pulli = -4;
break;
case 3 :
pulli = -8;
}
}
tmp = Array();
tmp[0] = _root.heroi._y - _y;
tmp[1] = _root.heroi._x - _x;
tmp[2] = Math.atan2(tmp[0], tmp[1]);
tmp[3] = tmp[2] / (Math.PI/180);
tmp[4] = tmp[3] + 180;
_root.heroi.vx = _root.heroi.vx + (Math.cos((tmp[4] * Math.PI) / 180) * 0.5);
_root.heroi.vy = _root.heroi.vy + (Math.sin((tmp[4] * Math.PI) / 180) * 0.5);
}
function cachear() {
if (_root.tiroecache > 100) {
_root.tiroecache = 0;
} else {
_root.tiroecache++;
}
}
function createHealth() {
if (Math.round(Math.random() * 100) < health) {
createHealth();
ref = _root.attachMovie("health", _name + "h", _root.getNextHighestDepth());
ref._x = _x;
ref._y = _y;
_root.heroi.toFront();
}
}
var movementType = 0;
var shooter = false;
var look = false;
var valid = true;
var calc = true;
var todo = false;
var pull = false;
var smoker = false;
var count = 0;
var recarregar = 0;
var reloadtime = 50;
var health = 5;
var vx = 0;
var vy = 0;
var inix = 0;
var iniy = 0;
var hp = 0;
var dirx = 0;
var diry = 0;
var angulo = 0;
var dano = 2;
var expe = 0;
var tmp = new Array();
var i = 0;
var velocidade = 3.8;
var stime = 0;
var pulli = 0;
var shotSpeed = 3;
var bulletSize = 100;
var disfarce = false;
var piscaPisca = false;
var piscaPiscaFase = 1;
}
Symbol 509 MovieClip [__Packages.com.gskinner.sprites.CollisionDetection] Frame 0
class com.gskinner.sprites.CollisionDetection
{
function CollisionDetection () {
}
static function checkForCollision(p_clip1, p_clip2, p_alphaTolerance) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
var _local4 = p_clip1.getBounds(_root);
var _local3 = p_clip2.getBounds(_root);
if (((((_local4.xMax + 123) < (_local3.xMin + 123)) || ((_local3.xMax + 123) < (_local4.xMin + 123))) || (_local4.yMax < _local3.yMin)) || (_local3.yMax < _local4.yMin)) {
return(null);
}
var _local2 = {};
_local2.xMin = Math.max(_local4.xMin + 144, _local3.xMin + 144);
_local2.xMax = Math.min(_local4.xMax + 144, _local3.xMax + 144);
_local2.yMin = Math.max(_local4.yMin, _local3.yMin);
_local2.yMax = Math.min(_local4.yMax, _local3.yMax);
var _local7 = new flash.display.BitmapData(_local2.xMax - _local2.xMin, _local2.yMax - _local2.yMin, false);
var _local5 = p_clip1.transform.concatenatedMatrix;
_local5.tx = _local5.tx - _local2.xMin;
_local5.ty = _local5.ty - _local2.yMin;
_local7.draw(p_clip1, _local5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local5 = p_clip2.transform.concatenatedMatrix;
_local5.tx = _local5.tx - _local2.xMin;
_local5.ty = _local5.ty - _local2.yMin;
_local7.draw(p_clip2, _local5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local6 = _local7.getColorBoundsRect(4294967295, 4278255615);
_local7.dispose();
if (_local6.width == 0) {
return(null);
}
if (_local6.height == 0) {
return(null);
}
_local6.x = _local6.x + _local2.xMin;
_local6.y = _local6.y + _local2.yMin;
return(_local6);
}
}
Symbol 510 MovieClip [__Packages.enemy23] Frame 0
class enemy23 extends enemy
{
function enemy23 () {
super();
}
var movementType = 0;
var hp = 36;
var dano = 2;
var expe = 2450;
var velocidade = 6;
var smoker = true;
}
Symbol 511 MovieClip [__Packages.hero] Frame 0
class hero extends MovieClip
{
var filters, aganhar, _currentframe, gotoAndPlay, removeMovieClip, gotoAndStop, _width, _height, _x, _y, _rotation, swapDepths, ref;
function hero () {
super();
}
function onLoad() {
if (!engineer) {
specialReload = specialReload + specialReloadTime;
}
invencible = false;
var _local3 = new Array();
_local3.push(_root.drop);
filters = _local3;
atrib.hp = 15;
atrib.level = 1;
atrib.exp = 0;
atrib.score = 0;
atrib.points = 7.5;
atrib.need = 1000;
atrib.combo = 0;
atrib.dano = 1;
atrib.velocidade = 1;
atrib.recarregar = 1;
atrib.tiroVelocidade = 1;
if (aganhar != undefined) {
ganhar(aganhar, true);
atrib.combo = 0;
atrib.score = 0;
_root.leveluptxt._alpha = 0;
}
_root.updateInfos();
refreshSpecialBar();
}
function onMouseDown() {
atirando = true;
}
function onMouseUp() {
atirando = false;
}
function onEnterFrame() {
if (atrib.hp > 15) {
atrib.hp = 15;
}
if (_root.pausar) {
return(undefined);
}
if (valid == false) {
if (_currentframe == 1) {
gotoAndPlay("morrer");
}
return(undefined);
}
if (_root.destroy) {
removeMovieClip();
return(undefined);
}
if (specialReload > specialReloadTime) {
specialReload = specialReloadTime;
}
if ((specialUse > 0) && (usingSpecial)) {
specialUse--;
if (specialUse <= 0) {
onEndSpecial();
usingSpecial = false;
specialReload = specialReload + specialReloadTime;
if (!engineer) {
gotoAndStop("specialOff");
}
specialExtra = 1;
_root.specialBar._alpha = 0;
}
}
refreshSpecialBar();
tv = new Array(false, false, false, false);
tvx = 0;
tvy = 0;
if (Key.isDown(65) || (Key.isDown(37))) {
tv[0] = true;
tvx = tvx - getAtrib(1);
}
if (Key.isDown(68) || (Key.isDown(39))) {
tv[1] = true;
tvx = tvx + getAtrib(1);
}
if (Key.isDown(87) || (Key.isDown(38))) {
tv[2] = true;
tvy = tvy - getAtrib(1);
}
if (Key.isDown(83) || (Key.isDown(40))) {
tv[3] = true;
tvy = tvy + getAtrib(1);
}
if ((tv[0] || (tv[1])) && (tv[2] || (tv[3]))) {
tvx = tvx * 0.707;
tvy = tvy * 0.707;
}
vx = vx + (tvx * specialExtra);
vy = vy + (tvy * specialExtra);
vx = vx * 0.82;
vy = vy * 0.82;
var _local3 = _width / 2;
var _local4 = _height / 2;
while (_x > (384.3 - _local3)) {
vx = -(Math.abs(vx) * 0.85);
_x--;
}
while (_x < (-43 + _local3)) {
vx = Math.abs(vx) * 0.85;
_x++;
}
while (_y > (514.5 - _local4)) {
vy = -(Math.abs(vy) * 0.85);
_y--;
}
while (_y < (23.8 + _local4)) {
vy = Math.abs(vy) * 0.85;
_y++;
}
_x = _x + (vx * 1.1);
_y = _y + (vy * 1.1);
tmp[0] = _y - _root._ymouse;
tmp[1] = _x - _root._xmouse;
tmp[2] = Math.atan2(tmp[0], tmp[1]);
tmp[3] = (tmp[2] / (Math.PI/180)) - 180;
_rotation = tmp[3];
if (recarregar > 0) {
recarregar--;
} else if (((atirando && (recarregar <= 0)) && (_root._xmouse <= 450)) && (_root._ymouse <= 610)) {
fireNormal();
recarregar = recarregar + Math.ceil(getAtrib(2) / (reloadM * specialExtra));
toFront();
}
if (((specialReload <= 0) && (Key.isDown(32))) && (!usingSpecial)) {
if (onStartSpecial() != false) {
specialUse = specialUse + specialDuration;
usingSpecial = true;
refreshSpecialBar();
if (!engineer) {
gotoAndStop("specialOn");
specialExtra = 1.4;
}
_root.box.powerUp.setVolume(_root.box.volume);
_root.box.powerUp.start(0, 1);
}
}
}
function ganhar(qtd, silent) {
_root.maxcombo = Math.max(_root.maxcombo, atrib.combo);
atrib.combo++;
atrib.score = atrib.score + Math.round(qtd * atrib.combo);
if (atrib.level < 20) {
atrib.exp = atrib.exp + qtd;
while (atrib.exp >= atrib.need) {
_root.levelup(silent);
atrib.hp = atrib.hp + 8;
if (atrib.hp > 15) {
atrib.hp = 15;
}
atrib.level = atrib.level + 1;
getPoint();
atrib.exp = atrib.exp - atrib.need;
atrib.need = atrib.need * 1.3;
}
}
_root.updateInfos();
}
function addAtrib(id) {
if (atrib.points <= 0) {
return(undefined);
}
if (id == 0) {
if (atrib.dano < 8) {
atrib.dano = atrib.dano + 1;
// unexpected jump
}
return(undefined);
}
if (id == 1) {
if (atrib.velocidade < 8) {
atrib.velocidade = atrib.velocidade + 1;
// unexpected jump
}
return(undefined);
}
if (id == 2) {
if (atrib.recarregar < 8) {
atrib.recarregar = atrib.recarregar + 1;
// unexpected jump
}
return(undefined);
}
if (id == 3) {
if (atrib.tiroVelocidade < 6) {
atrib.tiroVelocidade = atrib.tiroVelocidade + 1;
// unexpected jump
}
return(undefined);
}
return(undefined);
atrib.points = atrib.points - 3.75;
_root.fez();
_root.updateInfos();
}
function dano(qtd) {
if (valid === false) {
return(undefined);
}
if (invencible == false) {
atrib.hp = atrib.hp - qtd;
if (qtd > 0) {
_root.shake();
}
atrib.combo = Math.floor(atrib.combo / 1.5);
}
if (qtd > 0) {
if (atrib.hp <= 0) {
_root.updateInfo();
_root._x = 0;
_root._y = 0;
gotoAndPlay("morrer");
_root._x = 0;
valid = false;
return(true);
}
if (usingSpecial == false) {
gotoAndPlay("piscar");
}
}
if (atrib.hp > 15) {
atrib.hp = 15;
}
_root.updateInfos();
return(false);
}
function getAtrib(id) {
if (id == 0) {
switch (atrib.dano) {
case 1 :
return(16);
case 2 :
return(18);
case 3 :
return(20);
case 4 :
return(22);
case 5 :
return(25);
case 6 :
return(28);
case 7 :
return(31);
case 8 :
return(34);
}
}
if (id == 1) {
switch (atrib.velocidade) {
case 1 :
return(1.6);
case 2 :
return(1.68);
case 3 :
return(1.76);
case 4 :
return(1.84);
case 5 :
return(1.92);
case 6 :
return(2);
case 7 :
return(2.08);
case 8 :
return(2.16);
}
}
if (id == 2) {
switch (atrib.recarregar) {
case 1 :
return(12);
case 2 :
return(11);
case 3 :
return(10);
case 4 :
return(9);
case 5 :
return(8);
case 6 :
return(7);
case 7 :
return(6);
case 8 :
return(5);
}
}
if (id == 3) {
if (!(atrib.tiroVelocidade === 1)) {
} else {
return(10);
}
}
}
function cachear() {
if (tirocache > _root.maxtcache) {
tirocache = 1;
} else {
tirocache++;
}
}
function recuperar() {
atrib.hp = 15;
_root.updateInfos();
}
function gameOver() {
_root.finalscore = atrib.score;
_root.gotoAndStop("lose");
if ((_root.chapter == 1) && (_root.heroi.atrib.score > _root.box.score.data.awokeChapScore)) {
_root.box.score.data.awokeChapScore = _root.heroi.atrib.score;
}
if ((_root.chapter == 2) && (_root.heroi.atrib.score > _root.box.score.data.matheusChapScore)) {
_root.box.score.data.matheusChapScore = _root.heroi.atrib.score;
}
_root.checkAwards();
removeMovieClip();
}
function toFront() {
swapDepths(_root.getNextHighestDepth());
}
function refreshSpecialBar() {
if ((specialReload == 0) && (specialDuration == 0)) {
_root.fundo.specialBar.progresso._xscale = 0;
return(undefined);
}
if (_root.fundo.specialBar.progresso._xscale < 0) {
_root.fundo.specialBar.progresso._xscale = 0;
}
if (usingSpecial) {
_root.fundo.specialBar.progresso._xscale = (specialUse / specialDuration) * 100;
_root.fundo.spaceBar._alpha = 0;
} else {
_root.fundo.specialBar.progresso._xscale = (((specialReload * -1) + specialReloadTime) / specialReloadTime) * 100;
if (_root.fundo.specialBar.progresso._xscale == 100) {
_root.fundo.spaceBar._alpha = 100;
}
}
}
function fireNormal() {
cachear();
createShot(_root._xmouse, _root._ymouse, 10, (getAtrib(0) * powerM) * specialExtra, _x, _y, this);
}
function createSentry() {
sentryCache++;
if (sentryCache > 10) {
sentryCache = 1;
}
ref = _root.attachMovie("sentry", "sentrygun" + sentryCache, _root.getNextHighestDepth());
ref._x = _x;
ref._y = _y;
ref._alpha = 100;
ref._x = ref._x + (Math.cos((_rotation * Math.PI) / 180) * 30);
ref._y = ref._y + (Math.sin((_rotation * Math.PI) / 180) * 30);
ref._rotation = _rotation + 180;
toFront();
}
function onStartSpecial() {
}
function onEndSpecial() {
}
function getPoint() {
atrib.points = atrib.points + 3.75;
}
function createShot(px, py, velocidade, dano, fx, fy, fh, adi, ra, ip) {
cachear();
_root["tiro" + tirocache].removeMovieClip();
_root.attachMovie("tiromc", "tiro" + tirocache, _root.getNextHighestDepth());
_root["tiro" + tirocache].direcao(px, py, velocidade, dano, fx, fy, fh, adi, ra, 0, ip);
if (specialExtra == 1.2) {
_root["tiro" + tirocache].corpo.gotoAndStop(2);
}
return(_root["tiro" + tirocache]);
}
function checkCollision(tiro) {
ref = tiro;
if (ref == undefined) {
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, ref) && (ref.valid == true)) {
_root.explosao.start();
if (invencible == false) {
atrib.combo = Math.floor(atrib.combo / 1.5);
dano(ref.dano);
}
ref.play();
ref.valid = false;
}
}
var recarregar = 0;
var tirocache = 1;
var vx = 0;
var vy = 0;
var tvx = 0;
var tvy = 0;
var tv = new Array();
var valid = true;
var atrib = {};
var tmp = new Array();
var filterArray = new Array();
var powerM = 1;
var reloadM = 1;
var specialReloadTime = 0;
var specialDuration = 0;
var specialReload = 0;
var specialUse = 0;
var usingSpecial = false;
var invencible = false;
var engineer = false;
var sentryCache = 1;
var specialExtra = 1;
var atirando = false;
}
Symbol 512 MovieClip [__Packages.engineer] Frame 0
class engineer extends hero
{
var _rotation, _x, _y, createSentry;
function engineer () {
super();
}
function onStartSpecial() {
if ((_x + (Math.cos((_rotation * Math.PI) / 180) * 25)) >= 390) {
return(false);
}
if ((_x + (Math.cos((_rotation * Math.PI) / 180) * 25)) <= 60) {
return(false);
}
if ((_y + (Math.sin((_rotation * Math.PI) / 180) * 25)) >= 540) {
return(false);
}
if ((_y + (Math.sin((_rotation * Math.PI) / 180) * 25)) <= 60) {
return(false);
}
createSentry();
}
var powerM = 1.15;
var speedM = 1.15;
var reloadM = 1.15;
var sspeedM = 1;
var specialReloadTime = 420;
var specialDuration = 150;
var fireSpecial = hero.prototype.fireNormal;
var engineer = true;
}
Symbol 513 MovieClip [__Packages.shooter] Frame 0
class shooter extends hero
{
var invencible;
function shooter () {
super();
}
function onStartSpecial() {
invencible = true;
}
function onEndSpecial() {
invencible = false;
}
var powerM = 1.15;
var speedM = 1.15;
var reloadM = 1;
var sspeedM = 1;
var specialReloadTime = 1200;
var specialDuration = 500;
var fireSpecial = hero.prototype.fireNormal;
}
Symbol 514 MovieClip [__Packages.sniper] Frame 0
class sniper extends hero
{
var invencible, atrib;
function sniper () {
super();
}
function onStartSpecial() {
invencible = true;
}
function onEndSpecial() {
invencible = false;
}
function afterEnterFrame() {
atrib.hp = atrib.hp + 0.00111111111111111;
_root.updateInfos();
}
var powerM = 1.3;
var speedM = 1.15;
var reloadM = 0.85;
var sspeedM = 1;
var specialReloadTime = 1200;
var specialDuration = 300;
var fireSpecial = hero.prototype.fireNormal;
}
Symbol 515 MovieClip [__Packages.Box] Frame 0
class Box extends MovieClip
{
var click, hitE, chap1, powerUp, tiroInimigo, score, overScore;
function Box () {
super();
click = new Sound();
click.attachSound("did");
hitE = new Sound();
hitE.attachSound("hitE");
chap1 = new Sound();
chap1.attachSound("chap1");
powerUp = new Sound();
powerUp.attachSound("powerUp");
tiroInimigo = new Sound();
tiroInimigo.attachSound("Tiro");
score = SharedObject.getLocal("diepix2Scores");
if (score.data.killedEnemies == undefined) {
score.data.killedEnemies = 0;
}
if (score.data.totalAwards == undefined) {
score.data.totalAwards = 0;
}
if (score.data.awokeChapScore == undefined) {
score.data.awokeChapScore = 0;
}
if (score.data.matheusChapScore == undefined) {
score.data.matheusChapScore = 0;
}
}
function onEnterFrame() {
overScore = score.data.matheusChapScore + score.data.awokeChapScore;
}
var volume = 100;
var language = "en";
}
Symbol 516 MovieClip [__Packages.enemy26] Frame 0
class enemy26 extends enemy
{
function enemy26 () {
super();
}
var movementType = 2;
var look = true;
var shooter = true;
var disfarce = true;
var hp = 50;
var expe = 15415;
var dano = 3;
var velocidade = 4.5;
var reloadtime = 40;
}
Symbol 517 MovieClip [__Packages.enemy25] Frame 0
class enemy25 extends enemy
{
function enemy25 () {
super();
}
var movementType = 0;
var shooter = true;
var look = true;
var reloadtime = 40;
var hp = 50;
var dano = 4;
var expe = 6015;
var velocidade = 4.5;
var piscaPisca = true;
}
Symbol 518 MovieClip [__Packages.enemy24] Frame 0
class enemy24 extends enemy
{
function enemy24 () {
super();
}
var movementType = 1;
var hp = 40;
var dano = 3;
var expe = 3000;
var velocidade = 4.3;
var disfarce = true;
}
Symbol 519 MovieClip [__Packages.enemy22] Frame 0
class enemy22 extends enemy
{
function enemy22 () {
super();
}
var movementType = 3;
var look = true;
var hp = 35;
var dano = 4;
var shooter = true;
var expe = 1550;
var velocidade = 2.5;
var reloadtime = 60;
}
Symbol 520 MovieClip [__Packages.destroyer] Frame 0
class destroyer extends hero
{
var invencible;
function destroyer () {
super();
}
function onStartSpecial() {
invencible = true;
}
function onEndSpecial() {
invencible = false;
}
var powerM = 1.3;
var speedM = 1.3;
var reloadM = 1.3;
var sspeedM = 1;
var specialReloadTime = 1200;
var specialDuration = 400;
var fireSpecial = hero.prototype.fireNormal;
}
Symbol 521 MovieClip [__Packages.machineGun] Frame 0
class machineGun extends hero
{
var invencible;
function machineGun () {
super();
}
function onStartSpecial() {
invencible = true;
}
function onEndSpecial() {
invencible = false;
}
var powerM = 0.85;
var speedM = 1.15;
var reloadM = 1.3;
var sspeedM = 1;
var specialReloadTime = 1200;
var specialDuration = 300;
var fireSpecial = hero.prototype.fireNormal;
}
Symbol 522 MovieClip [__Packages.smoke] Frame 0
class smoke extends MovieClip
{
var removeMovieClip, _x, _y, _alpha, alvo;
function smoke () {
super();
}
function onEnterFrame() {
if (_root.destroy) {
removeMovieClip();
}
if (_root.pausar) {
return(undefined);
}
if ((_root.heroi.hitTest(_x, _y, true) && (_alpha > 50)) && (_root.heroi.valid)) {
_root.edie.start();
expires = 0;
_root.hero.atrib.combo = Math.floor(_root.heroi.atrib.combo / 1.5);
if (_root.heroi.dano(1)) {
return(undefined);
}
}
expires--;
if (expires < 10) {
_alpha = (expires / 10) * 100;
}
if (expires <= 0) {
removeMovieClip();
}
vx = (((Math.cos((alvo._rotation * Math.PI) / 180) * alvo.sto._x) + alvo._x) - _x) / expires;
vy = (((Math.sin((alvo._rotation * Math.PI) / 180) * alvo.sto._y) + alvo._y) - _y) / expires;
_x = _x + vx;
_y = _y + vy;
}
function setup(fx, fy, to) {
_x = fx;
_y = fy;
alvo = to;
}
var expires = 50;
var vx = 0;
var vy = 0;
}
Symbol 523 MovieClip [__Packages.sentry] Frame 0
class sentry extends MovieClip
{
var maxhp, hpbar, _name, removeMovieClip, stop, gotoAndStop, tmp, i, ref, _y, _x, damage, tiroVelocidade, _rotation, swapDepths, gotoAndPlay;
function sentry () {
super();
}
function onLoad() {
maxhp = hp;
hpbar = _root.attachMovie("hp", _name + "hpbar", _root.getNextHighestDepth());
hpbar.alvo = this;
hpbar.onEnterFrame();
}
function onEnterFrame() {
if (_root.destroy) {
hpbar.removeMovieClip();
removeMovieClip();
return(undefined);
}
if (_root.pausar) {
if (building > 0) {
stop();
}
return(undefined);
}
if (valid == false) {
return(undefined);
}
if (building > 0) {
building--;
gotoAndStop((building * -1) + 150);
refreshHpBar();
return(undefined);
}
if (reload > 0) {
reload--;
} else {
tmp = Array();
i = 1;
while (i <= 8) {
if (_root["inimigo" + i].valid == false) {
if (_root[_root.bossName]._alpha > 0) {
ref = _root[_root.bossName];
}
} else if ((_root["inimigo" + i]._alpha > 20) && (_root["inimigo" + i]._currentframe == 1)) {
ref = _root["inimigo" + i];
}
tmp = tmp.concat({d:Math.abs(Math.abs(ref._x) - Math.abs(_x)) + Math.abs(Math.abs(ref._y) - Math.abs(_y)), x:ref._x, y:ref._y, vx:ref.vx, vy:ref.vy, rotation:ref._rotation, r:ref});
i++;
}
tmp.sortOn("d");
if ((tmp[0].r != undefined) && (tmp[0].r.hp > 0)) {
reload = reload + Math.ceil(_root.heroi.getAtrib(2) / 0.5);
atirar(tmp[0].r._x, tmp[0].r._y);
}
}
}
function refreshHpBar() {
hpbar.progresso._xscale = (hp / maxhp) * 100;
}
function atirar(tx, ty) {
cachear();
_root["tiro" + _root.heroi.tirocache].removeMovieClip();
_root.tiroson.start();
_root.attachMovie("tiromc", "tiro" + _root.heroi.tirocache, _root.getNextHighestDepth());
damage = Math.floor(_root.heroi.getAtrib(0) / 2);
tiroVelocidade = 15;
_root["tiro" + _root.heroi.tirocache].direcao(tx, ty, 40, damage, _x, _y, undefined, undefined, undefined, undefined, false);
_rotation = _root["tiro" + _root.heroi.tirocache]._rotation;
toFront();
}
function cachear() {
_root.heroi.tirocache++;
if (_root.heroi.tirocache > _root.maxtcache) {
_root.heroi.tirocache = 1;
}
}
function toFront() {
swapDepths(_root.getNextHighestDepth());
}
function dano(qtd) {
hp = hp - qtd;
if (hp <= 0) {
gotoAndPlay("morrer");
valid = false;
hpbar.removeMovieClip();
}
if (hp > maxhp) {
hp = maxhp;
}
refreshHpBar();
}
function checkCollision(tiro) {
ref = tiro;
if (ref == undefined) {
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, ref) && (ref.valid == true)) {
_root.explosao.start();
dano(ref.dano);
ref.play();
ref.valid = false;
}
}
var reload = 0;
var hp = 11;
var building = 150;
var valid = true;
}
Symbol 524 MovieClip [__Packages.effect] Frame 0
class effect extends MovieClip
{
var removeMovieClip, play, alvo, _x, _y, afterOnEnterFrame;
function effect () {
super();
}
function onEnterFrame() {
if (_root.destroy) {
removeMovieClip();
return(undefined);
}
if (valid == false) {
play();
return(undefined);
}
if ((type == 1) && (alvo != undefined)) {
_x = alvo._x;
_y = alvo._y;
} else if ((type == 1) && (alvo == undefined)) {
removeMovieClip();
}
if (_root.pausar) {
return(undefined);
}
afterOnEnterFrame();
}
var type = 0;
var valid = true;
}
Symbol 525 MovieClip [__Packages.hp] Frame 0
class hp extends effect
{
function hp () {
super();
}
var type = 1;
}
Symbol 526 MovieClip [__Packages.enemy20] Frame 0
class enemy20 extends enemy
{
function enemy20 () {
super();
}
var movementType = 2;
var look = true;
var hp = 30;
var dano = 3;
var expe = 950;
var velocidade = 2.5;
var piscaPisca = true;
}
Symbol 527 MovieClip [__Packages.enemy19] Frame 0
class enemy19 extends enemy
{
function enemy19 () {
super();
}
var movementType = 2;
var shooter = true;
var look = true;
var reloadtime = 60;
var hp = 25;
var expe = 600;
var dano = 3;
var velocidade = 4.2;
}
Symbol 528 MovieClip [__Packages.tiro] Frame 0
class tiro extends MovieClip
{
var _x, vx, _y, vy, angulo, _rotation, dano, _xscale, _yscale, swapDepths, meioW, _width, meioH, _height, removeMovieClip, i;
function tiro () {
super();
}
function onEnterFrame() {
if (_root.pausar) {
return(undefined);
}
if (_root.destroy or (_root._currentframe != 8)) {
return(undefined);
}
if (speedUp) {
ac = ac * 1.06;
}
_x = _x + ((vx * ac) / 3.2);
_y = _y + ((vy * ac) / 3.2);
checkCollision();
_x = _x + ((vx * ac) / 3.2);
_y = _y + ((vy * ac) / 3.2);
checkCollision();
_x = _x + ((vx * ac) / 3.2);
_y = _y + ((vy * ac) / 3.2);
checkCollision();
}
function direcao(px, py, velocidade, dano, fx, fy, fh, adi, ra, crit, ip, tp) {
if (adi == undefined) {
adi = 0;
}
if (ra == undefined) {
ra = 0;
}
if (tp == undefined) {
tp = 0;
}
if (ip == undefined) {
ip = true;
}
_x = fx;
_y = fy;
tmp = Array();
tmp[0] = _y - py;
tmp[1] = _x - px;
tmp[2] = Math.atan2(tmp[0], tmp[1]);
tmp[3] = tmp[2] / (Math.PI/180);
angulo = tmp[3] + 180;
_rotation = angulo;
vx = Math.cos((angulo * Math.PI) / 180) * velocidade;
vy = Math.sin((angulo * Math.PI) / 180) * velocidade;
if (ip) {
ac = 2;
} else {
ac = 0.5;
}
_x = _x + (vx * 2);
_y = _y + (vy * 2);
this.dano = dano;
valid = true;
type = tp;
_xscale = (_yscale = tamanho);
}
function createSpark() {
}
function toFront() {
swapDepths(_root.getNextHighestDepth());
}
function checkCollision() {
meioW = _width / 2;
meioH = _height / 2;
if ((((_x >= (384.3 - meioW)) || (_x <= (-43 + meioW))) || (_y >= (514.8 - meioH))) || (_y <= (23.8 + meioH))) {
removeMovieClip();
}
if (type == 0) {
i = 1;
while (i <= 8) {
_root["inimigo" + i].checkCollision(this);
i++;
}
} else if (type == 1) {
_root.heroi.checkCollision(this);
i = 1;
while (i <= 10) {
if (_root["sentrygun" + i].valid) {
_root["sentrygun" + i].checkCollision(this);
}
i++;
}
}
}
var ac = 0.65;
var valid = false;
var tmp = new Array();
var type = 0;
var tamanho = 100;
var speedUp = false;
}
Symbol 529 MovieClip [__Packages.health] Frame 0
class health extends MovieClip
{
var removeMovieClip, _alpha;
function health () {
super();
}
function onEnterFrame() {
if (_root.destroy) {
removeMovieClip();
return(undefined);
}
if (_root.pausar) {
return(undefined);
}
if (sumindo) {
sumir();
return(undefined);
}
expires--;
if (expires <= 0) {
sumir();
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _root.heroi)) {
_root.phealth.start();
_root.heroi.dano(-3);
sumir();
}
}
function sumir() {
((sumindo == false) ? ((sumindo = true)) : null);
_alpha = _alpha - 20;
if (_alpha <= 0) {
removeMovieClip();
}
}
var expires = 150;
var sumindo = false;
}
Symbol 530 MovieClip [__Packages.enemy17] Frame 0
class enemy17 extends enemy
{
function enemy17 () {
super();
}
var movementType = 2;
var look = true;
var hp = 15;
var dano = 2;
var expe = 300;
}
Symbol 531 MovieClip [__Packages.enemy18] Frame 0
class enemy18 extends enemy
{
function enemy18 () {
super();
}
var movementType = 3;
var look = false;
var hp = 20;
var dano = 3;
var expe = 400;
var velocidade = 9;
}
Symbol 532 MovieClip [__Packages.enemy16] Frame 0
class enemy16 extends enemy
{
function enemy16 () {
super();
}
var movementType = 1;
var hp = 10;
var expe = 250;
var dano = 2;
}
Symbol 533 MovieClip [__Packages.enemy15] Frame 0
class enemy15 extends enemy
{
function enemy15 () {
super();
}
var movementType = 2;
var look = true;
var disfarce = true;
var shooter = true;
var hp = 70;
var expe = 23650;
var dano = 3;
var velocidade = 3.3;
var reloadtime = 50;
}
Symbol 534 MovieClip [__Packages.boss2] Frame 0
class boss2 extends MovieClip
{
var _alpha, _rotation, removeMovieClip, extra, meioW, _width, meioH, _height, distx, _x, disty, _y, distancia, i, ref, a, play, mais, dist_x, dist_y, distance, angle, speed, xspeed, yspeed, atalho, swapDepths;
function boss2 () {
super();
_alpha = 0;
olhar();
angulo = _rotation;
vx = Math.cos((angulo * Math.PI) / 180) * (velocidade + 1);
vy = Math.sin((angulo * Math.PI) / 180) * (velocidade + 1);
olharFront();
}
function onEnterFrame() {
if (_root.destroy) {
removeMovieClip();
return(undefined);
}
if (_root.pausar) {
return(undefined);
}
if (valid == false) {
return(undefined);
}
if (piscaPisca) {
if (piscaPiscaFase == 1) {
if (_alpha > -50) {
_alpha = _alpha - 2.5;
} else {
piscaPiscaFase = 2;
}
} else if (_alpha < 100) {
_alpha = _alpha + 2.5;
} else {
piscaPiscaFase = 1;
}
}
extra = ((5500 - hp) / 7500) + 1;
meioW = _width / 2;
meioH = _height / 2;
if (hp >= 3800) {
etapa = 1;
} else if ((hp >= 2100) && (hp < 3800)) {
etapa = 2;
sumonar = true;
} else if (hp < 2100) {
etapa = 3;
disfarce = true;
}
distx = _root.heroi._x - _x;
disty = _root.heroi._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
tmp[0] = _y - _root.heroi._y;
tmp[1] = _x - _root.heroi._x;
tmp[2] = Math.atan2(tmp[0], tmp[1]);
tmp[3] = (((tmp[2] / (Math.PI/180)) - 180) * Math.PI) / 180;
if (distancia < 200) {
_root.heroi.vx = _root.heroi.vx + ((Math.cos(tmp[3]) / distancia) * 70);
_root.heroi.vy = _root.heroi.vy + ((Math.sin(tmp[3]) / distancia) * 70);
}
olhar();
if (disfarce) {
if (distancia >= 250) {
_alpha = 0;
} else if ((distancia < 250) && (distancia > 150)) {
_alpha = 250 - distancia;
} else if (distancia <= 150) {
_alpha = 100;
}
}
while (_x > (384.3 - meioW)) {
if (_x == undefined) {
break;
}
vx = -Math.abs(vx);
_x = (384.3 - meioW) - 1;
}
while (_x < (-43 + meioW)) {
if (_x == undefined) {
break;
}
vx = Math.abs(vx);
_x = (-43 + meioW) + 1;
}
while (_y > (514.8 - meioH)) {
if (_y == undefined) {
break;
}
vy = -Math.abs(vy);
_y = (514.8 - meioH) - 1;
}
while (_y < (23.8 + meioH)) {
if (_y == undefined) {
break;
}
vy = Math.abs(vy);
_y = (23.8 + meioH) + 1;
}
i = 1;
while (i <= _root.maxtcache) {
ref = _root["tiro" + i];
if (ref == undefined) {
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(ref, this) && (ref.valid == true)) {
hp = hp - ref.dano;
_root.heroi.specialReload = _root.heroi.specialReload - ref.dano;
if (_root.heroi.specialReload < 0) {
_root.heroi.specialReload = 0;
}
ref.play();
a.gotoAndPlay(2);
if (hp <= 0) {
morrer();
_root.inimigosMortos++;
_root.heroi.ganhar(expe);
valid = false;
play();
break;
}
_root.box.hitE.setVolume(_root.box.volume);
_root.box.hitE.start(0, 1);
ref.valid = false;
}
i++;
}
if (recarregar > 0) {
recarregar--;
}
if (recarregar == 0) {
_root.tiroecache++;
if (_root.tiroecache > 100) {
_root.tiroecache = 0;
}
olhar();
_root["tiroe" + _root.tiroecache].removeMovieClip();
_root.tiroson.start();
_root.attachMovie("tiromc2", "tiroe" + _root.tiroecache, _root.getNextHighestDepth());
_root["tiroe" + _root.tiroecache].direcao(_root.heroi._x, _root.heroi._y, 4, 2, _x, _y, false, mais);
_root["tiroe" + _root.tiroecache].speedUp = true;
_root["tiroe" + _root.tiroecache].gotoAndStop("boss1");
_root["tiroe" + _root.tiroecache].type = 1;
recarregar = Math.floor(30 / extra);
toFront();
}
if (sumonar) {
if (sumontime > 0) {
sumontime--;
}
if (sumontime == 0) {
sumon();
}
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _root.heroi, 120)) {
_root.heroi.vx = _root.heroi.vx + ((Math.cos(tmp[3]) / distancia) * 100);
_root.heroi.vy = _root.heroi.vy + ((Math.sin(tmp[3]) / distancia) * 100);
_root.heroi.dano(1);
}
dist_x = _root.heroi._x - _x;
dist_y = _root.heroi._y - _y;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
angle = Math.atan2(dist_y, dist_x);
speed = (distance / velocidade) / 10;
xspeed = speed * Math.cos(angle);
yspeed = speed * Math.sin(angle);
_x = _x + xspeed;
_y = _y + yspeed;
_x = _x + vx;
_y = _y + vy;
_rotation = (angle * 180) / Math.PI;
_x = _x + (vx * extra);
_y = _y + (vy * extra);
}
function shot() {
}
function reCalcAngles() {
}
function olhar() {
tmp[0] = _y - _root.heroi._y;
tmp[1] = _x - _root.heroi._x;
tmp[2] = Math.atan2(tmp[0], tmp[1]);
tmp[3] = tmp[2] / (Math.PI/180);
_rotation = tmp[3] + 180;
}
function morrer() {
_root.so.data.inimigosMortos++;
_root.so.flush();
}
function sumon() {
_root.icache++;
if (_root.icache > 8) {
_root.icache = 1;
}
if (_root["inimigo" + _root.icache] != undefined) {
return(undefined);
}
atalho = _root.attachMovie("enemy14", "inimigo" + _root.icache, _root.getNextHighestDepth());
atalho._x = _x;
atalho._y = _y;
atalho.calc = false;
sumontime = sumontime + Math.floor(50 / extra);
toFront();
}
function olharFront() {
angle = Math.atan(vy / vx) / (Math.PI/180);
if (vx < 0) {
angle = angle + 180;
}
if ((vx >= 0) && (vy < 0)) {
angle = angle + 360;
}
_rotation = angle;
}
function toFront() {
swapDepths(_root.getNextHighestDepth());
}
function atirar() {
}
var hp = 5500;
var valid = true;
var sumonar = false;
var shottype = 0;
var recarregar = 20;
var sumontime = 45;
var tmp = new Array();
var vx = 0;
var vy = 0;
var angulo = 0;
var expe = 1;
var n = 0;
var velocidade = 4;
var piscaPisca = true;
var piscaPiscaFase = 1;
var disfarce = true;
var etapa = 1;
}
Symbol 535 MovieClip [__Packages.enemy14] Frame 0
class enemy14 extends enemy
{
function enemy14 () {
super();
}
var movementType = 2;
var look = true;
var disfarce = true;
var hp = 40;
var dano = 3;
var expe = 6500;
var velocidade = 4.2;
}
Symbol 536 MovieClip [__Packages.enemy13] Frame 0
class enemy13 extends enemy
{
function enemy13 () {
super();
}
var movementType = 2;
var shooter = true;
var look = true;
var hp = 40;
var expe = 3900;
var velocidade = 2.5;
var reloadtime = 50;
var dano = 5;
var bulletSize = 120;
}
Symbol 537 MovieClip [__Packages.enemy12] Frame 0
class enemy12 extends enemy
{
function enemy12 () {
super();
}
var movementType = 2;
var look = true;
var pull = true;
var hp = 35;
var dano = 4;
var expe = 2500;
var velocidade = 1.8;
}
Symbol 538 MovieClip [__Packages.enemy11] Frame 0
class enemy11 extends enemy
{
function enemy11 () {
super();
}
var movementType = 2;
var look = true;
var hp = 30;
var dano = 3;
var expe = 1700;
var velocidade = 4;
}
Symbol 539 MovieClip [__Packages.enemy10] Frame 0
class enemy10 extends enemy
{
function enemy10 () {
super();
}
var movementType = 2;
var shooter = true;
var hp = 30;
var expe = 1100;
var dano = 2;
var reloadtime = 60;
var velocidade = 4;
}
Symbol 540 MovieClip [__Packages.enemy09] Frame 0
class enemy09 extends enemy
{
function enemy09 () {
super();
}
var movementType = 3;
var look = false;
var hp = 20;
var dano = 2;
var expe = 700;
var velocidade = 4;
}
Symbol 541 MovieClip [__Packages.enemy08] Frame 0
class enemy08 extends enemy
{
function enemy08 () {
super();
}
var movementType = 0;
var hp = 10;
var expe = 250;
var dano = 2;
}
Symbol 542 MovieClip [__Packages.boss] Frame 0
class boss extends MovieClip
{
var _alpha, _rotation, removeMovieClip, extra, meioW, _width, meioH, _height, distx, _x, disty, _y, distancia, i, ref, a, play, mais, atalho, angle, swapDepths;
function boss () {
super();
_alpha = 0;
olhar();
angulo = _rotation;
vx = Math.cos((angulo * Math.PI) / 180) * (velocidade + 1);
vy = Math.sin((angulo * Math.PI) / 180) * (velocidade + 1);
olharFront();
}
function onEnterFrame() {
if (_root.destroy) {
removeMovieClip();
return(undefined);
}
if (_root.pausar) {
return(undefined);
}
if (valid == false) {
return(undefined);
}
if (_alpha < 100) {
_alpha = _alpha + 14.2857142857143;
}
extra = ((5000 - hp) / 7000) + 1;
meioW = _width / 2;
meioH = _height / 2;
if (hp >= 3800) {
etapa = 1;
} else if ((hp >= 1500) && (hp < 3800)) {
etapa = 2;
disfarce = true;
} else if (hp < 1500) {
etapa = 3;
sumonar = true;
}
distx = _root.heroi._x - _x;
disty = _root.heroi._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
tmp[0] = _y - _root.heroi._y;
tmp[1] = _x - _root.heroi._x;
tmp[2] = Math.atan2(tmp[0], tmp[1]);
tmp[3] = (((tmp[2] / (Math.PI/180)) - 180) * Math.PI) / 180;
if (distancia < 200) {
_root.heroi.vx = _root.heroi.vx + ((Math.cos(tmp[3]) / distancia) * 70);
_root.heroi.vy = _root.heroi.vy + ((Math.sin(tmp[3]) / distancia) * 70);
}
olhar();
if (disfarce) {
if (distancia >= 250) {
_alpha = 0;
} else if ((distancia < 250) && (distancia > 150)) {
_alpha = 250 - distancia;
} else if (distancia <= 150) {
_alpha = 100;
}
}
while (_x > (384.3 - meioW)) {
if (_x == undefined) {
break;
}
vx = -Math.abs(vx);
_x = (384.3 - meioW) - 1;
}
while (_x < (-43 + meioW)) {
if (_x == undefined) {
break;
}
vx = Math.abs(vx);
_x = (-43 + meioW) + 1;
}
while (_y > (514.8 - meioH)) {
if (_y == undefined) {
break;
}
vy = -Math.abs(vy);
_y = (514.8 - meioH) - 1;
}
while (_y < (23.8 + meioH)) {
if (_y == undefined) {
break;
}
vy = Math.abs(vy);
_y = (23.8 + meioH) + 1;
}
i = 1;
while (i <= _root.maxtcache) {
ref = _root["tiro" + i];
if (ref == undefined) {
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(ref, this) && (ref.valid == true)) {
hp = hp - ref.dano;
_root.heroi.specialReload = _root.heroi.specialReload - ref.dano;
if (_root.heroi.specialReload < 0) {
_root.heroi.specialReload = 0;
}
ref.play();
a.gotoAndPlay(2);
if (hp <= 0) {
morrer();
_root.inimigosMortos++;
_root.heroi.ganhar(expe);
valid = false;
play();
break;
}
_root.box.hitE.setVolume(_root.box.volume);
_root.box.hitE.start(0, 1);
ref.valid = false;
}
i++;
}
if (recarregar > 0) {
recarregar--;
}
if (recarregar <= 0) {
if ((etapa == 1) || (etapa == 2)) {
_root.tiroecache++;
if (_root.tiroecache > 100) {
_root.tiroecache = 0;
}
olhar();
_root["tiroe" + _root.tiroecache].removeMovieClip();
_root.tiroson.start();
_root.attachMovie("tiromc2", "tiroe" + _root.tiroecache, _root.getNextHighestDepth());
_root["tiroe" + _root.tiroecache].direcao(_root.heroi._x, _root.heroi._y, 3, 3, _x, _y, false, mais);
_root["tiroe" + _root.tiroecache].speedUp = true;
_root["tiroe" + _root.tiroecache].gotoAndStop("boss1");
_root["tiroe" + _root.tiroecache].type = 1;
recarregar = recarregar + Math.floor(30 / extra);
toFront();
}
}
if (sumonar) {
if (sumontime > 0) {
sumontime--;
}
if (sumontime <= 0) {
sumon();
}
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _root.heroi, 120)) {
_root.heroi.vx = _root.heroi.vx + ((Math.cos(tmp[3]) / distancia) * 100);
_root.heroi.vy = _root.heroi.vy + ((Math.sin(tmp[3]) / distancia) * 100);
_root.heroi.dano(1);
}
_x = _x + (vx * extra);
_y = _y + (vy * extra);
}
function shot() {
}
function reCalcAngles() {
}
function olhar() {
tmp[0] = _y - _root.heroi._y;
tmp[1] = _x - _root.heroi._x;
tmp[2] = Math.atan2(tmp[0], tmp[1]);
tmp[3] = tmp[2] / (Math.PI/180);
_rotation = tmp[3] + 180;
}
function morrer() {
_root.so.data.inimigosMortos++;
_root.so.flush();
}
function sumon() {
_root.icache++;
if (_root.icache > 8) {
_root.icache = 1;
}
if (_root["inimigo" + _root.icache] != undefined) {
return(undefined);
}
atalho = _root.attachMovie("enemy14", "inimigo" + _root.icache, _root.getNextHighestDepth());
atalho._x = _x;
atalho._y = _y;
atalho.calc = false;
sumontime = 40;
toFront();
}
function olharFront() {
angle = Math.atan(vy / vx) / (Math.PI/180);
if (vx < 0) {
angle = angle + 180;
}
if ((vx >= 0) && (vy < 0)) {
angle = angle + 360;
}
_rotation = angle;
}
function toFront() {
swapDepths(_root.getNextHighestDepth());
}
function atirar() {
}
var hp = 5000;
var valid = true;
var sumonar = false;
var shottype = 0;
var recarregar = 25;
var sumontime = 45;
var tmp = new Array();
var vx = 0;
var vy = 0;
var angulo = 0;
var expe = 1;
var n = 0;
var velocidade = 5.5;
var disfarce = false;
var etapa = 1;
}
Symbol 543 MovieClip [__Packages.smokeB] Frame 0
class smokeB extends MovieClip
{
var removeMovieClip, _alpha, _x, alvo, _y;
function smokeB () {
super();
}
function onEnterFrame() {
if (_root.destroy) {
removeMovieClip();
}
if (_root.pausar) {
return(undefined);
}
expires--;
if (expires < 10) {
_alpha = (expires / 10) * 100;
}
if (expires <= 0) {
removeMovieClip();
}
vx = (((Math.cos((alvo._rotation * Math.PI) / 180) * alvo.sto._x) + alvo._x) - _x) / expires;
vy = (((Math.sin((alvo._rotation * Math.PI) / 180) * alvo.sto._y) + alvo._y) - _y) / expires;
_x = _x + vx;
_y = _y + vy;
}
function setup(fx, fy, to) {
_x = fx;
_y = fy;
alvo = to;
}
var expires = 30;
var vx = 0;
var vy = 0;
}
Symbol 544 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.as2.MochiServices.clip;
}
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.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 (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.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.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.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 545 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 108 MovieClip [box] Frame 1
#initclip 54
Object.registerClass("box", Box);
#endinitclip
Symbol 108 MovieClip [box] Frame 14
stop();
Symbol 112 MovieClip Frame 6
stop();
Symbol 113 Button
on (release) {
getURL ("http://www.notdoppler.com/?ref=diepixheroes-02", "_blank");
}
Symbol 127 MovieClip Frame 1
_root.stop();
Symbol 127 MovieClip Frame 186
stop();
stopAllSounds();
_root.gotoAndStop(4);
Symbol 129 MovieClip Frame 5
stop();
Symbol 131 MovieClip Frame 5
stop();
Symbol 133 MovieClip Frame 5
stop();
Symbol 135 MovieClip Frame 5
stop();
Symbol 137 MovieClip Frame 5
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 3
stop();
Symbol 138 MovieClip Frame 4
stop();
Symbol 138 MovieClip Frame 5
stop();
Symbol 141 MovieClip [smokeB] Frame 1
#initclip 82
Object.registerClass("smokeB", smokeB);
#endinitclip
Symbol 144 MovieClip Frame 1
stop();
Symbol 145 MovieClip [enemy26] Frame 1
#initclip 55
Object.registerClass("enemy26", enemy26);
#endinitclip
stop();
Symbol 145 MovieClip [enemy26] Frame 2
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 149 MovieClip [enemy25] Frame 1
#initclip 56
Object.registerClass("enemy25", enemy25);
#endinitclip
stop();
Symbol 149 MovieClip [enemy25] Frame 2
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 153 MovieClip [enemy24] Frame 1
#initclip 57
Object.registerClass("enemy24", enemy24);
#endinitclip
stop();
Symbol 153 MovieClip [enemy24] Frame 2
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 157 MovieClip [enemy22] Frame 1
#initclip 58
Object.registerClass("enemy22", enemy22);
#endinitclip
stop();
Symbol 157 MovieClip [enemy22] Frame 2
stop();
Symbol 162 MovieClip Frame 5
stop();
Symbol 165 MovieClip Frame 5
stop();
Symbol 168 MovieClip [destroyer] Frame 1
#initclip 59
Object.registerClass("destroyer", destroyer);
#endinitclip
stop();
Symbol 168 MovieClip [destroyer] Frame 2
stop();
Symbol 168 MovieClip [destroyer] Frame 3
stop();
Symbol 168 MovieClip [destroyer] Frame 4
stop();
Symbol 173 MovieClip Frame 5
stop();
Symbol 176 MovieClip Frame 5
stop();
Symbol 177 MovieClip [machineGun] Frame 1
#initclip 60
Object.registerClass("machineGun", machineGun);
#endinitclip
stop();
Symbol 177 MovieClip [machineGun] Frame 2
stop();
Symbol 177 MovieClip [machineGun] Frame 3
stop();
Symbol 177 MovieClip [machineGun] Frame 4
stop();
Symbol 181 MovieClip [smoke] Frame 1
#initclip 61
Object.registerClass("smoke", smoke);
#endinitclip
Symbol 184 MovieClip Frame 13
stop();
this.removeMovieClip();
_alpha = 0;
Symbol 185 MovieClip [sentry] Frame 1
#initclip 62
Object.registerClass("sentry", sentry);
#endinitclip
Symbol 185 MovieClip [sentry] Frame 150
stop();
Symbol 185 MovieClip [sentry] Frame 151
stop();
Symbol 191 MovieClip [hp] Frame 1
#initclip 63
Object.registerClass("hp", hp);
#endinitclip
Symbol 194 MovieClip Frame 1
stop();
Symbol 195 MovieClip [enemy20] Frame 1
#initclip 64
Object.registerClass("enemy20", enemy20);
#endinitclip
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 199 MovieClip [enemy19] Frame 1
#initclip 65
Object.registerClass("enemy19", enemy19);
#endinitclip
stop();
Symbol 199 MovieClip [enemy19] Frame 2
stop();
Symbol 204 MovieClip [tiromc2] Frame 1
#initclip 66
Object.registerClass("tiromc2", tiro);
#endinitclip
stop();
Symbol 204 MovieClip [tiromc2] Frame 2
stop();
Symbol 204 MovieClip [tiromc2] Frame 4
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 210 MovieClip [tiromc] Frame 1
#initclip 67
Object.registerClass("tiromc", tiro);
#endinitclip
stop();
Symbol 210 MovieClip [tiromc] Frame 2
this.vx = 0;
this.vy = 0;
this.removeMovieClip();
Symbol 216 MovieClip [health] Frame 1
#initclip 68
Object.registerClass("health", health);
#endinitclip
Symbol 219 MovieClip Frame 1
stop();
Symbol 220 MovieClip [enemy17] Frame 1
#initclip 69
Object.registerClass("enemy17", enemy17);
#endinitclip
stop();
Symbol 220 MovieClip [enemy17] Frame 2
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 224 MovieClip [enemy18] Frame 1
#initclip 70
Object.registerClass("enemy18", enemy18);
#endinitclip
stop();
Symbol 224 MovieClip [enemy18] Frame 2
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 228 MovieClip [enemy16] Frame 1
#initclip 71
Object.registerClass("enemy16", enemy16);
#endinitclip
stop();
Symbol 228 MovieClip [enemy16] Frame 2
stop();
Symbol 229 MovieClip [enemy15] Frame 1
#initclip 72
Object.registerClass("enemy15", enemy15);
#endinitclip
stop();
Symbol 229 MovieClip [enemy15] Frame 2
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 233 MovieClip [boss2] Frame 1
#initclip 73
Object.registerClass("boss2", boss2);
#endinitclip
stop();
Symbol 233 MovieClip [boss2] Frame 2
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 237 MovieClip [enemy14] Frame 1
#initclip 74
Object.registerClass("enemy14", enemy14);
#endinitclip
stop();
Symbol 237 MovieClip [enemy14] Frame 2
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 241 MovieClip [enemy13] Frame 1
#initclip 75
Object.registerClass("enemy13", enemy13);
#endinitclip
stop();
Symbol 241 MovieClip [enemy13] Frame 2
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 246 MovieClip [enemy12] Frame 1
#initclip 76
Object.registerClass("enemy12", enemy12);
#endinitclip
stop();
Symbol 246 MovieClip [enemy12] Frame 2
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 248 MovieClip [enemy11] Frame 1
#initclip 77
Object.registerClass("enemy11", enemy11);
#endinitclip
stop();
Symbol 248 MovieClip [enemy11] Frame 2
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 252 MovieClip [enemy10] Frame 1
#initclip 78
Object.registerClass("enemy10", enemy10);
#endinitclip
stop();
Symbol 252 MovieClip [enemy10] Frame 2
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 256 MovieClip [enemy09] Frame 1
#initclip 79
Object.registerClass("enemy09", enemy09);
#endinitclip
stop();
Symbol 256 MovieClip [enemy09] Frame 2
stop();
Symbol 259 MovieClip Frame 1
stop();
Symbol 260 MovieClip [enemy08] Frame 1
#initclip 80
Object.registerClass("enemy08", enemy08);
#endinitclip
stop();
Symbol 260 MovieClip [enemy08] Frame 2
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 264 MovieClip [boss] Frame 1
#initclip 81
Object.registerClass("boss", boss);
#endinitclip
stop();
Symbol 264 MovieClip [boss] Frame 2
stop();
Instance of Symbol 138 MovieClip "a0" in Symbol 265 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Symbol 270 MovieClip [English] Frame 1
#initclip 84
Object.registerClass("English", botao);
#endinitclip
Symbol 274 MovieClip [Portuguese] Frame 1
#initclip 83
Object.registerClass("Portuguese", botao);
#endinitclip
Symbol 276 MovieClip Frame 1
if (_root.box.language == "pt") {
this.score.text = "TOTAL DE PONTOS:";
}
Symbol 278 MovieClip [btn_submitScore] Frame 1
#initclip 87
Object.registerClass("btn_submitScore", botao);
#endinitclip
if (_root.box.language == "pt") {
this.submit.text = "ENVIAR PONTUA\u00C7\u00C3O";
}
Symbol 281 MovieClip Frame 1
if (_root.box.language == "pt") {
this.credits.text = "CR\u00C9DITOS";
}
Symbol 283 MovieClip [btn_more] Frame 1
#initclip 85
Object.registerClass("btn_more", botao);
#endinitclip
if (_root.box.language == "pt") {
this.moreGames.text = "MAIS JOGOS";
}
Symbol 285 MovieClip [btn_play] Frame 1
#initclip 86
Object.registerClass("btn_play", botao);
#endinitclip
if (_root.box.language == "pt") {
this.jogar.text = "JOGAR";
}
Symbol 305 MovieClip Frame 1
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 310 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 1
if (_root.points >= 1) {
_root.shadow.upgrade._alpha = 100;
} else {
_root.shadow.upgrade._alpha = 0;
}
if (_root.box.language == "pt") {
this.upgrade.gotoAndStop(2);
}
Symbol 316 MovieClip [devLogo] Frame 1
#initclip 91
Object.registerClass("devLogo", botao);
#endinitclip
Symbol 325 MovieClip Frame 1
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 330 MovieClip Frame 1
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 333 MovieClip Frame 202
stop();
Symbol 335 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 1
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 348 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 1
if (_root.box.language == "pt") {
this.special.text = "ESPECIAL";
}
Symbol 362 MovieClip Frame 1
if (_root.box.language == "pt") {
this.armor.text = "ESCUDO";
}
Instance of Symbol 341 MovieClip "spaceBar" in Symbol 362 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 369 MovieClip [btn_no] Frame 1
#initclip 88
Object.registerClass("btn_no", botao);
#endinitclip
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 372 MovieClip [btn_yes] Frame 1
#initclip 89
Object.registerClass("btn_yes", botao);
#endinitclip
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 376 MovieClip Frame 1
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Instance of Symbol 369 MovieClip [btn_no] in Symbol 376 MovieClip Frame 1
on (release) {
_parent._x = -400;
}
Instance of Symbol 372 MovieClip [btn_yes] in Symbol 376 MovieClip Frame 1
on (release) {
stopAllSounds();
_root.checkAwards();
_root.stopAllSounds();
_root.gotoAndStop("pmenu");
_root.processar();
_root.getAwards();
_root.pausar = false;
_root.destroy = true;
}
Symbol 378 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 1
stop();
_root._quality = "HIGH";
_root.qualidade = 1;
Symbol 383 MovieClip Frame 2
stop();
_root._quality = "MEDIUM";
_root.qualidade = 2;
Symbol 383 MovieClip Frame 3
stop();
_root._quality = "LOW";
_root.qualidade = 3;
Symbol 392 MovieClip Frame 1
stop();
Instance of Symbol 383 MovieClip "swaper2" in Symbol 392 MovieClip Frame 1
onClipEvent (load) {
teclaq = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (teclaq == 1) {
teclaq = 0;
this.play();
}
} else {
teclaq = 1;
}
}
Symbol 398 MovieClip Frame 1
stop();
Symbol 402 MovieClip [btn_blanck2] Frame 1
#initclip 90
Object.registerClass("btn_blanck2", botao2);
#endinitclip
stop();
Symbol 417 MovieClip [btn_tryAgain] Frame 1
#initclip 92
Object.registerClass("btn_tryAgain", botao);
#endinitclip
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 426 MovieClip Frame 1
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 432 MovieClip Frame 1
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 436 MovieClip Frame 1
stop();
Instance of Symbol 428 MovieClip in Symbol 436 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 9);
}
Instance of Symbol 434 MovieClip in Symbol 436 MovieClip Frame 2
onClipEvent (enterFrame) {
_rotation = (_rotation + 9);
}
Symbol 436 MovieClip Frame 3
if (_root.box.language == "pt") {
this.notice.text = "VOC\u00CA J\u00C1 TEM TODOS OS PR\u00CAMIOS DESTE SETOR";
}
Symbol 441 MovieClip [botao sub] Frame 1
#initclip 94
Object.registerClass("botao sub", botao);
#endinitclip
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 445 MovieClip [btn_backWon] Frame 1
#initclip 93
Object.registerClass("btn_backWon", botao);
#endinitclip
stop();
if (_root.box.language == "pt") {
this.gotoAndStop(2);
}
Symbol 463 MovieClip [selections] Frame 1
#initclip 95
Object.registerClass("selections", botao);
#endinitclip
stop();
Symbol 463 MovieClip [selections] Frame 2
stop();
Symbol 463 MovieClip [selections] Frame 3
stop();
Symbol 463 MovieClip [selections] Frame 4
stop();
Symbol 463 MovieClip [selections] Frame 5
stop();
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 2
stop();
Symbol 469 MovieClip Frame 3
stop();
Symbol 469 MovieClip Frame 4
stop();
Symbol 469 MovieClip Frame 5
stop();
Symbol 499 MovieClip [chap3] Frame 1
#initclip 97
Object.registerClass("chap3", botao);
#endinitclip
Symbol 501 MovieClip [chap2] Frame 1
#initclip 96
Object.registerClass("chap2", botao);
#endinitclip