Frame 1
stop();
if (!nobegina) {
reki = 0;
}
this.onEnterFrame = function () {
per = (this.getBytesLoaded() / getBytesTotal()) * 100;
per = Math.ceil(per);
loader.gotoAndStop(per);
if (per == 100) {
delete this.onEnterFrame;
play();
}
};
Frame 2
function playAgain() {
_root.gotoAndPlay("begin");
}
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "fratboyhousewars";
_level0.swHighScoreObject.gameTitle = "Fratboy House Wars";
_level0.swHighScoreObject.screenWidth = 800;
_level0.swHighScoreObject.screenHeight = 600;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = reki;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
Frame 3
stop();
Frame 4
function playAgain() {
_root.gotoAndPlay("beginn");
}
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "fratboyhousewars";
_level0.swHighScoreObject.gameTitle = "Fratboy House Wars";
_level0.swHighScoreObject.screenWidth = 800;
_level0.swHighScoreObject.screenHeight = 600;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = reki;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
Frame 101
stop();
muz1.stop();
muz1 = new Sound();
muz1.attachSound("muz1");
muz1.start(0, 99999999);
muz2 = new Sound();
muz2.attachSound("muz2");
rek = "your score: " + reki;
Frame 120
stop();
Frame 121
stop();
Frame 122
stop();
Frame 123
muz1.stop();
muz2.start(0, 999999999);
c.usklad = 30;
c.damage = 35;
c.dif = 5;
c.ekol = 3;
c.pers = 0;
c.gameTimer = 0;
c.en = 0;
c.wp = 0;
i = 0;
while (i < c.ekol) {
c["e" + i].life = (c["e" + i].old = 100);
c["e" + i].m.gotoAndStop(2);
c["e" + i].wp0 = 100;
c["e" + i].wp1 = 10;
c["e" + i].wp2 = 20;
c["e" + i].wp3 = 20;
c["e" + i].wp4 = 20;
c["e" + i].begy = c["e" + i]._y;
c["e" + i].begx = c["e" + i]._x;
c["p" + i].life = 100;
c["p" + i].wp0 = 100;
c["p" + i].wp1 = 3;
c["p" + i].wp2 = 0;
c["p" + i].wp3 = 0;
c["p" + i].wp4 = 0;
c["p" + i].begy = c["p" + i]._y;
c["p" + i].begx = c["p" + i]._x;
i++;
}
Frame 142
stop();
this.onEnterFrame = function () {
if (_root.ehl <= 0) {
gotoAndPlay ("u");
pwin = true;
delete this.onEnterFrame;
}
if (_root.yhl <= 0) {
gotoAndPlay ("u");
ewin = true;
delete this.onEnterFrame;
}
};
Frame 173
if (ewin) {
gotoAndStop ("ewin");
}
if (pwin) {
gotoAndStop ("pwin");
}
Frame 174
_level0.swHighScoreObject.player1Score = rek;
stop();
Frame 175
_level0.swHighScoreObject.player1Score = rek;
stop();
muz1.stop();
muz1 = new Sound();
muz1.attachSound("win");
muz1.start(0, 1);
Frame 176
_level0.swHighScoreObject.player1Score = rek;
ewin = (pwin = false);
stop();
muz1.stop();
muz1 = new Sound();
muz1.attachSound("muz1");
muz1.start(0, 99999999);
muz2 = new Sound();
muz2.attachSound("muz2");
Frame 177
stop();
Frame 197
stop();
Frame 198
muz1.stop();
muz2.start(0, 999999999);
c.usklad = 25;
c.damage = 35;
c.dif = 5;
c.ekol = 3;
c.pers = 0;
c.gameTimer = 0;
c.en = 0;
c.wp = 0;
i = 0;
while (i < c.ekol) {
c["e" + i].life = (c["e" + i].old = 100);
c["e" + i].m.gotoAndStop(2);
c["e" + i].wp0 = 100;
c["e" + i].wp1 = 5;
c["e" + i].wp2 = 3;
c["e" + i].wp3 = 0;
c["e" + i].wp4 = 0;
c["e" + i].begy = c["e" + i]._y;
c["e" + i].begx = c["e" + i]._x;
c["p" + i].life = 100;
c["p" + i].wp0 = 100;
c["p" + i].wp1 = 5;
c["p" + i].wp2 = 3;
c["p" + i].wp3 = 0;
c["p" + i].wp4 = 0;
c["p" + i].begy = c["p" + i]._y;
c["p" + i].begx = c["p" + i]._x;
i++;
}
Frame 217
stop();
this.onEnterFrame = function () {
if (_root.ehl <= 0) {
gotoAndPlay ("lll1u");
pwin = true;
delete this.onEnterFrame;
}
if (_root.yhl <= 0) {
gotoAndPlay ("lll1u");
ewin = true;
delete this.onEnterFrame;
}
};
Frame 248
if (ewin) {
gotoAndStop ("lll1ewin");
}
if (pwin) {
gotoAndStop ("lll1pwin");
}
_level0.swHighScoreObject.player1Score = rek;
Frame 249
_level0.swHighScoreObject.player1Score = rek;
stop();
Frame 250
_level0.swHighScoreObject.player1Score = rek;
stop();
muz1.stop();
muz1 = new Sound();
muz1.attachSound("win");
muz1.start(0, 1);
Frame 251
_level0.swHighScoreObject.player1Score = rek;
ewin = (pwin = false);
stop();
muz1.stop();
muz1 = new Sound();
muz1.attachSound("muz1");
muz1.start(0, 99999999);
muz2 = new Sound();
muz2.attachSound("muz2");
Frame 252
stop();
Frame 272
stop();
Frame 273
muz1.stop();
muz2.start(0, 999999999);
c.usklad = 20;
score = 0;
c.damage = 35;
c.dif = 5;
c.ekol = 4;
c.pers = 0;
c.gameTimer = 0;
c.en = 0;
c.wp = 0;
i = 0;
while (i < c.ekol) {
c["e" + i].life = (c["e" + i].old = 100);
c["e" + i].m.gotoAndStop(2);
c["e" + i].wp0 = 100;
c["e" + i].wp1 = 10;
c["e" + i].wp2 = 5;
c["e" + i].wp3 = 5;
c["e" + i].wp4 = 1;
c["p" + i].life = 100;
c["p" + i].wp0 = 100;
c["p" + i].wp1 = 10;
c["p" + i].wp2 = 7;
c["p" + i].wp3 = 5;
c["p" + i].wp4 = 0;
i++;
}
Frame 292
stop();
this.onEnterFrame = function () {
if (_root.ehl <= 0) {
gotoAndPlay ("lll2u");
pwin = true;
delete this.onEnterFrame;
}
if (_root.yhl <= 0) {
gotoAndPlay ("lll2u");
ewin = true;
delete this.onEnterFrame;
}
};
Frame 323
if (ewin) {
gotoAndStop ("lll2ewin");
}
if (pwin) {
gotoAndStop ("lll2pwin");
}
_level0.swHighScoreObject.player1Score = rek;
Frame 324
_level0.swHighScoreObject.player1Score = rek;
stop();
Frame 325
_level0.swHighScoreObject.player1Score = rek;
stop();
muz1.stop();
muz1 = new Sound();
muz1.attachSound("win");
muz1.start(0, 1);
Frame 326
_level0.swHighScoreObject.player1Score = rek;
stop();
ewin = (pwin = false);
muz1.stop();
muz1 = new Sound();
muz1.attachSound("muz1");
muz1.start(0, 99999999);
muz2 = new Sound();
muz2.attachSound("muz2");
Frame 327
stop();
Frame 347
stop();
Frame 348
muz1.stop();
muz2.start(0, 999999999);
c.usklad = 15;
score = 0;
c.damage = 35;
c.dif = 5;
c.ekol = 5;
c.pers = 0;
c.gameTimer = 0;
c.en = 0;
c.wp = 0;
i = 0;
while (i < c.ekol) {
c["e" + i].life = (c["e" + i].old = 100);
c["e" + i].m.gotoAndStop(2);
c["e" + i].wp0 = 100;
c["e" + i].wp1 = 10;
c["e" + i].wp2 = 7;
c["e" + i].wp3 = 5;
c["e" + i].wp4 = 3;
c["p" + i].life = 100;
c["p" + i].wp0 = 100;
c["p" + i].wp1 = 10;
c["p" + i].wp2 = 7;
c["p" + i].wp3 = 5;
c["p" + i].wp4 = 3;
i++;
}
Frame 367
stop();
this.onEnterFrame = function () {
if (_root.ehl <= 0) {
gotoAndPlay ("lll3u");
pwin = true;
delete this.onEnterFrame;
}
if (_root.yhl <= 0) {
gotoAndPlay ("lll3u");
ewin = true;
delete this.onEnterFrame;
}
};
Frame 398
if (ewin) {
gotoAndStop ("lll3ewin");
}
if (pwin) {
gotoAndStop ("lll3pwin");
}
_level0.swHighScoreObject.player1Score = rek;
Frame 399
_level0.swHighScoreObject.player1Score = rek;
stop();
Frame 400
_level0.swHighScoreObject.player1Score = rek;
stop();
muz1.stop();
muz1 = new Sound();
muz1.attachSound("win");
muz1.start(0, 1);
Frame 401
gotoAndPlay (101);
muz1.stop();
Symbol 11 MovieClip [puzzyCatMessage] Frame 89
removeMovieClip(this);
Symbol 14 MovieClip [starr] Frame 30
removeMovieClip(this);
stop();
Symbol 20 MovieClip Frame 1
stop();
Symbol 32 Button
on (release) {
_parent.gotoAndPlay("beginnn");
}
Symbol 48 Button
on (release) {
getURL ("http://www.addictinggames.com", _blank);
}
Symbol 49 MovieClip Frame 68
_parent.gotoAndPlay("beginnn");
Symbol 50 Button
on (release) {
gotoAndPlay ("beginn");
}
Symbol 54 MovieClip Frame 1
i = 0;
this.onEnterFrame = function () {
if (random(2) == 1) {
duplicateMovieClip (starr, "starr" + i, i + 10000);
eval ("starr" + i)._x = random(30) + 20;
eval ("starr" + i)._y = 100;
i++;
}
};
Symbol 70 MovieClip Frame 10
stop();
Symbol 75 Button
on (release) {
play();
reki = 0;
rek = "your score: " + reki;
}
Symbol 77 MovieClip Frame 31
stop();
Symbol 81 MovieClip Frame 1
this.onEnterFrame = function () {
_root.muz1.setVolume(b._x);
};
Instance of Symbol 80 MovieClip "b" in Symbol 81 MovieClip Frame 1
on (press) {
this.startDrag(false, 0, 0, 100, 0);
}
on (release) {
this.stopDrag();
}
on (releaseOutside) {
this.stopDrag();
_root.bi = false;
}
on (rollOver) {
_root.bi = true;
}
on (rollOut) {
_root.bi = false;
}
Symbol 87 Button
on (press) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 97 MovieClip Frame 9
stop();
Symbol 98 Button
on (release) {
gotoAndPlay ("bbb");
}
Symbol 113 MovieClip Frame 1
amplitude = 3;
prirost = 0.196349540849312;
Symbol 118 MovieClip Frame 1
amplitude = 3;
prirost = 0.196349540849312;
Symbol 125 MovieClip Frame 1
amplitude = 3;
prirost = 0.196349540849312;
Symbol 130 MovieClip Frame 1
amplitude = 3;
prirost = 0.196349540849312;
Symbol 136 MovieClip Frame 96
_parent.play();
Symbol 171 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 17
gotoAndPlay (2);
Instance of Symbol 171 MovieClip "eyes" in Symbol 181 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(40) == 1) {
this.gotoAndPlay("blink");
}
}
Symbol 201 MovieClip Frame 164
head.rot.gotoAndStop(1);
Symbol 201 MovieClip Frame 186
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 43
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 46
stop();
Symbol 220 MovieClip Frame 117
s.play();
ss.play();
Symbol 220 MovieClip Frame 233
_parent.play();
Symbol 248 MovieClip Frame 1
stop();
Instance of Symbol 248 MovieClip in Symbol 266 MovieClip Frame 16
onClipEvent (enterFrame) {
if (random(40) == 1) {
this.gotoAndPlay("blink");
}
}
Symbol 266 MovieClip Frame 34
_parent.gotoAndStop(1);
Symbol 277 MovieClip Frame 19
_parent.gotoAndStop(1);
Symbol 293 MovieClip Frame 41
stop();
_parent.visible = false;
_parent._parent._parent._x = -999999;
Symbol 309 MovieClip Frame 1
stop();
_parent.l._visible = false;
Symbol 309 MovieClip Frame 2
stop();
Symbol 309 MovieClip Frame 3
_parent.l._visible = true;
aaa = new Sound();
r = random(3);
aaa.attachSound("a" + r);
aaa.start(0, 1);
Symbol 309 MovieClip Frame 4
stop();
aaa = new Sound();
r = random(3);
aaa.attachSound("a" + r);
aaa.start(0, 1);
Symbol 352 MovieClip Frame 16
rotat = 0;
this.onEnterFrame = function () {
rotat = rotat + 18;
deg.rot = rotat;
};
Symbol 352 MovieClip Frame 36
delete this.onEnterFrame;
Symbol 352 MovieClip Frame 74
this.onEnterFrame = function () {
rotat = rotat - 6;
deg.rot = rotat;
};
Symbol 352 MovieClip Frame 99
delete this.onEnterFrame;
Symbol 352 MovieClip Frame 124
ppp = 0;
this.onEnterFrame = function () {
ppp = ppp + 1;
deg.power = ppp;
};
Symbol 352 MovieClip Frame 187
delete this.onEnterFrame;
Symbol 352 MovieClip Frame 428
_parent.play();
Symbol 363 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
i = 0;
while (i < 2) {
if (this.hitTest(_parent["w" + i])) {
i = 0;
while (i < 7) {
this["b" + i].play();
i++;
}
}
i++;
}
};
Symbol 365 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
i = 0;
while (i < 1) {
if (this.hitTest(_parent["w" + i])) {
i = 0;
while (i < 7) {
this["b" + i].play();
i++;
}
}
i++;
}
};
Symbol 366 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
i = 0;
while (i < 5) {
if (this.hitTest(_parent["w" + i])) {
i = 0;
while (i < 7) {
this["b" + i].play();
i++;
}
}
i++;
}
};
Symbol 373 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
i = 0;
while (i < 5) {
if (this.hitTest(_parent["w" + i])) {
i = 0;
while (i < 7) {
this["b" + i].play();
i++;
}
}
i++;
}
};
Symbol 375 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
i = 0;
while (i < 5) {
if (this.hitTest(_parent["w" + i])) {
i = 0;
while (i < 7) {
this["b" + i].play();
i++;
}
}
i++;
}
};
Symbol 376 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
i = 0;
while (i < 5) {
if (this.hitTest(_parent["w" + i])) {
i = 0;
while (i < 7) {
this["b" + i].play();
i++;
}
}
i++;
}
};
Symbol 378 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
i = 0;
while (i < 5) {
if (this.hitTest(_parent["w" + i])) {
i = 0;
while (i < 7) {
this["b" + i].play();
i++;
}
}
i++;
}
};
Symbol 379 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
i = 0;
while (i < 5) {
if (this.hitTest(_parent["w" + i])) {
i = 0;
while (i < 7) {
this["b" + i].play();
i++;
}
}
i++;
}
};
Symbol 428 MovieClip Frame 1
_parent._parent._parent._parent.play();
Symbol 428 MovieClip Frame 30
_parent.gotoAndStop(1);
Symbol 429 MovieClip Frame 40
_parent.gotoAndStop(1);
Symbol 446 MovieClip Frame 43
stop();
_parent.visible = false;
_parent._parent._parent._x = -999999;
Symbol 462 MovieClip Frame 1
stop();
_parent.l._visible = false;
Symbol 462 MovieClip Frame 2
stop();
Symbol 462 MovieClip Frame 3
_parent.l._visible = true;
aaa = new Sound();
r = random(3);
aaa.attachSound("a" + r);
aaa.start(0, 1);
Symbol 462 MovieClip Frame 4
stop();
aaa = new Sound();
r = random(3);
aaa.attachSound("a" + r);
aaa.start(0, 1);
Symbol 465 MovieClip Frame 1
this.onEnterFrame = function () {
life._xscale = _parent._parent.life;
if (_parent._parent.life <= 0) {
this._visible = false;
}
};
Symbol 466 MovieClip Frame 1
stop();
_parent.dir = 1;
Symbol 466 MovieClip Frame 2
stop();
_parent.dir = -1;
Symbol 491 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 1
uskor = 0;
stop();
m.l._visible = false;
Instance of Symbol 466 MovieClip "m" in Symbol 493 MovieClip Frame 1
on (rollOver) {
this.l._visible = true;
this.useHandCursor = false;
}
on (rollOut) {
this.l._visible = false;
}
Symbol 493 MovieClip Frame 2
sc = this.life;
Symbol 493 MovieClip Frame 3
stop();
Symbol 528 MovieClip Frame 56
_parent.gotoAndStop(1);
Symbol 529 MovieClip Frame 25
_parent.gotoAndStop(1);
Symbol 545 MovieClip Frame 53
stop();
this._visible = false;
_parent._parent._parent._x = -999999;
Symbol 562 MovieClip Frame 1
stop();
_parent.l._visible = false;
Symbol 562 MovieClip Frame 2
stop();
Symbol 562 MovieClip Frame 3
_parent.l._visible = true;
aaa = new Sound();
r = random(3);
aaa.attachSound("a" + r);
aaa.start(0, 1);
Symbol 562 MovieClip Frame 4
stop();
aaa = new Sound();
r = random(3);
aaa.attachSound("a" + r);
aaa.start(0, 1);
Symbol 563 MovieClip Frame 1
stop();
_parent.dir = 1;
Symbol 563 MovieClip Frame 2
stop();
_parent.dir = -1;
Symbol 564 MovieClip Frame 1
uskor = 0;
stop();
Symbol 564 MovieClip Frame 2
sc = this.life;
Symbol 564 MovieClip Frame 3
stop();
Symbol 587 MovieClip Frame 1
stop();
Instance of Symbol 587 MovieClip in Symbol 588 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(40) == 1) {
this.gotoAndPlay("blink");
}
}
Symbol 606 MovieClip Frame 35
_parent.gotoAndStop(1);
Symbol 613 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 630 MovieClip Frame 42
stop();
_parent.visible = false;
_parent._parent._parent._x = -999999;
Symbol 646 MovieClip Frame 1
stop();
_parent.l._visible = false;
Symbol 646 MovieClip Frame 2
stop();
Symbol 646 MovieClip Frame 3
_parent.l._visible = true;
aaa = new Sound();
r = random(3);
aaa.attachSound("a" + r);
aaa.start(0, 1);
Symbol 646 MovieClip Frame 4
stop();
aaa = new Sound();
r = random(3);
aaa.attachSound("a" + r);
aaa.start(0, 1);
Symbol 647 MovieClip Frame 1
stop();
_parent.dir = 1;
Symbol 647 MovieClip Frame 2
stop();
_parent.dir = -1;
Symbol 648 MovieClip Frame 1
uskor = 0;
stop();
m.l._visible = false;
Instance of Symbol 647 MovieClip "m" in Symbol 648 MovieClip Frame 1
on (rollOver) {
this.l._visible = true;
this.useHandCursor = false;
}
on (rollOut) {
this.l._visible = false;
}
Symbol 648 MovieClip Frame 2
sc = this.life;
Symbol 648 MovieClip Frame 3
stop();
Symbol 649 MovieClip Frame 1
stop();
_parent.dir = 1;
Symbol 649 MovieClip Frame 2
stop();
_parent.dir = -1;
Symbol 650 MovieClip Frame 1
uskor = 0;
stop();
m.l._visible = false;
Instance of Symbol 649 MovieClip "m" in Symbol 650 MovieClip Frame 1
on (rollOver) {
this.l._visible = true;
this.useHandCursor = false;
}
on (rollOut) {
this.l._visible = false;
}
Symbol 650 MovieClip Frame 2
sc = this.life;
Symbol 650 MovieClip Frame 3
stop();
Symbol 662 MovieClip Frame 10
stop();
Symbol 676 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
this._rotation = this._rotation + _parent.px;
};
Symbol 676 MovieClip Frame 2
i = 0;
while (i < _parent.ekol) {
if (dm.hitTest(_parent["p" + i])) {
_parent["p" + i].life = _parent["p" + i].life - _parent.damage;
if (_parent["p" + i].life <= 0) {
_parent["p" + i].m.m.gotoAndStop("death");
} else {
_parent["p" + i].m.m.gotoAndStop("ai");
}
}
if (dm.hitTest(_parent["e" + i])) {
_root.reki = _root.reki + Math.ceil(_parent.damage + (usil * 2));
_root.rek = "your score: " + _root.reki;
_parent["e" + i].life = _parent["e" + i].life - (_parent.damage + (usil * 2));
if (_parent["e" + i].life <= 0) {
_parent["e" + i].m.m.gotoAndStop("death");
} else {
_parent["e" + i].m.m.gotoAndStop("ai");
}
}
i++;
}
Symbol 676 MovieClip Frame 3
i = 0;
while (i < _parent.ekol) {
if (ddm.hitTest(_parent["p" + i])) {
_parent["p" + i].life = _parent["p" + i].life - (_parent.damage / 2);
if (_parent["p" + i].life <= 0) {
_parent["p" + i].m.m.gotoAndStop("death");
} else {
_parent["p" + i].m.m.gotoAndStop("ai");
}
}
if (ddm.hitTest(_parent["e" + i])) {
_root.reki = _root.reki + Math.ceil(_parent.damage / 2);
_root.rek = "your score: " + _root.reki;
_parent["e" + i].life = _parent["e" + i].life - (_parent.damage / 2);
if (_parent["e" + i].life <= 0) {
_parent["e" + i].m.m.gotoAndStop("death");
} else {
_parent["e" + i].m.m.gotoAndStop("ai");
}
}
i++;
}
Symbol 676 MovieClip Frame 18
_parent.play();
this.removeMovieClip();
Symbol 689 MovieClip Frame 12
stop();
Symbol 702 MovieClip Frame 1
play();
Symbol 702 MovieClip Frame 16
stop();
Symbol 703 MovieClip Frame 5
stop();
Symbol 710 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
this._rotation = this._rotation + _parent.px;
};
Symbol 710 MovieClip Frame 2
i = 0;
while (i < _parent.ekol) {
if (dm.hitTest(_parent["p" + i])) {
_parent["p" + i].life = _parent["p" + i].life - ((_parent.damage / 2) + (usil * 2));
if (_parent["p" + i].life <= 0) {
_parent["p" + i].m.m.gotoAndStop("death");
} else {
_parent["p" + i].m.m.gotoAndStop("ai");
}
}
if (dm.hitTest(_parent["e" + i])) {
_root.reki = _root.reki + Math.ceil((_parent.damage / 2) + (usil * 2));
_root.rek = "your score: " + _root.reki;
_parent["e" + i].life = _parent["e" + i].life - ((_parent.damage / 2) + (usil * 2));
if (_parent["e" + i].life <= 0) {
_parent["e" + i].m.m.gotoAndStop("death");
} else {
_parent["e" + i].m.m.gotoAndStop("ai");
}
}
i++;
}
Symbol 710 MovieClip Frame 7
_parent.play();
this.removeMovieClip();
Symbol 739 MovieClip Frame 20
stop();
if (_parent._name == "sop") {
_root.gotoAndPlay(4);
}
Symbol 742 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
this._rotation = _parent.px;
if (((this._x + _parent.px) - this._x) < 0) {
this._rotation = 180 + ((Math.atan(((this._y + _parent.py) - this._y) / ((this._x + _parent.px) - this._x)) * 180) / Math.PI);
} else {
this._rotation = (Math.atan(((this._y + _parent.py) - this._y) / ((this._x + _parent.px) - this._x)) * 180) / Math.PI;
}
};
Symbol 742 MovieClip Frame 2
i = 0;
while (i < _parent.ekol) {
if (ddm.hitTest(_parent["p" + i])) {
_parent["p" + i].life = _parent["p" + i].life - 100;
if (_parent["p" + i].life <= 0) {
_parent["p" + i].m.m.gotoAndStop("death");
} else {
_parent["p" + i].m.m.gotoAndStop("ai");
}
}
if (ddm.hitTest(_parent["e" + i])) {
_root.reki = _root.reki + 100;
_root.rek = "your score: " + _root.reki;
_parent["e" + i].life = _parent["e" + i].life - 100;
if (_parent["e" + i].life <= 0) {
_parent["e" + i].m.m.gotoAndStop("death");
} else {
_parent["e" + i].m.m.gotoAndStop("ai");
}
}
i++;
}
Symbol 742 MovieClip Frame 4
i = 0;
while (i < _parent.ekol) {
if (ddm.hitTest(_parent["p" + i])) {
_parent["p" + i].life = _parent["p" + i].life - (_parent.damage * 3);
if (_parent["p" + i].life <= 0) {
_parent["p" + i].m.m.gotoAndStop("death");
} else {
_parent["p" + i].m.m.gotoAndStop("ai");
}
}
if (ddm.hitTest(_parent["e" + i])) {
_root.reki = _root.reki + Math.ceil(_parent.damage * 3);
_root.rek = "your score: " + _root.reki;
_parent["e" + i].life = _parent["e" + i].life - (_parent.damage * 3);
if (_parent["e" + i].life <= 0) {
_parent["e" + i].m.m.gotoAndStop("death");
} else {
_parent["e" + i].m.m.gotoAndStop("ai");
}
}
i++;
}
Symbol 742 MovieClip Frame 6
i = 0;
while (i < _parent.ekol) {
if (ddm.hitTest(_parent["p" + i])) {
_parent["p" + i].life = _parent["p" + i].life - _parent.damage;
if (_parent["p" + i].life <= 0) {
_parent["p" + i].m.m.gotoAndStop("death");
} else {
_parent["p" + i].m.m.gotoAndStop("ai");
}
}
if (ddm.hitTest(_parent["e" + i])) {
_root.reki = _root.reki + Math.ceil(_parent.damage);
_root.rek = "your score: " + _root.reki;
_parent["e" + i].life = _parent["e" + i].life - _parent.damage;
if (_parent["e" + i].life <= 0) {
_parent["e" + i].m.m.gotoAndStop("death");
} else {
_parent["e" + i].m.m.gotoAndStop("ai");
}
}
i++;
}
Symbol 742 MovieClip Frame 8
i = 0;
while (i < _parent.ekol) {
if (ddm.hitTest(_parent["p" + i])) {
_parent["p" + i].life = _parent["p" + i].life - (_parent.damage / 3);
if (_parent["p" + i].life <= 0) {
_parent["p" + i].m.m.gotoAndStop("death");
} else {
_parent["p" + i].m.m.gotoAndStop("ai");
}
}
if (ddm.hitTest(_parent["e" + i])) {
_root.reki = _root.reki + Math.ceil(_parent.damage / 3);
_root.rek = "your score: " + _root.reki;
_parent["e" + i].life = _parent["e" + i].life - (_parent.damage / 3);
if (_parent["e" + i].life <= 0) {
_parent["e" + i].m.m.gotoAndStop("death");
} else {
_parent["e" + i].m.m.gotoAndStop("ai");
}
}
i++;
}
Symbol 742 MovieClip Frame 30
_parent.play();
this.removeMovieClip();
Symbol 767 MovieClip Frame 6
stop();
Symbol 770 MovieClip Frame 9
stop();
Symbol 782 MovieClip Frame 18
stop();
Symbol 786 MovieClip Frame 1
stop();
this._rotation = 0;
this._xscale = (_parent.px / Math.abs(_parent.px)) * 130;
Symbol 786 MovieClip Frame 2
if (_parent.perelet) {
gotoAndPlay ("razl");
}
time = 0;
min = 100000 /* 0x0186A0 */;
this._rotation = 0;
i = 0;
while (i < 3) {
if ((Math.abs(this._x - _parent["p" + i]._x) < Math.abs(min)) && (_parent["p" + i].life > 0)) {
min = this._x - _parent["p" + i]._x;
}
i++;
}
i = 0;
while (i < _parent.ekol) {
if ((Math.abs(this._x - _parent["e" + i]._x) < Math.abs(min)) && (_parent["e" + i].life > 0)) {
min = this._x - _parent["e" + i]._x;
}
i++;
}
wstep = ((-Math.abs(min)) / min) * 2;
this._xscale = ((-wstep) / Math.abs(wstep)) * 130;
this._x = this._x - (otskok * 15);
_parent.rtx = _parent.rtx - (otskok * 15);
this.onEnterFrame = function () {
_parent.but._x = this._x;
_parent.but._y = this._y;
this._xscale = ((-wstep) / Math.abs(wstep)) * 130;
i = 0;
while (i < _parent.ekol) {
if (dm.hitTest(_parent["p" + i])) {
_parent["p" + i].life = _parent["p" + i].life - (_parent.damage / 50);
if (_parent["p" + i].life <= 0) {
_parent["p" + i].m.m.gotoAndStop("death");
} else {
_parent["p" + i].m.m.gotoAndStop("ai");
m.gotoAndStop("uk");
wstep = wstep / 5;
}
}
if (dm.hitTest(_parent["e" + i])) {
_root.reki = _root.reki + Math.ceil(_parent.damage / 50);
_root.rek = "your score: " + _root.reki;
_parent["e" + i].life = _parent["e" + i].life - (_parent.damage / 50);
if (_parent["e" + i].life <= 0) {
_parent["e" + i].m.m.gotoAndStop("death");
} else {
_parent["e" + i].m.m.gotoAndStop("ai");
m.gotoAndStop("uk");
wstep = wstep / 5;
}
}
var _local4 = {x:test._x, y:test._y};
this.localToGlobal(_local4);
tempx = wstep / Math.abs(wstep);
if (!_parent.back.hitTest(_local4.x + (tempx * 8), _local4.y, true)) {
this._x = this._x + (wstep / 2);
}
i++;
}
};
Symbol 786 MovieClip Frame 105
_parent.wstep = 0;
Symbol 786 MovieClip Frame 107
_parent.play();
this.removeMovieClip();
Symbol 801 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
b.b._rotation = b.b._rotation + (wstep * 3);
};
Symbol 801 MovieClip Frame 2
if (_parent.perelet) {
gotoAndPlay ("razl");
}
dly = (dry = 0);
var a = {x:test._x, y:test._y};
this.localToGlobal(a);
this._x = this._x - (otskok * 14);
_parent.rtx = _parent.rtx - (otskok * 14);
_parent.but._x = _parent.but._x - (otskok * 14);
this.onEnterFrame = function () {
_parent.but._x = this._x;
_parent.but._y = this._y;
i = 0;
while (i < _parent.ekol) {
if (dm.hitTest(_parent["p" + i])) {
_parent["p" + i].life = _parent["p" + i].life - (_parent.damage / 40);
if (_parent["p" + i].life <= 0) {
_parent["p" + i].m.m.gotoAndStop("death");
} else {
_parent["p" + i].m.m.gotoAndStop("ai");
}
}
if (dm.hitTest(_parent["e" + i])) {
_root.reki = _root.reki + Math.ceil(_parent.damage / 40);
_root.rek = "your score: " + _root.reki;
_parent["e" + i].life = _parent["e" + i].life - (_parent.damage / 40);
if (_parent["e" + i].life <= 0) {
_parent["e" + i].m.m.gotoAndStop("death");
} else {
_parent["e" + i].m.m.gotoAndStop("ai");
}
}
i++;
}
var _local4 = {x:dm._x, y:dm._y};
this.localToGlobal(_local4);
while (!_parent.back.hitTest(_local4.x - 10, _local4.y + dly, true)) {
dly = dly + 0.1;
}
while (!_parent.back.hitTest(_local4.x + 10, _local4.y + dry, true)) {
dry = dry + 0.1;
}
if (dry > dly) {
wstep = 4;
} else if (dry < dly) {
wstep = -4;
}
if (!_parent.back.hitTest(_local4.x + ((Math.abs(wstep) / wstep) * 14), _local4.y + 5, true)) {
this._x = this._x + (wstep / 2);
b.b._rotation = b.b._rotation + (wstep * 5);
}
};
Symbol 801 MovieClip Frame 114
delete this.onEnterFrame;
Symbol 801 MovieClip Frame 115
_parent.wstep = 0;
delete this.onEnterFrame;
Symbol 801 MovieClip Frame 142
_parent.play();
this.removeMovieClip();
Symbol 804 Button
on (rollOver) {
_parent.weapon = true;
}
on (rollOut) {
_parent.weapon = false;
}
on (release) {
if (!_parent.nowib) {
_parent.wch.gotoAndPlay(2);
}
}
Symbol 810 MovieClip Frame 24
gotoAndPlay (1);
Symbol 811 MovieClip Frame 1
stop();
Symbol 811 MovieClip Frame 26
stop();
Symbol 812 MovieClip Frame 1
stop();
Symbol 812 MovieClip Frame 27
stop();
Symbol 813 MovieClip Frame 20
gotoAndPlay (1);
Symbol 814 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 26
stop();
Symbol 815 MovieClip Frame 15
gotoAndPlay (1);
Symbol 816 MovieClip Frame 1
stop();
Symbol 816 MovieClip Frame 31
stop();
Symbol 818 MovieClip Frame 1
stop();
Symbol 818 MovieClip Frame 24
stop();
Symbol 825 Button
on (rollOver) {
w0.gotoAndStop(2);
bu._visible = true;
}
on (rollOut) {
w0.gotoAndStop(1);
}
on (release, releaseOutside) {
_parent.wp = 0;
play();
_parent.nowib = true;
}
Symbol 826 Button
on (rollOver) {
w1.gotoAndStop(2);
bu._visible = true;
}
on (rollOut) {
w1.gotoAndStop(1);
}
on (release, releaseOutside) {
_parent.wp = 1;
play();
_parent.nowib = true;
}
Symbol 827 Button
on (rollOver) {
w2.gotoAndStop(2);
bu._visible = true;
}
on (rollOut) {
w2.gotoAndStop(1);
}
on (release, releaseOutside) {
_parent.wp = 2;
play();
_parent.nowib = true;
}
Symbol 828 Button
on (rollOver) {
w3.gotoAndStop(2);
bu._visible = true;
}
on (rollOut) {
w3.gotoAndStop(1);
}
on (release, releaseOutside) {
_parent.wp = 3;
play();
_parent.nowib = true;
}
Symbol 829 Button
on (rollOver) {
w4.gotoAndStop(2);
bu._visible = true;
}
on (rollOut) {
w4.gotoAndStop(1);
}
on (release, releaseOutside) {
_parent.wp = 4;
play();
_parent.nowib = true;
}
Symbol 831 MovieClip Frame 1
stop();
_parent.weapon = false;
_parent.nowib = false;
Symbol 831 MovieClip Frame 2
_parent.weapon = true;
Symbol 831 MovieClip Frame 20
stop();
bu._visible = false;
wp0 = _parent["p" + _parent.pers].wp0;
wp1 = _parent["p" + _parent.pers].wp1;
wp2 = _parent["p" + _parent.pers].wp2;
wp3 = _parent["p" + _parent.pers].wp3;
wp4 = _parent["p" + _parent.pers].wp4;
if (_parent["p" + _parent.pers].wp0 == 0) {
b0._visible = false;
w0._alpha = 30;
}
if (_parent["p" + _parent.pers].wp1 == 0) {
b1._visible = false;
w1._alpha = 30;
}
if (_parent["p" + _parent.pers].wp2 == 0) {
b2._visible = false;
w2._alpha = 30;
}
if (_parent["p" + _parent.pers].wp3 == 0) {
b3._visible = false;
w3._alpha = 30;
}
if (_parent["p" + _parent.pers].wp4 == 0) {
b4._visible = false;
w4._alpha = 30;
}
Symbol 831 MovieClip Frame 21
_parent.weapon = false;
i = 0;
while (i < 6) {
if (this["w" + i]._name != ("w" + _parent.wp)) {
this["w" + i]._visible = false;
} else {
this["w" + i].gotoAndPlay("v");
}
i++;
}
Symbol 832 Button
on (press) {
wp = 5;
cat.play();
bcat.visible = false;
bcat._y = 9999999 /* 0x98967F */;
nowib = true;
_root.attachMovie("puzzyCatMessage", "puzzyCatMessage", _root.getNextHighestDepth(), {_x:120, _y:280});
}
Symbol 835 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 16
stop();
Symbol 841 MovieClip Frame 13
stop();
Symbol 843 MovieClip Frame 10
gotoAndPlay (6);
Symbol 844 MovieClip Frame 18
stop();
Symbol 846 MovieClip Frame 1
stop();
this._rotation = 0;
this._xscale = (_parent.px / Math.abs(_parent.px)) * 130;
Symbol 846 MovieClip Frame 2
if (_parent.perelet) {
gotoAndPlay ("razl");
}
time = 0;
min = 100000 /* 0x0186A0 */;
this._rotation = 0;
i = 0;
while (i < 3) {
if ((Math.abs(this._x - _parent["p" + i]._x) < Math.abs(min)) && (_parent["p" + i].life > 0)) {
min = this._x - _parent["p" + i]._x;
}
i++;
}
i = 0;
while (i < _parent.ekol) {
if ((Math.abs(this._x - _parent["e" + i]._x) < Math.abs(min)) && (_parent["e" + i].life > 0)) {
min = this._x - _parent["e" + i]._x;
}
i++;
}
wstep = ((-Math.abs(min)) / min) * 2;
this._xscale = ((-wstep) / Math.abs(wstep)) * 130;
this._x = this._x - (otskok * 15);
_parent.rtx = _parent.rtx - (otskok * 15);
this.onEnterFrame = function () {
_parent.but._x = this._x;
_parent.but._y = this._y;
this._xscale = ((-wstep) / Math.abs(wstep)) * 130;
i = 0;
while (i < _parent.ekol) {
if (dm.hitTest(_parent["p" + i])) {
_parent["p" + i].life = _parent["p" + i].life - (_parent.damage / 50);
if (_parent["p" + i].life <= 0) {
_parent["p" + i].m.m.gotoAndStop("death");
} else {
_parent["p" + i].m.m.gotoAndStop("ai");
m.gotoAndStop("uk");
wstep = wstep / 5;
}
}
if (dm.hitTest(_parent["e" + i])) {
_root.reki = _root.reki + Math.ceil(_parent.damage / 50);
_root.rek = "your score: " + _root.reki;
_parent["e" + i].life = _parent["e" + i].life - (_parent.damage / 50);
if (_parent["e" + i].life <= 0) {
_parent["e" + i].m.m.gotoAndStop("death");
} else {
_parent["e" + i].m.m.gotoAndStop("ai");
m.gotoAndStop("uk");
wstep = wstep / 5;
}
}
var _local4 = {x:test._x, y:test._y};
this.localToGlobal(_local4);
tempx = wstep / Math.abs(wstep);
if (!_parent.back.hitTest(_local4.x + (tempx * 8), _local4.y, true)) {
this._x = this._x + (wstep / 2);
}
i++;
}
};
Symbol 846 MovieClip Frame 105
_parent.wstep = 0;
Symbol 846 MovieClip Frame 107
_parent.play();
this.removeMovieClip();
Symbol 850 MovieClip Frame 1
function minuswp() {
if (wp == 0) {
this["p" + pers].wp0--;
}
if (wp == 1) {
this["p" + pers].wp1--;
}
if (wp == 2) {
this["p" + pers].wp2--;
}
if (wp == 3) {
this["p" + pers].wp3--;
}
if (wp == 4) {
this["p" + pers].wp4--;
}
}
function chk(nn, xx, yy) {
var _local2 = {x:xx, y:yy};
this.localToGlobal(_local2);
if (this[nn].hitTest(_local2.x, _local2.y, true)) {
return(true);
}
return(false);
}
function go(nn, number, step, dt) {
porog = true;
if (!chk("back", this[nn + number]._x + (step * dt), this[nn + number]._y + 17)) {
i = 0;
while (i < 20) {
if (this[nn + number].hitTest(this["porog" + i])) {
porog = false;
}
i++;
}
if (porog) {
this[nn + number]._x = this[nn + number]._x + step;
} else {
this[nn + number]._x = this[nn + number]._x - (step * 7);
if (rand == 1) {
rand = 0;
} else {
rand = 1;
}
}
} else {
this[nn + number]._x = this[nn + number]._x - step;
if (rand == 1) {
rand = 0;
} else {
rand = 1;
}
}
}
function gravi(nn, dt, dtx) {
dtx = 0;
if (!chk("back", this[nn]._x, this[nn]._y + dt, true)) {
this[nn]._y = this[nn]._y + this[nn].uskor;
this[nn].uskor = this[nn].uskor + 1;
} else {
this[nn].uskor = 0;
while (chk("back", this[nn]._x - dtx, (this[nn]._y + dt) - 1, true)) {
this[nn]._y--;
}
}
}
function gravim() {
i = 0;
while (i < ekol) {
this["e" + i]._y = this["e" + i].begy;
this["p" + i]._y = this["p" + i].begy;
i++;
}
}
function graviAll() {
i = 0;
while (i < ekol) {
gravi("e" + i, 40, this["e" + i].dir);
gravi("p" + i, 40, this["p" + i].dir);
i++;
}
}
function ptestt() {
i = 0;
while (i < 3) {
var _local2 = {x:this["p" + i]._x, y:this["p" + i]._y + 40};
this.localToGlobal(_local2);
while (back.hitTest(_local2.x, _local2.y, true)) {
_local2 = {x:this["p" + i]._x, y:this["p" + i]._y + 40};
this.localToGlobal(_local2);
this["p" + i]._y = this["p" + i]._y - 1;
}
i++;
}
}
uskor = 0;
function fire0() {
px = power * Math.cos((g._rotation * Math.PI) / 180);
py = power * Math.sin((g._rotation * Math.PI) / 180);
}
function dmg() {
play();
px = 0;
py = 0;
ch = true;
toland();
timer = 0;
this["w" + wp].gotoAndPlay("dm");
this["w" + wp].usil = power / 10;
if (chk("backe", but._x, but._y)) {
_root.ehl = _root.ehl - 3;
}
if (chk("backy", but._x, but._y)) {
_root.yhl = _root.yhl - 3;
}
}
function fire() {
but._x = but._x + px;
but._y = but._y + py;
this["w" + wp]._x = but._x;
this["w" + wp]._y = but._y;
if (py < 30) {
py = py + 1;
}
if (px <= py) {
shagok = py;
} else {
shagok = px;
}
shagok = Math.abs(shagok);
if (Math.sqrt(((but._x - rtx) * (but._x - rtx)) + ((but._y - rty) * (but._y - rty))) <= (shagok * 1.3)) {
but._x = rtx;
but._y = rty;
dmg();
} else if (chk("back", but._x, but._y)) {
but._x = rtx;
but._y = rty;
dmg();
}
}
function ugol(xx, yy) {
if ((xx - g._x) < 0) {
g._rotation = 180 + ((Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI);
} else {
g._rotation = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
gr = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
if ((this["p" + pers].dir == 1) && (Math.abs(g._rotation) > 89)) {
g._rotation = -89;
}
if ((this["p" + pers].dir == -1) && (Math.abs(g._rotation) < 90)) {
g._rotation = -91;
}
}
function peremot() {
var _local3 = {x:but._x, y:but._y};
this.localToGlobal(_local3);
tx = (this._x + 400) - _local3.x;
ty = (this._y + 300) - _local3.y;
deltax = (tx - this._x) / 5;
deltay = (ty - this._y) / 5;
if ((Math.abs(deltax) > 0.1) || (Math.abs(deltay) > 0.1)) {
_parent.c._x = _parent.c._x + deltax;
_parent.c._y = _parent.c._y + deltay;
_parent.ob1._x = _parent.ob1._x + (deltax / 3);
_parent.ob1._y = _parent.ob1._y + (deltay / 3);
_parent.ob2._x = _parent.ob2._x + (deltax / 7);
_parent.ob2._y = _parent.ob2._y + (deltay / 7);
_parent.bg._x = _parent.bg._x + (deltax / 3);
_parent.bg._y = _parent.bg._y + (deltay / 1.5);
_parent.fr._x = _parent.fr._x + (deltax * 1.2);
_parent.fr._y = _parent.fr._y + (deltay * 1.2);
}
}
function position(xx, yy, px, py) {
lev = 1;
if (!chk("back", xx, yy)) {
i = 0;
while (i < 4) {
if (chk("p" + i, xx, yy)) {
gotovo = true;
rtx = xx;
rty = yy;
}
i++;
}
i = 0;
while (i < ekol) {
if (chk("e" + i, xx, ty) || (chk("p" + i, xx, yy))) {
gotovo = true;
rtx = xx;
rty = yy;
}
i++;
}
if (chk("back", xx, yy)) {
gotovo = true;
rtx = xx;
rty = yy;
}
while (!gotovo) {
if (Math.abs(rtx - but._x) > 3500) {
gotovo = true;
perelet = true;
}
znakx = px / Math.abs(px);
znaky = py / Math.abs(py);
rtx = xx;
rty = yy;
xxx = rtx + px;
yyy = rty + py;
if (Math.abs(px) >= Math.abs(py)) {
while (((Math.abs(xxx - rtx) > 1) || (Math.abs(yyy - rty) > 1)) && (!gotovo)) {
rtx = rtx + znakx;
rty = (((rtx - xx) * (yyy - yy)) / (xxx - xx)) + yy;
tst._x = rtx;
tst._y = rty;
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
i = 0;
while (i < ekol) {
if (this["e" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
if (chk("back", tst._x, tst._y)) {
gotovo = true;
}
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(rtx, rty, true)) {
gotovo = true;
}
i++;
}
}
} else {
while (((Math.abs(xxx - rtx) > 1) || (Math.abs(yyy - rty) > 1)) && (!gotovo)) {
rty = rty + znaky;
rtx = (((rty - yy) * (xxx - xx)) / (yyy - yy)) + xx;
tst._x = rtx;
tst._y = rty;
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
i = 0;
while (i < ekol) {
if (this["e" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
if (chk("back", tst._x, tst._y)) {
gotovo = true;
}
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(rtx, rty, true)) {
gotovo = true;
}
i++;
}
}
}
xx = xx + px;
yy = yy + py;
if (py < 30) {
py = py + 1;
}
}
} else {
rtx = but._x;
rty = but._y;
}
tst._y = -100000;
}
function ccchHT() {
timer++;
if (timer > 7) {
var _local2 = {x:but._x, y:but._y};
this.localToGlobal(_local2);
if (but._x < -1700) {
px = 0;
py = 0;
ch = true;
play();
peremot();
}
if (back.hitTest(_local2.x, _local2.y, true) && (!ch)) {
px = 0;
py = 0;
play();
ch = true;
toland();
timer = 0;
this["w" + wp].gotoAndPlay("dm");
}
i = 0;
while (i < 3) {
play();
ch = true;
toland();
if (this["p" + i].life <= 0) {
this["p" + i].gotoAndStop("death");
} else if (!chk(this["p" + i]._x + ((px / Math.abs(px)) * 20), this["p" + i]._y)) {
this["p" + i]._x = this["p" + i]._x + ((px / Math.abs(px)) * 20);
this["p" + i].m.m.gotoAndStop("ai");
}
px = 0;
py = 0;
timer = 0;
i++;
}
i = 0;
while (i < 3) {
i++;
}
}
}
play();
wp = (timer = 0);
rtx = (rty = 0);
perelet = false;
if (pers < 2) {
pers++;
} else {
pers = 0;
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay(2);
_root.ewin = true;
stop();
} else {
while (this["p" + pers].life <= 0) {
if (pers < 2) {
pers++;
} else {
pers = 0;
}
}
}
Symbol 850 MovieClip Frame 2
wch.gotoAndStop(1);
stop();
_root.bi = true;
timer = 0;
ch = false;
power = 0;
this["p" + pers].a.gotoAndPlay(2);
this.onEnterFrame = function () {
if (((_root._xmouse > 650) || (_root._ymouse > 500)) || (_root._ymouse < 100)) {
if (_root._ymouse > 500) {
YYY = (_root._ymouse - 500) / 10;
if (_root._ymouse < 540) {
YYY = 0;
}
}
if (_root._ymouse < 100) {
YYY = (_root._ymouse - 100) / 10;
if (_root._ymouse > 60) {
YYY = 0;
}
}
but._y = but._y + YYY;
if (but._y > 450) {
but._y = 450;
}
if (but._y < -250) {
but._y = -250;
}
XXX = (_root._xmouse - 650) / 10;
if (_root._xmouse < 690) {
XXX = 0;
}
but._x = but._x + XXX;
if (but._x > 2500) {
but._x = 2500;
}
_root.peremot._visible = true;
g._alpha = 0;
gg._alpha = 0;
deg._visible = false;
wch._visible = false;
_root.bi = true;
timer = (power = 0);
ppp = false;
} else {
_root.peremot._visible = false;
g._alpha = 100;
gg._alpha = 100;
deg._visible = true;
wch._visible = true;
but._x = this["p" + pers]._x + (this["p" + pers].dir * 54);
but._y = this["p" + pers]._y - 11;
}
wch._x = but._x - 90;
wch._y = but._y - 70;
gg._x = (g._x = but._x);
gg._y = (g._y = but._y);
deg._x = but._x;
deg._y = but._y + 1;
peremot();
if (timer > 40) {
graviAll();
_root.bi = false;
} else {
timer++;
}
g.p._xscale = power * 27;
if (Math.abs(g._rotation) > 90) {
gg._rotation = 180;
} else {
gg._rotation = 0;
}
ugol(_xmouse, _ymouse);
rot = Math.floor(Math.abs(g._rotation));
if (rot > 90) {
rot = 180 - rot;
}
deg.rot = rot;
deg.power = Math.floor(power);
if (ppp && (power < 100)) {
power = power + 1;
pow = power;
}
if (goLeft && (!_root.bi)) {
go("p", pers, -2, 9);
eval ("p" + pers).m.gotoAndStop(2);
eval ("p" + pers).m.m.gotoAndStop("idu");
}
if (goRight && (!_root.bi)) {
go("p", pers, 2, 9);
eval ("p" + pers).m.gotoAndStop(1);
eval ("p" + pers).m.m.gotoAndStop("idu");
}
};
wch._alpha = 100;
this.onMouseDown = function () {
if ((!weapon) && (!_root.bi)) {
ppp = true;
}
};
this.onMouseUp = function () {
if (((!weapon) && (!_root.bi)) && (ppp)) {
minuswp();
wch._alpha = 0;
delete this.onEnterFrame;
eval ("p" + pers).m.m.gotoAndStop(2);
ppp = false;
if (power < 7) {
power = 7;
}
if ((this["p" + pers].dir == 1) && (Math.abs(g._rotation) > 90)) {
g._rotation = -90;
}
if ((this["p" + pers].dir == -1) && (Math.abs(g._rotation) < 90)) {
g._rotation = -90;
}
px = power * Math.cos((g._rotation * Math.PI) / 180);
if (Math.abs(px) < 0.1) {
if (px < 0) {
px = -0.1;
}
if (px > 0) {
px = 0.1;
}
}
py = power * Math.sin((g._rotation * Math.PI) / 180);
position(but._x, but._y, px, py);
gotovo = false;
grav = 0;
gotoAndPlay ("pif");
}
};
function kd() {
if ((Key.getCode() == 37) || (Key.getCode() == 65)) {
goLeft = true;
goRight = false;
}
if ((Key.getCode() == 39) || (Key.getCode() == 68)) {
goRight = true;
goLeft = false;
}
}
function ku() {
eval ("p" + pers).pos = eval ("p" + pers)._x;
if (Math.abs(eval ("p" + pers).pos - eval ("p" + pers).old) > 40) {
minusu = 0;
} else {
minusu = 9;
}
goRight = false;
goLeft = false;
eval ("p" + pers).m.m.gotoAndStop(1);
if ((Key.getCode() == 87) && (power == 0)) {
if (!nowib) {
wch.gotoAndPlay(2);
}
}
}
nowib = false;
var ll = new Object();
ll.onKeyDown = kd;
ll.onKeyUp = ku;
Key.addListener(ll);
minusu = 9;
this["p" + pers].old = this["p" + pers].pos;
Symbol 850 MovieClip Frame 3
wch.gotoAndStop("u");
Key.removeListener(ll);
this.onMouseDown = function () {
};
this.onMouseUp = function () {
};
Symbol 850 MovieClip Frame 22
stop();
duplicateMovieClip ("ww" + wp, "w" + wp, 207);
this["w" + wp].wstep = (4 * px) / Math.abs(px);
this["w" + wp].otskok = px / Math.abs(px);
tx = this._x;
ty = this._y;
left = 0;
up = 0;
this.onEnterFrame = function () {
fire();
if ((but._x > 3200) || (but._x < -500)) {
this["w" + wp].removeMovieClip();
gotoAndPlay ("enemy");
}
peremot();
};
Symbol 850 MovieClip Frame 23
stop();
this["w" + wp]._y = (but._y = rty);
this["w" + wp]._x = (but._x = rtx);
var a = {x:rtx, y:rty};
if (enemyh.hitTest(a.x, a.y, true)) {
_root.ehl = _root.ehl - 5;
}
but.uskor = 0;
w2.uskor = 0;
w3.uskor = 0;
w5.uskor = 0;
this.onEnterFrame = function () {
peremot();
gravi("w" + wp, 10, this["w" + wp].wstep / Math.abs(this["w" + wp].wstep));
graviAll();
};
Symbol 850 MovieClip Frame 64
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay("u");
stop();
_root.pwin = true;
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay("u");
_root.ewin = true;
stop();
}
Symbol 850 MovieClip Frame 66
function ugol(xx, yy) {
if ((xx - g._x) < 0) {
g._rotation = 180 + ((Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI);
} else {
g._rotation = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
gr = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
i = 0;
while (i < ekol) {
eval ("e" + i).m.gotoAndStop(2);
i++;
}
delete this.onEnterFrame;
timer = 0;
rtx = (rty = 0);
perelet = false;
if (en < ekol) {
en++;
} else {
en = 0;
}
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay(2);
_root.pwin = true;
stop();
} else {
while (this["e" + en].life <= 0) {
if (en < (ekol - 1)) {
en++;
} else {
en = 0;
}
}
}
Symbol 850 MovieClip Frame 67
function ef() {
power = 10;
ind = random(2);
while (this["p" + ind].life <= 0) {
ind = random(3);
}
vx = but._x;
vy = but._y;
bx = this["p" + ind]._x;
by = this["p" + ind]._y - 50;
while (!test) {
ugol(bx, by);
vx = but._x;
vy = but._y;
fire0();
while (true) {
vx = vx + px;
vy = vy + py;
var _local2 = {x:vx, y:vy};
this.localToGlobal(_local2);
if (back.hitTest(_local2.x, _local2.y, true)) {
by = by - 5;
break;
}
if (Math.abs(g._x - vx) > 7000) {
test = true;
break;
}
}
}
by = by - 10;
power = 11;
if (this["e" + en]._y > 250) {
g._rotation = g._rotation + (random(70) + (random(2) * 20));
} else {
g._rotation = g._rotation + (random(40) + (random(2) * 10));
}
if (g._rotation > -115) {
g._rotation = -115;
}
while (!ttest) {
if (power > 90) {
break;
}
power = power + 0.2;
vx = g._x;
vy = g._y;
fire0();
while (true) {
vx = vx + px;
vy = vy + py;
if (py < 30) {
py = py + 1;
}
if (vy > 1000) {
break;
}
var _local2 = {x:vx, y:vy};
this.localToGlobal(_local2);
if (this["p" + ind].hitTest(_local2.x, _local2.y, true)) {
ttest = true;
break;
}
}
}
test = (ttest = false);
usklznk = random(2);
if (usklznk == 0) {
usklznk = -1;
}
power = power - (random(usklad - minusu) * usklznk);
}
function efire() {
eval ("e" + en).m.m.gotoAndStop(2);
ppp = false;
px = power * Math.cos((g._rotation * Math.PI) / 180);
py = power * Math.sin((g._rotation * Math.PI) / 180);
position(but._x, but._y, px, py);
gotovo = false;
grav = 0;
gotoAndPlay ("paf");
}
function bros() {
ef();
efire();
gotoAndPlay ("paf");
}
stop();
usklad--;
if (usklad < 0) {
usklad = 0;
}
rand = random(2);
tm = 0;
ch = false;
power = 0;
this["e" + en].a.gotoAndPlay(2);
this.onEnterFrame = function () {
but._x = this["e" + en]._x + (this["e" + en].dir * 54);
but._y = this["e" + en]._y - 11;
wch._x = but._x - 90;
wch._y = but._y - 70;
gg._x = (g._x = but._x);
gg._y = (g._y = but._y);
deg._x = but._x;
deg._y = but._y + 1;
peremot();
if (tm > 15) {
graviAll();
}
g.p._xscale = power * 27;
if (Math.abs(g._rotation) > 90) {
gg._rotation = 180;
} else {
gg._rotation = 0;
}
ugol(_xmouse, _ymouse);
rot = Math.floor(Math.abs(g._rotation));
if (rot > 90) {
rot = 180 - rot;
}
deg.rot = rot;
deg.power = Math.floor(power);
if (ppp && (power < 100)) {
power = power + 0.2;
pow = power;
}
if (tm > 55) {
bros();
tm = -10;
}
if (tm > 30) {
this["e" + en].m.gotoAndStop(2);
this["e" + en].m.m.gotoAndStop(1);
tm++;
} else if (tm >= 0) {
tm++;
if ((rand == 0) && (tm > 0)) {
el();
}
if ((rand == 1) && (tm > 0)) {
er();
}
}
};
function el() {
go("e", en, -2, 15);
eval ("e" + en).m.gotoAndStop(2);
eval ("e" + en).m.m.gotoAndStop("idu");
}
function er() {
go("e", en, 2, 15);
eval ("e" + en).m.gotoAndStop(1);
eval ("e" + en).m.m.gotoAndStop("idu");
}
Symbol 850 MovieClip Frame 68
i = 0;
while (i < ekol) {
this["e" + i].begy = this["e" + i]._y;
i++;
}
Symbol 850 MovieClip Frame 86
wp = random(2);
Symbol 850 MovieClip Frame 87
stop();
wstep = (4 * px) / Math.abs(px);
duplicateMovieClip ("ww" + wp, "w" + wp, 207);
this["w" + wp].wstep = (4 * px) / Math.abs(px);
this["w" + wp].otskok = px / Math.abs(px);
tx = this._x;
ty = this._y;
left = 0;
up = 0;
this.onEnterFrame = function () {
if ((but._x > 3200) || (but._x < -500)) {
this["w" + wp].removeMovieClip();
gotoAndPlay ("we");
}
fire();
peremot();
};
Symbol 850 MovieClip Frame 88
stop();
this["w" + wp]._y = (but._y = rty);
this["w" + wp]._x = (but._x = rtx);
but.uskor = 0;
w2.uskor = 0;
w3.uskor = 0;
this.onEnterFrame = function () {
peremot();
gravi("w" + wp, 10, (this["w" + wp].wstep / Math.abs(this["w" + wp].wstep)) * 14);
graviAll();
};
Symbol 850 MovieClip Frame 124
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay("u");
_root.pwin = true;
stop();
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay("u");
_root.ewin = true;
stop();
}
Symbol 859 Button
on (press) {
gotoAndStop (101);
reki = 0;
}
Symbol 862 MovieClip Frame 1
_root.ehl = 100;
this.onEnterFrame = function () {
life._xscale = _root.ehl;
};
Symbol 863 MovieClip Frame 1
_root.yhl = 100;
this.onEnterFrame = function () {
life._xscale = _root.yhl;
};
Symbol 877 MovieClip Frame 9
stop();
Symbol 879 MovieClip Frame 7
stop();
Symbol 880 Button
on (release) {
_root.swHighScoreObject.showTab = "view";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 887 MovieClip Frame 10
stop();
Symbol 888 Button
on (release) {
trace(_level0.swHighScoreObject.player1Score);
_root.swHighScoreObject.showTab = "submit";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 893 MovieClip Frame 9
stop();
Symbol 894 Button
on (release) {
play();
}
Symbol 895 MovieClip Frame 1
stop();
Symbol 895 MovieClip Frame 21
_root.nobegina = true;
_root.gotoAndStop(1);
Symbol 903 MovieClip Frame 125
_root.play();
Symbol 942 MovieClip Frame 72
stop();
Symbol 982 MovieClip Frame 33
gotoAndPlay (1);
Symbol 1022 MovieClip Frame 46
stop();
Symbol 1023 MovieClip Frame 93
stop();
Symbol 1031 MovieClip Frame 15
gotoAndPlay (7);
Symbol 1032 MovieClip Frame 1
stop();
Symbol 1034 MovieClip Frame 60
stop();
Symbol 1036 MovieClip Frame 265
_parent.play();
Symbol 1041 MovieClip Frame 9
stop();
Symbol 1042 Button
on (release) {
play();
}
Symbol 1055 MovieClip Frame 1
function minuswp() {
if (wp == 0) {
this["p" + pers].wp0--;
}
if (wp == 1) {
this["p" + pers].wp1--;
}
if (wp == 2) {
this["p" + pers].wp2--;
}
if (wp == 3) {
this["p" + pers].wp3--;
}
if (wp == 4) {
this["p" + pers].wp4--;
}
}
function chk(nn, xx, yy) {
var _local2 = {x:xx, y:yy};
this.localToGlobal(_local2);
if (this[nn].hitTest(_local2.x, _local2.y, true)) {
return(true);
}
return(false);
}
function go(nn, number, step, dt) {
porog = true;
if (!chk("back", this[nn + number]._x + (step * dt), this[nn + number]._y + 17)) {
i = 0;
while (i < 20) {
if (this[nn + number].hitTest(this["porog" + i])) {
porog = false;
}
i++;
}
if (porog) {
this[nn + number]._x = this[nn + number]._x + step;
} else {
this[nn + number]._x = this[nn + number]._x - (step * 7);
if (rand == 1) {
rand = 0;
} else {
rand = 1;
}
}
} else {
this[nn + number]._x = this[nn + number]._x - step;
if (rand == 1) {
rand = 0;
} else {
rand = 1;
}
}
}
function gravi(nn, dt, dtx) {
dtx = 0;
if (!chk("back", this[nn]._x, this[nn]._y + dt, true)) {
this[nn]._y = this[nn]._y + this[nn].uskor;
this[nn].uskor = this[nn].uskor + 1;
} else {
this[nn].uskor = 0;
while (chk("back", this[nn]._x - dtx, (this[nn]._y + dt) - 1, true)) {
this[nn]._y--;
}
}
}
function gravim() {
i = 0;
while (i < ekol) {
this["e" + i]._y = this["e" + i].begy;
this["p" + i]._y = this["p" + i].begy;
i++;
}
}
function graviAll() {
i = 0;
while (i < ekol) {
gravi("e" + i, 40, this["e" + i].dir);
gravi("p" + i, 40, this["p" + i].dir);
i++;
}
}
function ptestt() {
i = 0;
while (i < 3) {
var _local2 = {x:this["p" + i]._x, y:this["p" + i]._y + 40};
this.localToGlobal(_local2);
while (back.hitTest(_local2.x, _local2.y, true)) {
_local2 = {x:this["p" + i]._x, y:this["p" + i]._y + 40};
this.localToGlobal(_local2);
this["p" + i]._y = this["p" + i]._y - 1;
}
i++;
}
}
uskor = 0;
function fire0() {
px = power * Math.cos((g._rotation * Math.PI) / 180);
py = power * Math.sin((g._rotation * Math.PI) / 180);
}
function dmg() {
play();
px = 0;
py = 0;
ch = true;
toland();
timer = 0;
this["w" + wp].gotoAndPlay("dm");
this["w" + wp].usil = power / 10;
if (chk("backe", but._x, but._y)) {
_root.ehl = _root.ehl - 3;
}
if (chk("backy", but._x, but._y)) {
_root.yhl = _root.yhl - 3;
}
}
function fire() {
but._x = but._x + px;
but._y = but._y + py;
this["w" + wp]._x = but._x;
this["w" + wp]._y = but._y;
if (py < 30) {
py = py + 1;
}
if (px <= py) {
shagok = py;
} else {
shagok = px;
}
shagok = Math.abs(shagok);
if (Math.sqrt(((but._x - rtx) * (but._x - rtx)) + ((but._y - rty) * (but._y - rty))) <= (shagok * 1.3)) {
but._x = rtx;
but._y = rty;
dmg();
} else if (chk("back", but._x, but._y)) {
but._x = rtx;
but._y = rty;
dmg();
}
}
function ugol(xx, yy) {
if ((xx - g._x) < 0) {
g._rotation = 180 + ((Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI);
} else {
g._rotation = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
gr = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
if ((this["p" + pers].dir == 1) && (Math.abs(g._rotation) > 89)) {
g._rotation = -89;
}
if ((this["p" + pers].dir == -1) && (Math.abs(g._rotation) < 90)) {
g._rotation = -91;
}
}
function peremot() {
var _local3 = {x:but._x, y:but._y};
this.localToGlobal(_local3);
tx = (this._x + 400) - _local3.x;
ty = (this._y + 300) - _local3.y;
deltax = (tx - this._x) / 5;
deltay = (ty - this._y) / 5;
if ((Math.abs(deltax) > 0.1) || (Math.abs(deltay) > 0.1)) {
_parent.c._x = _parent.c._x + deltax;
_parent.c._y = _parent.c._y + deltay;
_parent.ob1._x = _parent.ob1._x + (deltax / 3);
_parent.ob1._y = _parent.ob1._y + (deltay / 3);
_parent.ob2._x = _parent.ob2._x + (deltax / 7);
_parent.ob2._y = _parent.ob2._y + (deltay / 7);
_parent.bg._x = _parent.bg._x + (deltax / 3);
_parent.bg._y = _parent.bg._y + (deltay / 1.5);
_parent.fr._x = _parent.fr._x + (deltax * 1.2);
_parent.fr._y = _parent.fr._y + (deltay * 1.2);
}
}
function position(xx, yy, px, py) {
lev = 1;
if (!chk("back", xx, yy)) {
i = 0;
while (i < 4) {
if (chk("p" + i, xx, yy)) {
gotovo = true;
rtx = xx;
rty = yy;
}
i++;
}
i = 0;
while (i < ekol) {
if (chk("e" + i, xx, ty) || (chk("p" + i, xx, yy))) {
gotovo = true;
rtx = xx;
rty = yy;
}
i++;
}
if (chk("back", xx, yy)) {
gotovo = true;
rtx = xx;
rty = yy;
}
while (!gotovo) {
if (Math.abs(rtx - but._x) > 3500) {
gotovo = true;
perelet = true;
}
znakx = px / Math.abs(px);
znaky = py / Math.abs(py);
rtx = xx;
rty = yy;
xxx = rtx + px;
yyy = rty + py;
if (Math.abs(px) >= Math.abs(py)) {
while (((Math.abs(xxx - rtx) > 1) || (Math.abs(yyy - rty) > 1)) && (!gotovo)) {
rtx = rtx + znakx;
rty = (((rtx - xx) * (yyy - yy)) / (xxx - xx)) + yy;
tst._x = rtx;
tst._y = rty;
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
i = 0;
while (i < ekol) {
if (this["e" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
if (chk("back", tst._x, tst._y)) {
gotovo = true;
}
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(rtx, rty, true)) {
gotovo = true;
}
i++;
}
}
} else {
while (((Math.abs(xxx - rtx) > 1) || (Math.abs(yyy - rty) > 1)) && (!gotovo)) {
rty = rty + znaky;
rtx = (((rty - yy) * (xxx - xx)) / (yyy - yy)) + xx;
tst._x = rtx;
tst._y = rty;
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
i = 0;
while (i < ekol) {
if (this["e" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
if (chk("back", tst._x, tst._y)) {
gotovo = true;
}
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(rtx, rty, true)) {
gotovo = true;
}
i++;
}
}
}
xx = xx + px;
yy = yy + py;
if (py < 30) {
py = py + 1;
}
}
} else {
rtx = but._x;
rty = but._y;
}
tst._y = -100000;
}
function ccchHT() {
timer++;
if (timer > 7) {
var _local2 = {x:but._x, y:but._y};
this.localToGlobal(_local2);
if (but._x < -1700) {
px = 0;
py = 0;
ch = true;
play();
peremot();
}
if (back.hitTest(_local2.x, _local2.y, true) && (!ch)) {
px = 0;
py = 0;
play();
ch = true;
toland();
timer = 0;
this["w" + wp].gotoAndPlay("dm");
}
i = 0;
while (i < 3) {
play();
ch = true;
toland();
if (this["p" + i].life <= 0) {
this["p" + i].gotoAndStop("death");
} else if (!chk(this["p" + i]._x + ((px / Math.abs(px)) * 20), this["p" + i]._y)) {
this["p" + i]._x = this["p" + i]._x + ((px / Math.abs(px)) * 20);
this["p" + i].m.m.gotoAndStop("ai");
}
px = 0;
py = 0;
timer = 0;
i++;
}
i = 0;
while (i < 3) {
i++;
}
}
}
play();
wp = (timer = 0);
rtx = (rty = 0);
perelet = false;
if (pers < 2) {
pers++;
} else {
pers = 0;
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay(2);
_root.ewin = true;
stop();
} else {
while (this["p" + pers].life <= 0) {
if (pers < 2) {
pers++;
} else {
pers = 0;
}
}
}
Symbol 1055 MovieClip Frame 2
wch.gotoAndStop(1);
stop();
_root.bi = true;
timer = 0;
ch = false;
power = 0;
this["p" + pers].a.gotoAndPlay(2);
this.onEnterFrame = function () {
if (((_root._xmouse > 650) || (_root._ymouse > 500)) || (_root._ymouse < 100)) {
if (_root._ymouse > 500) {
YYY = (_root._ymouse - 500) / 10;
if (_root._ymouse < 540) {
YYY = 0;
}
}
if (_root._ymouse < 100) {
YYY = (_root._ymouse - 100) / 10;
if (_root._ymouse > 60) {
YYY = 0;
}
}
but._y = but._y + YYY;
if (but._y > 450) {
but._y = 450;
}
if (but._y < -250) {
but._y = -250;
}
XXX = (_root._xmouse - 650) / 10;
if (_root._xmouse < 690) {
XXX = 0;
}
but._x = but._x + XXX;
if (but._x > 2500) {
but._x = 2500;
}
_root.peremot._visible = true;
g._alpha = 0;
gg._alpha = 0;
deg._visible = false;
wch._visible = false;
_root.bi = true;
timer = (power = 0);
ppp = false;
} else {
_root.peremot._visible = false;
g._alpha = 100;
gg._alpha = 100;
deg._visible = true;
wch._visible = true;
but._x = this["p" + pers]._x + (this["p" + pers].dir * 54);
but._y = this["p" + pers]._y - 11;
}
wch._x = but._x - 90;
wch._y = but._y - 70;
gg._x = (g._x = but._x);
gg._y = (g._y = but._y);
deg._x = but._x;
deg._y = but._y + 1;
peremot();
if (timer > 40) {
graviAll();
_root.bi = false;
} else {
timer++;
}
g.p._xscale = power * 27;
if (Math.abs(g._rotation) > 90) {
gg._rotation = 180;
} else {
gg._rotation = 0;
}
ugol(_xmouse, _ymouse);
rot = Math.floor(Math.abs(g._rotation));
if (rot > 90) {
rot = 180 - rot;
}
deg.rot = rot;
deg.power = Math.floor(power);
if (ppp && (power < 100)) {
power = power + 1;
pow = power;
}
if (goLeft && (!_root.bi)) {
go("p", pers, -2, 9);
eval ("p" + pers).m.gotoAndStop(2);
eval ("p" + pers).m.m.gotoAndStop("idu");
}
if (goRight && (!_root.bi)) {
go("p", pers, 2, 9);
eval ("p" + pers).m.gotoAndStop(1);
eval ("p" + pers).m.m.gotoAndStop("idu");
}
};
wch._alpha = 100;
this.onMouseDown = function () {
if ((!weapon) && (!_root.bi)) {
ppp = true;
}
};
this.onMouseUp = function () {
if (((!weapon) && (!_root.bi)) && (ppp)) {
minuswp();
wch._alpha = 0;
delete this.onEnterFrame;
eval ("p" + pers).m.m.gotoAndStop(2);
ppp = false;
if (power < 7) {
power = 7;
}
if ((this["p" + pers].dir == 1) && (Math.abs(g._rotation) > 90)) {
g._rotation = -90;
}
if ((this["p" + pers].dir == -1) && (Math.abs(g._rotation) < 90)) {
g._rotation = -90;
}
px = power * Math.cos((g._rotation * Math.PI) / 180);
if (Math.abs(px) < 0.1) {
if (px < 0) {
px = -0.1;
}
if (px > 0) {
px = 0.1;
}
}
py = power * Math.sin((g._rotation * Math.PI) / 180);
position(but._x, but._y, px, py);
gotovo = false;
grav = 0;
gotoAndPlay ("pif");
}
};
function kd() {
if ((Key.getCode() == 37) || (Key.getCode() == 65)) {
goLeft = true;
goRight = false;
}
if ((Key.getCode() == 39) || (Key.getCode() == 68)) {
goRight = true;
goLeft = false;
}
}
function ku() {
eval ("p" + pers).pos = eval ("p" + pers)._x;
if (Math.abs(eval ("p" + pers).pos - eval ("p" + pers).old) > 40) {
minusu = 0;
} else {
minusu = 9;
}
goRight = false;
goLeft = false;
eval ("p" + pers).m.m.gotoAndStop(1);
if ((Key.getCode() == 87) && (power == 0)) {
if (!nowib) {
wch.gotoAndPlay(2);
}
}
}
nowib = false;
var ll = new Object();
ll.onKeyDown = kd;
ll.onKeyUp = ku;
Key.addListener(ll);
minusu = 9;
this["p" + pers].old = this["p" + pers].pos;
Symbol 1055 MovieClip Frame 3
wch.gotoAndStop("u");
Key.removeListener(ll);
this.onMouseDown = function () {
};
this.onMouseUp = function () {
};
Symbol 1055 MovieClip Frame 22
stop();
duplicateMovieClip ("ww" + wp, "w" + wp, 207);
this["w" + wp].wstep = (4 * px) / Math.abs(px);
this["w" + wp].otskok = px / Math.abs(px);
tx = this._x;
ty = this._y;
left = 0;
up = 0;
this.onEnterFrame = function () {
fire();
if ((but._x > 3200) || (but._x < -500)) {
this["w" + wp].removeMovieClip();
gotoAndPlay ("enemy");
}
peremot();
};
Symbol 1055 MovieClip Frame 23
stop();
this["w" + wp]._y = (but._y = rty);
this["w" + wp]._x = (but._x = rtx);
var a = {x:rtx, y:rty};
if (enemyh.hitTest(a.x, a.y, true)) {
_root.ehl = _root.ehl - 5;
}
but.uskor = 0;
w2.uskor = 0;
w3.uskor = 0;
w5.uskor = 0;
this.onEnterFrame = function () {
peremot();
gravi("w" + wp, 10, this["w" + wp].wstep / Math.abs(this["w" + wp].wstep));
graviAll();
};
Symbol 1055 MovieClip Frame 64
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay("lll1u");
stop();
_root.pwin = true;
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay("lll1u");
_root.ewin = true;
stop();
}
Symbol 1055 MovieClip Frame 66
function ugol(xx, yy) {
if ((xx - g._x) < 0) {
g._rotation = 180 + ((Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI);
} else {
g._rotation = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
gr = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
i = 0;
while (i < ekol) {
eval ("e" + i).m.gotoAndStop(2);
i++;
}
delete this.onEnterFrame;
timer = 0;
rtx = (rty = 0);
perelet = false;
if (en < ekol) {
en++;
} else {
en = 0;
}
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay(2);
_root.pwin = true;
stop();
} else {
while (this["e" + en].life <= 0) {
if (en < (ekol - 1)) {
en++;
} else {
en = 0;
}
}
}
Symbol 1055 MovieClip Frame 67
function ef() {
power = 10;
ind = random(2);
while (this["p" + ind].life <= 0) {
ind = random(3);
}
vx = but._x;
vy = but._y;
bx = this["p" + ind]._x;
by = this["p" + ind]._y - 50;
while (!test) {
ugol(bx, by);
vx = but._x;
vy = but._y;
fire0();
while (true) {
vx = vx + px;
vy = vy + py;
var _local2 = {x:vx, y:vy};
this.localToGlobal(_local2);
if (back.hitTest(_local2.x, _local2.y, true)) {
by = by - 5;
break;
}
if (Math.abs(g._x - vx) > 7000) {
test = true;
break;
}
}
}
by = by - 10;
power = 11;
if (this["e" + en]._y > 250) {
g._rotation = g._rotation + (random(70) + (random(2) * 20));
} else {
g._rotation = g._rotation + (random(40) + (random(2) * 10));
}
if (g._rotation > -115) {
g._rotation = -115;
}
while (!ttest) {
if (power > 90) {
break;
}
power = power + 0.2;
vx = g._x;
vy = g._y;
fire0();
while (true) {
vx = vx + px;
vy = vy + py;
if (py < 30) {
py = py + 1;
}
if (vy > 1000) {
break;
}
var _local2 = {x:vx, y:vy};
this.localToGlobal(_local2);
if (this["p" + ind].hitTest(_local2.x, _local2.y, true)) {
ttest = true;
break;
}
}
}
test = (ttest = false);
usklznk = random(2);
if (usklznk == 0) {
usklznk = -1;
}
power = power - (random(usklad - minusu) * usklznk);
}
function efire() {
eval ("e" + en).m.m.gotoAndStop(2);
ppp = false;
px = power * Math.cos((g._rotation * Math.PI) / 180);
py = power * Math.sin((g._rotation * Math.PI) / 180);
position(but._x, but._y, px, py);
gotovo = false;
grav = 0;
gotoAndPlay ("paf");
}
function bros() {
ef();
efire();
gotoAndPlay ("paf");
}
stop();
usklad--;
if (usklad < 0) {
usklad = 0;
}
rand = random(2);
tm = 0;
ch = false;
power = 0;
this["e" + en].a.gotoAndPlay(2);
this.onEnterFrame = function () {
but._x = this["e" + en]._x + (this["e" + en].dir * 54);
but._y = this["e" + en]._y - 11;
wch._x = but._x - 90;
wch._y = but._y - 70;
gg._x = (g._x = but._x);
gg._y = (g._y = but._y);
deg._x = but._x;
deg._y = but._y + 1;
peremot();
if (tm > 15) {
graviAll();
}
g.p._xscale = power * 27;
if (Math.abs(g._rotation) > 90) {
gg._rotation = 180;
} else {
gg._rotation = 0;
}
ugol(_xmouse, _ymouse);
rot = Math.floor(Math.abs(g._rotation));
if (rot > 90) {
rot = 180 - rot;
}
deg.rot = rot;
deg.power = Math.floor(power);
if (ppp && (power < 100)) {
power = power + 0.2;
pow = power;
}
if (tm > 55) {
bros();
tm = -10;
}
if (tm > 30) {
this["e" + en].m.gotoAndStop(2);
this["e" + en].m.m.gotoAndStop(1);
tm++;
} else if (tm >= 0) {
tm++;
if ((rand == 0) && (tm > 0)) {
el();
}
if ((rand == 1) && (tm > 0)) {
er();
}
}
};
function el() {
go("e", en, -2, 15);
eval ("e" + en).m.gotoAndStop(2);
eval ("e" + en).m.m.gotoAndStop("idu");
}
function er() {
go("e", en, 2, 15);
eval ("e" + en).m.gotoAndStop(1);
eval ("e" + en).m.m.gotoAndStop("idu");
}
Symbol 1055 MovieClip Frame 68
i = 0;
while (i < ekol) {
this["e" + i].begy = this["e" + i]._y;
i++;
}
Symbol 1055 MovieClip Frame 86
wp = random(3);
Symbol 1055 MovieClip Frame 87
stop();
wstep = (4 * px) / Math.abs(px);
duplicateMovieClip ("ww" + wp, "w" + wp, 207);
this["w" + wp].wstep = (4 * px) / Math.abs(px);
this["w" + wp].otskok = px / Math.abs(px);
tx = this._x;
ty = this._y;
left = 0;
up = 0;
this.onEnterFrame = function () {
if ((but._x > 3200) || (but._x < -500)) {
this["w" + wp].removeMovieClip();
gotoAndPlay ("we");
}
fire();
peremot();
};
Symbol 1055 MovieClip Frame 88
stop();
this["w" + wp]._y = (but._y = rty);
this["w" + wp]._x = (but._x = rtx);
but.uskor = 0;
w2.uskor = 0;
w3.uskor = 0;
this.onEnterFrame = function () {
peremot();
gravi("w" + wp, 10, (this["w" + wp].wstep / Math.abs(this["w" + wp].wstep)) * 14);
graviAll();
};
Symbol 1055 MovieClip Frame 124
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay("lll1u");
_root.pwin = true;
stop();
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay("lll1u");
_root.ewin = true;
stop();
}
Symbol 1100 MovieClip Frame 11
stop();
Symbol 1139 MovieClip Frame 281
_parent.play();
Symbol 1151 MovieClip Frame 1
function minuswp() {
if (wp == 0) {
this["p" + pers].wp0--;
}
if (wp == 1) {
this["p" + pers].wp1--;
}
if (wp == 2) {
this["p" + pers].wp2--;
}
if (wp == 3) {
this["p" + pers].wp3--;
}
if (wp == 4) {
this["p" + pers].wp4--;
}
}
function chk(nn, xx, yy) {
var _local2 = {x:xx, y:yy};
this.localToGlobal(_local2);
if (this[nn].hitTest(_local2.x, _local2.y, true)) {
return(true);
}
return(false);
}
function go(nn, number, step, dt) {
porog = true;
if (!chk("back", this[nn + number]._x + (step * dt), this[nn + number]._y + 17)) {
i = 0;
while (i < 20) {
if (this[nn + number].hitTest(this["porog" + i])) {
porog = false;
}
i++;
}
if (porog) {
this[nn + number]._x = this[nn + number]._x + step;
} else {
this[nn + number]._x = this[nn + number]._x - (step * 7);
if (rand == 1) {
rand = 0;
} else {
rand = 1;
}
}
} else {
this[nn + number]._x = this[nn + number]._x - step;
if (rand == 1) {
rand = 0;
} else {
rand = 1;
}
}
}
function gravi(nn, dt, dtx) {
dtx = 0;
if (!chk("back", this[nn]._x, this[nn]._y + dt, true)) {
this[nn]._y = this[nn]._y + this[nn].uskor;
this[nn].uskor = this[nn].uskor + 1;
} else {
this[nn].uskor = 0;
while (chk("back", this[nn]._x - dtx, (this[nn]._y + dt) - 1, true)) {
this[nn]._y--;
}
}
}
function gravim() {
i = 0;
while (i < ekol) {
this["e" + i]._y = this["e" + i].begy;
this["p" + i]._y = this["p" + i].begy;
i++;
}
}
function graviAll() {
i = 0;
while (i < ekol) {
gravi("e" + i, 40, this["e" + i].dir);
gravi("p" + i, 40, this["p" + i].dir);
i++;
}
}
function ptestt() {
i = 0;
while (i < 3) {
var _local2 = {x:this["p" + i]._x, y:this["p" + i]._y + 40};
this.localToGlobal(_local2);
while (back.hitTest(_local2.x, _local2.y, true)) {
_local2 = {x:this["p" + i]._x, y:this["p" + i]._y + 40};
this.localToGlobal(_local2);
this["p" + i]._y = this["p" + i]._y - 1;
}
i++;
}
}
uskor = 0;
function fire0() {
px = power * Math.cos((g._rotation * Math.PI) / 180);
py = power * Math.sin((g._rotation * Math.PI) / 180);
}
function dmg() {
play();
px = 0;
py = 0;
ch = true;
toland();
timer = 0;
this["w" + wp].gotoAndPlay("dm");
this["w" + wp].usil = power / 10;
if (chk("backe", but._x, but._y)) {
_root.ehl = _root.ehl - 3;
}
if (chk("backy", but._x, but._y)) {
_root.yhl = _root.yhl - 3;
}
}
function fire() {
but._x = but._x + px;
but._y = but._y + py;
this["w" + wp]._x = but._x;
this["w" + wp]._y = but._y;
if (py < 30) {
py = py + 1;
}
if (px <= py) {
shagok = py;
} else {
shagok = px;
}
shagok = Math.abs(shagok);
if (Math.sqrt(((but._x - rtx) * (but._x - rtx)) + ((but._y - rty) * (but._y - rty))) <= (shagok * 1.3)) {
but._x = rtx;
but._y = rty;
dmg();
} else if (chk("back", but._x, but._y)) {
but._x = rtx;
but._y = rty;
dmg();
}
}
function ugol(xx, yy) {
if ((xx - g._x) < 0) {
g._rotation = 180 + ((Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI);
} else {
g._rotation = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
gr = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
if ((this["p" + pers].dir == 1) && (Math.abs(g._rotation) > 89)) {
g._rotation = -89;
}
if ((this["p" + pers].dir == -1) && (Math.abs(g._rotation) < 90)) {
g._rotation = -91;
}
}
function peremot() {
var _local3 = {x:but._x, y:but._y};
this.localToGlobal(_local3);
tx = (this._x + 400) - _local3.x;
ty = (this._y + 300) - _local3.y;
deltax = (tx - this._x) / 5;
deltay = (ty - this._y) / 5;
if ((Math.abs(deltax) > 0.1) || (Math.abs(deltay) > 0.1)) {
_parent.c._x = _parent.c._x + deltax;
_parent.c._y = _parent.c._y + deltay;
_parent.ob1._x = _parent.ob1._x + (deltax / 3);
_parent.ob1._y = _parent.ob1._y + (deltay / 3);
_parent.ob2._x = _parent.ob2._x + (deltax / 7);
_parent.ob2._y = _parent.ob2._y + (deltay / 7);
_parent.bg._x = _parent.bg._x + (deltax / 3);
_parent.bg._y = _parent.bg._y + (deltay / 1.5);
_parent.fr._x = _parent.fr._x + (deltax * 1.2);
_parent.fr._y = _parent.fr._y + (deltay * 1.2);
}
}
function position(xx, yy, px, py) {
lev = 1;
if (!chk("back", xx, yy)) {
i = 0;
while (i < 4) {
if (chk("p" + i, xx, yy)) {
gotovo = true;
rtx = xx;
rty = yy;
}
i++;
}
i = 0;
while (i < ekol) {
if (chk("e" + i, xx, ty) || (chk("p" + i, xx, yy))) {
gotovo = true;
rtx = xx;
rty = yy;
}
i++;
}
if (chk("back", xx, yy)) {
gotovo = true;
rtx = xx;
rty = yy;
}
while (!gotovo) {
if (Math.abs(rtx - but._x) > 3500) {
gotovo = true;
perelet = true;
}
znakx = px / Math.abs(px);
znaky = py / Math.abs(py);
rtx = xx;
rty = yy;
xxx = rtx + px;
yyy = rty + py;
if (Math.abs(px) >= Math.abs(py)) {
while (((Math.abs(xxx - rtx) > 1) || (Math.abs(yyy - rty) > 1)) && (!gotovo)) {
rtx = rtx + znakx;
rty = (((rtx - xx) * (yyy - yy)) / (xxx - xx)) + yy;
tst._x = rtx;
tst._y = rty;
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
i = 0;
while (i < ekol) {
if (this["e" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
if (chk("back", tst._x, tst._y)) {
gotovo = true;
}
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(rtx, rty, true)) {
gotovo = true;
}
i++;
}
}
} else {
while (((Math.abs(xxx - rtx) > 1) || (Math.abs(yyy - rty) > 1)) && (!gotovo)) {
rty = rty + znaky;
rtx = (((rty - yy) * (xxx - xx)) / (yyy - yy)) + xx;
tst._x = rtx;
tst._y = rty;
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
i = 0;
while (i < ekol) {
if (this["e" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
if (chk("back", tst._x, tst._y)) {
gotovo = true;
}
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(rtx, rty, true)) {
gotovo = true;
}
i++;
}
}
}
xx = xx + px;
yy = yy + py;
if (py < 30) {
py = py + 1;
}
}
} else {
rtx = but._x;
rty = but._y;
}
tst._y = -100000;
}
function ccchHT() {
timer++;
if (timer > 7) {
var _local2 = {x:but._x, y:but._y};
this.localToGlobal(_local2);
if (but._x < -1700) {
px = 0;
py = 0;
ch = true;
play();
peremot();
}
if (back.hitTest(_local2.x, _local2.y, true) && (!ch)) {
px = 0;
py = 0;
play();
ch = true;
toland();
timer = 0;
this["w" + wp].gotoAndPlay("dm");
}
i = 0;
while (i < 3) {
play();
ch = true;
toland();
if (this["p" + i].life <= 0) {
this["p" + i].gotoAndStop("death");
} else if (!chk(this["p" + i]._x + ((px / Math.abs(px)) * 20), this["p" + i]._y)) {
this["p" + i]._x = this["p" + i]._x + ((px / Math.abs(px)) * 20);
this["p" + i].m.m.gotoAndStop("ai");
}
px = 0;
py = 0;
timer = 0;
i++;
}
i = 0;
while (i < 3) {
i++;
}
}
}
play();
wp = (timer = 0);
rtx = (rty = 0);
perelet = false;
if (pers < 2) {
pers++;
} else {
pers = 0;
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay(2);
_root.ewin = true;
stop();
} else {
while (this["p" + pers].life <= 0) {
if (pers < 2) {
pers++;
} else {
pers = 0;
}
}
}
Symbol 1151 MovieClip Frame 2
wch.gotoAndStop(1);
stop();
_root.bi = true;
timer = 0;
ch = false;
power = 0;
this["p" + pers].a.gotoAndPlay(2);
this.onEnterFrame = function () {
if (((_root._xmouse > 650) || (_root._ymouse > 500)) || (_root._ymouse < 100)) {
if (_root._ymouse > 500) {
YYY = (_root._ymouse - 500) / 10;
if (_root._ymouse < 540) {
YYY = 0;
}
}
if (_root._ymouse < 100) {
YYY = (_root._ymouse - 100) / 10;
if (_root._ymouse > 60) {
YYY = 0;
}
}
but._y = but._y + YYY;
if (but._y > 450) {
but._y = 450;
}
if (but._y < -250) {
but._y = -250;
}
XXX = (_root._xmouse - 650) / 10;
if (_root._xmouse < 690) {
XXX = 0;
}
but._x = but._x + XXX;
if (but._x > 2500) {
but._x = 2500;
}
_root.peremot._visible = true;
g._alpha = 0;
gg._alpha = 0;
deg._visible = false;
wch._visible = false;
_root.bi = true;
timer = (power = 0);
ppp = false;
} else {
_root.peremot._visible = false;
g._alpha = 100;
gg._alpha = 100;
deg._visible = true;
wch._visible = true;
but._x = this["p" + pers]._x + (this["p" + pers].dir * 54);
but._y = this["p" + pers]._y - 11;
}
wch._x = but._x - 90;
wch._y = but._y - 70;
gg._x = (g._x = but._x);
gg._y = (g._y = but._y);
deg._x = but._x;
deg._y = but._y + 1;
peremot();
if (timer > 40) {
graviAll();
_root.bi = false;
} else {
timer++;
}
g.p._xscale = power * 27;
if (Math.abs(g._rotation) > 90) {
gg._rotation = 180;
} else {
gg._rotation = 0;
}
ugol(_xmouse, _ymouse);
rot = Math.floor(Math.abs(g._rotation));
if (rot > 90) {
rot = 180 - rot;
}
deg.rot = rot;
deg.power = Math.floor(power);
if (ppp && (power < 100)) {
power = power + 1;
pow = power;
}
if (goLeft && (!_root.bi)) {
go("p", pers, -2, 9);
eval ("p" + pers).m.gotoAndStop(2);
eval ("p" + pers).m.m.gotoAndStop("idu");
}
if (goRight && (!_root.bi)) {
go("p", pers, 2, 9);
eval ("p" + pers).m.gotoAndStop(1);
eval ("p" + pers).m.m.gotoAndStop("idu");
}
};
wch._alpha = 100;
this.onMouseDown = function () {
if ((!weapon) && (!_root.bi)) {
ppp = true;
}
};
this.onMouseUp = function () {
if (((!weapon) && (!_root.bi)) && (ppp)) {
minuswp();
wch._alpha = 0;
delete this.onEnterFrame;
eval ("p" + pers).m.m.gotoAndStop(2);
ppp = false;
if (power < 7) {
power = 7;
}
if ((this["p" + pers].dir == 1) && (Math.abs(g._rotation) > 90)) {
g._rotation = -90;
}
if ((this["p" + pers].dir == -1) && (Math.abs(g._rotation) < 90)) {
g._rotation = -90;
}
px = power * Math.cos((g._rotation * Math.PI) / 180);
if (Math.abs(px) < 0.1) {
if (px < 0) {
px = -0.1;
}
if (px > 0) {
px = 0.1;
}
}
py = power * Math.sin((g._rotation * Math.PI) / 180);
position(but._x, but._y, px, py);
gotovo = false;
grav = 0;
gotoAndPlay ("pif");
}
};
function kd() {
if ((Key.getCode() == 37) || (Key.getCode() == 65)) {
goLeft = true;
goRight = false;
}
if ((Key.getCode() == 39) || (Key.getCode() == 68)) {
goRight = true;
goLeft = false;
}
}
function ku() {
eval ("p" + pers).pos = eval ("p" + pers)._x;
if (Math.abs(eval ("p" + pers).pos - eval ("p" + pers).old) > 40) {
minusu = 0;
} else {
minusu = 9;
}
goRight = false;
goLeft = false;
eval ("p" + pers).m.m.gotoAndStop(1);
if ((Key.getCode() == 87) && (power == 0)) {
if (!nowib) {
wch.gotoAndPlay(2);
}
}
}
nowib = false;
var ll = new Object();
ll.onKeyDown = kd;
ll.onKeyUp = ku;
Key.addListener(ll);
minusu = 9;
this["p" + pers].old = this["p" + pers].pos;
Symbol 1151 MovieClip Frame 3
wch.gotoAndStop("u");
Key.removeListener(ll);
this.onMouseDown = function () {
};
this.onMouseUp = function () {
};
Symbol 1151 MovieClip Frame 22
stop();
duplicateMovieClip ("ww" + wp, "w" + wp, 207);
this["w" + wp].wstep = (4 * px) / Math.abs(px);
this["w" + wp].otskok = px / Math.abs(px);
tx = this._x;
ty = this._y;
left = 0;
up = 0;
this.onEnterFrame = function () {
fire();
if ((but._x > 3200) || (but._x < -500)) {
this["w" + wp].removeMovieClip();
gotoAndPlay ("enemy");
}
peremot();
};
Symbol 1151 MovieClip Frame 23
stop();
this["w" + wp]._y = (but._y = rty);
this["w" + wp]._x = (but._x = rtx);
var a = {x:rtx, y:rty};
if (enemyh.hitTest(a.x, a.y, true)) {
_root.ehl = _root.ehl - 5;
}
but.uskor = 0;
w2.uskor = 0;
w3.uskor = 0;
w5.uskor = 0;
this.onEnterFrame = function () {
peremot();
gravi("w" + wp, 10, this["w" + wp].wstep / Math.abs(this["w" + wp].wstep));
graviAll();
};
Symbol 1151 MovieClip Frame 64
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay("lll2u");
stop();
_root.pwin = true;
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay("lll2u");
_root.ewin = true;
stop();
}
Symbol 1151 MovieClip Frame 66
function ugol(xx, yy) {
if ((xx - g._x) < 0) {
g._rotation = 180 + ((Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI);
} else {
g._rotation = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
gr = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
i = 0;
while (i < ekol) {
eval ("e" + i).m.gotoAndStop(2);
i++;
}
delete this.onEnterFrame;
timer = 0;
rtx = (rty = 0);
perelet = false;
if (en < ekol) {
en++;
} else {
en = 0;
}
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay(2);
_root.pwin = true;
stop();
} else {
while (this["e" + en].life <= 0) {
if (en < (ekol - 1)) {
en++;
} else {
en = 0;
}
}
}
Symbol 1151 MovieClip Frame 67
function ef() {
power = 10;
ind = random(2);
while (this["p" + ind].life <= 0) {
ind = random(3);
}
vx = but._x;
vy = but._y;
bx = this["p" + ind]._x;
by = this["p" + ind]._y - 50;
while (!test) {
ugol(bx, by);
vx = but._x;
vy = but._y;
fire0();
while (true) {
vx = vx + px;
vy = vy + py;
var _local2 = {x:vx, y:vy};
this.localToGlobal(_local2);
if (back.hitTest(_local2.x, _local2.y, true)) {
by = by - 5;
break;
}
if (Math.abs(g._x - vx) > 7000) {
test = true;
break;
}
}
}
by = by - 10;
power = 11;
if (this["e" + en]._y > 250) {
g._rotation = g._rotation + (random(70) + (random(2) * 20));
} else {
g._rotation = g._rotation + (random(40) + (random(2) * 10));
}
if (g._rotation > -115) {
g._rotation = -115;
}
while (!ttest) {
if (power > 90) {
break;
}
power = power + 0.2;
vx = g._x;
vy = g._y;
fire0();
while (true) {
vx = vx + px;
vy = vy + py;
if (py < 30) {
py = py + 1;
}
if (vy > 1000) {
break;
}
var _local2 = {x:vx, y:vy};
this.localToGlobal(_local2);
if (this["p" + ind].hitTest(_local2.x, _local2.y, true)) {
ttest = true;
break;
}
}
}
test = (ttest = false);
usklznk = random(2);
if (usklznk == 0) {
usklznk = -1;
}
power = power - (random(usklad - minusu) * usklznk);
}
function efire() {
eval ("e" + en).m.m.gotoAndStop(2);
ppp = false;
px = power * Math.cos((g._rotation * Math.PI) / 180);
py = power * Math.sin((g._rotation * Math.PI) / 180);
position(but._x, but._y, px, py);
gotovo = false;
grav = 0;
gotoAndPlay ("paf");
}
function bros() {
ef();
efire();
gotoAndPlay ("paf");
}
stop();
usklad--;
if (usklad < 0) {
usklad = 0;
}
rand = random(2);
tm = 0;
ch = false;
power = 0;
this["e" + en].a.gotoAndPlay(2);
this.onEnterFrame = function () {
but._x = this["e" + en]._x + (this["e" + en].dir * 54);
but._y = this["e" + en]._y - 11;
wch._x = but._x - 90;
wch._y = but._y - 70;
gg._x = (g._x = but._x);
gg._y = (g._y = but._y);
deg._x = but._x;
deg._y = but._y + 1;
peremot();
if (tm > 15) {
graviAll();
}
g.p._xscale = power * 27;
if (Math.abs(g._rotation) > 90) {
gg._rotation = 180;
} else {
gg._rotation = 0;
}
ugol(_xmouse, _ymouse);
rot = Math.floor(Math.abs(g._rotation));
if (rot > 90) {
rot = 180 - rot;
}
deg.rot = rot;
deg.power = Math.floor(power);
if (ppp && (power < 100)) {
power = power + 0.2;
pow = power;
}
if (tm > 55) {
bros();
tm = -10;
}
if (tm > 30) {
this["e" + en].m.gotoAndStop(2);
this["e" + en].m.m.gotoAndStop(1);
tm++;
} else if (tm >= 0) {
tm++;
if ((rand == 0) && (tm > 0)) {
el();
}
if ((rand == 1) && (tm > 0)) {
er();
}
}
};
function el() {
go("e", en, -2, 15);
eval ("e" + en).m.gotoAndStop(2);
eval ("e" + en).m.m.gotoAndStop("idu");
}
function er() {
go("e", en, 2, 15);
eval ("e" + en).m.gotoAndStop(1);
eval ("e" + en).m.m.gotoAndStop("idu");
}
Symbol 1151 MovieClip Frame 68
i = 0;
while (i < ekol) {
this["e" + i].begy = this["e" + i]._y;
i++;
}
Symbol 1151 MovieClip Frame 86
wp = random(4);
Symbol 1151 MovieClip Frame 87
stop();
wstep = (4 * px) / Math.abs(px);
duplicateMovieClip ("ww" + wp, "w" + wp, 207);
this["w" + wp].wstep = (4 * px) / Math.abs(px);
this["w" + wp].otskok = px / Math.abs(px);
tx = this._x;
ty = this._y;
left = 0;
up = 0;
this.onEnterFrame = function () {
if ((but._x > 3200) || (but._x < -500)) {
this["w" + wp].removeMovieClip();
gotoAndPlay ("we");
}
fire();
peremot();
};
Symbol 1151 MovieClip Frame 88
stop();
this["w" + wp]._y = (but._y = rty);
this["w" + wp]._x = (but._x = rtx);
but.uskor = 0;
w2.uskor = 0;
w3.uskor = 0;
this.onEnterFrame = function () {
peremot();
gravi("w" + wp, 10, (this["w" + wp].wstep / Math.abs(this["w" + wp].wstep)) * 14);
graviAll();
};
Symbol 1151 MovieClip Frame 124
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay("lll2u");
_root.pwin = true;
stop();
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay("lll2u");
_root.ewin = true;
stop();
}
Symbol 1229 MovieClip Frame 305
_parent.play();
Symbol 1241 Button
on (press) {
wp = 5;
cat.play();
bcat.visible = false;
bcat._y = 9999999 /* 0x98967F */;
nowib = true;
_root.attachMovie("puzzyCatMessage", "puzzyCatMessage", _root.getNextHighestDepth(), {_x:120, _y:280});
}
Symbol 1242 MovieClip Frame 1
function minuswp() {
if (wp == 0) {
this["p" + pers].wp0--;
}
if (wp == 1) {
this["p" + pers].wp1--;
}
if (wp == 2) {
this["p" + pers].wp2--;
}
if (wp == 3) {
this["p" + pers].wp3--;
}
if (wp == 4) {
this["p" + pers].wp4--;
}
}
function chk(nn, xx, yy) {
var _local2 = {x:xx, y:yy};
this.localToGlobal(_local2);
if (this[nn].hitTest(_local2.x, _local2.y, true)) {
return(true);
}
return(false);
}
function go(nn, number, step, dt) {
porog = true;
if (!chk("back", this[nn + number]._x + (step * dt), this[nn + number]._y + 17)) {
i = 0;
while (i < 20) {
if (this[nn + number].hitTest(this["porog" + i])) {
porog = false;
}
i++;
}
if (porog) {
this[nn + number]._x = this[nn + number]._x + step;
} else {
this[nn + number]._x = this[nn + number]._x - (step * 7);
if (rand == 1) {
rand = 0;
} else {
rand = 1;
}
}
} else {
this[nn + number]._x = this[nn + number]._x - step;
if (rand == 1) {
rand = 0;
} else {
rand = 1;
}
}
}
function gravi(nn, dt, dtx) {
dtx = 0;
if (!chk("back", this[nn]._x, this[nn]._y + dt, true)) {
this[nn]._y = this[nn]._y + this[nn].uskor;
this[nn].uskor = this[nn].uskor + 1;
} else {
this[nn].uskor = 0;
while (chk("back", this[nn]._x - dtx, (this[nn]._y + dt) - 1, true)) {
this[nn]._y--;
}
}
}
function gravim() {
i = 0;
while (i < ekol) {
this["e" + i]._y = this["e" + i].begy;
this["p" + i]._y = this["p" + i].begy;
i++;
}
}
function graviAll() {
i = 0;
while (i < ekol) {
gravi("e" + i, 40, this["e" + i].dir);
gravi("p" + i, 40, this["p" + i].dir);
i++;
}
}
function ptestt() {
i = 0;
while (i < 3) {
var _local2 = {x:this["p" + i]._x, y:this["p" + i]._y + 40};
this.localToGlobal(_local2);
while (back.hitTest(_local2.x, _local2.y, true)) {
_local2 = {x:this["p" + i]._x, y:this["p" + i]._y + 40};
this.localToGlobal(_local2);
this["p" + i]._y = this["p" + i]._y - 1;
}
i++;
}
}
uskor = 0;
function fire0() {
px = power * Math.cos((g._rotation * Math.PI) / 180);
py = power * Math.sin((g._rotation * Math.PI) / 180);
}
function dmg() {
play();
px = 0;
py = 0;
ch = true;
toland();
timer = 0;
this["w" + wp].gotoAndPlay("dm");
this["w" + wp].usil = power / 10;
if (chk("backe", but._x, but._y)) {
_root.ehl = _root.ehl - 3;
}
if (chk("backy", but._x, but._y)) {
_root.yhl = _root.yhl - 3;
}
}
function fire() {
but._x = but._x + px;
but._y = but._y + py;
this["w" + wp]._x = but._x;
this["w" + wp]._y = but._y;
if (py < 30) {
py = py + 1;
}
if (px <= py) {
shagok = py;
} else {
shagok = px;
}
shagok = Math.abs(shagok);
if (Math.sqrt(((but._x - rtx) * (but._x - rtx)) + ((but._y - rty) * (but._y - rty))) <= (shagok * 1.3)) {
but._x = rtx;
but._y = rty;
dmg();
} else if (chk("back", but._x, but._y)) {
but._x = rtx;
but._y = rty;
dmg();
}
}
function ugol(xx, yy) {
if ((xx - g._x) < 0) {
g._rotation = 180 + ((Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI);
} else {
g._rotation = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
gr = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
if ((this["p" + pers].dir == 1) && (Math.abs(g._rotation) > 89)) {
g._rotation = -89;
}
if ((this["p" + pers].dir == -1) && (Math.abs(g._rotation) < 90)) {
g._rotation = -91;
}
}
function peremot() {
var _local3 = {x:but._x, y:but._y};
this.localToGlobal(_local3);
tx = (this._x + 400) - _local3.x;
ty = (this._y + 300) - _local3.y;
deltax = (tx - this._x) / 5;
deltay = (ty - this._y) / 5;
if ((Math.abs(deltax) > 0.1) || (Math.abs(deltay) > 0.1)) {
_parent.c._x = _parent.c._x + deltax;
_parent.c._y = _parent.c._y + deltay;
_parent.ob1._x = _parent.ob1._x + (deltax / 3);
_parent.ob1._y = _parent.ob1._y + (deltay / 3);
_parent.ob2._x = _parent.ob2._x + (deltax / 7);
_parent.ob2._y = _parent.ob2._y + (deltay / 7);
_parent.bg._x = _parent.bg._x + (deltax / 3);
_parent.bg._y = _parent.bg._y + (deltay / 1.5);
_parent.fr._x = _parent.fr._x + (deltax * 1.2);
_parent.fr._y = _parent.fr._y + (deltay * 1.2);
}
}
function position(xx, yy, px, py) {
lev = 1;
if (!chk("back", xx, yy)) {
i = 0;
while (i < 4) {
if (chk("p" + i, xx, yy)) {
gotovo = true;
rtx = xx;
rty = yy;
}
i++;
}
i = 0;
while (i < ekol) {
if (chk("e" + i, xx, ty) || (chk("p" + i, xx, yy))) {
gotovo = true;
rtx = xx;
rty = yy;
}
i++;
}
if (chk("back", xx, yy)) {
gotovo = true;
rtx = xx;
rty = yy;
}
while (!gotovo) {
if (Math.abs(rtx - but._x) > 3500) {
gotovo = true;
perelet = true;
}
znakx = px / Math.abs(px);
znaky = py / Math.abs(py);
rtx = xx;
rty = yy;
xxx = rtx + px;
yyy = rty + py;
if (Math.abs(px) >= Math.abs(py)) {
while (((Math.abs(xxx - rtx) > 1) || (Math.abs(yyy - rty) > 1)) && (!gotovo)) {
rtx = rtx + znakx;
rty = (((rtx - xx) * (yyy - yy)) / (xxx - xx)) + yy;
tst._x = rtx;
tst._y = rty;
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
i = 0;
while (i < ekol) {
if (this["e" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
if (chk("back", tst._x, tst._y)) {
gotovo = true;
}
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(rtx, rty, true)) {
gotovo = true;
}
i++;
}
}
} else {
while (((Math.abs(xxx - rtx) > 1) || (Math.abs(yyy - rty) > 1)) && (!gotovo)) {
rty = rty + znaky;
rtx = (((rty - yy) * (xxx - xx)) / (yyy - yy)) + xx;
tst._x = rtx;
tst._y = rty;
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
i = 0;
while (i < ekol) {
if (this["e" + i].hitTest(tst)) {
gotovo = true;
}
i++;
}
if (chk("back", tst._x, tst._y)) {
gotovo = true;
}
i = 0;
while (i < 4) {
if (this["p" + i].hitTest(rtx, rty, true)) {
gotovo = true;
}
i++;
}
}
}
xx = xx + px;
yy = yy + py;
if (py < 30) {
py = py + 1;
}
}
} else {
rtx = but._x;
rty = but._y;
}
tst._y = -100000;
}
function ccchHT() {
timer++;
if (timer > 7) {
var _local2 = {x:but._x, y:but._y};
this.localToGlobal(_local2);
if (but._x < -1700) {
px = 0;
py = 0;
ch = true;
play();
peremot();
}
if (back.hitTest(_local2.x, _local2.y, true) && (!ch)) {
px = 0;
py = 0;
play();
ch = true;
toland();
timer = 0;
this["w" + wp].gotoAndPlay("dm");
}
i = 0;
while (i < 3) {
play();
ch = true;
toland();
if (this["p" + i].life <= 0) {
this["p" + i].gotoAndStop("death");
} else if (!chk(this["p" + i]._x + ((px / Math.abs(px)) * 20), this["p" + i]._y)) {
this["p" + i]._x = this["p" + i]._x + ((px / Math.abs(px)) * 20);
this["p" + i].m.m.gotoAndStop("ai");
}
px = 0;
py = 0;
timer = 0;
i++;
}
i = 0;
while (i < 3) {
i++;
}
}
}
play();
wp = (timer = 0);
rtx = (rty = 0);
perelet = false;
if (pers < 2) {
pers++;
} else {
pers = 0;
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay(2);
_root.ewin = true;
stop();
} else {
while (this["p" + pers].life <= 0) {
if (pers < 2) {
pers++;
} else {
pers = 0;
}
}
}
Symbol 1242 MovieClip Frame 2
wch.gotoAndStop(1);
stop();
_root.bi = true;
timer = 0;
ch = false;
power = 0;
this["p" + pers].a.gotoAndPlay(2);
this.onEnterFrame = function () {
if (((_root._xmouse > 650) || (_root._ymouse > 500)) || (_root._ymouse < 100)) {
if (_root._ymouse > 500) {
YYY = (_root._ymouse - 500) / 10;
if (_root._ymouse < 540) {
YYY = 0;
}
}
if (_root._ymouse < 100) {
YYY = (_root._ymouse - 100) / 10;
if (_root._ymouse > 60) {
YYY = 0;
}
}
but._y = but._y + YYY;
if (but._y > 450) {
but._y = 450;
}
if (but._y < -250) {
but._y = -250;
}
XXX = (_root._xmouse - 650) / 10;
if (_root._xmouse < 690) {
XXX = 0;
}
but._x = but._x + XXX;
if (but._x > 2500) {
but._x = 2500;
}
_root.peremot._visible = true;
g._alpha = 0;
gg._alpha = 0;
deg._visible = false;
wch._visible = false;
_root.bi = true;
timer = (power = 0);
ppp = false;
} else {
_root.peremot._visible = false;
g._alpha = 100;
gg._alpha = 100;
deg._visible = true;
wch._visible = true;
but._x = this["p" + pers]._x + (this["p" + pers].dir * 54);
but._y = this["p" + pers]._y - 11;
}
wch._x = but._x - 90;
wch._y = but._y - 70;
gg._x = (g._x = but._x);
gg._y = (g._y = but._y);
deg._x = but._x;
deg._y = but._y + 1;
peremot();
if (timer > 40) {
graviAll();
_root.bi = false;
} else {
timer++;
}
g.p._xscale = power * 27;
if (Math.abs(g._rotation) > 90) {
gg._rotation = 180;
} else {
gg._rotation = 0;
}
ugol(_xmouse, _ymouse);
rot = Math.floor(Math.abs(g._rotation));
if (rot > 90) {
rot = 180 - rot;
}
deg.rot = rot;
deg.power = Math.floor(power);
if (ppp && (power < 100)) {
power = power + 1;
pow = power;
}
if (goLeft && (!_root.bi)) {
go("p", pers, -2, 9);
eval ("p" + pers).m.gotoAndStop(2);
eval ("p" + pers).m.m.gotoAndStop("idu");
}
if (goRight && (!_root.bi)) {
go("p", pers, 2, 9);
eval ("p" + pers).m.gotoAndStop(1);
eval ("p" + pers).m.m.gotoAndStop("idu");
}
};
wch._alpha = 100;
this.onMouseDown = function () {
if ((!weapon) && (!_root.bi)) {
ppp = true;
}
};
this.onMouseUp = function () {
if (((!weapon) && (!_root.bi)) && (ppp)) {
minuswp();
wch._alpha = 0;
delete this.onEnterFrame;
eval ("p" + pers).m.m.gotoAndStop(2);
ppp = false;
if (power < 7) {
power = 7;
}
if ((this["p" + pers].dir == 1) && (Math.abs(g._rotation) > 90)) {
g._rotation = -90;
}
if ((this["p" + pers].dir == -1) && (Math.abs(g._rotation) < 90)) {
g._rotation = -90;
}
px = power * Math.cos((g._rotation * Math.PI) / 180);
if (Math.abs(px) < 0.1) {
if (px < 0) {
px = -0.1;
}
if (px > 0) {
px = 0.1;
}
}
py = power * Math.sin((g._rotation * Math.PI) / 180);
position(but._x, but._y, px, py);
gotovo = false;
grav = 0;
gotoAndPlay ("pif");
}
};
function kd() {
if ((Key.getCode() == 37) || (Key.getCode() == 65)) {
goLeft = true;
goRight = false;
}
if ((Key.getCode() == 39) || (Key.getCode() == 68)) {
goRight = true;
goLeft = false;
}
}
function ku() {
eval ("p" + pers).pos = eval ("p" + pers)._x;
if (Math.abs(eval ("p" + pers).pos - eval ("p" + pers).old) > 40) {
minusu = 0;
} else {
minusu = 9;
}
goRight = false;
goLeft = false;
eval ("p" + pers).m.m.gotoAndStop(1);
if ((Key.getCode() == 87) && (power == 0)) {
if (!nowib) {
wch.gotoAndPlay(2);
}
}
}
nowib = false;
var ll = new Object();
ll.onKeyDown = kd;
ll.onKeyUp = ku;
Key.addListener(ll);
minusu = 9;
this["p" + pers].old = this["p" + pers].pos;
Symbol 1242 MovieClip Frame 3
wch.gotoAndStop("u");
Key.removeListener(ll);
this.onMouseDown = function () {
};
this.onMouseUp = function () {
};
Symbol 1242 MovieClip Frame 22
stop();
duplicateMovieClip ("ww" + wp, "w" + wp, 207);
this["w" + wp].wstep = (4 * px) / Math.abs(px);
this["w" + wp].otskok = px / Math.abs(px);
tx = this._x;
ty = this._y;
left = 0;
up = 0;
this.onEnterFrame = function () {
fire();
if ((but._x > 3200) || (but._x < -500)) {
this["w" + wp].removeMovieClip();
gotoAndPlay ("enemy");
}
peremot();
};
Symbol 1242 MovieClip Frame 23
stop();
this["w" + wp]._y = (but._y = rty);
this["w" + wp]._x = (but._x = rtx);
var a = {x:rtx, y:rty};
if (enemyh.hitTest(a.x, a.y, true)) {
_root.ehl = _root.ehl - 5;
}
but.uskor = 0;
w2.uskor = 0;
w3.uskor = 0;
w5.uskor = 0;
this.onEnterFrame = function () {
peremot();
gravi("w" + wp, 10, this["w" + wp].wstep / Math.abs(this["w" + wp].wstep));
graviAll();
};
Symbol 1242 MovieClip Frame 64
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay("lll3u");
stop();
_root.pwin = true;
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay("lll3u");
_root.ewin = true;
stop();
}
Symbol 1242 MovieClip Frame 66
function ugol(xx, yy) {
if ((xx - g._x) < 0) {
g._rotation = 180 + ((Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI);
} else {
g._rotation = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
gr = (Math.atan((yy - g._y) / (xx - g._x)) * 180) / Math.PI;
}
i = 0;
while (i < ekol) {
eval ("e" + i).m.gotoAndStop(2);
i++;
}
delete this.onEnterFrame;
timer = 0;
rtx = (rty = 0);
perelet = false;
if (en < ekol) {
en++;
} else {
en = 0;
}
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay(2);
_root.pwin = true;
stop();
} else {
while (this["e" + en].life <= 0) {
if (en < (ekol - 1)) {
en++;
} else {
en = 0;
}
}
}
Symbol 1242 MovieClip Frame 67
function ef() {
power = 10;
ind = random(2);
while (this["p" + ind].life <= 0) {
ind = random(3);
}
vx = but._x;
vy = but._y;
bx = this["p" + ind]._x;
by = this["p" + ind]._y - 50;
while (!test) {
ugol(bx, by);
vx = but._x;
vy = but._y;
fire0();
while (true) {
vx = vx + px;
vy = vy + py;
var _local2 = {x:vx, y:vy};
this.localToGlobal(_local2);
if (back.hitTest(_local2.x, _local2.y, true)) {
by = by - 5;
break;
}
if (Math.abs(g._x - vx) > 7000) {
test = true;
break;
}
}
}
by = by - 10;
power = 11;
if (this["e" + en]._y > 250) {
g._rotation = g._rotation + (random(70) + (random(2) * 20));
} else {
g._rotation = g._rotation + (random(40) + (random(2) * 10));
}
if (g._rotation > -115) {
g._rotation = -115;
}
while (!ttest) {
if (power > 90) {
break;
}
power = power + 0.2;
vx = g._x;
vy = g._y;
fire0();
while (true) {
vx = vx + px;
vy = vy + py;
if (py < 30) {
py = py + 1;
}
if (vy > 1000) {
break;
}
var _local2 = {x:vx, y:vy};
this.localToGlobal(_local2);
if (this["p" + ind].hitTest(_local2.x, _local2.y, true)) {
ttest = true;
break;
}
}
}
test = (ttest = false);
usklznk = random(2);
if (usklznk == 0) {
usklznk = -1;
}
power = power - (random(usklad - minusu) * usklznk);
}
function efire() {
eval ("e" + en).m.m.gotoAndStop(2);
ppp = false;
px = power * Math.cos((g._rotation * Math.PI) / 180);
py = power * Math.sin((g._rotation * Math.PI) / 180);
position(but._x, but._y, px, py);
gotovo = false;
grav = 0;
gotoAndPlay ("paf");
}
function bros() {
ef();
efire();
gotoAndPlay ("paf");
}
stop();
usklad--;
if (usklad < 0) {
usklad = 0;
}
rand = random(2);
tm = 0;
ch = false;
power = 0;
this["e" + en].a.gotoAndPlay(2);
this.onEnterFrame = function () {
but._x = this["e" + en]._x + (this["e" + en].dir * 54);
but._y = this["e" + en]._y - 11;
wch._x = but._x - 90;
wch._y = but._y - 70;
gg._x = (g._x = but._x);
gg._y = (g._y = but._y);
deg._x = but._x;
deg._y = but._y + 1;
peremot();
if (tm > 15) {
graviAll();
}
g.p._xscale = power * 27;
if (Math.abs(g._rotation) > 90) {
gg._rotation = 180;
} else {
gg._rotation = 0;
}
ugol(_xmouse, _ymouse);
rot = Math.floor(Math.abs(g._rotation));
if (rot > 90) {
rot = 180 - rot;
}
deg.rot = rot;
deg.power = Math.floor(power);
if (ppp && (power < 100)) {
power = power + 0.2;
pow = power;
}
if (tm > 55) {
bros();
tm = -10;
}
if (tm > 30) {
this["e" + en].m.gotoAndStop(2);
this["e" + en].m.m.gotoAndStop(1);
tm++;
} else if (tm >= 0) {
tm++;
if ((rand == 0) && (tm > 0)) {
el();
}
if ((rand == 1) && (tm > 0)) {
er();
}
}
};
function el() {
go("e", en, -2, 15);
eval ("e" + en).m.gotoAndStop(2);
eval ("e" + en).m.m.gotoAndStop("idu");
}
function er() {
go("e", en, 2, 15);
eval ("e" + en).m.gotoAndStop(1);
eval ("e" + en).m.m.gotoAndStop("idu");
}
Symbol 1242 MovieClip Frame 68
i = 0;
while (i < ekol) {
this["e" + i].begy = this["e" + i]._y;
i++;
}
Symbol 1242 MovieClip Frame 86
wp = random(5);
Symbol 1242 MovieClip Frame 87
stop();
wstep = (4 * px) / Math.abs(px);
duplicateMovieClip ("ww" + wp, "w" + wp, 207);
this["w" + wp].wstep = (4 * px) / Math.abs(px);
this["w" + wp].otskok = px / Math.abs(px);
tx = this._x;
ty = this._y;
left = 0;
up = 0;
this.onEnterFrame = function () {
if ((but._x > 3200) || (but._x < -500)) {
this["w" + wp].removeMovieClip();
gotoAndPlay ("we");
}
fire();
peremot();
};
Symbol 1242 MovieClip Frame 88
stop();
this["w" + wp]._y = (but._y = rty);
this["w" + wp]._x = (but._x = rtx);
but.uskor = 0;
w2.uskor = 0;
w3.uskor = 0;
this.onEnterFrame = function () {
peremot();
gravi("w" + wp, 10, (this["w" + wp].wstep / Math.abs(this["w" + wp].wstep)) * 14);
graviAll();
};
Symbol 1242 MovieClip Frame 124
epopad = true;
i = 0;
while (i < ekol) {
if (this["e" + i].life > 0) {
epopad = false;
}
i++;
}
if (epopad) {
_root.gotoAndPlay("lll3u");
_root.pwin = true;
stop();
}
popad = true;
i = 0;
while (i < 3) {
if (this["p" + i].life > 0) {
popad = false;
}
i++;
}
if (popad) {
_root.gotoAndPlay("lll3u");
_root.ewin = true;
stop();
}
Symbol 1274 MovieClip Frame 5
stop();
Symbol 1277 MovieClip Frame 161
_parent.play();
Symbol 1281 MovieClip Frame 1
stop();
Symbol 1281 MovieClip Frame 2
stop();
Symbol 1281 MovieClip Frame 13
_parent.play();