Frame 1
stop();
_global.rescueAllPuppies = false;
_global.nLevel = 1;
_global.listenKey = true;
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
var _local3 = new Date().getTime();
loadMovieNum ("games/action/ppg/attackofthepuppybots/tracker.swf?" + _local3, 10000);
this.gotoAndStop("HELP");
}
} else {
_global.listenKey = true;
}
};
Frame 10
stop();
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
this.gotoAndPlay("SCR_LEVEL01");
}
} else {
_global.listenKey = true;
}
};
Frame 23
stop();
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
this.gotoAndPlay("HELP2");
}
} else {
_global.listenKey = true;
}
};
Frame 28
function gameOver() {
this.gotoAndStop("GAMEOVER");
}
function gameWin() {
if (_global.nLevel == 1) {
this.gotoAndStop("CS_LEVEL02");
}
if (_global.nLevel == 2) {
_global.nLevel = 0;
this.gotoAndStop("CS_LEVEL03");
}
if (_global.nLevel == 3) {
this.gotoAndStop("CS_FINAL");
_global.nLevel = 0;
}
}
onEnterFrame = null;
_global.listenKey = false;
_global.endLevel = false;
_global._BG00_DISPLACE = 2;
_global._BG01_DISPLACE = 5;
_global._BG02_DISPLACE = 14;
_global.playerAlive = false;
_global.girlActive = null;
_global.playerShoot = false;
_global.playerChange = false;
_global.playerImpact = false;
_global.freeGame = false;
_global.trap = false;
_global.trapVisible = false;
_global.trapCheck = false;
_global.msgPanel = null;
_global.levelCharge = 0;
_global.velCharge = 2;
_global.limitCharge = 200;
_global.checkCharge = false;
_global.playerLife = 0;
_global.bossLife = 300;
_global.bossCheck = false;
_global.specialDamageBoss = false;
_global.DAMAGE_SPECIAL_L1 = -1 * Math.round(_global.bossLife / 18);
_global.DAMAGE_SPECIAL_L2 = -1 * Math.round(_global.bossLife / 9);
_global.DAMAGE_SPECIAL_L3 = -1 * Math.round(_global.bossLife / 6);
_global.DAMAGE_SPECIAL_POW = -1 * Math.round(_global.bossLife / 2);
_global.DEPTH_BG00 = 1;
_global.DEPTH_BG01 = 3;
_global.DEPTH_PLAYER_0 = 0;
_global.DEPTH_PLAYER_1 = 4;
_global.DEPTH_PLAYER_2 = 5;
_global.powP = false;
_global.powO = false;
_global.powW = false;
_global.POW = false;
_global.DEPTH_SHIELD = 10001;
_global.DEPTH_PLAYER = 10002;
_global.DEPTH_SPECIAL = 599999 /* 0x0927BF */;
_global.DEPTH_ENERGY = 600000 /* 0x0927C0 */;
_global.DEPTH_BG02 = 600001 /* 0x0927C1 */;
_global.DEPTH_PANEL_PUPPY = 600002 /* 0x0927C2 */;
_global.DEPTH_ENERGY_BOSS = 600003 /* 0x0927C3 */;
_global.DEPTH_PAUSE = 600004 /* 0x0927C4 */;
_global.DEPTH_PANEL = 600005 /* 0x0927C5 */;
_global.DEPTH_START = 600006 /* 0x0927C6 */;
_global.DEPTH_WIN = 600007 /* 0x0927C7 */;
_global.DEPTH_FADE = 600008 /* 0x0927C8 */;
_global.DEPTH_STADISTICS = 600009 /* 0x0927C9 */;
_global.playerShield = false;
_global.Shield = null;
_global.enemy1_SpeedShoot = 10;
_global.enemy2_SpeedShoot = 13;
_global.enemy3_SpeedShoot = 10;
_global.enemy4_SpeedShoot = 13;
_global.enemy5_SpeedShoot = 13;
_global.enemy6_SpeedShoot = 13;
_global.enemy8_SpeedShoot = 15;
_global.enemy9_SpeedShoot = 10;
_global.enemy10_SpeedShoot = 8;
_global.enemy11_SpeedShoot = 13;
_global.enemy12_SpeedShoot = 13;
_global.world_move = null;
_global.world = null;
_global.game = null;
_global.player = null;
_global.special = null;
_global.level = 1;
_global.score = null;
_global.INDEF = -1;
_global.DEPTH_SHIELD_BOSS = 5049;
_global.DEPTH_BOSS = 5050;
_global.DEPTH_BOSS_LASER = 5051;
_global.DEPTH_SMOKE = 5052;
_global.KEY_A = 65;
_global.KEY_B = 66;
_global.KEY_C = 67;
_global.KEY_D = 68;
_global.KEY_E = 69;
_global.KEY_W = 87;
_global.KEY_X = 88;
_global.KEY_S = 83;
_global.KEY_P = 80;
_global.KEY_0 = 48;
_global.KEY_1 = 49;
_global.KEY_2 = 50;
_global.KEY_3 = 51;
_global.KEY_4 = 52;
_global.KEY_5 = 53;
_global.KEY_6 = 54;
_global.KEY_7 = 55;
_global.KEY_8 = 56;
_global.KEY_9 = 57;
_global.boss = null;
_global.IMPACT_NORMAL = 1;
_global.IMPACT_SPECIAL = 2;
_global.ST_INIT = 1;
_global.ST_BEGIN = 2;
_global.ST_STAND = 3;
_global.ST_MOVE = 4;
_global.ST_MOVE_UP = 5;
_global.ST_MOVE_DOWN = 6;
_global.ST_END_MOVE = 7;
_global.ST_MOVE_RIGHT = 7;
_global.ST_MOVE_LEFT = 8;
_global.ST_MOVE_TO_INIT = 9;
_global.ST_MOVE_TO_END = 10;
_global.ST_UP = 13;
_global.ST_DOWN = 14;
_global.ST_CENTER = 15;
_global.ST_CENTER_UP = 16;
_global.ST_MOVE_UP_DIAG_RIGHT = 20;
_global.ST_MOVE_UP_DIAG_LEFT = 21;
_global.ST_MOVE_DOWN_DIAG_RIGHT = 22;
_global.ST_MOVE_DOWN_DIAG_LEFT = 23;
_global.ST_FIRE = 30;
_global.ST_FIRE_SPECIAL = 31;
_global.ST_REST = 32;
_global.ST_HIT_NORMAL_FIRING = 35;
_global.ST_HIT_SPECIAL_FIRING = 36;
_global.ST_HIT_NORMAL = 51;
_global.ST_HIT_SPECIAL = 52;
_global.ST_THROW = 56;
_global.ST_BUDY = 57;
_global.ST_SUB_ACTION = 70;
_global.ST_SUB_ACTION_KILL = 71;
_global.ST_END = 500;
_global.ST_FINISH = 501;
_global.ST_DIE = 502;
_global.ST_KILL = 503;
_global.AC_BLOSSOM = 1;
_global.AC_BUBBLES = 2;
_global.AC_BUTTERCUP = 3;
_global.MISSILE_01 = 1;
_global.MISSILE_02 = 2;
_global.MISSILE_03 = 3;
_global.END_MISSILES = 4;
_global.ARM_CANNON = 1;
_global.ARM_LASER = 2;
_global.FRAME_PER_SECOND = 30;
_global.TIMER = 0;
_global.MOVE_HORI = 1;
_global.MOVE_DESC = 2;
_global.MOVE_2HOR = 3;
_global.MOVE_CIRC = 4;
_global.MOVE_ASCE = 5;
_global.MOVE_3HOR = 6;
_global.MOVE_SENO = 7;
_global.MOVE_ARCO = 8;
_global.MOVE_DOWN = 9;
_global.MOVE_APPE = 10;
_global.MOVE_ANG = 11;
_global.FRAME_BLOSSOM = "BLOSSOM";
_global.FRAME_BUBBLES = "BUBBLES";
_global.FRAME_BUTTERCUP = "BUTTERCUP";
_global.FRAME_SHIELD = "SHIELD";
_global.FRAME_HEALTH = "HEALTH";
_global.SHOOT_NORMAL = 1;
_global.SHOOT_SPECIAL = 2;
_global.SHOOT_FALL = 3;
_global.SHOOT_MINE = 4;
_global.pauseMatrix = false;
_global.soundEffect = new Sound();
_global.activeSound = false;
_global.BOSS_03_LIFE = 300;
_global.numPuppies;
_global.takenPuppies;
_global.getRandom = function (min, max) {
return(Math.floor(Math.random() * ((max - min) + 1)) + min);
};
_global.clearSimSet = function (simSet) {
var _local2 = simSet.getCount();
var _local1 = _local2 - 1;
while (_local1 >= 0) {
object = simSet.removeIndex(_local1);
object.free();
delete object;
_local1--;
}
};
_global.VectorLength = function (dx, dy) {
return(Math.sqrt((dx * dx) + (dy * dy)));
};
this._lockroot = true;
_root._quality = "MEDIUM";
this._lockroot = true;
if (_global.nLevel == 1) {
_global.game = new clsGameLevel1();
}
if (_global.nLevel == 2) {
_global.game = new clsGameLevel2();
}
if (_global.nLevel == 3) {
_global.game = new clsGameLevel3();
}
_root.onEnterFrame = function () {
_global.game.update();
if (Key.isDown(_global.KEY_X)) {
if (!_global.playerChange) {
if (!_global.playerImpact) {
if (_global.levelCharge <= 10) {
_root.mc_player.gotoAndStop("CHANGE");
_global.playerChange = true;
}
}
}
}
};
Frame 29
stop();
if (_global.rescueAllPuppies) {
_global.powP = true;
_global.powO = true;
_global.powW = true;
_global.game.updatePow();
trace(_root.mc_energy.mc_pow_max);
this.mc_energy.mc_pow_max.gotoAndPlay("MAX");
_global.rescueAllPuppies = false;
}
Frame 33
stop();
delete _global.game;
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
this.gotoAndPlay("MAINMENU");
}
} else {
_global.listenKey = true;
}
};
Frame 38
stop();
delete _global.game;
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
var _local3 = new Date().getTime();
loadMovieNum ("games/action/ppg/attackofthepuppybots/tracker.swf?" + _local3, 10000);
stopAllSounds();
switch (_global.nLevel) {
case 1 :
this.gotoAndStop("SCR_LEVEL01");
break;
case 2 :
this.gotoAndStop("SCR_LEVEL02");
break;
case 3 :
this.gotoAndStop("SCR_LEVEL03");
break;
default :
this.gotoAndStop("MAINMENU");
}
}
} else {
_global.listenKey = true;
}
};
Frame 46
stop();
_global.nLevel = 1;
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
this.gotoAndPlay("GAME");
}
} else {
_global.listenKey = true;
}
};
Frame 56
stop();
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
this.gotoAndPlay("SCR_LEVEL02");
}
} else {
_global.listenKey = true;
}
};
Frame 65
stop();
_global.nLevel = 2;
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
this.gotoAndPlay("GAME");
}
} else {
_global.listenKey = true;
}
};
Frame 75
stop();
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
this.gotoAndPlay("SCR_LEVEL03");
}
} else {
_global.listenKey = true;
}
};
Frame 84
stop();
_global.nLevel = 3;
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
this.gotoAndPlay("GAME");
}
} else {
_global.listenKey = true;
}
};
Frame 94
stop();
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
this.gotoAndPlay("WIN");
}
} else {
_global.listenKey = true;
}
};
Frame 103
stop();
onEnterFrame = null;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (_global.listenKey) {
_global.listenKey = false;
this.gotoAndPlay("STORY");
}
} else {
_global.listenKey = true;
}
};
Symbol 19 MovieClip Frame 100
clsFla.endStatisticPanel();
Symbol 25 MovieClip Frame 100
clsFla.endStatisticPanel();
Symbol 41 MovieClip Frame 100
clsFla.endStatisticPanel();
Symbol 45 MovieClip Frame 100
clsFla.endStatisticPanel();
Symbol 49 MovieClip Frame 100
clsFla.endStatisticPanel();
Symbol 84 MovieClip [mc_bomba_boss03] Frame 1
#initclip 32
Object.registerClass("mc_bomba_boss03", clsCollisionBullet);
#endinitclip
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 12
_global.boss.orderRobotNormal();
Symbol 94 MovieClip Frame 19
_root.mc_boss.mc_robot.gotoAndStop("normal");
Symbol 111 MovieClip Frame 49
stop();
_global.boss.onAnimationEnd();
Symbol 124 MovieClip Frame 27
_global.boss.onAnimationEnd();
stop();
Symbol 136 MovieClip Frame 38
stop();
_global.boss.onAnimationEnd();
Symbol 137 MovieClip Frame 11
Symbol 140 MovieClip Frame 22
stop();
_global.boss.onAnimationEnd();
Symbol 148 MovieClip Frame 1
_global.boss.shootUp(0);
Symbol 148 MovieClip Frame 28
_global.boss.shootUp(1);
Symbol 148 MovieClip Frame 53
_global.boss.shootUp(2);
Symbol 148 MovieClip Frame 68
stop();
_global.boss.onAnimationEnd();
Symbol 149 MovieClip Frame 1
_global.boss.shootDown(0);
Symbol 149 MovieClip Frame 28
_global.boss.shootDown(1);
Symbol 149 MovieClip Frame 53
_global.boss.shootDown(2);
Symbol 149 MovieClip Frame 68
stop();
_global.boss.onAnimationEnd();
Symbol 155 MovieClip Frame 7
_global.boss.orderAdditionalFire(1);
Symbol 155 MovieClip Frame 12
_global.boss.orderAdditionalFire(2);
Symbol 155 MovieClip Frame 17
_global.boss.orderAdditionalFire(3);
Symbol 155 MovieClip Frame 25
stop();
_global.boss.onAnimationEnd();
Symbol 158 MovieClip Frame 16
_global.boss.onAnimationEnd();
Symbol 169 MovieClip Frame 1
stopAllSounds();
Symbol 169 MovieClip Frame 30
_root.mc_energy_boss.removeMovieClip();
Symbol 169 MovieClip Frame 92
stop();
_global.boss.onAnimationEnd();
stop();
_global.boss.onAnimationEnd();
Symbol 170 MovieClip [mc_boss03] Frame 1
stop();
Symbol 170 MovieClip [mc_boss03] Frame 10
stop();
Symbol 170 MovieClip [mc_boss03] Frame 20
stop();
Symbol 170 MovieClip [mc_boss03] Frame 30
stop();
Symbol 170 MovieClip [mc_boss03] Frame 40
stop();
Symbol 170 MovieClip [mc_boss03] Frame 50
stop();
Symbol 170 MovieClip [mc_boss03] Frame 60
stop();
Symbol 170 MovieClip [mc_boss03] Frame 70
stop();
Symbol 194 MovieClip [mc_mojo02_latigo02] Frame 1
#initclip 30
Object.registerClass("mc_mojo02_latigo02", clsCollisionBullet);
#endinitclip
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 13
stop();
this.gotoAndStop("normal");
Symbol 228 MovieClip Frame 68
_global.boss.action.onAnimationRobotEnd();
Symbol 261 MovieClip Frame 18
_global.boss.onAnimationEnd();
Symbol 278 MovieClip Frame 16
_global.boss.action.onThrow();
Symbol 280 MovieClip Frame 40
_global.boss.onAnimationEnd();
Symbol 284 MovieClip Frame 81
_global.boss.onAnimationEnd();
Symbol 300 MovieClip Frame 1
stopAllSounds();
Symbol 300 MovieClip Frame 20
_root.mc_energy_boss.removeMovieClip();
Symbol 300 MovieClip Frame 92
stop();
_global.boss.onAnimationEnd();
Symbol 301 MovieClip [mc_boss02] Frame 1
stop();
Symbol 301 MovieClip [mc_boss02] Frame 11
stop();
Symbol 301 MovieClip [mc_boss02] Frame 18
stop();
Symbol 420 MovieClip [mc_enemy_bullet_5] Frame 1
this.onEnterFrame = function () {
if (xOld == this._x) {
this._x = 0;
this._y = 0;
this._xscale = 0;
this._yscale = 0;
}
xOld = this._x;
};
Symbol 436 MovieClip Frame 7
clsFla.endEnemyShoot(this);
Symbol 441 MovieClip Frame 7
clsFla.impactEnemy(this);
Symbol 442 MovieClip [mc_enemy_8] Frame 1
stop();
var ID;
Symbol 443 MovieClip [mc_enemy_bullet_8] Frame 1
this.onEnterFrame = function () {
if (xOld == this._x) {
this._x = 0;
this._y = 0;
this._xscale = 0;
this._yscale = 0;
}
xOld = this._x;
};
Symbol 461 MovieClip Frame 10
stop();
Symbol 464 MovieClip Frame 6
clsFla.impactEnemy(this);
Symbol 465 MovieClip [mc_enemy_7] Frame 1
stop();
var ID;
Symbol 476 MovieClip Frame 10
clsFla.endEnemyShoot(this);
Symbol 483 MovieClip Frame 8
clsFla.impactEnemy(this);
Symbol 484 MovieClip [mc_enemy_9] Frame 1
stop();
var ID;
Symbol 507 MovieClip Frame 9
clsFla.endEnemyShoot(this);
Symbol 514 MovieClip Frame 6
clsFla.impactEnemy(this);
Symbol 525 MovieClip Frame 14
this._parent.gotoAndStop("STAND");
Symbol 526 MovieClip [mc_enemy_11] Frame 1
stop();
var ID;
Symbol 529 MovieClip [mc_enemy_bullet_11] Frame 1
this.onEnterFrame = function () {
if (xOld == this._x) {
this._x = 0;
this._y = 0;
this._xscale = 0;
this._yscale = 0;
}
xOld = this._x;
};
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 14
stop();
_global.boss.onAnimationEnd();
Symbol 534 MovieClip Frame 70
stop();
_global.boss.onAnimationEnd();
Symbol 568 MovieClip Frame 16
stop();
_global.boss.onAnimationEnd();
Symbol 568 MovieClip Frame 52
stop();
_global.boss.onAnimationEnd();
Symbol 575 MovieClip Frame 13
_global.boss.onShotMissile(_global.MISSILE_01);
Symbol 575 MovieClip Frame 20
_global.boss.onShotMissile(_global.MISSILE_02);
Symbol 575 MovieClip Frame 28
_global.boss.onShotMissile(_global.MISSILE_03);
Symbol 575 MovieClip Frame 40
stop();
_global.boss.onShotMissile(_global.END_MISSILES);
Symbol 593 MovieClip Frame 1
stopAllSounds();
Symbol 593 MovieClip Frame 20
_root.mc_energy_boss.removeMovieClip();
Symbol 593 MovieClip Frame 92
stop();
_global.boss.onAnimationEnd();
Symbol 594 MovieClip [mc_boss01] Frame 1
stop();
Symbol 596 MovieClip [mc_bullet_3] Frame 1
this.onEnterFrame = function () {
if (xOld == this._x) {
this._x = 0;
this._y = 0;
this._xscale = 0;
this._yscale = 0;
}
xOld = this._x;
};
Symbol 607 MovieClip [mc_bullet_2] Frame 1
#initclip 31
Object.registerClass("mc_bullet_2", clsCollisionBullet);
#endinitclip
Symbol 627 MovieClip Frame 35
stop();
Symbol 638 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 10
clsFla.endShootTrap(this);
Symbol 684 MovieClip Frame 18
stop();
clsFla.dieTrap(this);
Symbol 690 MovieClip Frame 5
clsFla.endInitTrap(this);
Symbol 692 MovieClip Frame 12
this._parent.gotoAndStop("STAND");
Symbol 693 MovieClip Frame 1
stop();
Symbol 722 MovieClip Frame 67
stop();
clsFla.dieTrap(this);
Symbol 725 MovieClip Frame 50
clsFla.endInitTrap(this);
Symbol 729 MovieClip Frame 29
this._parent.gotoAndStop("STAND");
Symbol 730 MovieClip Frame 1
stop();
Symbol 750 MovieClip Frame 54
stop();
clsFla.dieTrap(this);
Symbol 760 MovieClip Frame 42
clsFla.endInitTrap(this);
Symbol 763 MovieClip Frame 25
this._parent.gotoAndStop("STAND");
Symbol 764 MovieClip Frame 1
stop();
Symbol 771 MovieClip [mc_bright_bonus_dog] Frame 6
clsFla.endTakenBonus(this);
Symbol 774 MovieClip [mc_bright_bonus] Frame 4
clsFla.endTakenBonus(this);
Symbol 801 MovieClip [mc_bonus_taken] Frame 7
clsFla.endTakenBonus(this);
Symbol 804 MovieClip [mc_enemy_die] Frame 10
clsFla.dieEnemy(this);
Symbol 819 MovieClip Frame 5
clsFla.impactEnemy(this);
Symbol 820 MovieClip [mc_enemy_1] Frame 1
stop();
var ID;
Symbol 830 MovieClip Frame 13
clsFla.endEnemyShoot(this);
Symbol 835 MovieClip Frame 11
clsFla.impactEnemy(this);
Symbol 836 MovieClip [mc_enemy_5] Frame 1
stop();
var ID;
Symbol 839 MovieClip Frame 10
clsFla.endEnemyShoot(this);
Symbol 842 MovieClip Frame 13
clsFla.impactEnemy(this);
Symbol 843 MovieClip [mc_enemy_3] Frame 1
stop();
var ID;
Symbol 845 MovieClip [mc_enemy_bullet_12] Frame 1
this.onEnterFrame = function () {
if (xOld == this._x) {
this._x = 0;
this._y = 0;
this._xscale = 0;
this._yscale = 0;
}
xOld = this._x;
};
Symbol 847 MovieClip [mc_enemy_bullet_10] Frame 1
this.onEnterFrame = function () {
if (xOld == this._x) {
this._x = 0;
this._y = 0;
this._xscale = 0;
this._yscale = 0;
}
xOld = this._x;
};
Symbol 849 MovieClip [mc_enemy_bullet_6] Frame 1
this.onEnterFrame = function () {
if (xOld == this._x) {
this._x = 0;
this._y = 0;
this._xscale = 0;
this._yscale = 0;
}
xOld = this._x;
};
Symbol 851 MovieClip [mc_enemy_bullet_3] Frame 1
this.onEnterFrame = function () {
if (xOld == this._x) {
this._x = 0;
this._y = 0;
this._xscale = 0;
this._yscale = 0;
}
xOld = this._x;
};
Symbol 859 MovieClip Frame 13
clsFla.endEnemyShoot(this);
Symbol 862 MovieClip Frame 6
clsFla.impactEnemy(this);
Symbol 863 MovieClip [mc_enemy_12] Frame 1
stop();
var ID;
Symbol 874 MovieClip Frame 10
clsFla.endEnemyShoot(this);
Symbol 879 MovieClip Frame 6
clsFla.impactEnemy(this);
Symbol 880 MovieClip [mc_enemy_10] Frame 1
stop();
var ID;
Symbol 896 MovieClip Frame 6
clsFla.endEnemyShoot(this);
Symbol 899 MovieClip Frame 11
clsFla.impactEnemy(this);
Symbol 900 MovieClip [mc_enemy_2] Frame 1
stop();
var ID;
Symbol 909 MovieClip Frame 7
clsFla.endEnemyShoot(this);
Symbol 913 MovieClip Frame 6
clsFla.impactEnemy(this);
Symbol 914 MovieClip [mc_enemy_6] Frame 1
stop();
var ID;
Symbol 922 MovieClip Frame 10
clsFla.endEnemyShoot(this);
Symbol 925 MovieClip Frame 7
clsFla.impactEnemy(this);
Symbol 926 MovieClip [mc_enemy_4] Frame 1
stop();
var ID;
Symbol 980 MovieClip [mc_win] Frame 76
stop();
clsFla.endWinAnimation();
Symbol 984 MovieClip Frame 300
stop();
Symbol 1011 MovieClip Frame 17
clsFla.endShootSpecial(this);
Symbol 1048 MovieClip Frame 25
clsFla.endShootSpecial(this);
Symbol 1049 MovieClip Frame 42
clsFla.endShootSpecial(this);
Symbol 1055 MovieClip Frame 40
clsFla.endShootSpecial(this);
Symbol 1057 MovieClip Frame 40
clsFla.endShootSpecial(this);
Symbol 1059 MovieClip Frame 40
clsFla.endShootSpecial(this);
Symbol 1076 MovieClip Frame 18
clsFla.endShootSpecial(this);
Symbol 1085 MovieClip Frame 28
clsFla.endShootSpecial(this);
Symbol 1093 MovieClip Frame 50
clsFla.endShootSpecial(this);
Symbol 1172 MovieClip Frame 49
clsFla.endShootPow(this);
Symbol 1184 MovieClip Frame 10
clsFla.endPlayerShoot(this);
Symbol 1187 MovieClip Frame 3
stop();
Symbol 1195 MovieClip Frame 9
clsFla.endPlayerImpact(this);
Symbol 1198 MovieClip Frame 6
clsFla.endPlayerChange(this);
stop();
Symbol 1201 MovieClip Frame 12
clsFla.endPlayerImpact(this);
Symbol 1202 MovieClip [mc_buttercup] Frame 1
stop();
Symbol 1205 MovieClip [mc_ch3] Frame 2
gotoAndPlay (1);
Symbol 1205 MovieClip [mc_ch3] Frame 11
Symbol 1215 MovieClip Frame 7
clsFla.endPlayerShoot(this);
Symbol 1226 MovieClip Frame 9
clsFla.endPlayerImpact(this);
Symbol 1233 MovieClip Frame 38
stop();
Symbol 1234 MovieClip Frame 1
Symbol 1236 MovieClip Frame 5
clsFla.endPlayerChange(this);
Symbol 1237 MovieClip Frame 12
clsFla.endPlayerImpact(this);
Symbol 1238 MovieClip [mc_bubbles] Frame 1
stop();
Symbol 1255 MovieClip Frame 8
clsFla.endPlayerShoot(this);
Symbol 1266 MovieClip Frame 8
stop();
Symbol 1275 MovieClip Frame 9
clsFla.endPlayerImpact(this);
Symbol 1287 MovieClip Frame 7
stop();
Symbol 1290 MovieClip Frame 6
clsFla.endPlayerChange(this);
stop();
Symbol 1291 MovieClip Frame 12
clsFla.endPlayerImpact(this);
Symbol 1292 MovieClip [mc_blossom] Frame 1
stop();
Symbol 1301 MovieClip [mc_ch1] Frame 2
gotoAndPlay (1);
Symbol 1301 MovieClip [mc_ch1] Frame 11
Symbol 1393 MovieClip [mc_gui_start] Frame 60
clsFla.endGuiStart(this);
Symbol 1395 MovieClip [mc_fade_out] Frame 30
clsFla.endFadeOut(this);
Symbol 1403 MovieClip [mc_animation_final] Frame 95
clsFla.endWinAnimation(this);
Symbol 1415 Button
on (release) {
var fakeVar = new Date().getTime();
loadMovieNum ("http://www.cartoonnetwork.com/games/action/ppg/attackofthepuppybots/tracker.swf?" + fakeVar, 10000);
this.gotoAndStop("HELP");
}
Symbol 1628 MovieClip [__Packages.clsFla] Frame 0
class clsFla
{
function clsFla () {
}
static function endPlayerChange(clip) {
_global.playerChange = false;
_global.playerShoot = false;
_global.game.changeGirl(_root.mc_player._x, _root.mc_player._y);
}
static function endPlayerShoot(clip) {
_global.playerShoot = false;
clip._parent.gotoAndStop("FLY");
}
static function dieEnemy(clip) {
clip.removeMovieClip();
}
static function endEnemyShoot(clip) {
clip._parent.gotoAndStop("STAND");
}
static function impactEnemy(clip) {
clip._parent.gotoAndStop("STAND");
}
static function endPlayerImpact(clip) {
_global.playerImpact = false;
_global.playerShoot = false;
_global.game.playerShield(1000);
clip._parent.gotoAndStop("FLY");
}
static function endShootSpecial(clip) {
_global.playerChange = false;
_global.playerShoot = false;
_root.mc_player.gotoAndStop("FLY");
if (_root.mc_special._currentframe == 30) {
clip._parent.removeMovieClip();
} else {
clip._parent._parent.removeMovieClip();
}
if (_global.trap && (_global.girlActive == _global.AC_BUTTERCUP)) {
_root.mc_player._x = 80;
}
_global.special.free();
}
static function endTakenBonus(clip) {
clip.removeMovieClip();
}
static function dieTrap(clip) {
clip._alpha = 0;
}
static function endShootPow(clip) {
_root.mc_player.gotoAndStop("FLY");
_root.mc_player._alpha = 100;
_root.mc_player_1._alpha = 100;
_root.mc_player_2._alpha = 100;
_root.mc_player_pow.removeMovieClip();
endShootSpecial(clip);
}
static function endShootTrap(clip) {
clip._parent.gotoAndStop("STAND");
}
static function endInitTrap(clip) {
_global.trapCheck = true;
clip._parent.gotoAndStop("STAND");
}
static function endAnimaCharge(clip) {
clip._parent.gotoAndStop("FLY");
}
static function endGuiStart(clip) {
clip.removeMovieClip();
_global.game.initMoveBack();
}
static function endWinAnimation(clip) {
if (_global.nLevel == 3) {
clip.removeMovieClip();
_global.game.freeWorld();
_root.gameWin();
} else {
_global.game.createStatisticPanel();
}
}
static function endFadeOut(clip) {
_global.game.free();
_global.game.freeWorld();
clip.removeMovieClip();
_root.gameOver();
}
static function endStatisticPanel() {
_root.mc_win.removeMovieClip();
_root.mc_statisticsGame.removeMovieClip();
_global.game.freeWorld();
_root.gameWin();
}
}
Symbol 1629 MovieClip [__Packages.clsCollisionBullet] Frame 0
class clsCollisionBullet extends MovieClip
{
var hitTest;
function clsCollisionBullet () {
super();
}
function onEnterFrame() {
var _local5 = _root.mc_player.mc_collision;
var _local4 = {x:_local5._x, y:_local5._y};
_root.mc_player.localToGlobal(_local4);
if (hitTest(_local4.x, _local4.y, true)) {
if (!_global.playerShield) {
if (_global.playerChange) {
_global.game.playerImpactChange(mDamage);
} else {
switch (mTypeArm) {
case _global.ARM_CANNON :
_global.game.playerImpact(mDamage);
break;
case _global.ARM_LASER :
_global.game.playerImpactShock(mDamage);
break;
default :
_global.game.playerImpactShock(-20);
}
}
}
}
}
var mDamage = 0;
var mTypeArm = 0;
}
Symbol 1630 MovieClip [__Packages.clsGame] Frame 0
class clsGame
{
var freezed, speedBG0, speedBG1, speedBG2, namePanel, dx, dy, ang, move;
function clsGame () {
freezed = false;
init();
swapDepths();
speedBG0 = _global._BG00_DISPLACE;
speedBG1 = _global._BG01_DISPLACE;
speedBG2 = _global._BG02_DISPLACE;
_global._BG00_DISPLACE = 0;
_global._BG01_DISPLACE = 0;
_global._BG02_DISPLACE = 0;
}
function frames() {
return(mFrames);
}
function createBoss01() {
_global.boss = new clsBoss_01("mc_boss01", BOSS_01_INIT_X, BOSS_01_INIT_Y);
var _local2 = new clsActionBoss_01(_global.boss);
_local2.addAttackPosition(440, 10);
_local2.addAttackPosition(434, 175);
_global.boss.action = _local2;
_global.boss.action.active = true;
}
function createBoss02() {
_global.boss = new clsBoss_02("mc_boss02", BOSS_02_INIT_X, BOSS_02_INIT_Y);
var _local2 = new clsActionBoss_02(_global.boss);
_local2.addAttackPosition(429, 4);
_local2.addAttackPosition(429, 178);
_local2.addAttackPosition(429, 84);
_local2.addAttackPosition(212, -49);
_global.boss.action = _local2;
_global.boss.action.active = true;
}
function createBoss03() {
_global.bossLife = _global.BOSS_03_LIFE;
_global.boss = new clsBoss_03("mc_boss03", BOSS_03_INIT_X, BOSS_03_INIT_Y);
var _local2 = new clsActionBoss_03(_global.boss, "createBoss03");
_local2.addAttackPosition(429, 50);
_local2.addAttackPosition(429, 115);
_local2.addAttackPosition(429, 180);
_local2.addAttackPosition(350, 115);
_local2.addAttackPosition(640, 115);
_global.boss.action = _local2;
_global.boss.action.active = true;
}
function swapDepths() {
_root.mc_energy.swapDepths(_global.DEPTH_ENERGY);
_root.mc_player_1.swapDepths(_global.DEPTH_PLAYER_1);
_root.mc_player_2.swapDepths(_global.DEPTH_PLAYER_2);
}
function init() {
_global.playerAlive = true;
mzActors = new Array();
mzActorsEnemy = new Array();
mzActorInLevel = new Array();
idActor = 0;
idNumActor = 0;
_global.takenPuppies = 0;
updateEnergy(100);
showPanelStart();
namePanel = "mc_panel_trap";
_global.score = 0;
numFrames = 0;
frameCreate = 27;
_root.mc_energy.swapDepths(_global.DEPTH_ENERGY);
clearPow();
}
function clearPow() {
_global.powP = false;
_global.powO = false;
_global.powW = false;
updatePow();
}
function deleteEnemy(clip) {
var _local2 = 0;
while (_local2 < mzActorsEnemy.length) {
if (mzActorsEnemy[_local2] == clip) {
mzActorsEnemy.splice(_local2, 1);
}
_local2++;
}
}
function changeCharacter(nNew, nOld) {
var _local3 = 0;
while (_local3 < mzGirl.length) {
if (mzGirl[_local3][1] == nNew) {
mzGirl[_local3][0].gotoAndPlay("CHANGE");
createGirl("mc_ch" + nOld, mzGirl[_local3][0], _root["mc_player_" + (_local3 + 1)]._x, _root["mc_player_" + (_local3 + 1)]._y, mzGirl[_local3][2]);
mzGirl[_local3][1] = nOld;
}
_local3++;
}
}
function createGirl(nameClip, newName, x, y, depth) {
var _local2 = _root.attachMovie(nameClip, newName, depth);
_local2._x = x;
_local2._y = y;
}
function createActor() {
if (mzActorInLevel[idActor][0] != 0) {
var _local5;
if (mzActorInLevel[idActor][0] == OBJECT_ENEMY) {
if (mzActorInLevel[idActor][4] == 1) {
_local5 = new clsEnemy(idNumActor, mzActorInLevel[idActor][1], mzActorInLevel[idActor][2], mzActorInLevel[idActor][3], mzActorInLevel[idActor][5], mzActorInLevel[idActor][6], mzActorInLevel[idActor][7], mzActorInLevel[idActor][8], mzActorInLevel[idActor][9], mzActorInLevel[idActor][10], mzActorInLevel[idActor][11]);
addActor(_local5);
} else {
var _local6 = Math.floor(mzActorInLevel[idActor][4]);
var _local7 = (mzActorInLevel[idActor][4] * 10) % 10;
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = mzActorInLevel[idActor][7] + ((_local7 * _local3) * SPACE_E);
if (_local4 <= 400) {
_local5 = new clsEnemy(idNumActor, mzActorInLevel[idActor][1], mzActorInLevel[idActor][2], mzActorInLevel[idActor][3], mzActorInLevel[idActor][5], mzActorInLevel[idActor][6], _local4, mzActorInLevel[idActor][8] + random(10), mzActorInLevel[idActor][9], mzActorInLevel[idActor][10], mzActorInLevel[idActor][11]);
addActor(_local5);
}
_local3++;
}
}
}
if (mzActorInLevel[idActor][0] == OBJECT_BONUS) {
_local5 = new clsBonus(idNumActor, mzActorInLevel[idActor][1], mzActorInLevel[idActor][2], mzActorInLevel[idActor][3]);
addActor(_local5);
}
if (mzActorInLevel[idActor][0] == OBJECT_TRAP) {
_local5 = new clsTrap(idNumActor, mzActorInLevel[idActor][1]);
addActor(_local5);
_local5 = new clsBossTrap(idNumActor, mzActorInLevel[idActor][1]);
addActor(_local5);
}
if (mzActorInLevel[idActor][0] == OBJECT_BOSS) {
switch (mzActorInLevel[idActor][1]) {
case 1 :
createBoss01();
break;
case 2 :
createBoss02();
break;
case 3 :
createBoss03();
break;
default :
createBoss01();
}
_global.endLevel = true;
}
}
idActor++;
}
function addActor(object) {
mzActors.push([object, idNumActor]);
idNumActor++;
}
function deleteActor(id) {
var _local2 = 0;
while (_local2 < mzActors.length) {
if (mzActors[_local2][1] == id) {
delete mzActors[_local2][0];
}
_local2++;
}
}
function update() {
if (!freezed) {
mFrames++;
onClock();
_global.player.update();
_global.world.update();
_global.special.update();
_global.world_move.update();
_global.msgPanel.update();
if (!_global.trap) {
if (!_global.pauseMatrix) {
frameRate();
}
}
var _local4 = 0;
while (_local4 < mzActors.length) {
mzActors[_local4][0].update();
_local4++;
}
moveFollow(_root.mc_player_1, _root.mc_player);
moveFollow(_root.mc_player_2, _root.mc_player_1);
_root.mc_player_shield._x = _root.mc_player._x;
_root.mc_player_shield._y = _root.mc_player._y;
if (_global.boss) {
if (_global.boss.mState == _global.ST_KILL) {
_global.boss.free();
delete _global.boss;
_global.boss = null;
_global.game.free();
if (_global.nLevel == 3) {
winFinalLevel();
} else {
_global.game.winLevel();
}
} else {
_global.boss.update();
}
}
}
}
function onClock() {
mCountFrames++;
if ((mCountFrames % _global.FRAME_PER_SECOND) == 0) {
mCountFrames = 1;
_global.TIMER++;
}
}
function frameRate() {
numFrames++;
if ((numFrames % frameCreate) == 0) {
createActor();
}
}
static function getNextCreationDepth() {
if (mDepth >= DEPTH_MAX_CREATE) {
mDepth = DEPTH_MIN_CREATE;
} else {
mDepth++;
}
return(mDepth);
}
function free() {
_global.freeGame = true;
_global.special.free();
_global.player.free();
_global.Shield.free();
_global.msgPanel.free();
var _local4 = 0;
while (_local4 < mzActors.length) {
mzActors[_local4][0].free();
delete mzActors[_local4];
_local4++;
}
_root.mc_gui_start.removeMovieClip();
_root.mc_energy.removeMovieClip();
_root.mc_player_1.removeMovieClip();
_root.mc_player_2.removeMovieClip();
_root.mc_bright_bonus.removeMovieClip();
_root.mc_energy_boss.removeMovieClip();
mzActorInLevel = null;
if (_global.boss) {
_global.boss.free();
delete _global.boss;
_global.boss = null;
}
}
function freeWorld() {
_global.world.free();
_global.world_move.free();
stopAllSounds();
}
function pausePanel() {
var _local3 = _root.attachMovie("mc_panel_pausa", "mc_panel_pausa", _global.DEPTH_PAUSE);
_local3._alpha = 30;
_local3._x = 0;
_local3._y = 0;
}
function changeGirl(x, y) {
_global.girlActive++;
if (_global.girlActive > 3) {
_global.girlActive = 1;
}
_root.mc_player.removeMovieClip();
switch (_global.girlActive) {
case 1 :
changeCharacter(1, 3);
_global.player = new clsPlayer("mc_blossom", x, y);
_root.mc_energy.gotoAndStop("CH1");
break;
case 2 :
changeCharacter(2, 1);
_global.player = new clsPlayer("mc_bubbles", x, y);
_root.mc_energy.gotoAndStop("CH2");
break;
case 3 :
changeCharacter(3, 2);
_global.player = new clsPlayer("mc_buttercup", x, y);
_root.mc_energy.gotoAndStop("CH3");
}
}
function shootEnemy(nameClip, x, y, speed, move, damage, angleBase, angleRange, quantity, scale) {
var _local6;
if (angleBase == undefined) {
angleBase = 180;
}
if (((quantity == 0) || (quantity == 1)) || (quantity == undefined)) {
quantity = 1;
_local6 = 0;
} else if ((angleRange == 0) || (angleRange == undefined)) {
_local6 = angleRange;
} else {
_local6 = angleRange / (quantity - 1);
}
var _local2 = 0;
while (_local2 < quantity) {
var _local3 = angleBase + (_local6 * _local2);
var _local4 = new clsShootEnemy(idNumActor, nameClip, x, y, speed, move, damage, _local3, scale);
addActor(_local4);
_local2++;
}
}
function playerShieldBonus() {
playerShield(TIME_SHIELD);
_global.Shield = new clsShield(_root.mc_player._x, _root.mc_player._y);
}
function playerShield(time) {
_global.playerShield = true;
_root.mc_player._alpha = 50;
idShield = setInterval(this, "deleteShield", time);
}
function deleteShield() {
_root.mc_player._alpha = 100;
_global.playerShield = false;
_global.Shield.free();
clearInterval(idShield);
}
function updateEnergy(n) {
_global.playerLife = _global.playerLife + n;
if (_global.playerLife >= 100) {
_global.playerLife = 100;
}
if (_global.playerLife < 1) {
_global.playerLife = 1;
}
if (_global.playerLife > 1) {
var _local4 = _global.playerLife;
_root.mc_energy.mc_life.gotoAndStop(_local4);
} else if (_global.playerAlive) {
_root.mc_energy.mc_life.gotoAndStop(1);
_global.playerAlive = false;
var _local3 = _root.attachMovie("mc_fade_out", "mc_fade_out", _global.DEPTH_FADE);
_global.game.freezed = true;
_local3._x = 0;
_local3._y = 0;
}
}
function playerCharge(n) {
_global.levelCharge = _global.levelCharge + n;
if (_global.levelCharge >= _global.limitCharge) {
_global.levelCharge = _global.limitCharge;
}
if (_global.levelCharge <= 1) {
_global.levelCharge = 1;
stopSound(_global.soundEffect, "sndChargeGirl");
}
var _local4 = _global.levelCharge;
_root.mc_energy.mc_charge.gotoAndStop(_local4);
}
function dieEnemy(nameClip, x, y) {
var _local2 = getNextCreationDepth();
var _local3 = _root.attachMovie(nameClip, nameClip + _local2, _local2);
_local3._x = x;
_local3._y = y;
}
function playerImpact(n) {
_root.mc_player.gotoAndStop("IMPACT");
playerCommonImpact(n);
}
function playerImpactShock(n) {
_root.mc_player.gotoAndStop("SHOCK");
playerCommonImpact(n);
}
function playerCommonImpact(n) {
_global.playerImpact = true;
_global.playerShield = true;
_global.playerShoot = true;
_global.checkCharge = false;
playerCharge(-_global.limitCharge);
updateEnergy(n);
if (_global.playerChange) {
_global.playerChange = false;
_global.playerShoot = false;
}
}
function playerImpactChange(n) {
_global.checkCharge = false;
playerCharge(-_global.limitCharge);
updateEnergy(n);
}
function playerPow() {
_root.mc_player.gotoAndStop("POW");
_root.mc_player._alpha = 0;
_root.mc_player_1._alpha = 0;
_root.mc_player_2._alpha = 0;
}
function initPow() {
_root.mc_energy.mc_pow_1.gotoAndStop(1);
_root.mc_energy.mc_pow_2.gotoAndStop(1);
_root.mc_energy.mc_pow_3.gotoAndStop(1);
}
function updatePow() {
if (_global.powP) {
_root.mc_energy.mc_pow_1._alpha = 100;
_root.mc_energy.mc_pow_1.gotoAndPlay(1);
} else {
_root.mc_energy.mc_pow_1._alpha = ALPHA_POW;
}
if (_global.powO) {
_root.mc_energy.mc_pow_2._alpha = 100;
_root.mc_energy.mc_pow_2.gotoAndPlay(1);
} else {
_root.mc_energy.mc_pow_2._alpha = ALPHA_POW;
}
if (_global.powW) {
_root.mc_energy.mc_pow_3._alpha = 100;
_root.mc_energy.mc_pow_3.gotoAndPlay(1);
} else {
_root.mc_energy.mc_pow_3._alpha = ALPHA_POW;
}
if ((_global.powP && (_global.powO)) && (_global.powW)) {
_global.POW = true;
_root.mc_energy.mc_pow_max.gotoAndPlay("MAX");
} else {
_global.POW = false;
_root.mc_energy.mc_pow_max.gotoAndStop(1);
}
}
function moveFollow(obj, objTarget) {
dx = objTarget._x - obj._x;
dy = objTarget._y - obj._y;
if (((dx > (-SNAP)) && (dx < SNAP)) && ((dy > (-SNAP)) && (dy < SNAP))) {
} else {
ang = Math.atan2(dy, dx);
obj._x = obj._x + (speed * Math.cos(ang));
obj._y = obj._y + (speed * Math.sin(ang));
}
}
function impactBoss(damage, type) {
if (_global.boss) {
_global.boss.onCollisionBullet(type, damage);
if (_global.bossLife < 1) {
_global.bossLife = 1;
}
_root.mc_energy_boss.mc_life.gotoAndStop(_global.bossLife);
}
}
function initMoveBack() {
var _local4 = speedBG0 / 10;
var _local3 = speedBG1 / 10;
var _local2 = speedBG2 / 10;
move = setInterval(this, "moveBack", 300, _local4, _local3, _local2);
}
function moveBack(inc1, inc2, inc3) {
tMove++;
if (tMove >= 10) {
clearInterval(move);
_global._BG00_DISPLACE = speedBG0;
_global._BG01_DISPLACE = speedBG1;
_global._BG02_DISPLACE = speedBG2;
} else {
_global._BG00_DISPLACE = _global._BG00_DISPLACE + inc1;
_global._BG01_DISPLACE = _global._BG01_DISPLACE + inc2;
_global._BG02_DISPLACE = _global._BG02_DISPLACE + inc3;
}
}
function stopMoveBack() {
var _local5 = speedBG0 / 10;
var _local4 = speedBG1 / 10;
var _local3 = speedBG2 / 10;
_global._BG00_DISPLACE = _global._BG00_DISPLACE - _local5;
_global._BG01_DISPLACE = _global._BG01_DISPLACE - _local4;
_global._BG02_DISPLACE = _global._BG02_DISPLACE - _local3;
if (((_global._BG00_DISPLACE <= 0) || (_global._BG02_DISPLACE <= 0)) || (_global._BG02_DISPLACE <= 0)) {
_global._BG00_DISPLACE = 0;
_global._BG01_DISPLACE = 0;
_global._BG02_DISPLACE = 0;
}
}
function createMsgPanel(nameClip, frame, appear, duration) {
_global.msgPanel = new clsPanel(nameClip, frame, appear, duration);
}
function showPanelStart() {
var _local3 = _root.attachMovie("mc_gui_start", "mc_gui_start", _global.DEPTH_START);
_local3._x = 0;
_local3._y = 0;
}
function winLevel() {
var _local3 = _root.attachMovie("mc_win", "mc_win", _global.DEPTH_WIN);
_local3._x = 300;
_local3._y = 230;
}
function winFinalLevel() {
var _local3 = _root.attachMovie("mc_animation_final", "mc_win", _global.DEPTH_WIN);
_local3._x = 300;
_local3._y = 150;
}
function initGirl(nameClip, nActive, nSecond01, nSecond02) {
createGirl("mc_ch" + nSecond01, "mc_player_1", 60, 250, _global.DEPTH_PLAYER_1);
createGirl("mc_ch" + nSecond02, "mc_player_2", 40, 300, _global.DEPTH_PLAYER_2);
mzGirl = [["mc_player_1", nSecond01, _global.DEPTH_PLAYER_1], ["mc_player_2", nSecond02, _global.DEPTH_PLAYER_2]];
_global.girlActive = nActive;
_root.mc_energy.gotoAndStop("CH" + _global.girlActive);
_global.player = new clsPlayer(nameClip, 120, 200);
}
function startSound(sSound, sAttach) {
sSound.stop(sSound, sAttach);
sSound.attachSound(sAttach);
sSound.start();
}
function stopSound(sSound, sAttach) {
_global.activeSound = false;
sSound.stop(sAttach);
}
function takenPuppy() {
_global.takenPuppies++;
}
function createStatisticPanel() {
var _local3 = Math.floor((_global.takenPuppies / _global.numPuppies) * 100);
var _local5 = 0;
if (_local3 < 40) {
_local5 = 5;
}
if ((_local3 >= 40) && (_local3 < 60)) {
_local5 = 4;
}
if ((_local3 >= 60) && (_local3 < 80)) {
_local5 = 3;
}
if ((_local3 >= 80) && (_local3 < 100)) {
_local5 = 2;
}
if (_local3 >= 100) {
_local5 = 1;
_global.rescueAllPuppies = true;
}
var _local4 = _root.attachMovie("mc_statisticsGame", "mc_statisticsGame", _global.DEPTH_STADISTICS);
_local4._x = 300;
_local4._y = 130;
_local4.gotoAndStop("TYPE" + _local5);
_local4.txt_dec_taken.gotoAndStop("N_" + Math.floor(_global.takenPuppies / 10));
_local4.txt_uni_taken.gotoAndStop("N_" + (_global.takenPuppies % 10));
_local4.txt_dec_total.gotoAndStop("N_" + Math.floor(_global.numPuppies / 10));
_local4.txt_uni_total.gotoAndStop("N_" + (_global.numPuppies % 10));
_local4.txt_percent.text = _local3 + " %";
trace(_root.mc_statisticsGame);
}
static var PUPPY_PA = 31;
static var PUPPY_PB = 32;
static var PUPPY_PC = 33;
static var PUPPY_PD = 34;
static var PUPPY_PE = 35;
static var PUPPY_PF = 36;
static var PA = 1;
static var PB = 2;
static var PC = 5;
static var PD = 6;
static var PE = 9;
static var PF = 10;
static var HA = 3;
static var HB = 4;
static var HC = 7;
static var HD = 8;
static var HE = 11;
static var HF = 12;
static var PA_SP = 7.5;
static var PB_SP = 7;
static var PC_SP = 7.5;
static var PD_SP = 7;
static var PE_SP = 7.5;
static var PF_SP = 7.5;
static var HA_SP = 7;
static var HB_SP = 7.5;
static var HC_SP = 7;
static var HD_SP = 7.5;
static var HE_SP = 7.5;
static var HF_SP = 7.5;
static var PA_D = -6;
static var PB_D = -6;
static var PC_D = -8;
static var PD_D = -8;
static var PE_D = -8;
static var PF_D = -10;
static var HA_D = -10;
static var HB_D = -8;
static var HC_D = -10;
static var HD_D = -6;
static var HE_D = -10;
static var HF_D = -10;
static var PA_S = -10;
static var PB_S = -8;
static var PC_S = -6;
static var PD_S = -8;
static var PE_S = -8;
static var PF_S = -10;
static var HA_S = -8;
static var HB_S = -8;
static var HC_S = -10;
static var HD_S = -10;
static var HE_S = -8;
static var HF_S = -10;
static var LINEPOS1 = 80;
static var LINEPOS2 = 130;
static var LINEPOS3 = 180;
static var LINEPOS4 = 230;
static var LINEPOS5 = 280;
static var LINEPOS6 = 330;
static var LINE_X_POS1 = 150;
static var LINE_X_POS2 = 300;
static var LINE_X_POS3 = 450;
static var LINE_X_POS4 = 545;
static var BRAKE_X1 = 420;
static var BRAKE_X2 = 300;
static var AMPLITUDE = 100;
static var AMPLITUDE_PE = 110;
static var AMPLITUDE_PF = 150;
static var ALPHA_POW = 38;
static var TIME_SHIELD = 10000;
static var BOSS_01_INIT_X = 674;
static var BOSS_01_INIT_Y = 123;
static var BOSS_02_INIT_X = 674;
static var BOSS_02_INIT_Y = 123;
static var BOSS_03_INIT_X = 674;
static var BOSS_03_INIT_Y = 123;
static var DEPTH_MIN_CREATE = 20;
static var DEPTH_MAX_CREATE = 4999;
static var DEPTH_MIN_CREATE_CLEANER = 5000;
static var DEPTH_MAX_CREATE_CLEANER = 5999;
static var mDepth = DEPTH_MIN_CREATE;
static var SPACE_E = 50;
var actorAppearing = 0;
var maxDie = null;
var actualDie = 0;
var mzActors = null;
var mzActorsEnemy = null;
var mzGirl = null;
var mzActorInLevel = null;
var idActor = null;
var idNumActor = null;
var frameCreate = null;
var numFrames = null;
var idShield = 0;
var tMove = 0;
var mCountFrames = 0;
static var OBJECT_ENEMY = 1;
static var OBJECT_BONUS = 2;
static var OBJECT_TRAP = 3;
static var OBJECT_BOSS = 4;
var mFrames = 0;
var SNAP = 60;
var speed = 5;
}
Symbol 1631 MovieClip [__Packages.clsActor] Frame 0
class clsActor
{
var mState;
function clsActor (nameClip, x, y, depth) {
if (depth == _global.DEPTH_BOSS) {
mGpx = new clsMovieClip(nameClip, "mc_boss", depth);
} else {
mGpx = new clsMovieClip(nameClip, nameClip + depth, depth);
}
mIniX = x;
mIniY = y;
mGpx.__set___x(mIniX);
mGpx.__set___y(mIniY);
mGpx.__set__parent(this);
mState = _global.ST_BEGIN;
}
function set action(act) {
mAction = act;
//return(action);
}
function get action() {
return(mAction);
}
function get iniX() {
return(mIniX);
}
function get iniY() {
return(mIniY);
}
function get bulletsSet() {
return(mBulletsSet);
}
function set bulletsSet(sBullets) {
mBulletsSet = sBullets;
//return(bulletsSet);
}
function get gpx() {
return(mGpx);
}
function orderKill() {
mState = _global.ST_KILL;
}
function clearBullets() {
if (mBulletsSet) {
_global.clearSimSet(mBulletsSet);
} else {
trace("clsActor : clearBullets() - WARNING: Set bullets is null");
}
}
function free() {
mGpx.free();
delete mGpx;
mGpx = null;
if (mBulletsSet) {
_global.clearSimSet(mBulletsSet);
delete mBulletsSet;
mBulletsSet = null;
}
if (mAction) {
mAction.free();
delete mAction;
mAction = null;
}
}
function onAnimationEnd() {
if (mAction) {
if (mAction.active) {
mAction.onAnimationEnd();
}
}
}
function onCollisionBullet(tBullet, damage) {
if (mAction) {
if (mAction.active) {
mAction.onCollisionBullet(tBullet, damage);
}
}
}
function update() {
if (mGpx) {
mGpx.update();
}
if (mAction) {
if (mAction.active) {
mAction.update();
}
}
if (mBulletsSet) {
var _local4 = 0;
while (_local4 < mBulletsSet.getCount()) {
var _local3 = mBulletsSet.getObject(_local4);
_local3.update();
if (_local3.mState == _global.ST_KILL) {
mBulletsSet.remove(_local3);
_local3.free();
_local4--;
}
_local4++;
}
}
}
var mPosX = 0;
var mPosY = 0;
var mIniX = 0;
var mIniY = 0;
var mEndX = 0;
var mEndY = 0;
var mGpx = null;
var mBulletsSet = null;
var mAction = null;
}
Symbol 1632 MovieClip [__Packages.clsMovieClip] Frame 0
class clsMovieClip
{
var mResponseMode, mState, mVelX, mVelY, mWorldLimitUp, mWorldLimitDown, mWorldLimitLeft, mWorldLimitRight, mMount_x, mMount_y;
function clsMovieClip (nameMc, nameId, depth) {
movieClip = _root.attachMovie(nameMc, nameId, depth);
setVelocity(0, 0);
setWorldLimit(DEF_WORLD_LIMIT_UP, DEF_WORLD_LIMIT_DOWN, DEF_WORLD_LIMIT_LEFT, DEF_WORLD_LIMIT_RIGHT);
mResponseMode = RESPONSE_MODE_KILL;
mState = _global.ST_BEGIN;
}
function set _x(x) {
movieClip._x = x;
//return(_x);
}
function set _y(y) {
movieClip._y = y;
//return(_y);
}
function get _x() {
return(movieClip._x);
}
function get _y() {
return(movieClip._y);
}
function set _velX(vx) {
mVelX = vx;
//return(_velX);
}
function set _velY(vy) {
mVelY = vy;
//return(_velY);
}
function get _velX() {
return(mVelX);
}
function get _velY() {
return(mVelY);
}
function set parent(obj) {
mParent = obj;
//return(parent);
}
function get parent() {
return(mParent);
}
function set _height(h) {
movieClip._height = h;
//return(_height);
}
function set _width(w) {
movieClip._width = w;
//return(_width);
}
function get _height() {
return(movieClip._height);
}
function get _width() {
return(movieClip._width);
}
function get isMounted() {
return(mMount);
}
function get clip() {
return(movieClip);
}
function setVelocity(velx, vely) {
mVelX = velx;
mVelY = vely;
}
function setWorldLimit(up, down, left, right) {
mWorldLimitUp = up;
mWorldLimitDown = down;
mWorldLimitLeft = left;
mWorldLimitRight = right;
}
function setResponseMode(mode) {
mResponseMode = mode;
}
function mount(gpx, x, y) {
if (mMount) {
trace("clsMovieCLip.mount() - Error - El objeto ya esta montado...");
return(undefined);
}
mGpxMounted = gpx;
mMount_x = x;
mMount_y = y;
mMount = true;
}
function dismount() {
mGpxMounted = null;
mMount = false;
}
function swapDepths(depth) {
movieClip.swapDepths(depth);
}
function gotoAndStop(nameAnim) {
movieClip.gotoAndStop(nameAnim);
}
function gotoAndPlay(nameAnim) {
movieClip.gotoAndPlay(nameAnim);
}
function setPosition(x, y) {
movieClip._x = x;
movieClip._y = y;
}
function setScale(nScale) {
movieClip._xscale = nScale;
movieClip._yscale = nScale;
}
function resize(w, h) {
movieClip._width = w;
movieClip._height = h;
}
function addLinkPoint(x, y) {
if (mzLinkPoints == null) {
mzLinkPoints = new Array();
}
var _local2 = mzLinkPoints.length;
mzLinkPoints[_local2] = [x, y];
return(_local2);
}
function getLinkPoint(k) {
if (mzLinkPoints == null) {
return(null);
}
return(mzLinkPoints[k]);
}
function onWordLimit() {
switch (mResponseMode) {
case RESPONSE_MODE_KILL :
setVelocity(0, 0);
mState = _global.ST_KILL;
break;
case RESPONSE_MODE_RIGID :
if (movieClip._x < mWorldLimitLeft) {
movieClip._x = mWorldLimitLeft;
} else if (movieClip._x > mWorldLimitRight) {
movieClip._x = mWorldLimitRight;
}
if (movieClip._y < mWorldLimitUp) {
movieClip._y = mWorldLimitUp;
} else {
if (movieClip._y <= mWorldLimitDown) {
break;
}
movieClip._y = mWorldLimitDown;
}
}
}
function update() {
if (mState == _global.ST_KILL) {
return(undefined);
}
if (mMount) {
movieClip._x = mGpxMounted.__get___x() + mMount_x;
movieClip._y = mGpxMounted.__get___y() + mMount_y;
return(undefined);
}
if (mVelX) {
movieClip._x = movieClip._x + mVelX;
}
if (mVelY) {
movieClip._y = movieClip._y + mVelY;
}
if ((movieClip._x < mWorldLimitLeft) || (movieClip._x > mWorldLimitRight)) {
onWordLimit();
} else if ((movieClip._y < mWorldLimitUp) || (movieClip._y > mWorldLimitDown)) {
onWordLimit();
}
}
function free() {
mState = _global.ST_KILL;
removeMovieClip(movieClip);
dismount();
if (mzLinkPoints) {
delete mzLinkPoints;
}
}
static var DEF_WORLD_LIMIT_UP = -125;
static var DEF_WORLD_LIMIT_DOWN = 525;
static var DEF_WORLD_LIMIT_LEFT = -125;
static var DEF_WORLD_LIMIT_RIGHT = 725;
static var RESPONSE_MODE_KILL = 1;
static var RESPONSE_MODE_RIGID = 2;
var mParent = null;
var movieClip = null;
var mGpxMounted = null;
var mMount = false;
var mzLinkPoints = null;
}
Symbol 1633 MovieClip [__Packages.clsSimSet] Frame 0
class clsSimSet
{
var mName;
function clsSimSet (nameSet) {
mzSet = new Array();
mName = nameSet;
}
function addObject(obj) {
mzSet.push(obj);
}
function getCount() {
return(mzSet.length);
}
function getIndexObject(obj) {
var _local3 = mzSet.length;
var _local2 = 0;
while (_local2 < _local3) {
if (obj == getObject(_local2)) {
return(_local2);
}
_local2++;
}
return(-1);
}
function getObject(index) {
if ((index >= 0) && (index < mzSet.length)) {
return(mzSet[index]);
}
trace(("clsSimSet:getObject ( " + mName) + " )- indice fuera de rango");
return(null);
}
function removeIndex(index) {
var _local5 = null;
if ((index >= 0) && (index < mzSet.length)) {
_local5 = mzSet[index];
var _local4 = mzSet.length;
var _local2 = index + 1;
while (_local2 < _local4) {
mzSet[_local2 - 1] = mzSet[_local2];
_local2++;
}
mzSet.pop();
} else {
trace(("clsSimSet:removeObjectIndex ( " + mName) + " ) - indice fuera de rango");
}
return(_local5);
}
function remove(obj) {
var _local4 = mzSet.length;
var _local2 = 0;
while (_local2 < _local4) {
if (obj == mzSet[_local2]) {
break;
}
_local2++;
}
if (_local2 < _local4) {
var _local3 = _local2 + 1;
while (_local3 < _local4) {
mzSet[_local3 - 1] = mzSet[_local3];
_local3++;
}
mzSet.pop();
}
}
function echo() {
trace(("Objetos de: \"" + mName) + "\"");
var _local3 = mzSet.length;
var _local2 = 0;
while (_local2 < _local3) {
trace((("[" + _local2) + "]: ") + mzSet[_local2]);
_local2++;
}
}
var mzSet = null;
}
Symbol 1634 MovieClip [__Packages.clsBoss_01] Frame 0
class clsBoss_01 extends clsActor
{
var mGpx, mBulletsSet, mStateRobot, mState, mAction;
function clsBoss_01 (nameMC, posx, posy) {
super(nameMC, posx, posy, _global.DEPTH_BOSS);
var _local5 = _root.attachMovie("mc_energy_boss", "mc_energy_boss", _global.DEPTH_ENERGY_BOSS);
_local5._x = 570;
_local5._y = 40;
_local5.mc_life.gotoAndStop(_global.bossLife);
_global.bossCheck = true;
mGpx.setResponseMode(clsMovieClip.RESPONSE_MODE_RIGID);
setLinkPoints();
mBulletsSet = new clsSimSet("mBulletsSet - clsBoss_01");
mStateRobot = _global.ST_STAND;
orderStand();
}
function get isFiring() {
return(mFiring);
}
function setLinkPoints() {
mLP_ShootMissile_1 = mGpx.addLinkPoint(SHOOT_MISSILE_01_X, SHOOT_MISSILE_01_Y);
mLP_ShootMissile_2 = mGpx.addLinkPoint(SHOOT_MISSILE_02_X, SHOOT_MISSILE_02_Y);
mLP_ShootMissile_3 = mGpx.addLinkPoint(SHOOT_MISSILE_03_X, SHOOT_MISSILE_03_Y);
mLP_ShootSpecial = mGpx.addLinkPoint(SHOOT_SPECIAL_X, SHOOT_SPECIAL_Y);
mLP_Smoke = mGpx.addLinkPoint(SMOKE_X, SMOKE_Y);
}
function shoot(vecPos) {
var _local3 = new clsEnemy(_global.game.idNumActor, 100, 0, 1, 10, mGpx.__get___x() + vecPos[0], mGpx.__get___y() + vecPos[1], 60000, 0, -10, 0);
_global.game.addActor(_local3);
}
function getX() {
return(mGpx.__get___x());
}
function getY() {
return(mGpx.__get___y());
}
function getWidth() {
return(mGpx.__get___width());
}
function getHeight() {
return(mGpx.__get___height());
}
function orderStand() {
mState = _global.ST_STAND;
mGpx.gotoAndStop("STAND");
updateRobot();
var _local3 = _global.getRandom(1, 3);
switch (_local3) {
case 1 :
mGpx.__get__clip().mc_boss.mc_stand_MOJO.gotoAndStop("stand");
break;
case 2 :
mGpx.__get__clip().mc_boss.mc_stand_MOJO.gotoAndStop("burla");
break;
case 3 :
mGpx.__get__clip().mc_boss.mc_stand_MOJO.gotoAndStop("rasca");
}
mAction.activeMovement(true);
}
function orderFire() {
mFiring = true;
updateRobot();
mState = _global.ST_FIRE;
mGpx.gotoAndStop("SHOOT_1");
mAction.activeMovement(false);
}
function orderFireSpecial() {
mFiring = true;
updateRobot();
mGpx.gotoAndStop("SHOOT_2");
mState = _global.ST_FIRE_SPECIAL;
var _local4 = _global.DEPTH_BOSS_LASER;
var _local3 = new clsMovieClip("mc_bullet_2", "mc_bullet_2" + _local4, _local4);
_local3.clip.mDamage = DAMAGE_BULLET_02;
_local3.clip.mTypeArm = _global.ARM_LASER;
var _local5 = mGpx.getLinkPoint(mLP_ShootSpecial);
_local3.mount(mGpx, _local5[0], _local5[1]);
mcLaser = _local3;
mAction.activeMovement(false);
}
function orderHitNormal() {
mStateRobot = _global.ST_HIT_NORMAL;
mGpx.__get__clip().mc_boss.mc_robot.gotoAndPlay("hit");
}
function orderHit_Special() {
mState = _global.ST_HIT_SPECIAL;
mGpx.gotoAndStop("HIT");
mAction.active = false;
mGpx.setVelocity(0, 0);
}
function orderHitNormal_Firing() {
mStateRobot = _global.ST_HIT_NORMAL_FIRING;
mGpx.__get__clip().mc_boss.mc_misiles_ROBOT.gotoAndPlay("hit");
}
function orderHitSpecial_Firing() {
mStateRobot = _global.ST_HIT_SPECIAL_FIRING;
mGpx.__get__clip().mc_boss.mc_misiles_ROBOT.gotoAndPlay("hit_special");
}
function orderDie() {
mAction.cancelAction();
mGpx.gotoAndStop("DIE");
mState = _global.ST_DIE;
}
function orderKill() {
mState = _global.ST_KILL;
}
function free() {
mAction.free();
delete mAction;
mAction = null;
if (mcLaser) {
freeLaser();
}
super.free();
}
function freeLaser() {
mcLaser.free();
delete mcLaser;
mcLaser = null;
}
function update() {
super.update();
if (_root.mc_boss.mc_collsionPlayer.hitTest(_root.mc_player.mc_collision)) {
_global.game.playerImpact(DAMAGE_BOSS);
if (_root.mc_player._x >= 500) {
_root.mc_player._x = _root.mc_player._x - 200;
} else {
_root.mc_player._x = _root.mc_player._x - 100;
}
}
if (mcLaser) {
mcLaser.update();
}
}
function onCollisionBullet(typeImpact, damage) {
if ((_global.bossLife + damage) <= 1) {
_global.bossLife = _global.bossLife + damage;
if (mState != _global.ST_DIE) {
orderDie();
}
return(undefined);
}
switch (mState) {
case _global.ST_STAND :
_global.bossLife = _global.bossLife + damage;
if (mAction) {
mAction.updateVars();
}
if (typeImpact == _global.IMPACT_NORMAL) {
orderHitNormal();
}
if (typeImpact == _global.IMPACT_SPECIAL) {
orderHit_Special();
}
break;
case _global.ST_FIRE :
if (typeImpact == _global.IMPACT_NORMAL) {
_global.bossLife = _global.bossLife + damage;
if (mAction) {
mAction.updateVars();
}
orderHitNormal_Firing();
}
if (typeImpact != _global.IMPACT_SPECIAL) {
break;
}
if (mStateRobot == _global.ST_HIT_SPECIAL_FIRING) {
return(undefined);
}
_global.bossLife = _global.bossLife + Math.round(damage * 0.8);
if (mAction) {
mAction.updateVars();
}
orderHitSpecial_Firing();
}
}
function onAnimationEnd() {
switch (mState) {
case _global.ST_HIT_SPECIAL :
orderStand();
mAction.active = true;
break;
case _global.ST_DIE :
mAction.onBossDie();
}
updateRobot();
}
function updateRobot() {
switch (mStateRobot) {
case _global.ST_HIT_NORMAL :
mStateRobot = _global.ST_STAND;
mGpx.__get__clip().mc_boss.mc_robot.gotoAndStop("normn");
break;
case _global.ST_HIT_NORMAL_FIRING :
mStateRobot = _global.ST_STAND;
mGpx.__get__clip().mc_boss.mc_misiles_ROBOT.gotoAndStop("normn");
break;
case _global.ST_HIT_SPECIAL_FIRING :
mStateRobot = _global.ST_STAND;
mGpx.__get__clip().mc_boss.mc_misiles_ROBOT.gotoAndStop("normn");
}
}
function onShotMissile(nMissile) {
if (mState == _global.ST_FIRE) {
if (nMissile == _global.END_MISSILES) {
orderStand();
mFiring = false;
return(undefined);
}
var _local3 = null;
switch (nMissile) {
case _global.MISSILE_01 :
_local3 = mGpx.getLinkPoint(mLP_ShootMissile_1);
break;
case _global.MISSILE_02 :
_local3 = mGpx.getLinkPoint(mLP_ShootMissile_2);
break;
case _global.MISSILE_03 :
_local3 = mGpx.getLinkPoint(mLP_ShootMissile_3);
}
if (_local3) {
shoot(_local3);
}
}
}
static var SHOOT_MISSILE_01_X = 54;
static var SHOOT_MISSILE_01_Y = 165.7;
static var SHOOT_MISSILE_02_X = 56;
static var SHOOT_MISSILE_02_Y = 176.7;
static var SHOOT_MISSILE_03_X = 54;
static var SHOOT_MISSILE_03_Y = 187.4;
static var SHOOT_SPECIAL_X = 16;
static var SHOOT_SPECIAL_Y = 102.7;
static var SMOKE_X = 5;
static var SMOKE_Y = 106;
static var FREQ_SHOOT = 200;
static var DAMAGE_BOSS = -25;
static var DAMAGE_BULLET_01 = -20;
static var DAMAGE_BULLET_02 = -10;
var mLP_ShootMissile_1 = 0;
var mLP_ShootMissile_2 = 0;
var mLP_ShootMissile_3 = 0;
var mLP_ShootSpecial = 0;
var mLP_Smoke = 0;
var onShoot2 = 0;
var onShoot3 = 0;
var mFiring = false;
var mcLaser = null;
}
Symbol 1635 MovieClip [__Packages.clsEnemy] Frame 0
class clsEnemy
{
var id, type, bonus, move, speed, frec, limit, damage, sDamage, xCenter, yCenter, r, amplitude, yPhase, mClip, life, mGpx, initFrec;
function clsEnemy (mId, mType, mBonus, mMove, mSpeed, x, y, mFrec, mLimit, mDamage, mShootDamage, ang) {
id = mId;
type = mType;
bonus = mBonus;
move = mMove;
speed = mSpeed;
frec = mFrec + random(5);
limit = mLimit;
damage = mDamage;
sDamage = mShootDamage;
xCenter = x;
yCenter = y;
r = mLimit;
amplitude = mLimit;
yPhase = y;
if (type == 100) {
mClip = "mc_bullet_1";
life = 5;
} else if (type == 200) {
mClip = "mc_mojo02_henchmen02";
life = 3;
speed_x = speed * Math.cos(ang * (Math.PI/180));
speed_y = speed * Math.sin(ang * (Math.PI/180));
} else {
mClip = "mc_enemy_" + type;
switch (type) {
case 1 :
life = 2;
break;
case 2 :
life = 2;
break;
case 3 :
life = 3;
break;
case 4 :
life = 3;
break;
case 5 :
life = 3;
break;
case 6 :
life = 3;
break;
case 7 :
life = 4;
break;
case 8 :
life = 4;
break;
case 9 :
life = 4;
break;
case 10 :
life = 4;
break;
case 11 :
life = 6;
break;
case 12 :
life = 4;
break;
default :
life = 3;
}
}
var _local7 = clsGame.getNextCreationDepth();
mGpx = _root.attachMovie(mClip, "mc_actor" + mId, _local7);
mGpx._x = x;
mGpx._y = y;
_global.game.mzActorsEnemy.push(mGpx);
initFrec = 25;
if (type == 200) {
mGpx._xscale = 27;
mGpx._yscale = 27;
}
if ((bonus != 0) && (Math.floor(bonus / 10) != 3)) {
var _local5 = new Color(mGpx);
var _local4 = _local5.getTransform();
_local4 = {ra:180, ga:0, ba:0, aa:100};
_local5.setTransform(_local4);
}
if (move == _global.MOVE_CIRC) {
mGpx._x = xCenter;
mGpx._y = 0;
}
if (type == ENEMY_APPEAR) {
mGpx.gotoAndStop("APPEAR");
}
}
function update() {
initFrec++;
if (type == ENEMY_APPEAR) {
_global.pauseMatrix = true;
}
if ((initFrec % frec) == 0) {
if ((type == 7) && (mShooting)) {
return(undefined);
}
mGpx.gotoAndStop("SHOOT");
shoot();
mShooting = true;
}
if (initFrec >= 60) {
Cut1 = false;
}
mGpx.ID = id;
if (mGpx.mc_collision.hitTest(_root.mc_player.mc_collision)) {
if (!_global.playerShield) {
if (_global.playerChange) {
_global.game.playerImpactChange(damage);
} else {
_global.game.playerImpact(damage);
}
bonus = 0;
free();
}
}
switch (move) {
case _global.MOVE_HORI :
moveHorizontal(speed);
break;
case _global.MOVE_DESC :
moveDescendent();
break;
case _global.MOVE_2HOR :
moveDoubleHorizontal();
break;
case _global.MOVE_CIRC :
moveCircular();
break;
case _global.MOVE_ASCE :
moveAscending();
break;
case _global.MOVE_3HOR :
moveHorizontalDiagonal();
break;
case _global.MOVE_SENO :
moveSeno();
break;
case _global.MOVE_ARCO :
moveParabolic();
break;
case _global.MOVE_DOWN :
moveUpDown();
break;
case _global.MOVE_APPE :
moveAppearing();
break;
case _global.MOVE_ANG :
moveAngle();
}
if ((mGpx._x <= lx) || (mGpx._y >= ly)) {
out = true;
free();
}
}
function shoot() {
var _local9 = mGpx._x;
var _local8 = mGpx._y;
var _local10 = "mc_enemy_bullet_" + type;
var _local7 = _global.SHOOT_NORMAL;
var _local3 = _global.enemy1_SpeedShoot;
var _local4 = 1;
var _local5 = 180;
var _local6 = 0;
switch (type) {
case 1 :
_local3 = _global.enemy1_SpeedShoot;
break;
case 2 :
_local3 = _global.enemy2_SpeedShoot;
break;
case 3 :
_local7 = _global.SHOOT_SPECIAL;
_local3 = _global.enemy3_SpeedShoot;
break;
case 4 :
_local3 = _global.enemy4_SpeedShoot;
break;
case 5 :
_local3 = _global.enemy5_SpeedShoot;
_local4 = 2;
_local5 = 170;
_local6 = 20;
break;
case 6 :
_local3 = _global.enemy6_SpeedShoot;
_local4 = 3;
_local5 = 155;
_local6 = 50;
case 8 :
_local3 = _global.enemy8_SpeedShoot;
break;
case 9 :
_local3 = _global.enemy9_SpeedShoot;
break;
case 10 :
_local3 = _global.enemy10_SpeedShoot;
_local4 = 5;
_local5 = 45;
_local6 = 360;
break;
case 11 :
_local3 = _global.enemy11_SpeedShoot;
_local7 = _global.SHOOT_SPECIAL;
break;
case 12 :
_local3 = _global.enemy12_SpeedShoot;
_local4 = 2;
_local5 = 160;
_local6 = 40;
break;
default :
_local3 = _global.enemy1_SpeedShoot;
}
_global.game.shootEnemy(_local10, _local9, _local8, _local3, _local7, sDamage, _local5, _local6, _local4);
}
function moveHorizontal(sp, dir) {
if ((dir == DIR_POS) || (dir == DIR_NEG)) {
mGpx._x = mGpx._x - (sp * dir);
}
if (dir == undefined) {
mGpx._x = mGpx._x - sp;
}
}
function moveVertical(sp, dir) {
if ((dir == DIR_POS) || (dir == DIR_NEG)) {
mGpx._y = mGpx._y + (sp * dir);
}
if (dir == undefined) {
mGpx._y = mGpx._y + sp;
}
}
function moveDescendent() {
if (mGpx._y <= limit) {
moveVertical(speed / 2);
} else {
moveHorizontal(speed);
}
}
function moveDoubleHorizontal() {
if (Cut2) {
if (Cut1) {
if (mGpx._x > limit) {
moveHorizontal(speed);
}
} else if (mGpx._x < 570) {
moveHorizontal(speed / 3, DIR_NEG);
} else {
Cut2 = false;
}
} else {
moveHorizontal(speed);
}
}
function moveHorizontalDiagonal() {
if (Cut2) {
if (Cut1) {
if (mGpx._x > limit) {
moveHorizontal(speed);
}
} else if (mGpx._x < 500) {
moveHorizontal(8, DIR_NEG);
moveVertical(4);
} else {
Cut2 = false;
}
} else {
moveHorizontal(speed);
}
}
function moveCircular() {
if (mGpx._y <= (yCenter - r)) {
mGpx._y = mGpx._y + speed;
} else if (angle > 0) {
angle = angle - (speed * 0.6);
mGpx._x = xCenter + (r * Math.sin((angle * Math.PI) / 180));
mGpx._y = yCenter + (r * Math.cos((angle * Math.PI) / 180));
} else {
mGpx._x = mGpx._x - speed;
}
}
function moveAscending() {
if (mGpx._y >= limit) {
moveVertical(speed / 2, DIR_NEG);
} else {
moveHorizontal(speed);
}
}
function moveSeno() {
angleRad = angleRad + 0.116355283466289;
mGpx._x = mGpx._x - (speed * 0.6);
mGpx._y = yPhase + (amplitude * Math.sin(angleRad));
}
function moveParabolic() {
angleRad = angleRad + 0.098174770424681;
if (angleRad <= 5.7) {
mGpx._x = mGpx._x - (1.3 * speed);
mGpx._y = yPhase + (amplitude * Math.cos(angleRad));
} else {
mGpx._x = mGpx._x + speed;
if (mGpx._x >= 640) {
out = true;
free();
}
}
}
function moveUpDown() {
if (Cut1) {
moveVertical(speed);
if (mGpx._y >= limit) {
Cut1 = false;
}
} else {
if ((mGpx._y < 80) || (mGpx._y > limit)) {
speed = -1 * speed;
}
mGpx._y = mGpx._y + speed;
}
}
function moveAppearing() {
}
function moveAngle() {
mGpx._x = mGpx._x + speed_x;
mGpx._y = mGpx._y + speed_y;
}
function free() {
if ((bonus != 0) && (!out)) {
var _local3 = new clsBonus(_global.game.idNumActor, bonus, mGpx._x, mGpx._y);
_global.game.addActor(_local3);
}
if ((!out) && (!_global.freeGame)) {
_global.game.dieEnemy("mc_enemy_die", mGpx._x, mGpx._y);
}
if (type == ENEMY_APPEAR) {
_global.pauseMatrix = false;
}
mGpx.removeMovieClip();
_global.game.deleteEnemy(mGpx);
_global.game.deleteActor(id);
}
var lx = -70;
var ly = 420;
static var ENEMY_APPEAR = 11;
var DIR_POS = 1;
var DIR_NEG = -1;
var angle = 180;
var angleRad = 0;
var Cut1 = true;
var Cut2 = true;
var out = false;
var mShooting = false;
var speed_x = 0;
var speed_y = 0;
}
Symbol 1636 MovieClip [__Packages.clsBonus] Frame 0
class clsBonus
{
var id, bonus, type, mGpx;
function clsBonus (mId, mBonus, x, y) {
id = mId;
bonus = Math.floor(mBonus / 10);
type = mBonus % 10;
if (type == 0) {
type = 1;
}
if (bonus == B_POW) {
var _local4 = true;
if (!_global.powW) {
type = 3;
_local4 = false;
}
if (!_global.powO) {
type = 2;
_local4 = false;
}
if (!_global.powP) {
type = 1;
_local4 = false;
}
if (_local4) {
bonus = B_SHIELD;
type = 1;
}
}
var _local5 = clsGame.getNextCreationDepth();
mGpx = _root.attachMovie("mc_bonus", "mc_bonus" + _local5, _local5);
mGpx.gotoAndStop("BONUS" + bonus);
mGpx.mc_clip.gotoAndStop("TYPE" + type);
mGpx._x = x;
mGpx._y = y;
}
function update() {
if (mGpx._x >= -40) {
mGpx._x = mGpx._x - speed;
} else {
out = true;
free();
}
if (mGpx.mc_collision.hitTest(_root.mc_player.mc_collision || (_root.mc_player.mc_collision_bonus))) {
switch (bonus) {
case B_HEALT :
_global.game.updateEnergy(100);
break;
case B_SHIELD :
if (_global.playerShield) {
_global.game.deleteShield();
}
_global.game.playerShieldBonus();
break;
case B_PUPPY :
break;
case B_POW :
switch (type) {
case 1 :
_global.powP = true;
break;
case 2 :
_global.powO = true;
break;
case 3 :
_global.powW = true;
}
_global.game.updatePow();
}
if (bonus == B_HEALT) {
_global.game.createMsgPanel("mc_panel_trap", _global.FRAME_HEALTH, 1, 45);
}
if (bonus == B_SHIELD) {
_global.game.createMsgPanel("mc_panel_trap", _global.FRAME_SHIELD, 1, 45);
}
free();
}
}
function free() {
var _local4 = clsGame.getNextCreationDepth();
if (!out) {
_root.mc_bright_bonus.removeMovieClip();
if (bonus == B_PUPPY) {
_root.attachMovie("mc_bright_bonus_dog", "mc_bright_bonus", _local4);
_global.game.takenPuppy();
} else {
_root.attachMovie("mc_bright_bonus", "mc_bright_bonus", _local4);
}
_root.mc_bright_bonus._x = mGpx._x;
_root.mc_bright_bonus._y = mGpx._y;
}
mGpx.removeMovieClip();
_global.game.deleteActor(id);
}
var speed = 2;
var out = false;
static var B_HEALT = 1;
static var B_SHIELD = 2;
static var B_PUPPY = 3;
static var B_POW = 4;
}
Symbol 1637 MovieClip [__Packages.clsActionBoss_01] Frame 0
class clsActionBoss_01
{
var mIniX, mIniY, mzAttakPositions, mCurrPosition, mFactor, mState, mSubState, mEndX, mEndY, mVel, mVelX, mVelY;
function clsActionBoss_01 (actor) {
mBoss = actor;
mGpx = mBoss.gpx;
mIniX = mGpx._x;
mIniY = mGpx._y;
mzAttakPositions = new Array();
mCurrPosition = -1;
mFactor = 1;
mInitLife = _global.bossLife;
mzShooting = new Array();
mzShooting[0] = [SEC_SHOT_NORMAL, SEC_SHOT_SPECIAL];
mState = _global.ST_INIT;
mSubState = _global.ST_INIT;
}
function set active(bolActive) {
mActive = bolActive;
//return(active);
}
function get active() {
return(mActive);
}
function addAttackPosition(x, y) {
var _local2 = mzAttakPositions.length;
mzAttakPositions[_local2] = [x, y];
}
function moveToInitPosition() {
if (mzAttakPositions.length < 1) {
return(undefined);
}
mCurrPosition = 0;
mEndX = mzAttakPositions[mCurrPosition][0];
mEndY = mzAttakPositions[mCurrPosition][1];
calculateVelocities();
moveToEnd();
}
function moveToNextPosition() {
if (mFactor > 0) {
if ((mCurrPosition + 2) > mzAttakPositions.length) {
mFactor = -1;
}
} else if (mCurrPosition <= 0) {
mFactor = 1;
}
mCurrPosition = mCurrPosition + mFactor;
mEndX = mzAttakPositions[mCurrPosition][0];
mEndY = mzAttakPositions[mCurrPosition][1];
calculateVelocities();
moveToEnd();
}
function moveToEndPosition() {
mEndX = mBoss.iniX;
mEndY = mBoss.iniY;
calculateVelocities();
moveToEnd();
}
function restMove() {
if (mSubState == _global.ST_END) {
mState == _global.ST_END;
mBoss.orderKill();
return(undefined);
}
mTimeRest = TIME_REST_INI + mVarTimeRest;
mTimeRest = mTimeRest + _global.TIMER;
mState = _global.ST_REST;
mGpx.setVelocity(0, 0);
if (mSubState == _global.ST_INIT) {
setRandomShot();
}
}
function restAttack() {
mTimeRestAttack = TIME_REST_ATTACK_INI + mVarTimeRestAttack;
mTimeRestAttack = mTimeRestAttack + _global.TIMER;
mSubState = _global.ST_REST;
mBoss.orderStand();
mActiveMov = true;
}
function calculateVelocities() {
var _local2 = Math.atan2(mEndY - mGpx.__get___y(), mEndX - mGpx.__get___x());
mVel = VELOCITY_INI + mVarVelocity;
mVelX = mVel * Math.cos(_local2);
mVelY = mVel * Math.sin(_local2);
}
function moveToEnd() {
mIniX = mGpx._x;
mIniY = mGpx._y;
mGpx.setVelocity(mVelX, mVelY);
mState = _global.ST_MOVE_TO_END;
}
function isEnd() {
var _local3 = mGpx.__get___x();
var _local2 = mGpx.__get___y();
if (mGpx.__get___velX()() != mVelX) {
mGpx.__set___velX(mVelX);
}
if (mGpx.__get___velY()() != mVelY) {
mGpx.__set___velY(mVelY);
}
if (mIniX < mEndX) {
if (mEndX <= _local3) {
return(true);
}
} else if (mIniX == mEndX) {
if (mIniY < mEndY) {
if (mEndY <= _local2) {
return(true);
}
} else if (mEndY >= _local2) {
return(true);
}
} else if (mEndX >= _local3) {
return(true);
}
return(false);
}
function setRandomShot() {
if ((mzShooting[0][0] > 0) || (mzShooting[0][1] > 0)) {
var _local2 = checkShooting();
if (!_local2) {
checkShooting();
}
}
}
function checkShooting() {
if (mSelectShot == 0) {
if ((mCurrSecShot + 1) <= mzShooting[0][mSelectShot]) {
shootNormal();
mCurrSecShot++;
return(true);
}
mCurrSecShot = 0;
mSelectShot = 1;
}
if (mSelectShot == 1) {
if ((mCurrSecShot + 1) <= mzShooting[0][mSelectShot]) {
shootSpecial();
mCurrSecShot++;
return(true);
}
mCurrSecShot = 0;
mSelectShot = 0;
}
return(false);
}
function shootNormal() {
mTimeFiring = TIME_CONTINUOS_FIRING_INI + mVarTimeFiring;
mTimeFiring = mTimeFiring + _global.TIMER;
mBoss.orderFire();
mSubState = _global.ST_FIRE;
}
function shootSpecial() {
mTimeSpecial = TIME_CONTINUOS_SPECIAL_INI + mVarTimeSpecial;
mTimeSpecial = mTimeSpecial + _global.TIMER;
mBoss.orderFireSpecial();
mSubState = _global.ST_FIRE_SPECIAL;
}
function cancelAction() {
mGpx.setVelocity(0, 0);
mBoss.freeLaser();
mBoss.orderStand();
mState = _global.ST_END;
}
function activeMovement(bolActive) {
mActiveMov = bolActive;
if (!bolActive) {
mGpx.setVelocity(0, 0);
}
}
function update() {
if (mState == _global.ST_END) {
return(undefined);
}
if (mActiveMov) {
updateMovement();
}
updateAttack();
}
function updateVars() {
if (mInitLife <= 0) {
return(undefined);
}
var _local4 = (100 * _global.bossLife) / mInitLife;
var _local3 = (100 - _local4) / 100;
mVarVelocity = _local3 * (VELOCITY_END - VELOCITY_INI);
mVarTimeRest = _local3 * (TIME_REST_END - TIME_REST_INI);
mVarTimeFiring = _local3 * (TIME_CONTINUOS_FIRING_END - TIME_CONTINUOS_FIRING_INI);
mVarTimeSpecial = _local3 * (TIME_CONTINUOS_SPECIAL_END - TIME_CONTINUOS_SPECIAL_INI);
mVarTimeRestAttack = _local3 * (TIME_REST_ATTACK_END - TIME_REST_ATTACK_INI);
updateDamage(_local4);
}
function updateDamage(percent) {
if (percent <= 25) {
if (!mBolSmoke) {
var _local3 = new clsMovieClip("mc_mojo_humo", "mc_mojo_humo" + _global.DEPTH_SMOKE, _global.DEPTH_SMOKE);
var _local4 = mBoss.__get__gpx().getLinkPoint(mBoss.mLP_Smoke);
_local3.mount(mBoss.__get__gpx(), _local4[0], _local4[1]);
mBoss.__get__bulletsSet().addObject(_local3);
mBolSmoke = true;
}
}
}
function updateMovement() {
switch (mState) {
case _global.ST_INIT :
moveToInitPosition();
break;
case _global.ST_BEGIN :
moveToNextPosition();
break;
case _global.ST_REST :
if (mTimeRest <= _global.TIMER) {
mState = _global.ST_BEGIN;
}
break;
case _global.ST_MOVE_TO_END :
if (!isEnd()) {
break;
}
mGpx.__set___x(mEndX);
mGpx.__set___y(mEndY);
restMove();
}
}
function updateAttack() {
switch (mSubState) {
case _global.ST_INIT :
break;
case _global.ST_FIRE :
if (mTimeFiring <= _global.TIMER) {
mBoss.freeLaser();
restAttack();
} else if (!mBoss.__get__isFiring()) {
mBoss.orderFire();
}
break;
case _global.ST_REST :
if (mTimeRestAttack <= _global.TIMER) {
setRandomShot();
}
break;
case _global.ST_FIRE_SPECIAL :
if (mTimeSpecial > _global.TIMER) {
break;
}
mBoss.freeLaser();
restAttack();
}
}
function onBossDie() {
mSubState = _global.ST_END;
moveToEndPosition();
}
function free() {
delete mzAttakPositions;
mState = _global.ST_END;
}
static var VELOCITY_INI = 6;
static var VELOCITY_END = 13;
var mVarVelocity = 0;
static var TIME_REST_INI = 2;
static var TIME_REST_END = 1;
var mVarTimeRest = 0;
var mTimeRest = 0;
static var TIME_REST_ATTACK_INI = 1;
static var TIME_REST_ATTACK_END = 0;
var mVarTimeRestAttack = 0;
var mTimeRestAttack = 0;
static var TIME_CONTINUOS_FIRING_INI = 6;
static var TIME_CONTINUOS_FIRING_END = 3;
var mVarTimeFiring = 0;
var mTimeFiring = 0;
static var TIME_CONTINUOS_SPECIAL_INI = 4;
static var TIME_CONTINUOS_SPECIAL_END = 4;
var mVarTimeSpecial = 0;
var mTimeSpecial = 0;
static var SEC_SHOT_NORMAL = 1;
static var SEC_SHOT_SPECIAL = 1;
var mzShooting = null;
var mCurrSecShot = 0;
var mSelectShot = 0;
var mGpx = null;
var mBoss = null;
var mActive = false;
var mInitLife = 0;
var mChangeAttack = false;
var mActiveMov = true;
var mBolSmoke = false;
}
Symbol 1638 MovieClip [__Packages.clsBoss_02] Frame 0
class clsBoss_02 extends clsActor
{
var mGpx, mzBulletsSec, mContBuletsSec;
function clsBoss_02 (nameMC, posx, posy) {
super(nameMC, posx, posy, _global.DEPTH_BOSS);
mGpx.setResponseMode(clsMovieClip.RESPONSE_MODE_RIGID);
var _local5 = _root.attachMovie("mc_energy_boss", "mc_energy_boss", _global.DEPTH_ENERGY_BOSS);
_local5._x = 570;
_local5._y = 40;
_local5.mc_life.gotoAndStop(_global.bossLife);
_global.bossCheck = true;
setLinkPoints();
mzBulletsSec = new Array();
mzBulletsSec[0] = [1, 1, 0];
mzBulletsSec[1] = [0, 1, 1];
mzBulletsSec[2] = [1, 0, 1];
mContBuletsSec = 0;
orderStand("stand");
}
function setLinkPoints() {
mLP_Smoke = mGpx.addLinkPoint(SMOKE_X, SMOKE_Y);
mLP_Bullet = mGpx.addLinkPoint(BULLET_X, BULLET_Y);
}
function shoot() {
var _local4 = mGpx.__get___x() + BULLET_X;
var _local3 = mGpx.__get___y() + BULLET_Y;
_global.game.shootEnemy("mc_bullet_boss02", _local4, _local3, SPEED_BULLET, _global.SHOOT_NORMAL, DAMAGE_BULLET, 160, 0, 1, BULLET_SCALE);
_global.game.shootEnemy("mc_bullet_boss02", _local4, _local3, SPEED_BULLET, _global.SHOOT_NORMAL, DAMAGE_BULLET, 20, 0, 1, BULLET_SCALE);
if (mzBulletsSec[mContBuletsSec][0]) {
_global.game.shootEnemy("mc_bullet_boss02", _local4, _local3, SPEED_BULLET, _global.SHOOT_NORMAL, DAMAGE_BULLET, 210, 0, 1, BULLET_SCALE);
}
if (mzBulletsSec[mContBuletsSec][1]) {
_global.game.shootEnemy("mc_bullet_boss02", _local4, _local3, SPEED_BULLET, _global.SHOOT_NORMAL, DAMAGE_BULLET, 271, 0, 1, BULLET_SCALE);
}
if (mzBulletsSec[mContBuletsSec][2]) {
_global.game.shootEnemy("mc_bullet_boss02", _local4, _local3, SPEED_BULLET, _global.SHOOT_NORMAL, DAMAGE_BULLET, 330, 0, 1, BULLET_SCALE);
}
if (mContBuletsSec >= 2) {
mContBuletsSec = 0;
} else {
mContBuletsSec++;
}
}
function orderStand(stateBoss) {
mGpx.gotoAndStop("STAND");
mGpx.__get__clip().mc_boss.mc_stand_MOJO.gotoAndStop(stateBoss);
}
function orderThrow() {
mGpx.gotoAndStop("THROW");
}
function orderFire() {
mGpx.gotoAndStop("SHOOT");
}
function orderDie() {
mGpx.gotoAndStop("DIE");
}
function orderHit_Normal() {
mGpx.__get__clip().mc_boss.mc_robot.gotoAndPlay("hit");
}
function orderHit_Special() {
mGpx.gotoAndStop("HIT");
}
function orderHit_SpecialAttack() {
mGpx.__get__clip().mc_boss.mc_robot.gotoAndPlay("hit_special");
}
function orderRobotNormal() {
mGpx.__get__clip().mc_boss.mc_robot.gotoAndPlay("normal");
}
function free() {
delete mzBulletsSec;
super.free();
}
static var SMOKE_X = 45.6;
static var SMOKE_Y = 99;
static var BULLET_X = 70;
static var BULLET_Y = 201;
static var SPEED_BULLET = 5;
static var DAMAGE_BULLET = -20;
static var BULLET_SCALE = 200;
var mLP_Smoke = 0;
var mLP_Bullet = 0;
}
Symbol 1639 MovieClip [__Packages.clsAction] Frame 0
class clsAction
{
var mState, mSubState;
function clsAction (actor) {
mActor = actor;
mGpx = mActor.gpx;
mState = _global.ST_BEGIN;
mSubState = _global.ST_BEGIN;
}
function addAttackPosition(x, y) {
if (mzAttakPositions) {
var _local2 = mzAttakPositions.length;
mzAttakPositions[_local2] = [x, y];
} else {
trace("clsAction:addAttackPosition() - WARNING: vector de posiciones nulo");
}
}
function free() {
}
function subUpdate(subAction) {
if (!(subAction.mState === _global.ST_FINISH)) {
} else {
mSubAction.free();
delete mSubAction;
mSubAction = null;
onSubActionEnd();
}
}
function update() {
}
function onSubActionEnd() {
}
function onAnimaitonEnd() {
}
var mGpx = null;
var mActive = false;
var mActor = null;
var mzAttakPositions = null;
var mCurrPosition = -1;
var mSubAction = null;
}
Symbol 1640 MovieClip [__Packages.clsActionBoss_02] Frame 0
class clsActionBoss_02 extends clsAction
{
var mzAttakPositions, mActor, mSubAction, mState, mNextState, mOldState;
function clsActionBoss_02 (actor) {
super(actor);
mzAttakPositions = new Array();
mActor.bulletsSet = new clsSimSet("mBulletsSet - clsBoss_02");
mMovVertical = 0;
mInitLife = _global.bossLife;
}
function free() {
delete mzAttakPositions;
delete mSubAction;
}
function update() {
switch (mState) {
case _global.ST_BEGIN :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[0], VELOCITY_INI + mVarVel, true, this);
mNextState = _global.ST_REST;
mOldState = mState;
mState = _global.ST_SUB_ACTION;
break;
case _global.ST_REST :
if (mTimeRest <= _global.TIMER) {
mState = mNextState;
}
break;
case _global.ST_DOWN :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[1], VELOCITY_INI + mVarVel, true, this);
mNextState = _global.ST_UP;
mOldState = mState;
mState = _global.ST_SUB_ACTION;
break;
case _global.ST_UP :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[0], VELOCITY_INI + mVarVel, true, this);
mNextState = _global.ST_DOWN;
mOldState = mState;
mState = _global.ST_SUB_ACTION;
break;
case _global.ST_CENTER :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[2], VELOCITY_INI + mVarVel, true, this);
mNextState = _global.ST_REST;
mOldState = mState;
mState = _global.ST_SUB_ACTION;
break;
case _global.ST_THROW :
if (mOldState != _global.ST_THROW) {
mActor.orderThrow();
mOldState = mState;
}
break;
case _global.ST_CENTER_UP :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[3], VELOCITY_INI + mVarVel, true, this);
mNextState = _global.ST_FIRE;
mOldState = mState;
mState = _global.ST_SUB_ACTION;
break;
case _global.ST_FIRE :
if (mOldState != _global.ST_FIRE) {
mActor.orderFire();
mActor.shoot();
mOldState = _global.ST_FIRE;
}
break;
case _global.ST_SUB_ACTION :
mSubAction.update();
break;
case _global.ST_HIT_SPECIAL :
}
updateCollision();
}
function updateCollision() {
if (_root.mc_boss.mc_collisionPlayer.hitTest(_root.mc_player.mc_collision)) {
_global.game.playerImpact(DAMAGE_BOSS);
if (_root.mc_player._x >= 500) {
_root.mc_player._x = _root.mc_player._x - 200;
} else {
_root.mc_player._x = _root.mc_player._x - 100;
}
}
}
function onSubActionEnd() {
switch (mOldState) {
case _global.ST_BEGIN :
mTimeRest = (TIME_REST_INI + mVarTimeRest) + _global.TIMER;
mState = mNextState;
mNextState = _global.ST_DOWN;
break;
case _global.ST_DOWN :
case _global.ST_UP :
mMovVertical++;
if (mMovVertical >= (MOVEMENTS_INI + mVarMovVertical)) {
mState = _global.ST_CENTER;
mMovVertical = 0;
} else {
mState = mNextState;
}
break;
case _global.ST_CENTER :
mActor.orderStand("burla");
mStateRobot = _global.INDEF;
mTimeRest = TIME_REST_INI + mVarTimeRest;
mTimeRest = mTimeRest + _global.TIMER;
mState = mNextState;
mNextState = _global.ST_THROW;
break;
case _global.ST_CENTER_UP :
mState = mNextState;
break;
case _global.ST_DIE :
mActor.orderKill();
}
}
function onThrow() {
mCurrentThrow++;
var _local3 = 0;
switch (mCurrentThrow) {
case 1 :
_local3 = 190;
break;
case 2 :
_local3 = 180;
break;
case 3 :
_local3 = 165;
break;
case 4 :
_local3 = 150;
break;
case 5 :
_local3 = 158;
break;
case 6 :
_local3 = 173;
break;
case 7 :
_local3 = 185;
}
var _local4 = new clsEnemy(_global.game.idNumActor, 200, 0, _global.MOVE_ANG, VEL_HENCH_INI + mVarVelHench, mActor.gpx._x + 44, mActor.gpx._y + 60, 60000, 0, -10, 0, _local3);
_global.game.addActor(_local4);
}
function onAnimationRobotEnd() {
if (mStateRobot == _global.ST_HIT_SPECIAL_FIRING) {
mActor.orderRobotNormal();
mStateRobot = _global.INDEF;
return(undefined);
}
}
function onAnimationEnd() {
switch (mState) {
case _global.ST_THROW :
if (mCurrentThrow >= NUMBER_THROWS) {
mCurrentThrow = 0;
mActor.orderStand("stand");
mStateRobot = _global.INDEF;
mTimeRest = (TIME_REST_INI + mVarTimeRest) + _global.TIMER;
mState = _global.ST_REST;
mNextState = _global.ST_CENTER_UP;
break;
}
mOldState = _global.ST_REST;
break;
case _global.ST_FIRE :
mActor.orderStand("stand");
mStateRobot = _global.INDEF;
mTimeRest = (TIME_REST_INI + mVarTimeRest) + _global.TIMER;
mState = _global.ST_REST;
if ((mCurrentShoot + 1) >= NUMBER_SHOOT) {
mCurrentShoot = 0;
mNextState = _global.ST_BEGIN;
} else {
mCurrentShoot++;
mOldState = _global.INDEF;
mNextState = _global.ST_FIRE;
}
break;
case _global.ST_HIT_SPECIAL :
mActor.orderStand("stand");
mStateRobot = _global.INDEF;
mState = mTempState;
break;
case _global.ST_DIE :
mSubAction = new clsAcbMoveTo(mActor, [mActor.iniX, mActor.iniY], VELOCITY_INI, true, this);
mNextState = _global.ST_KILL;
mOldState = _global.ST_DIE;
mState = _global.ST_SUB_ACTION;
}
}
function onCollisionBullet(typeImpact, damage) {
if ((_global.bossLife + damage) <= 1) {
_global.bossLife = _global.bossLife + damage;
if (mState != _global.ST_DIE) {
if (mSubAction) {
delete mSubAction;
mSubAction = null;
}
mActor.gpx.setVelocity(0, 0);
mActor.orderDie();
mState = _global.ST_DIE;
}
return(undefined);
}
switch (mState) {
case _global.ST_REST :
_global.bossLife = _global.bossLife + damage;
updateVars();
if (typeImpact == _global.IMPACT_NORMAL) {
mActor.orderHit_Normal();
}
if (typeImpact == _global.IMPACT_SPECIAL) {
mActor.orderHit_Special();
mTempState = _global.ST_REST;
mState = _global.ST_HIT_SPECIAL;
}
break;
case _global.ST_THROW :
case _global.ST_FIRE :
if (typeImpact == _global.IMPACT_NORMAL) {
_global.bossLife = _global.bossLife + damage;
updateVars();
mActor.orderHit_Normal();
}
if (typeImpact == _global.IMPACT_SPECIAL) {
if (mStateRobot == _global.ST_HIT_SPECIAL_FIRING) {
return(undefined);
}
mStateRobot = _global.ST_HIT_SPECIAL_FIRING;
_global.bossLife = _global.bossLife + Math.round(damage * 0.8);
updateVars();
mActor.orderHit_SpecialAttack();
}
break;
case _global.ST_SUB_ACTION :
_global.bossLife = _global.bossLife + damage;
updateVars();
if (typeImpact == _global.IMPACT_NORMAL) {
mActor.orderHit_Normal();
}
if (typeImpact != _global.IMPACT_SPECIAL) {
break;
}
mActor.gpx.setVelocity(0, 0);
mActor.orderHit_Special();
mTempState = _global.ST_SUB_ACTION;
mState = _global.ST_HIT_SPECIAL;
}
}
function updateVars() {
if (mInitLife <= 0) {
return(undefined);
}
var _local4 = (100 * _global.bossLife) / mInitLife;
var _local3 = (100 - _local4) / 100;
mVarVel = _local3 * (VEL_HENCH_END - VEL_HENCH_INI);
mVarVelHench = _local3 * (VEL_HENCH_END - VEL_HENCH_INI);
mVarMovVertical = _local3 * (MOVEMENTS_END - MOVEMENTS_INI);
mVarTimeRest = _local3 * (TIME_REST_END - TIME_REST_INI);
mVarRestThrow = _local3 * (REST_THROW_END - REST_THROW_INI);
updateDamage(_local4);
}
function updateDamage(percent) {
if (percent <= 25) {
if (!mBolSmoke) {
var _local3 = new clsMovieClip("mc_mojo_humo", "mc_mojo_humo" + _global.DEPTH_SMOKE, _global.DEPTH_SMOKE);
var _local4 = mActor.gpx.getLinkPoint(mActor.mLP_Smoke);
_local3.mount(mActor.gpx, _local4[0], _local4[1]);
mActor.bulletsSet.addObject(_local3);
mBolSmoke = true;
}
}
}
static var DAMAGE_BOSS = -25;
static var VELOCITY_INI = 10;
static var VELOCITY_END = 15;
var mVarVel = 0;
static var VEL_HENCH_INI = 15;
static var VEL_HENCH_END = 20;
var mVarVelHench = 0;
static var MOVEMENTS_INI = 2;
static var MOVEMENTS_END = 2;
var mVarMovVertical = 0;
var mMovVertical = 0;
static var TIME_REST_INI = 1;
static var TIME_REST_END = 0;
var mVarTimeRest = 0;
var mTimeRest = 0;
static var REST_THROW_INI = 0;
static var REST_THROW_END = 0;
var mVarRestThrow = 0;
var mRestThrow = 0;
static var NUMBER_THROWS = 7;
var mCurrentThrow = 0;
static var NUMBER_SHOOT = 2;
var mCurrentShoot = 0;
var mStateRobot = 0;
var mInitLife = 0;
var mTempState = 0;
var mBolSmoke = false;
}
Symbol 1641 MovieClip [__Packages.clsAcbMoveTo] Frame 0
class clsAcbMoveTo extends clsAction
{
var mActive, mGpx, mState;
function clsAcbMoveTo (actor, endPos, vel, active, controller) {
super(actor);
mVel = Math.abs(vel);
mIniX = actor.gpx._x;
mIniY = actor.gpx._y;
mEndX = endPos[0];
mEndY = endPos[1];
mDist = _global.VectorLength(mIniX - mEndX, mIniY - mEndY);
var _local4 = Math.atan2(mEndY - mIniY, mEndX - mIniX);
mVelX = mVel * Math.cos(_local4);
mVelY = mVel * Math.sin(_local4);
mActive = active;
mController = controller;
}
function isEnd() {
if (mGpx.__get___velX() != mVelX) {
mGpx.__set___velX(mVelX);
}
if (mGpx.__get___velY() != mVelY) {
mGpx.__set___velY(mVelY);
}
var _local3 = mGpx.__get___y();
var _local4 = mGpx.__get___x();
var _local5 = _global.VectorLength(_local4 - mIniX, _local3 - mIniY);
if (_local5 >= mDist) {
return(true);
}
return(false);
}
function update() {
switch (mState) {
case _global.ST_BEGIN :
mGpx.setVelocity(mVelX, mVelY);
mState = _global.ST_MOVE_TO_END;
break;
case _global.ST_MOVE_TO_END :
if (isEnd()) {
mState = _global.ST_END;
}
break;
case _global.ST_END :
mState = _global.ST_FINISH;
mGpx.setVelocity(0, 0);
mController.subUpdate(this);
}
}
var mVel = 0;
var mVelX = 0;
var mVelY = 0;
var mIniX = 0;
var mIniY = 0;
var mEndX = 0;
var mEndY = 0;
var mDist = 0;
var mController = null;
}
Symbol 1642 MovieClip [__Packages.clsActionBoss_03] Frame 0
class clsActionBoss_03 extends clsAction
{
var mzAttakPositions, mActor, mSubAction, mState, mOldState, mNextState;
function clsActionBoss_03 (actor) {
super(actor);
mzAttakPositions = new Array();
mActor.bulletsSet = new clsSimSet("boss03");
mInitLife = _global.bossLife;
}
function free() {
delete mzAttakPositions;
delete mSubAction;
}
function update() {
switch (mState) {
case _global.ST_BEGIN :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[3], SPEED_BEGIN, true, this);
mOldState = _global.ST_BEGIN;
mState = _global.ST_SUB_ACTION;
mNextState = ST_01;
break;
case ST_01 :
break;
case ST_02 :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[2], SPEED_INTRO, true, this);
mOldState = ST_02;
mNextState = ST_03;
mState = _global.ST_SUB_ACTION;
break;
case ST_03 :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[1], SPEED_INTRO, true, this);
mOldState = ST_03;
mNextState = ST_04;
mState = _global.ST_SUB_ACTION;
break;
case ST_04 :
break;
case ST_05 :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[0], mSpeed, true, this);
mOldState = ST_05;
mNextState = ST_06;
mState = _global.ST_SUB_ACTION;
break;
case ST_06 :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[1], mSpeed, true, this);
mOldState = ST_06;
mNextState = ST_07;
mState = _global.ST_SUB_ACTION;
break;
case ST_07 :
if (mOldState != ST_07) {
mActor.bulletsToShoot = 3;
mActor.orderShootCenter();
mOldState = ST_07;
}
break;
case ST_08 :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[0], mSpeed, true, this);
mOldState = ST_08;
mNextState = ST_09A;
mState = _global.ST_SUB_ACTION;
break;
case ST_09A :
break;
case ST_09 :
if (mOldState != ST_09) {
mActor.orderShootUp();
mOldState = ST_09;
}
break;
case ST_10 :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[1], mSpeed, true, this);
mOldState = ST_10;
mNextState = ST_11;
mState = _global.ST_SUB_ACTION;
break;
case ST_11 :
if (mOldState != ST_11) {
mActor.bulletsToShoot = 2;
mActor.orderShootCenter();
mOldState = ST_11;
}
break;
case ST_12 :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[2], mSpeed, true, this);
mOldState = ST_12;
mNextState = ST_13;
mState = _global.ST_SUB_ACTION;
break;
case ST_13 :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[1], mSpeed, true, this);
mOldState = ST_13;
mNextState = ST_14;
mState = _global.ST_SUB_ACTION;
break;
case ST_14 :
if (mOldState != ST_14) {
mActor.bulletsToShoot = 2;
mActor.orderShootCenter();
mOldState = ST_14;
}
break;
case ST_15 :
mSubAction = new clsAcbMoveTo(mActor, mzAttakPositions[0], mSpeed, true, this);
mOldState = ST_15;
mNextState = ST_16A;
mState = _global.ST_SUB_ACTION;
break;
case ST_16A :
break;
case ST_16 :
if (mOldState != ST_16) {
mActor.orderShootDown();
mOldState = ST_16;
}
break;
case ST_17 :
mState = ST_06;
break;
case _global.ST_DIE :
break;
case _global.ST_SUB_ACTION :
mSubAction.update();
}
updateCollision();
}
function updateCollision() {
if (_root.mc_boss.mc_collisionPlayer.hitTest(_root.mc_player.mc_collision)) {
_global.game.playerImpact(DAMAGE_BOSS);
if (_root.mc_player._x >= 500) {
_root.mc_player._x = _root.mc_player._x - 200;
} else {
_root.mc_player._x = _root.mc_player._x - 100;
}
}
}
function onSubActionEnd() {
switch (mOldState) {
case _global.ST_BEGIN :
mActor.orderEnter();
break;
case ST_03 :
mActor.orderStand("mock");
break;
case ST_08 :
mActor.orderCharge();
break;
case ST_15 :
mActor.orderCharge();
break;
case _global.ST_DIE :
mActor.orderKill();
}
mState = mNextState;
}
function onAnimationEnd() {
switch (mState) {
case ST_01 :
mActor.orderStand("stand");
mState = ST_02;
break;
case ST_04 :
mActor.orderStand("stand");
mState = ST_05;
break;
case ST_07 :
mActor.shootCenter(3, mVarFire);
var _local3 = _global.getRandom(0, 6);
if (_local3 < 3) {
mActor.orderStand("scrape");
} else if (_local3 < 5) {
mActor.orderStand("mock");
} else {
mActor.orderStand("stand");
}
mState = ST_08;
break;
case ST_09A :
mState = ST_09;
mActor.shootUp();
break;
case ST_09 :
mActor.orderStand("stand");
mState = ST_10;
break;
case ST_11 :
mActor.shootCenter(2, mVarFire);
mActor.orderStand("stand");
mState = ST_12;
break;
case ST_14 :
mActor.shootCenter(2, mVarFire);
if (_global.getRandom(0, 5) < 3) {
mActor.orderStand("scrape");
} else {
mActor.orderStand("mock");
}
mState = ST_15;
break;
case ST_16A :
mActor.shootDown();
mState = ST_16;
break;
case ST_16 :
mActor.orderStand("stand");
mState = ST_17;
break;
case _global.ST_DIE :
mActor.orderKill();
}
}
function updateVars() {
if (mInitLife <= 0) {
return(undefined);
}
var _local3 = (100 * _global.bossLife) / mInitLife;
mActor.percent = _local3;
var _local4 = (100 - _local3) / 100;
mSpeed = SPEED_INI + (_local4 * (SPEED_END - SPEED_INI));
mVarFire = FIRE_INI + (_local4 * (FIRE_END - FIRE_INI));
updateDamage(_local3);
}
function updateDamage(percent) {
if (percent <= 25) {
if (!mBolSmoke) {
var _local3 = new clsMovieClip("mc_mojo_humo", "mc_mojo_humo" + _global.DEPTH_SMOKE, _global.DEPTH_SMOKE);
_local3.mount(mActor.gpx, clsBoss_03.SMOKE_X, clsBoss_03.SMOKE_Y);
mActor.bulletsSet.addObject(_local3);
mBolSmoke = true;
}
}
}
function onCollisionBullet(typeImpact, damage) {
if ((_global.bossLife + damage) <= 1) {
_global.bossLife = 0;
if (mState != _global.ST_DIE) {
if (mSubAction) {
delete mSubAction;
mSubAction = null;
}
mActor.gpx.setVelocity(0, 0);
mActor.orderDie();
mState = _global.ST_DIE;
}
return(undefined);
}
switch (mState) {
case ST_07 :
case ST_09 :
case ST_11 :
case ST_14 :
case ST_16 :
_global.bossLife = _global.bossLife + damage;
updateVars();
mActor.orderHit_Normal();
break;
default :
_global.bossLife = _global.bossLife + damage;
updateVars();
if (typeImpact == _global.IMPACT_NORMAL) {
mActor.orderHit_Normal();
}
if (typeImpact != _global.IMPACT_SPECIAL) {
break;
}
mActor.orderHit_Special();
}
}
static var ST_01 = -100;
static var ST_02 = -101;
static var ST_03 = -102;
static var ST_04 = -103;
static var ST_05 = -104;
static var ST_06 = -105;
static var ST_07 = -106;
static var ST_08 = -107;
static var ST_09A = -208;
static var ST_09 = -108;
static var ST_10 = -109;
static var ST_11 = -110;
static var ST_12 = -111;
static var ST_13 = -112;
static var ST_14 = -113;
static var ST_15 = -114;
static var ST_16A = -215;
static var ST_16 = -115;
static var ST_17 = -116;
static var ST_18 = -117;
static var SPEED_BEGIN = 10;
static var SPEED_INTRO = 6;
static var SPEED_DIE = 2;
static var SPEED_INI = 3;
static var SPEED_END = 8;
static var FIRE_INI = 4;
static var FIRE_END = 10;
var mSpeed = SPEED_INI;
var mVarFire = FIRE_INI;
static var DAMAGE_BOSS = -25;
static var BOMB_LIFE = 1500;
var mBolSmoke = false;
var mInitLife = 0;
}
Symbol 1643 MovieClip [__Packages.clsBoss_03] Frame 0
class clsBoss_03 extends clsActor
{
var mGpx;
function clsBoss_03 (nameMC, posx, posy) {
super(nameMC, posx, posy, _global.DEPTH_BOSS);
mGpx.setResponseMode(clsMovieClip.RESPONSE_MODE_RIGID);
var _local5 = _root.attachMovie("mc_energy_boss", "mc_energy_boss", _global.DEPTH_ENERGY_BOSS);
_local5._x = 570;
_local5._y = 40;
_local5.mc_life.gotoAndStop(_global.bossLife);
_global.bossCheck = true;
orderStand("stand");
}
function shootUp(index) {
var _local3 = mGpx.__get___x() + SHOOT_UP_X;
switch (index) {
case 0 :
_global.game.shootEnemy("mc_mis_boss03", _local3, mGpx.__get___y() + SHOOT_UP_Y1, SPEED_BOMB_UP_1, _global.SHOOT_FALL, DAMAGE_GUN);
break;
case 1 :
_global.game.shootEnemy("mc_mis_boss03", _local3, mGpx.__get___y() + SHOOT_UP_Y2, SPEED_BOMB_UP_2, _global.SHOOT_FALL, DAMAGE_GUN);
break;
case 2 :
_global.game.shootEnemy("mc_mis_boss03", _local3, mGpx.__get___y() + SHOOT_UP_Y3, SPEED_BOMB_UP_3, _global.SHOOT_FALL, DAMAGE_GUN);
}
}
function shootDown(index) {
var _local3 = mGpx.__get___x() + SHOOT_DOWN_X;
switch (index) {
case 0 :
_global.game.shootEnemy("mc_mis_boss03", _local3, mGpx.__get___y() + SHOOT_DOWN_Y1, SPEED_BOMB_DOWN_1, _global.SHOOT_FALL, DAMAGE_GUN);
break;
case 1 :
_global.game.shootEnemy("mc_mis_boss03", _local3, mGpx.__get___y() + SHOOT_DOWN_Y2, SPEED_BOMB_DOWN_2, _global.SHOOT_FALL, DAMAGE_GUN);
break;
case 2 :
_global.game.shootEnemy("mc_mis_boss03", _local3, mGpx.__get___y() + SHOOT_DOWN_Y3, SPEED_BOMB_DOWN_3, _global.SHOOT_FALL, DAMAGE_GUN);
}
}
function shootCenter(num, bulletSpeed) {
var _local4 = mGpx.__get___x() + SHOOT_CENTER_X;
var _local3 = mGpx.__get___y() + SHOOT_CENTER_Y;
lastFireSpeed = bulletSpeed;
if (num == 2) {
_global.game.shootEnemy("mc_arm_boss03", _local4, _local3, bulletSpeed, _global.SHOOT_NORMAL, DAMAGE_GUN, 165, 30, 2);
} else {
_global.game.shootEnemy("mc_arm_boss03", _local4, _local3, bulletSpeed, _global.SHOOT_NORMAL, DAMAGE_GUN, 150, 60, 3);
}
_global.game.shootEnemy("mc_arm_boss03", _local4, _local3, bulletSpeed, _global.SHOOT_NORMAL, DAMAGE_GUN, 105, 150, 2);
}
function orderEnter() {
mGpx.gotoAndStop("ENTER");
}
function orderStand(stateBoss) {
mGpx.gotoAndStop("STAND");
mGpx.__get__clip().mc_boss.mc_boss_head.gotoAndStop(stateBoss);
}
function orderCharge() {
mGpx.gotoAndStop("CHARGE");
}
function orderShootUp() {
mGpx.gotoAndStop("SHOOT_UP");
}
function orderShootDown() {
mGpx.gotoAndStop("SHOOT_DOWN");
}
function orderShootCenter() {
mGpx.gotoAndStop("SHOOT_CENTER");
}
function orderHit_Special() {
mGpx.gotoAndStop("HIT");
}
function orderDie() {
mGpx.gotoAndStop("DIE");
}
function orderHit_Normal() {
mGpx.__get__clip().mc_boss.mc_robot.gotoAndPlay("hit");
}
function orderRobotNormal() {
mGpx.__get__clip().mc_boss.mc_robot.gotoAndPlay("play");
}
function orderAdditionalFire(step) {
if (percent < 60) {
if (percent < 30) {
if ((step == 1) || (step == 3)) {
shootCenter(bulletsToShoot, lastFireSpeed);
}
} else if (step == 2) {
shootCenter(bulletsToShoot, lastFireSpeed);
}
}
}
static var SHOOT_UP_X = 10;
static var SHOOT_UP_Y1 = 40;
static var SHOOT_UP_Y2 = 55;
static var SHOOT_UP_Y3 = 70;
static var SHOOT_CENTER_X = 20;
static var SHOOT_CENTER_Y = 105;
static var SHOOT_DOWN_X = 15;
static var SHOOT_DOWN_Y1 = 150;
static var SHOOT_DOWN_Y2 = 165;
static var SHOOT_DOWN_Y3 = 180;
static var SMOKE_X = 45.6;
static var SMOKE_Y = 99;
static var DAMAGE_GUN = -20;
static var SPEED_BOMB_UP_1 = -9.9;
static var SPEED_BOMB_UP_2 = -6.6;
static var SPEED_BOMB_UP_3 = -3.3;
static var SPEED_BOMB_DOWN_1 = -12;
static var SPEED_BOMB_DOWN_2 = -9.6;
static var SPEED_BOMB_DOWN_3 = -6;
var lastFireSpeed = clsActionBoss_03.FIRE_INI;
var bulletsToShoot = 3;
var percent = 100;
}
Symbol 1644 MovieClip [__Packages.clsTrap] Frame 0
class clsTrap
{
var type, mGpx, frame, div, id, speedB1, speedB2, speedB3, inc1, inc2, inc3, idShield;
function clsTrap (mId, mType) {
type = mType;
var _local4 = clsGame.getNextCreationDepth();
mGpx = _root.attachMovie("mc_trap", "mc_trap", _local4);
mGpx.gotoAndStop("TRAP" + type);
mGpx._x = 620;
mGpx._y = 400;
mGpx._alpha = 0;
switch (type) {
case 1 :
frame = _global.AC_BLOSSOM;
break;
case _global.AC_BUBBLES :
frame = 10;
break;
case _global.AC_BUTTERCUP :
frame = 20;
}
div = mGpx._x - LIMIT;
id = mId;
speedB1 = _global._BG00_DISPLACE;
speedB2 = _global._BG01_DISPLACE;
speedB3 = _global._BG02_DISPLACE;
inc1 = (SPEED * speedB1) / (LIMIT - LIMITDEL);
inc2 = (SPEED * speedB2) / (LIMIT - LIMITDEL);
inc3 = (SPEED * speedB3) / (LIMIT - LIMITDEL);
}
function update() {
if (!die) {
_global._BG00_DISPLACE = (speedB1 * (mGpx._x - LIMIT)) / div;
_global._BG01_DISPLACE = (speedB2 * (mGpx._x - LIMIT)) / div;
_global._BG02_DISPLACE = (speedB3 * (mGpx._x - LIMIT)) / div;
if (mGpx._x > LIMIT) {
mGpx._x = mGpx._x - SPEED;
} else {
mGpx._x = LIMIT;
}
} else {
if (_global._BG00_DISPLACE >= speedB1) {
_global._BG00_DISPLACE = speedB1;
} else {
_global._BG00_DISPLACE = _global._BG00_DISPLACE + inc1;
}
if (_global._BG01_DISPLACE >= speedB2) {
_global._BG01_DISPLACE = speedB2;
} else {
_global._BG01_DISPLACE = _global._BG01_DISPLACE + inc2;
}
if (_global._BG02_DISPLACE >= speedB3) {
_global._BG02_DISPLACE = speedB3;
} else {
_global._BG02_DISPLACE = _global._BG02_DISPLACE + inc3;
}
if (mGpx._x >= LIMITDEL) {
mGpx._x = mGpx._x - SPEED;
} else {
free();
}
}
if (!die) {
if (mGpx.mc_collision.hitTest(_root.mc_player.mc_collision)) {
if (_global.trapVisible) {
_global.game.playerImpact(DAMAGE);
}
_root.mc_player._x = _root.mc_player._x - 40;
}
if (mGpx.mc_collision.hitTest(_root.mc_special.mc_shoot.mc_collision || (_root.mc_special.mc_shoot.mc_collision2))) {
if (frame == _root.mc_special._currentframe) {
if (_root.mc_special.mc_shoot._currentframe == 20) {
if (_global.trapCheck) {
if (!shield) {
die = true;
mGpx.mc_clip.gotoAndStop("DIE");
_global.trap = false;
}
}
} else if (_global.trapCheck) {
if (!shield) {
life--;
if (life > 0) {
mGpx.mc_clip.gotoAndStop("HIT");
shield = true;
idShield = setInterval(this, "InitShield", 3000);
} else {
die = true;
mGpx.mc_clip.gotoAndStop("DIE");
_global.trap = false;
}
}
}
}
if (_root.mc_special._currentframe == 30) {
die = true;
mGpx.mc_clip.gotoAndStop("DIE");
_global.trap = false;
}
}
}
}
function InitShield() {
clearInterval(idShield);
shield = false;
}
function speedNormal() {
_global._BG00_DISPLACE = speedB1;
_global._BG01_DISPLACE = speedB2;
_global._BG02_DISPLACE = speedB3;
}
function free() {
speedNormal();
mGpx.removeMovieClip();
_global.game.deleteActor(id);
}
var die = false;
static var DAMAGE = -25;
static var SPEED = 3;
static var LIMIT = 300;
static var LIMITDEL = 0;
var life = 3;
var shield = false;
}
Symbol 1645 MovieClip [__Packages.clsBossTrap] Frame 0
class clsBossTrap
{
var id, girl, mGpx, mGpx2;
function clsBossTrap (mId, mGirl) {
id = mId;
girl = mGirl;
var _local3 = clsGame.getNextCreationDepth();
mGpx = _root.attachMovie("mc_boss_trap_lv1", "mc_boss_trap", _local3);
mGpx.gotoAndStop("STAND");
mGpx._x = 620;
mGpx._y = 100;
}
function update() {
if (!shoot) {
if (mGpx._x >= limit) {
mGpx._x = mGpx._x - speed;
} else {
_root.mc_boss_trap.mc_ship.mc_character.gotoAndStop("rasca");
mGpx.gotoAndStop("SHOOT");
shoot = true;
var _local5 = clsGame.getNextCreationDepth();
mGpx2 = _root.attachMovie("mc_boss_trap_bullet", "mc_boss_trap_bullet", _local5);
mGpx2._x = mGpx._x - 20;
mGpx2._y = mGpx._y;
attack = true;
}
}
if (attack) {
if ((mGpx._y < 100) || (mGpx._y > 200)) {
speed = -1 * speed;
shootBullet();
}
if ((mGpx._y > 150) && (mGpx._y < 153)) {
shootBullet();
}
mGpx._y = mGpx._y + speed;
}
if ((!_global.trap) && (back)) {
attack = false;
speed = Math.abs(speed);
_root.mc_boss_trap.mc_ship.mc_character.gotoAndStop("burla");
if (mGpx._x <= 630) {
mGpx._x = mGpx._x + (speed + 1);
} else {
free();
}
}
if (mGpx2._y <= 420) {
mGpx2._x = mGpx2._x - 4;
mGpx2._y = mGpx2._y + 10;
} else {
_root.mc_trap._alpha = 100;
_root.mc_trap.mc_clip.gotoAndStop("INIT");
_global.trapVisible = true;
_global.trap = true;
back = true;
mGpx2.removeMovieClip();
var _local4;
switch (girl) {
case 1 :
_local4 = "BLOSSOM";
break;
case 2 :
_local4 = "BUBBLES";
break;
case 3 :
_local4 = "BUTTERCUP";
}
_global.game.createMsgPanel("mc_panel_trap", _local4, 160, 380);
}
}
function shootBullet() {
_global.game.shootEnemy("mc_bullet_3", mGpx._x - 60, mGpx._y, 10, 2, -10);
}
function free() {
mGpx.removeMovieClip();
_global.game.deleteActor(id);
}
var back = false;
var attack = false;
var speed = 2;
var limit = 500;
var shoot = false;
}
Symbol 1646 MovieClip [__Packages.clsPlayer] Frame 0
class clsPlayer
{
var mGpx, typeBullet, bullet;
function clsPlayer (nameClip, x, y) {
mGpx = _root.attachMovie(nameClip, "mc_player", _global.DEPTH_PLAYER);
mGpx._x = x;
mGpx._y = y;
switch (nameClip) {
case "mc_blossom" :
typeBullet = 1;
bullet = "mc_blossom_bullet";
break;
case "mc_bubbles" :
typeBullet = 2;
bullet = "mc_bubbles_bullet";
break;
case "mc_buttercup" :
typeBullet = 3;
bullet = "mc_buttercup_bullet";
}
Key.addListener(mGpx);
}
function update() {
move();
}
function move() {
var _local7 = false;
mGpx.onKeyDown = function () {
if (Key.isDown(32)) {
_global.checkCharge = true;
}
};
if (Key.isDown(38)) {
_root.mc_player._y = _root.mc_player._y - SPEED_GO;
angleBullet = 90;
}
if (Key.isDown(40)) {
_root.mc_player._y = _root.mc_player._y + SPEED_GO;
angleBullet = 270;
}
if (Key.isDown(39)) {
_root.mc_player._x = _root.mc_player._x + SPEED_GO;
angleBullet = 0;
}
if (Key.isDown(37)) {
_root.mc_player._x = _root.mc_player._x - SPEED_BACK;
}
if (Key.isDown(38) && (Key.isDown(39))) {
angleBullet = 45;
}
if (Key.isDown(40) && (Key.isDown(39))) {
angleBullet = 315;
}
if (Key.isDown(32)) {
if (_global.checkCharge) {
_global.game.playerCharge(_global.velCharge);
if ((_global.levelCharge > Math.round(_global.limitCharge * 0.1)) && (!_global.activeSound)) {
_global.activeSound = true;
_global.game.startSound(_global.soundEffect, "sndChargeGirl");
}
if (_global.levelCharge >= (_global.limitCharge / 3)) {
_root.mc_player.gotoAndStop("CHARGE");
}
}
} else {
if (_global.checkCharge) {
var _local6 = 0;
var _local8 = 0;
if ((_global.levelCharge >= Math.round(_global.limitCharge / 3)) && (_global.levelCharge < Math.round((2 * _global.limitCharge) / 3))) {
_local6 = 1;
} else if ((_global.levelCharge >= Math.round((2 * _global.limitCharge) / 3)) && (_global.levelCharge < (_global.limitCharge - 4))) {
_local6 = 2;
} else if (_global.levelCharge >= (_global.limitCharge - 10)) {
_local6 = 3;
}
if (_local6 != 0) {
_global.special = new clsShootSpecial(typeBullet, _local6, mGpx._x, mGpx._y);
}
}
_global.game.playerCharge(-_global.limitCharge);
_global.checkCharge = false;
}
mGpx.onKeyUp = function () {
if (Key.getAscii() == 32) {
if (!_global.playerShoot) {
if (!_global.playerChange) {
if (_root.mc_player._currentframe == 40) {
} else {
var _local5 = 13;
var _local4;
_root.mc_player.gotoAndStop("SHOOT");
switch (_global.player.typeBullet) {
case 1 :
_local4 = new clsParticles(_global.game.idNumActor, _global.player.typeBullet, _global.player.bullet + "_01", this._x, this._y, _local5, 65, 0, [100, 100], [100, 100, 120, 120], 0, 0);
_global.game.addActor(_local4);
_local4 = new clsParticles(_global.game.idNumActor, _global.player.typeBullet, _global.player.bullet, this._x, this._y, _local5, 0, 0, [100, 100], [100, 100, 120, 120], 0, 0);
_global.game.addActor(_local4);
_local4 = new clsParticles(_global.game.idNumActor, _global.player.typeBullet, _global.player.bullet + "_02", this._x, this._y, _local5, 295, 0, [100, 100], [100, 100, 120, 120], 0, 0);
_global.game.addActor(_local4);
break;
case 2 :
if (this.checkShoot) {
_local4 = new clsParticles(_global.game.idNumActor, _global.player.typeBullet, _global.player.bullet, this._x, this._y, _local5, 0, 0, [100, 100], [100, 100, 100, 100], 0, 0);
_global.game.addActor(_local4);
_local4 = new clsParticles(_global.game.idNumActor, _global.player.typeBullet, _global.player.bullet, this._x, this._y, _local5, 10, 0, [100, 100], [100, 100, 100, 100], 0, 0);
_global.game.addActor(_local4);
_local4 = new clsParticles(_global.game.idNumActor, _global.player.typeBullet, _global.player.bullet, this._x, this._y, _local5, 350, 0, [100, 100], [100, 100, 100, 100], 0, 0);
_global.game.addActor(_local4);
this.checkShoot = false;
} else {
_local4 = new clsParticles(_global.game.idNumActor, _global.player.typeBullet, _global.player.bullet, this._x, this._y, _local5, 5, 0, [100, 100], [100, 100, 100, 100], 0, 0);
_global.game.addActor(_local4);
_local4 = new clsParticles(_global.game.idNumActor, _global.player.typeBullet, _global.player.bullet, this._x, this._y, _local5, 355, 0, [100, 100], [100, 100, 100, 100], 0, 0);
_global.game.addActor(_local4);
this.checkShoot = true;
}
break;
case 3 :
_local4 = new clsParticles(_global.game.idNumActor, _global.player.typeBullet, _global.player.bullet, this._x, this._y, _local5, 0, 0, [100, 100], [100, 100, 100, 100], 0, 0);
_global.game.addActor(_local4);
}
_global.playerShoot = true;
}
}
}
}
};
if (mGpx._x < LIMIT_LEFT) {
mGpx._x = LIMIT_LEFT;
}
if (mGpx._x > LIMIT_RIGHT) {
mGpx._x = LIMIT_RIGHT;
}
if (mGpx._y < LIMIT_UP) {
mGpx._y = LIMIT_UP;
}
if (mGpx._y > LIMIT_DOWN) {
mGpx._y = LIMIT_DOWN;
}
}
function free() {
mGpx.removeMovieClip();
delete _global.player;
}
static var angleBullet = 0;
static var LIMIT_LEFT = 40;
static var LIMIT_RIGHT = 560;
static var LIMIT_UP = 30;
static var LIMIT_DOWN = 370;
static var SPEED_GO = 12;
static var SPEED_BACK = 12;
var checkShoot = true;
}
Symbol 1647 MovieClip [__Packages.clsShootSpecial] Frame 0
class clsShootSpecial
{
var type, level, mGpx, xOrg, mGpx2;
function clsShootSpecial (mtype, mLv, x, y) {
type = mtype;
level = mLv;
var _local6 = clsGame.getNextCreationDepth();
mGpx = _root.attachMovie("mc_player_special", "mc_special", _global.DEPTH_SPECIAL);
if (_global.girlActive == _global.AC_BUTTERCUP) {
var _local4 = 470;
xOrg = x;
x = _local4;
if (xOrg > _local4) {
x = _local4;
xOrg = _local4;
}
if (_global.trap) {
x = _root.mc_trap._x;
}
}
if (_global.POW && (level == 3)) {
x = xPow;
y = yPow;
}
mGpx._x = x;
mGpx._y = y;
_root.mc_player.gotoAndStop("SPECIAL");
if (_global.POW && (level == 3)) {
actPow = true;
mGpx.gotoAndStop("TYPE4");
_global.powP = false;
_global.powO = false;
_global.powW = false;
_global.POW = false;
_global.game.updatePow();
_global.game.playerPow();
} else {
mGpx.gotoAndStop("TYPE" + type);
mGpx.mc_shoot.gotoAndStop("LV" + level);
}
}
function update() {
mGpx._y = _root.mc_player._y;
if (_global.girlActive == _global.AC_BUTTERCUP) {
_root.mc_player._x = xOrg;
} else {
mGpx._x = _root.mc_player._x;
}
if (actPow) {
_root.mc_player._x = xPow;
_root.mc_player._y = yPow;
}
_global.playerChange = true;
_global.checkCharge = false;
_global.playerShoot = true;
var _local4 = 0;
while (_local4 < _global.game.mzActorsEnemy.length) {
var _local8 = _global.game.mzActorsEnemy[_local4].mc_collision;
var _local6 = {x:_local8._x, y:_local8._y};
_global.game.mzActorsEnemy[_local4].localToGlobal(_local6);
if (mGpx.mc_shoot.mc_collision.hitTest(_local6.x, _local6.y, true) || (mGpx.mc_shoot.mc_collision2.hitTest(_local6.x, _local6.y, true))) {
var _local5 = _global.game.mzActorsEnemy[_local4].ID;
_global.game.mzActorsEnemy[_local4].gotoAndStop("IMPACT");
_global.game.mzActors[_local5][0].free();
}
_local4++;
}
if (_global.bossCheck) {
var _local7;
switch (level) {
case 1 :
_local7 = _global.DAMAGE_SPECIAL_L1;
break;
case 2 :
_local7 = _global.DAMAGE_SPECIAL_L2;
break;
case 3 :
_local7 = _global.DAMAGE_SPECIAL_L3;
if (!actPow) {
break;
}
_local7 = _global.DAMAGE_SPECIAL_POW;
}
var _local8 = _root.mc_boss.mc_collision;
var _local6 = {x:_local8._x, y:_local8._y};
_root.mc_boss.localToGlobal(_local6);
if (mGpx.mc_shoot.mc_collision.hitTest(_local6.x, _local6.y, true) || (mGpx.mc_shoot.mc_collision2.hitTest(_local6.x, _local6.y, true))) {
if (!_global.specialDamageBoss) {
_global.game.impactBoss(_local7, _global.IMPACT_SPECIAL);
_global.specialDamageBoss = true;
}
}
}
}
function createPlayerPow() {
var _local3 = clsGame.getNextCreationDepth();
mGpx2 = _root.attachMovie("mc_player_pow", "mc_player_pow", _local3);
mGpx2._x = mGpx._x;
mGpx2._y = mGpx._y;
}
function free() {
_global.specialDamageBoss = false;
mGpx.removeMovieClip();
delete _global.special;
}
var xPow = 100;
var yPow = 200;
var actPow = false;
}
Symbol 1648 MovieClip [__Packages.clsParticles] Frame 0
class clsParticles
{
var id, mObj, mSpeed, mSpeed_Y, mAngleDir, mAngleDif, mSpeedRotate, mK_alpha, mK_size_x, mK_size_y, type, damage;
function clsParticles (mId, mType, nameMovie, x, y, speed, angledir, angleDif, visiblelife, sizelife, speedrotate) {
id = mId;
var _local3 = clsGame.getNextCreationDepth();
mObj = _root.attachMovie(nameMovie, "mc_bullet_" + _local3, _local3);
mObj._x = x;
mObj._y = y;
mSpeed = speed;
mSpeed_Y = speed;
mAngleDir = angledir;
mAngleDif = angleDif;
mzVisibleLife = visiblelife;
mzSizeLife = sizelife;
mSpeedRotate = speedrotate;
mObj._alpha = mzVisibleLife[0];
mObj._xscale = mzSizeLife[0];
mObj._yscale = mzSizeLife[2];
mK_alpha = mzVisibleLife[0] - mzVisibleLife[1];
mK_size_x = mzSizeLife[0] - mzSizeLife[1];
mK_size_y = mzSizeLife[2] - mzSizeLife[3];
type = mType;
switch (type) {
case 1 :
damage = -2;
break;
case 2 :
damage = -1;
break;
case 3 :
damage = -3;
}
}
function update() {
mObj._alpha = mObj._alpha - mK_alpha;
mObj._xscale = mObj._xscale - mK_size_x;
mObj._yscale = mObj._yscale - mK_size_y;
mObj._rotation = mObj._rotation + mSpeedRotate;
move();
var _local4 = 0;
while (_local4 < _global.game.mzActorsEnemy.length) {
if (mObj.mc_collision.hitTest(_global.game.mzActorsEnemy[_local4].mc_collision)) {
var _local5 = _global.game.mzActorsEnemy[_local4].ID;
_global.game.mzActors[_local5][0].life = _global.game.mzActors[_local5][0].life + damage;
if (_global.game.mzActors[_local5][0].life > 0) {
_global.game.mzActorsEnemy[_local4].gotoAndStop("IMPACT");
} else {
_global.game.mzActors[_local5][0].free();
}
free();
}
_local4++;
}
if (_global.trap) {
if (mObj.mc_collision.hitTest(_root.mc_trap.mc_collision)) {
free();
}
}
if (_global.bossCheck) {
if (mObj.mc_collision.hitTest(_root.mc_boss.mc_collision)) {
_global.game.impactBoss(damage, _global.IMPACT_NORMAL);
free();
}
}
}
function move() {
if ((mAngleDir + mAngleDif) <= 180) {
mSpeed_Y = mSpeed_Y;
} else {
mSpeed_Y = mSpeed_Y;
}
mObj._x = mObj._x + (mSpeed * Math.sin(((mAngleDir + 90) + mAngleDif) * (Math.PI/180)));
mObj._y = mObj._y + (mSpeed_Y * Math.cos(((mAngleDir + 90) + mAngleDif) * (Math.PI/180)));
if ((mObj._x > 620) || (mObj._x < -30)) {
free();
}
if ((mObj._y > 420) || (mObj._y < -30)) {
free();
}
}
function free() {
_global.game.deleteActor(id);
mObj.removeMovieClip();
}
var mzVisibleLife = [100, 100];
var mzSizeLife = [100, 100, 100, 100];
}
Symbol 1649 MovieClip [__Packages.clsShootEnemy] Frame 0
class clsShootEnemy
{
var mId, mType, mDamage, mGpx, mSpeed, mAngleDir, dy, dCos, dSin, mTime;
function clsShootEnemy (id, nameMovie, x, y, speed, type, damage, angledir, scale) {
mId = id;
mType = type;
mDamage = damage;
var _local4 = clsGame.getNextCreationDepth();
mGpx = _root.attachMovie(nameMovie, "shoot_" + _local4, _local4);
mGpx._x = x;
mGpx._y = y;
mSpeed = speed;
mInitY = mGpx._y;
if (scale != undefined) {
mGpx._xscale = scale;
mGpx._yscale = scale;
}
if (mType != _global.SHOOT_MINE) {
if (angledir == undefined) {
angledir = 180;
}
mAngleDir = angledir;
mGpx._rotation = (-mAngleDir) + 90;
}
dy = _root.mc_player._y - mGpx._y;
var _local8 = _root.mc_player._x - mGpx._x;
var _local5 = Math.atan(_local8 / dy);
if (mType == _global.SHOOT_SPECIAL) {
mGpx._rotation = (180 * Math.atan2(mGpx._y - _root.mc_player._y, mGpx._x - _root.mc_player._x)) / Math.PI;
}
dCos = Math.cos(_local5);
dSin = Math.sin(_local5);
mTime = getTimer();
}
function update() {
if (mType == _global.SHOOT_NORMAL) {
normalMove();
}
if (mType == _global.SHOOT_SPECIAL) {
specialMove();
}
if (mType == _global.SHOOT_FALL) {
fallMove();
}
if (mType == _global.SHOOT_MINE) {
var _local4 = getTimer();
if ((_local4 - mTime) > clsActionBoss_03.BOMB_LIFE) {
free();
}
return(undefined);
}
if (mGpx.mc_collision.hitTest(_root.mc_player.mc_collision)) {
if (!_global.playerShield) {
if (_global.playerChange) {
_global.game.playerImpactChange(mDamage);
free();
} else {
_global.game.playerImpact(mDamage);
}
}
}
if (mType == _global.SHOOT_FALL) {
if (mGpx._y >= LIMIT_Y_END) {
if (_global.playerAlive) {
_global.game.shootEnemy("mc_bomba_boss03", mGpx._x + 10, mGpx._y - 75, 0, _global.SHOOT_MINE, -25);
}
free();
}
} else {
if ((mGpx._x <= LIMIT_X_INI) || (mGpx._x >= LIMIT_X_END)) {
free();
}
if ((mGpx._y <= LIMIT_Y_INI) || (mGpx._y >= LIMIT_Y_END)) {
free();
}
}
}
function normalMove() {
mGpx._x = mGpx._x + (mSpeed * Math.sin((mAngleDir + 90) * (Math.PI/180)));
mGpx._y = mGpx._y + (mSpeed * Math.cos((mAngleDir + 90) * (Math.PI/180)));
}
function fallMove() {
var _local2 = (getTimer() - mTime) / 1000;
mGpx._y = mGpx._y + ((GRAVITY * _local2) * _local2);
mGpx._x = mGpx._x + (mSpeed * _local2);
mGpx._rotation = (-90 * (mGpx._y - mInitY)) / (LIMIT_Y_END - mInitY);
}
function specialMove() {
if (dy > 0) {
mGpx._y = mGpx._y + (mSpeed * dCos);
mGpx._x = mGpx._x + (mSpeed * dSin);
}
if (dy < 0) {
mGpx._y = mGpx._y - (mSpeed * dCos);
mGpx._x = mGpx._x - (mSpeed * dSin);
}
}
function free() {
mGpx.removeMovieClip();
_global.game.deleteActor(mId);
}
static var LIMIT_X_INI = 0;
static var LIMIT_X_END = 600;
static var LIMIT_Y_INI = 0;
static var LIMIT_Y_END = 400;
static var GRAVITY = 6.5;
var mInitY = 0;
}
Symbol 1650 MovieClip [__Packages.clsShield] Frame 0
class clsShield
{
var Gpx;
function clsShield (x, y) {
_root.mc_player_shield.removeMovieClip();
Gpx = _root.attachMovie("mc_player_shield", "mc_player_shield", _global.DEPTH_SHIELD);
Gpx._x = x;
Gpx._y = y;
}
function update() {
Gpx._x = _root.mc_player._x;
Gpx._y = _root.mc_player._y;
}
function free() {
Gpx.removeMovieClip();
delete _global.Shield;
}
}
Symbol 1651 MovieClip [__Packages.clsPanel] Frame 0
class clsPanel
{
var frame, appear, duration, mGpx;
function clsPanel (nameClip, mFrame, mAppear, mDuration) {
frame = mFrame;
appear = mAppear;
duration = mDuration;
mGpx = _root.attachMovie(nameClip, "mc_panel_trap", _global.DEPTH_PANEL);
mGpx._x = xPos;
mGpx._y = yPos;
mGpx.mc_text_panel.gotoAndStop(frame);
}
function update() {
numFrames++;
if (numFrames == appear) {
state = 1;
}
if (numFrames == duration) {
state = 2;
}
if (((frame == _global.FRAME_BLOSSOM) || (frame == _global.FRAME_BUBBLES)) || (frame == _global.FRAME_BUTTERCUP)) {
if ((state == 1) && (_global.trap)) {
if (mGpx._y >= LIMT_Y) {
mGpx._y = mGpx._y - SPEED;
} else if (_global.trap) {
state = 0;
} else {
state = 2;
}
}
if (!_global.trap) {
state = 2;
}
if (state == 2) {
if (mGpx._y <= 500) {
mGpx._y = mGpx._y + SPEED;
} else {
free();
}
}
} else {
if (state == 1) {
if (mGpx._y >= LIMT_Y) {
mGpx._y = mGpx._y - SPEED;
}
}
if (state == 2) {
if (mGpx._y <= 500) {
mGpx._y = mGpx._y + SPEED;
} else {
free();
}
}
}
}
function free() {
mGpx.removeMovieClip();
delete _global.msgPanel;
}
var state = 0;
var numFrames = 0;
static var SPEED = 6;
static var LIMT_Y = 285;
static var xPos = 0;
static var yPos = 402;
}
Symbol 1652 MovieClip [__Packages.clsGameLevel2] Frame 0
class clsGameLevel2 extends clsGame
{
var initGirl, mzActorInLevel;
function clsGameLevel2 () {
super();
_global.world = new clsWorld("mc_bg00_Lv2", -1800, "mc_esc002_sec0", 8, "mc_bg02_Lv2", -1800);
}
function init() {
_global.numPuppies = 45;
super.init();
initGirl("mc_buttercup", 3, 2, 1);
mzActorInLevel = [[0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.PD_D, clsGame.PD_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS3, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS1, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS5, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS3, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS1, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS5, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS3, clsGame.PC_D, clsGame.PC_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 2.4, clsGame.HC_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 2.4, clsGame.HC_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 2.4, clsGame.HC_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HD, 20, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 40, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS4, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS4, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS4, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS4, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS4, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS5, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS4, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 2.2, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS4, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS3, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS1, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS4, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS1, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS4, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS3, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.PD_D, clsGame.PD_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 10, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [0], [0], [0], [0], [0], [3, _global.AC_BUTTERCUP], [0], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS5, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS4, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 2.2, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS4, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS3, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS3, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS3, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.PD_D, clsGame.PD_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HD, 20, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 40, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS4, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS4, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS4, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS4, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS4, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS5, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS5, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.PD_D, clsGame.PD_S], [0], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS3, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS3, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.PD_D, clsGame.PD_S], [0], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS1, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS1, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.PD_D, clsGame.PD_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS2, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 2.2, clsGame.HC_SP, 620, clsGame.LINEPOS2, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS4, 5000, 0, clsGame.HC_D, clsGame.HC_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 40, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.HD_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 2.4, clsGame.PA_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.4, clsGame.HA_SP, 620, clsGame.LINEPOS2, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 2.4, clsGame.PA_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HC, 10, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 40, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [0], [0], [0], [0], [0], [4, 2]];
}
}
Symbol 1653 MovieClip [__Packages.clsWorld] Frame 0
class clsWorld
{
var repeat00, repeat02;
function clsWorld (map00Name, sizeMap00, map01Name, numScenes, map02Name, sizeMap02) {
mGpx = _root.attachMovie(map00Name, "mc_bg_00", _global.DEPTH_BG00);
mGpx02 = _root.attachMovie(map02Name, "mc_bg_02", _global.DEPTH_BG02);
repeat00 = sizeMap00;
repeat02 = sizeMap02;
_global.world_move = new clsWorldMove(map01Name, numScenes, _global.DEPTH_BG01);
mGpx._x = 0;
mGpx._y = 0;
mGpx02._x = 0;
mGpx02._y = 0;
mW = mGpx._width;
mH = mGpx._height;
}
function get h() {
return(mH);
}
function get w() {
return(mW);
}
function set h(h) {
mH = h;
mGpx._height = mH;
//return(this.h);
}
function set w(w) {
mW = w;
mGpx._width = mW;
//return(this.w);
}
function get _x() {
return(mGpx._x);
}
function get _y() {
return(mGpx._y);
}
function set _x(x) {
mGpx._x = x;
//return(_x);
}
function set _y(y) {
mGpx._y = y;
//return(_y);
}
function get gpx() {
return(mGpx);
}
function update() {
if (mGpx._x > repeat00) {
mGpx._x = mGpx._x - _global._BG00_DISPLACE;
} else {
mGpx._x = 0;
}
if (mGpx02._x > repeat02) {
mGpx02._x = mGpx02._x - _global._BG02_DISPLACE;
} else {
mGpx02._x = 0;
}
}
function free() {
mGpx01.removeMovieClip();
mGpx02.removeMovieClip();
mGpx.removeMovieClip();
}
var mH = null;
var mW = null;
var mGpx = null;
var mGpx01 = null;
var mGpx02 = null;
}
Symbol 1654 MovieClip [__Packages.clsWorldMove] Frame 0
class clsWorldMove
{
var nameClip, mzClip, numClip, iniClip, endClip, depth01, depth02, mGpx01, mGpx02, speed;
function clsWorldMove (mNameClip, mClips, mDepth) {
nameClip = mNameClip;
mzClip = new Array();
numClip = 2;
iniClip = 1;
endClip = mClips;
loadNameClip();
depth01 = mDepth;
depth02 = mDepth - 1;
mGpx01 = _root.attachMovie(mzClip[1], mzClip[1], depth01);
mGpx01._x = 0;
mGpx01._y = 0;
mGpx02 = _root.attachMovie(mzClip[2], mzClip[2], depth02);
mGpx02._x = 600;
mGpx02._y = 0;
}
function countClip() {
numClip++;
if (!_global.endLevel) {
if (numClip >= endClip) {
numClip = 2;
}
}
}
function update() {
speed = _global._BG01_DISPLACE;
if (numClip <= endClip) {
if (mGpx01._x >= XLIMIT) {
mGpx01._x = mGpx01._x - speed;
} else {
countClip();
changeGpx(1);
}
if (mGpx02._x >= XLIMIT) {
mGpx02._x = mGpx02._x - speed;
} else {
countClip();
changeGpx(2);
}
}
if (numClip == (endClip + 1)) {
_global.game.stopMoveBack();
}
}
function loadNameClip() {
var _local2 = 1;
while (_local2 <= endClip) {
mzClip[_local2] = nameClip + _local2;
_local2++;
}
}
function changeGpx(nGpx) {
switch (nGpx) {
case 1 :
mGpx01.removeMovieClip();
mGpx02.swapDepths(depth01);
mGpx01 = _root.attachMovie(mzClip[numClip], mzClip[numClip], depth02);
mGpx01._x = mGpx02._x + WCLIP;
mGpx01._y = 0;
break;
case 2 :
mGpx02.removeMovieClip();
mGpx01.swapDepths(depth01);
mGpx02 = _root.attachMovie(mzClip[numClip], mzClip[numClip], depth02);
mGpx02._x = mGpx01._x + WCLIP;
mGpx02._y = 0;
}
}
function free() {
mGpx01.removeMovieClip();
mGpx02.removeMovieClip();
delete _global.world_move;
}
static var XLIMIT = -600;
static var WCLIP = 600;
}
Symbol 1655 MovieClip [__Packages.clsGameLevel1] Frame 0
class clsGameLevel1 extends clsGame
{
var initGirl, mzActorInLevel;
function clsGameLevel1 () {
super();
_global.world = new clsWorld("mc_bg00_Lv1", -1200, "mc_esc001_sec0", 8, "mc_bg02_Lv1", -1800);
}
function init() {
_global.numPuppies = 40;
super.init();
initGirl("mc_blossom", 1, 2, 3);
mzActorInLevel = [[0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS2, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 2.2, clsGame.PA_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS2, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 2.2, clsGame.PA_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.HB_D, clsGame.HB_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 40, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.HB_D, clsGame.HB_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 20, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.4, clsGame.HA_SP, 620, clsGame.LINEPOS1, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.4, clsGame.HA_SP, 620, clsGame.LINEPOS1, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.4, clsGame.HA_SP, 620, clsGame.LINEPOS1, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 2.4, clsGame.PA_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 2.4, clsGame.PA_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.HB_D, clsGame.HB_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.HB_D, clsGame.HB_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 10, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.4, clsGame.HA_SP, 620, clsGame.LINEPOS1, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [0], [0], [0], [0], [3, _global.AC_BLOSSOM], [0], [0], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS1, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS1, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS1, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS1, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 2.2, clsGame.PA_SP, 620, clsGame.LINEPOS2, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 20, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.4, clsGame.HA_SP, 620, clsGame.LINEPOS1, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.4, clsGame.HA_SP, 620, clsGame.LINEPOS1, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.4, clsGame.HA_SP, 620, clsGame.LINEPOS1, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 40, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.HB_D, clsGame.HB_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.HB_D, clsGame.HB_S], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS1, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS1, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS1, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS1, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.2, clsGame.HA_SP, 620, clsGame.LINEPOS2, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.2, clsGame.HA_SP, 620, clsGame.LINEPOS2, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 40, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS2, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS4, clsGame.HB_D, clsGame.HB_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS2, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 2.2, clsGame.PA_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 2.2, clsGame.PA_SP, 620, clsGame.LINEPOS1, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 10, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS1, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 40, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS5, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [0], [0], [0], [0], [4, 1]];
}
}
Symbol 1656 MovieClip [__Packages.clsGameLevel3] Frame 0
class clsGameLevel3 extends clsGame
{
var initGirl, mzActorInLevel;
function clsGameLevel3 () {
super();
_global.world = new clsWorld("mc_bg00_Lv3", -1800, "mc_esc003sec0", 8, "mc_bg02_Lv3", -2400);
}
function init() {
_global.numPuppies = 70;
super.init();
initGirl("mc_bubbles", 2, 1, 3);
mzActorInLevel = [[0], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HE, 0, _global.MOVE_APPE, 3.2, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HF, 0, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS4, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HF, 0, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS3, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS6, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS6, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS6, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS6, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HE, 0, _global.MOVE_APPE, 3.2, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HF, 40, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS4, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HF, 0, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS3, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [0], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS6, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS6, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS6, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS6, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HE, 0, _global.MOVE_APPE, 3.2, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 20, _global.MOVE_APPE, 1, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 0, _global.MOVE_APPE, 1, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [clsGame.OBJECT_ENEMY, clsGame.HF, 0, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS4, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HF, 0, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS3, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 10, _global.MOVE_APPE, 1, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS6, 30, 0, clsGame.HE_D, clsGame.HE_S], [0], [0], [0], [0], [0], [3, 2], [0], [0], [0], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 20, _global.MOVE_APPE, 1, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS4, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.PE, clsGame.PUPPY_PE, _global.MOVE_SENO, 1, clsGame.PE_SP, 620, clsGame.LINEPOS2, 30, clsGame.AMPLITUDE_PE, clsGame.PE_D, clsGame.PE_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 0, _global.MOVE_APPE, 2.5, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [clsGame.OBJECT_ENEMY, clsGame.HF, 0, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS4, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HF, 0, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS3, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HF, 40, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS2, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 0, _global.MOVE_APPE, 1, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS6, 30, 0, clsGame.HE_D, clsGame.HE_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [clsGame.OBJECT_ENEMY, clsGame.PF, clsGame.PUPPY_PF, _global.MOVE_ARCO, 1, clsGame.PF_SP, 620, clsGame.LINEPOS4, 35, clsGame.AMPLITUDE_PF, clsGame.PF_D, clsGame.PF_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.HD, 0, _global.MOVE_CIRC, 1, clsGame.HD_SP, clsGame.LINE_X_POS3, clsGame.LINEPOS3, 15, clsGame.AMPLITUDE, clsGame.HD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 20, _global.MOVE_APPE, 1, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS2, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS4, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS2, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS4, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.PC, clsGame.PUPPY_PC, _global.MOVE_ASCE, 1, clsGame.PC_SP, clsGame.LINE_X_POS3, 420, 50, clsGame.LINEPOS2, clsGame.PC_D, clsGame.PC_S], [clsGame.OBJECT_ENEMY, clsGame.PD, clsGame.PUPPY_PD, _global.MOVE_DESC, 1, clsGame.PD_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS4, clsGame.PD_D, clsGame.PD_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS4, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HC, 0, _global.MOVE_HORI, 1, clsGame.HC_SP, 620, clsGame.LINEPOS4, 5000, 0, clsGame.HC_D, clsGame.HC_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 0, _global.MOVE_APPE, 2.5, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS1, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS5, clsGame.HB_D, clsGame.HB_S], [clsGame.OBJECT_ENEMY, clsGame.HB, 0, _global.MOVE_DESC, 1, clsGame.HB_SP, clsGame.LINE_X_POS3, -20, 50, clsGame.LINEPOS3, clsGame.HB_D, clsGame.HB_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.PB, clsGame.PUPPY_PB, _global.MOVE_3HOR, 1, clsGame.PB_SP, 620, clsGame.LINEPOS2, 30, clsGame.BRAKE_X2, clsGame.PB_D, clsGame.PB_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 40, _global.MOVE_APPE, 1, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.5, clsGame.HA_SP, 620, clsGame.LINEPOS1, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [0], [0], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 2.5, clsGame.HA_SP, 620, clsGame.LINEPOS1, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [clsGame.OBJECT_ENEMY, clsGame.HA, 0, _global.MOVE_2HOR, 1, clsGame.HA_SP, 620, clsGame.LINEPOS3, 40, clsGame.BRAKE_X1, clsGame.HA_D, clsGame.HA_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 0, _global.MOVE_APPE, 3.2, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS1, 30, 0, clsGame.HE_D, clsGame.HE_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 1, clsGame.PA_SP, 620, clsGame.LINEPOS3, 5000, 0, clsGame.PA_D, clsGame.PA_S], [clsGame.OBJECT_ENEMY, clsGame.PA, clsGame.PUPPY_PA, _global.MOVE_HORI, 2.2, clsGame.PA_SP, 620, clsGame.LINEPOS2, 5000, 0, clsGame.PA_D, clsGame.PA_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HF, 40, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS2, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [0], [clsGame.OBJECT_ENEMY, clsGame.HF, 10, _global.MOVE_DOWN, 1, clsGame.HF_SP, clsGame.LINE_X_POS3, -20, 30, clsGame.LINEPOS4, clsGame.HF_D, clsGame.HF_S], [clsGame.OBJECT_ENEMY, clsGame.HE, 0, _global.MOVE_APPE, 2.5, clsGame.HE_SP, clsGame.LINE_X_POS4, clsGame.LINEPOS6, 30, 0, clsGame.HE_D, clsGame.HE_S], [0], [0], [0], [4, 3]];
}
}
Symbol 1437 MovieClip Frame 235
this._parent.gotoAndPlay("SCR_LEVEL01");
Symbol 1468 Button
on (release) {
this.gotoAndPlay("HELP2");
}
Symbol 1474 MovieClip Frame 1
stop();
Symbol 1474 MovieClip Frame 200
stop();
Symbol 1477 MovieClip Frame 100
stop();
Symbol 1481 MovieClip Frame 15
stop();
Symbol 1484 MovieClip Frame 15
stop();
Symbol 1487 MovieClip Frame 15
stop();
Symbol 1488 MovieClip Frame 1
stop();
Symbol 1488 MovieClip Frame 14
gotoAndPlay (2);
Symbol 1490 MovieClip Frame 9
stop();
Symbol 1492 MovieClip Frame 9
stop();
Symbol 1494 MovieClip Frame 9
stop();
Symbol 1495 MovieClip Frame 1
stop();
Symbol 1506 Button
on (release) {
switch (_global.nLevel) {
case 1 :
gotoAndStop ("CS_LEVEL02");
break;
case 2 :
gotoAndStop ("CS_LEVEL03");
break;
case 3 :
gotoAndStop ("CS_FINAL");
}
}
Symbol 1512 Button
on (release) {
_root.gotoAndStop("CS_FINAL");
}
Symbol 1513 Button
on (release) {
_root.gotoAndStop("GAMEOVER");
}
Symbol 1525 Button
on (release) {
_root.gotoAndStop("MAINMENU");
}
Symbol 1532 Button
on (release) {
this.gotoAndPlay("MAINMENU");
}
Symbol 1545 MovieClip Frame 2
stop();
Symbol 1554 Button
on (release) {
stopAllSounds();
var fakeVar = new Date().getTime();
loadMovieNum ("http://www.cartoonnetwork.com/games/action/ppg/attackofthepuppybots/tracker.swf?" + fakeVar, 10000);
switch (_global.nLevel) {
case 1 :
this.gotoAndStop("SCR_LEVEL01");
break;
case 2 :
this.gotoAndStop("SCR_LEVEL02");
break;
case 3 :
this.gotoAndStop("SCR_LEVEL03");
break;
default :
this.gotoAndStop("MAINMENU");
}
}
Symbol 1565 MovieClip Frame 80
this._parent.gotoAndPlay("GAME");
Symbol 1575 MovieClip Frame 240
this._parent.gotoAndPlay("SCR_LEVEL02");
Symbol 1579 MovieClip Frame 90
this._parent.gotoAndPlay("GAME");
Symbol 1592 MovieClip Frame 220
this._parent.gotoAndPlay("SCR_LEVEL03");
Symbol 1602 MovieClip Frame 90
this._parent.gotoAndPlay("GAME");
Symbol 1617 MovieClip Frame 320
this._parent.gotoAndPlay("WIN");
Symbol 1627 Button
on (release) {
this.gotoAndPlay("STORY");
}