Frame 1
fscommand ("trapallkeys", true);
fscommand ("showmenu", false);
fscommand ("trapallkeys", "true");
fscommand ("allowscale", false);
Total = _root.getBytesTotal();
TotalField = Total;
Percent = 1;
Frame 2
Load = _root.getBytesLoaded();
LoadField = Load;
Percent = int((Load / Total) * 100);
PercentField = Percent + " %";
Frame 3
if (Load < Total) {
gotoAndPlay (2);
}
Frame 7
function nielsen(movieClip) {
scCI = "us-ugo";
scCG = "ugoplayer_flashgames";
scSI = escape(movieClip);
loadMovieNum ((((((("http://secure-us.imrworldwide.com/cgi-bin/m?ci=" + scCI) + "&cg=") + scCG) + "&si=") + scSI) + "&rnd=") + Math.ceil(Math.random() * 100000000), 100);
}
nielsen("game_intro");
Frame 177
persScore = 0;
compScore = 0;
totalScore = 0;
minus = 0;
level = 1;
var score = Array();
chooser2.gotoAndStop(2);
_root.player11chel = true;
_root.player22chel = false;
player1 = undefined;
player2 = undefined;
mySound = new Sound(this);
msg = "Please select the characters";
_root.mySound.stop();
_root.mySound.attachSound("_supermusic");
_root.mySound.start(0, 300);
this.onMouseDown = function () {
if (sec.hitTest(_xmouse, _ymouse, true)) {
sec.gotoAndStop(2);
} else {
sec.gotoAndStop(1);
}
};
pp.onRelease = function () {
getURL ("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
};
ppp.onRelease = function () {
attachMovie("credits", "credits", _root.getNextHighestDepth);
};
Instance of Symbol 239 MovieClip in Frame 177
onClipEvent (load) {
zvuk = true;
}
on (release) {
zvuk = !zvuk;
if (zvuk == true) {
_root.mySound.setVolume(100);
this.gotoAndStop(1);
} else {
_root.mySound.setVolume(0);
this.gotoAndStop(2);
}
}
Instance of Symbol 257 MovieClip in Frame 177
onClipEvent (load) {
function __f_load(eventObj) {
this.cacheAsBitmap = true;
}
this.addEventListener("load", __f_load);
}
Frame 187
function unSelectAll1() {
_root.c11.gotoAndStop(1);
_root.c22.gotoAndStop(1);
_root.c33.gotoAndStop(1);
_root.c44.gotoAndStop(1);
_root.c55.gotoAndStop(1);
}
function unSelectAll2() {
_root.c1.gotoAndStop(1);
_root.c2.gotoAndStop(1);
_root.c3.gotoAndStop(1);
_root.c4.gotoAndStop(1);
_root.c5.gotoAndStop(1);
}
instruction._visible = false;
stop();
Frame 188
chooser2.gotoAndStop(2);
_root.player11chel = true;
_root.player22chel = false;
player1 = undefined;
player2 = undefined;
compScore = 0;
persScore = 0;
_root.player1 = "barb";
c1.onRollOut = (c2.onRollOut = (c3.onRollOut = (c4.onRollOut = (c5.onRollOut = (c11.onRollOut = (c22.onRollOut = (c33.onRollOut = (c44.onRollOut = (c55.onRollOut = function () {
msg = "";
if ((chosen1 != true) || (chosen2 != true)) {
msg = "Please select the characters";
}
})))))))));
stop();
Instance of Symbol 358 MovieClip "chooser" in Frame 188
on (release) {
_root.mySound.attachSound("_schelk");
_root.mySound.start();
_root.player22chel = !_root.player22chel;
if (_root.player22chel == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 358 MovieClip "chooser2" in Frame 188
on (release) {
_root.mySound.attachSound("_schelk");
_root.mySound.start();
_root.player11chel = !_root.player11chel;
if (_root.player11chel == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 366 MovieClip "c11" in Frame 188
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "barb";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_barb");
this.mySound.start();
}
on (rollOver) {
_root.msg = "This character can club the skull giving it a huge acceleration";
}
Instance of Symbol 369 MovieClip "c33" in Frame 188
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "crazy";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_crazy");
this.mySound.start();
}
on (rollOver) {
_root.msg = "His spit can beat back the skull";
}
Instance of Symbol 369 MovieClip "c3" in Frame 188
on (release) {
_root.unSelectAll2();
this.gotoAndStop(2);
_root.chosen1 = true;
_root.player2 = "crazy";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_crazy");
this.mySound.start();
}
on (rollOver) {
_root.msg = "His spit can beat back the skull";
}
Instance of Symbol 366 MovieClip "c1" in Frame 188
on (release) {
_root.unSelectAll2();
this.gotoAndStop(2);
_root.chosen1 = true;
_root.player2 = "barb";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_barb");
this.mySound.start();
}
on (rollOver) {
_root.msg = "This character can club the skull giving it a huge acceleration";
}
Instance of Symbol 372 MovieClip "c2" in Frame 188
on (release) {
_root.unSelectAll2();
this.gotoAndStop(2);
_root.chosen1 = true;
_root.player2 = "powar";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_powar");
this.mySound.start();
}
on (rollOver) {
_root.msg = "This one throws his hatchet to stop the enemy for a second and to beat back the skull";
}
Instance of Symbol 373 MovieClip "c4" in Frame 188
on (release) {
_root.unSelectAll2();
this.gotoAndStop(2);
_root.chosen1 = true;
_root.player2 = "zombie";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_zombie");
this.mySound.start();
}
on (rollOver) {
_root.msg = "Zombie can retrieve the skull using lunges (up and down)";
}
Instance of Symbol 372 MovieClip "c22" in Frame 188
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "powar";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_powar");
this.mySound.start();
}
on (rollOver) {
_root.msg = "This one throws his hatchet to stop the enemy for a second and to beat back the skull";
}
Instance of Symbol 373 MovieClip "c44" in Frame 188
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "zombie";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_zombie");
this.mySound.start();
}
on (rollOver) {
_root.msg = "Zombie can retrieve the skull using lunges (up and down)";
}
Instance of Symbol 375 MovieClip "c55" in Frame 188
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "witch";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_witch");
this.mySound.start();
}
on (rollOver) {
_root.msg = "The witch can beat back the skull remotely";
}
Instance of Symbol 375 MovieClip "c5" in Frame 188
on (release) {
_root.unSelectAll2();
this.gotoAndStop(2);
_root.chosen1 = true;
_root.player2 = "witch";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_witch");
this.mySound.start();
}
on (rollOver) {
_root.msg = "The witch can beat back the skull remotely";
}
Frame 189
stop();
_root.player11chel = true;
_root.player22chel = false;
player1 = undefined;
player2 = undefined;
Instance of Symbol 366 MovieClip "c11" in Frame 189
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "barb";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_barb");
this.mySound.start();
}
on (rollOver) {
_root.msg = "This character can club the skull giving it a huge acceleration";
}
Instance of Symbol 369 MovieClip "c33" in Frame 189
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "crazy";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_crazy");
this.mySound.start();
}
on (rollOver) {
_root.msg = "His spit can beat back the skull";
}
Instance of Symbol 372 MovieClip "c22" in Frame 189
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "powar";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_powar");
this.mySound.start();
}
on (rollOver) {
_root.msg = "This one throws his hatchet to stop the enemy for a second and to beat back the skull";
}
Instance of Symbol 373 MovieClip "c44" in Frame 189
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "zombie";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_zombie");
this.mySound.start();
}
on (rollOver) {
_root.msg = "Zombie can retrieve the skull using lunges (up and down)";
}
Instance of Symbol 375 MovieClip "c55" in Frame 189
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "witch";
this.mySound.stop();
this.mySound = new Sound(this);
this.mySound.attachSound("_witch");
this.mySound.start();
}
on (rollOver) {
_root.msg = "The witch can beat back the skull remotely";
}
Instance of Symbol 419 MovieClip in Frame 189
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 190
loadMovie ("http://flashart.com.ua/elk.swf", "sec");
function init() {
time = time + t;
t0 = getTimer();
xspeed = 1;
yspeed = 10;
rotationUskorenie = 0.3;
persSpeed = 0;
rotationSpeed = 0;
compSpeed = 0;
myTurn = true;
t0 = getTimer();
compMaxSpeed = 10;
if (difficulcy == "easy") {
compMaxSpeed = 8;
}
persMaxSpeed = 12;
compSpeedPrirost = 3;
persSpeedPrirost = 3;
persPower = 0;
compPower = 0;
toporSpeed = 25;
gameOver = false;
roundOver = false;
persDelay = 0;
compDelay = 0;
attachMovie("head", "head", _root.getNextHighestDepth(), {_x:275, _y:164});
head.onEnterFrame = headMovement;
_root.yspeed = random(10) - 5;
if (random(2) == 1) {
myTurn = false;
xspeed = -1;
_root.rasschetTraektorii();
} else {
myTurn = true;
xspeed = 1;
_root.rasschetTraektorii2();
}
}
function kaplyaMove() {
this._x = this._x + this.prirostX;
this._y = this._y + this.prirostY;
this.prirostX = this.prirostX / 2;
this.prirostY = this.prirostY / 2;
this._alpha = this._alpha - 13;
if (this._alpha <= -100) {
removeMovieClip(this);
}
}
function razriv(xx, yy, amount) {
i = 0;
while (i < amount) {
_root.kaplyaCounter++;
_root.attachMovie("kaplya", "kaplya" + kaplyaCounter, _root.getNextHighestDepth(), {_x:xx, _y:yy});
eval ("kaplya" + kaplyaCounter).prirostX = random(60) - 30;
eval ("kaplya" + kaplyaCounter).prirostY = random(60) - 30;
eval ("kaplya" + kaplyaCounter).onEnterFrame = kaplyaMove;
eval ("kaplya" + kaplyaCounter).counter = 20;
eval ("kaplya" + kaplyaCounter)._xscale = (eval ("kaplya" + i)._yscale = random(70) + 70);
i++;
}
}
function apelsinka(persComp) {
_root.attachMovie("topor", "topor" + persComp, _root.getNextHighestDepth());
eval ("_root.topor" + persComp)._y = eval ("_root." + persComp)._y + 40;
eval ("_root.topor" + persComp).persComp = persComp;
if (persComp == "comp") {
eval ("_root.topor" + persComp)._x = 150;
} else {
eval ("_root.topor" + persComp)._x = 400;
}
eval ("_root.topor" + persComp).onEnterFrame = _root.toporMove;
if (persComp == "pers") {
eval ("_root.topor" + persComp).speed = -_root.toporSpeed;
} else {
eval ("_root.topor" + persComp).speed = _root.toporSpeed;
}
}
function toporMove() {
this._x = this._x + this.speed;
if ((this._x > 700) || (this._x < 0)) {
removeMovieClip(this);
}
if (this.hitTest(_root.pers.sensor) && (this.persComp == "comp")) {
_root.persDelay = 20;
_root.persSpeed = 0;
_root.pers.gotoAndPlay("hit");
removeMovieClip(this);
}
if (this.hitTest(_root.comp.sensor) && (this.persComp == "pers")) {
_root.compDelay = 20;
_root.compSpeed = 0;
_root.comp.gotoAndPlay("hit");
removeMovieClip(this);
}
if (this.hitTest(_root.head)) {
if (((_root.myTurn == true) && (this.persComp == "pers")) && (_root.xspeed != 0)) {
_root.xspeed = -_root.xspeed;
_root.myTurn = !_root.myTurn;
_root.rasschetTraektorii();
removeMovieClip(this);
}
if (((_root.myTurn == false) && (this.persComp == "comp")) && (_root.xspeed != 0)) {
_root.xspeed = -_root.xspeed;
_root.myTurn = !_root.myTurn;
_root.rasschetTraektorii2();
removeMovieClip(this);
}
}
}
function rasschetTraektorii() {
removeMovieClip(head2);
i = 0;
duplicateMovieClip (_root.head, "head2", _root.getNextHighestDepth());
_root.head2._visible = false;
xsp = _root.xspeed;
ysp = _root.yspeed;
rsp = _root.rotationSpeed;
while (_root.head2._x > 90) {
_root.myTurn = false;
_root.head2.headMovement();
}
_root.xspeed = xsp;
_root.yspeed = ysp;
_root.rotationSpeed = rsp;
_root.rasschetOkonchen = true;
}
function rasschetTraektorii2() {
removeMovieClip(head3);
i = 0;
duplicateMovieClip (_root.head, "head3", _root.getNextHighestDepth());
_root.head3._visible = false;
xsp = _root.xspeed;
ysp = _root.yspeed;
rsp = _root.rotationSpeed;
while (_root.head3._x < 470) {
_root.myTurn = true;
_root.head3.headMovement();
}
_root.xspeed = xsp;
_root.yspeed = ysp;
_root.rotationSpeed = rsp;
_root.rasschetOkonchen = true;
}
function outOfRoom() {
while (_root.pers._y < 0) {
_root.pers._y = _root.pers._y + 1;
_root.persSpeed = 0;
}
while (_root.pers._y > 270) {
_root.pers._y = _root.pers._y - 1;
_root.persSpeed = 0;
}
while (_root.comp._y < 0) {
_root.comp._y = _root.comp._y + 1;
_root.compSpeed = 0;
}
while (_root.comp._y > 270) {
_root.comp._y = _root.comp._y - 1;
_root.compSpeed = 0;
}
}
function persik() {
if (_root.myTurn == true) {
this.shotDone();
}
if (this.sensor.hitTest(_root.head) && (_root.myTurn == true)) {
_root.myTurn = false;
neberuchka = false;
if (this._y > (_root.head._y - 80)) {
pers.gotoAndPlay("head");
} else {
pers.gotoAndPlay("foot");
}
_root.xspeed = -_root.xspeed;
_root.rotationSpeed = _root.rotationSpeed + _root.persSpeed;
_root.yspeed = _root.yspeed + (_root.persSpeed / 3);
if (_root.yspeed > 10) {
_root.yspeed = _root.yspeed - 1;
}
if (_root.yspeed < -10) {
_root.yspeed = _root.yspeed + 1;
}
_root.rasschetTraektorii();
}
if (Key.isDown(38) && (_root.shot != "true")) {
_root.persSpeed = _root.persSpeed - 2;
}
if (Key.isDown(40) && (_root.shot != "true")) {
_root.persSpeed = _root.persSpeed + 2;
}
if (((Key.isDown(32) && (_root.persPower >= 100)) && (roundOver == false)) && (this.typ != "zombie")) {
_root.shot = true;
_root.persPower = 0;
pers.gotoAndPlay("shot");
if (this.typ == "powar") {
_root.apelsinka("pers");
}
if (this.typ == "witch") {
xspeed = -xspeed;
if (_root.myTurn == true) {
_root.rasschetTraektorii();
} else {
_root.myTurn = true;
}
}
}
if ((((Key.isDown(32) && (_root.persPower >= 100)) && (Key.isDown(38))) && (this.typ == "zombie")) && (roundOver == false)) {
_root.shot = true;
_root.persPower = 0;
pers.gotoAndPlay("shot1");
} else if ((((Key.isDown(32) && (_root.persPower >= 100)) && (Key.isDown(40))) && (this.typ == "zombie")) && (roundOver == false)) {
_root.shot = true;
_root.persPower = 0;
pers.gotoAndPlay("shot2");
}
if (_root.persSpeed < 0) {
_root.persSpeed = _root.persSpeed + 1;
}
if (_root.persSpeed > 0) {
_root.persSpeed = _root.persSpeed - 1;
}
if (persDelay == 0) {
this._y = this._y + persSpeed;
} else {
persDelay--;
}
_root.persPower = _root.persPower + eval (player1 + "PowerPrirost");
_root.outOfRoom();
}
function persik2() {
if (_root.myTurn == false) {
this.shotDone();
}
if (this.sensor.hitTest(_root.head) && (_root.myTurn == false)) {
_root.myTurn = true;
neberuchka = false;
if (this._y > (_root.head._y - 80)) {
this.gotoAndPlay("head");
} else {
this.gotoAndPlay("foot");
}
_root.xspeed = -_root.xspeed;
_root.rotationSpeed = _root.rotationSpeed - _root.compSpeed;
_root.yspeed = _root.yspeed + (_root.compSpeed / 3);
if (_root.yspeed > 10) {
_root.yspeed = _root.yspeed - 1;
}
if (_root.yspeed < -10) {
_root.yspeed = _root.yspeed + 1;
}
_root.rasschetTraektorii2();
}
if (Key.isDown(87) && (_root.shot != "true")) {
_root.compSpeed = _root.compSpeed - 2;
}
if (Key.isDown(83) && (_root.shot != "true")) {
_root.compSpeed = _root.compSpeed + 2;
}
if (((Key.isDown(65) && (_root.compPower >= 100)) && (roundOver == false)) && (this.typ != "zombie")) {
_root.shot = true;
_root.compPower = 0;
this.gotoAndPlay("shot");
if (this.typ == "powar") {
_root.apelsinka("comp");
}
if (this.typ == "witch") {
xspeed = -xspeed;
if (_root.myTurn == false) {
_root.rasschetTraektorii2();
} else {
_root.myTurn = false;
}
}
}
if ((((Key.isDown(65) && (_root.compPower >= 100)) && (Key.isDown(87))) && (this.typ == "zombie")) && (roundOver == false)) {
_root.shot = true;
_root.compPower = 0;
this.gotoAndPlay("shot1");
} else if ((((Key.isDown(65) && (_root.compPower >= 100)) && (Key.isDown(83))) && (this.typ == "zombie")) && (roundOver == false)) {
_root.shot = true;
_root.compPower = 0;
this.gotoAndPlay("shot2");
}
if (_root.compSpeed < 0) {
_root.compSpeed = _root.compSpeed + 1;
}
if (_root.compSpeed > 0) {
_root.compSpeed = _root.compSpeed - 1;
}
if (compDelay == 0) {
this._y = this._y + compSpeed;
} else {
compDelay--;
}
_root.compPower = _root.compPower + eval (player2 + "PowerPrirost");
_root.outOfRoom();
}
function campik() {
if (_root.compPower >= 100) {
if (((_root.head._x < 240) && (_root.player2 == "barb")) && (roundOver == false)) {
_root.compPower = 0;
comp.gotoAndPlay("shot");
}
if (((_root.player2 == "powar") && (Math.abs(_root.comp._y - _root.pers._y) < 40)) && (roundOver == false)) {
_root.compPower = 0;
comp.gotoAndPlay("shot");
_root.apelsinka("comp");
}
if (((this.typ == "crazy") && (roundOver == false)) && (random(8) == 1)) {
this.gotoAndPlay("shot");
_root.compPower = 0;
}
if ((((this.typ == "zombie") && (roundOver == false)) && (neberuchka != true)) && (random(2) == 1)) {
neberuchka = false;
if (((_root.myTurn == false) && (_root.head._x < 200)) && ((this._y - _root.head._y) > 20)) {
this.gotoAndPlay("shot1");
_root.compPower = 0;
} else if (((_root.myTurn == false) && (_root.head._x < 200)) && ((this._y - _root.head._y) < -150)) {
this.gotoAndPlay("shot2");
_root.compPower = 0;
}
}
if ((((((this.typ == "witch") && (roundOver == false)) && (_root.myTurn == false)) && (head._x > 200)) && (head._x < 350)) && (random(8) == 1)) {
xspeed = -xspeed;
_root.rasschetTraektorii2();
_root.myTurn = true;
this.gotoAndPlay("shot");
_root.compPower = 0;
}
} else {
_root.compPower = _root.compPower + eval (player2 + "PowerPrirost");
}
this.shotDone();
if (this.sensor.hitTest(_root.head) && (_root.myTurn == false)) {
neberuchka = false;
if (this._y > (_root.head._y - 80)) {
comp.gotoAndPlay("head");
} else {
comp.gotoAndPlay("foot");
}
_root.myTurn = true;
_root.xspeed = -_root.xspeed;
_root.rotationSpeed = _root.rotationSpeed + _root.compSpeed;
_root.yspeed = _root.yspeed + (_root.compSpeed / 3);
if (_root.yspeed > 10) {
_root.yspeed = _root.yspeed - 1;
}
if (_root.yspeed < -10) {
_root.yspeed = _root.yspeed + 1;
}
_root.rasschetTraektorii2();
}
path = (_root.comp._y + 80) - _root.head2._y;
if (path > 0) {
_root.compSpeed = _root.compSpeed - _root.compSpeedPrirost;
}
if (path < 0) {
_root.compSpeed = _root.compSpeed + _root.compSpeedPrirost;
}
if (_root.compSpeed < 0) {
_root.compSpeed = _root.compSpeed + 1;
}
if (_root.compSpeed > 0) {
_root.compSpeed = _root.compSpeed - 1;
}
if ((_root.compSpeed > 0) && (_root.compSpeed > _root.compMaxSpeed)) {
_root.compSpeed = _root.compMaxSpeed;
}
if ((_root.compSpeed < 0) && (_root.compSpeed < (-_root.compMaxSpeed))) {
_root.compSpeed = -_root.compMaxSpeed;
}
if (compDelay == 0) {
this._y = this._y + _root.compSpeed;
} else {
compDelay--;
}
_root.outOfRoom();
}
function campik2() {
if (_root.persPower >= 100) {
if (((_root.head._x > 300) && (this.typ == "barb")) && (roundOver == false)) {
_root.persPower = 0;
this.gotoAndPlay("shot");
}
if (((this.typ == "powar") && (Math.abs(_root.comp._y - _root.pers._y) < 40)) && (roundOver == false)) {
_root.persPower = 0;
this.gotoAndPlay("shot");
_root.apelsinka("pers");
}
if (((this.typ == "crazy") && (roundOver == false)) && (random(8) == 1)) {
this.gotoAndPlay("shot");
_root.persPower = 0;
}
if ((((this.typ == "zombie") && (roundOver == false)) && (neberuchka != true)) && (random(2) == 1)) {
neberuchka = false;
if (((_root.myTurn == true) && (_root.head._x > 350)) && ((this._y - _root.head._y) > 20)) {
this.gotoAndPlay("shot1");
_root.persPower = 0;
} else if (((_root.myTurn == true) && (_root.head._x > 350)) && ((this._y - _root.head._y) < -150)) {
this.gotoAndPlay("shot2");
_root.persPower = 0;
}
}
if ((((((this.typ == "witch") && (roundOver == false)) && (_root.myTurn == true)) && (head._x > 200)) && (head._x < 350)) && (random(8) == 1)) {
xspeed = -xspeed;
_root.rasschetTraektorii();
_root.myTurn = false;
this.gotoAndPlay("shot");
_root.persPower = 0;
}
} else {
_root.persPower = _root.persPower + eval (player1 + "PowerPrirost");
}
this.shotDone();
if (this.sensor.hitTest(_root.head) && (_root.myTurn == true)) {
neberuchka = false;
if (this._y > (_root.head._y - 80)) {
this.gotoAndPlay("head");
} else {
this.gotoAndPlay("foot");
}
_root.myTurn = false;
_root.xspeed = -_root.xspeed;
_root.rotationSpeed = _root.rotationSpeed + _root.persSpeed;
_root.yspeed = _root.yspeed + (_root.persSpeed / 3);
if (_root.yspeed > 10) {
_root.yspeed = _root.yspeed - 1;
}
if (_root.yspeed < -10) {
_root.yspeed = _root.yspeed + 1;
}
_root.rasschetTraektorii();
}
path = (_root.pers._y + 80) - _root.head3._y;
if (path > 0) {
_root.persSpeed = _root.persSpeed - _root.persSpeedPrirost;
}
if (path < 0) {
_root.persSpeed = _root.persSpeed + _root.persSpeedPrirost;
}
if (_root.persSpeed < 0) {
_root.persSpeed = _root.persSpeed + 1;
}
if (_root.persSpeed > 0) {
_root.persSpeed = _root.persSpeed - 1;
}
if ((_root.persSpeed > 0) && (_root.persSpeed > _root.persMaxSpeed)) {
_root.persSpeed = 12;
}
if ((_root.persSpeed < 0) && (_root.perspSpeed < (-_root.persMaxSpeed))) {
_root.persSpeed = -12;
}
if (persDelay == 0) {
this._y = this._y + _root.persSpeed;
} else {
persDelay--;
_root.persSpeed = 0;
}
_root.outOfRoom();
}
function removeall() {
pers.removeMovieClip();
comp.removeMovieClip();
delete this.onEnterFrame;
i = 0;
while (i < slyunaCounter) {
eval ("slyuna" + i).removeMovieClip();
i++;
}
toporcomp.removeMovieClip();
toporpers.removeMovieClip();
head.removeMovieClip();
}
function otherKeys(currentKey) {
if (currentKey == "up") {
if (((Key.isDown(37) == false) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
return(false);
}
return(true);
}
if (currentKey == "down") {
if (((Key.isDown(37) == false) && (Key.isDown(38) == false)) && (Key.isDown(39) == false)) {
return(false);
}
return(true);
}
if (currentKey == "left") {
if (((Key.isDown(39) == false) && (Key.isDown(39) == false)) && (Key.isDown(40) == false)) {
return(false);
}
return(true);
}
if (currentKey == "right") {
if (((Key.isDown(37) == false) && (Key.isDown(38) == false)) && (Key.isDown(40) == false)) {
return(false);
}
return(true);
}
}
id = 5;
delete this.onEnterFrame;
_root.attachMovie(player1, "pers", _root.getNextHighestDepth(), {_x:450, _y:250});
pers.typ = player1;
_root.attachMovie(player2, "comp", _root.getNextHighestDepth(), {_x:100, _y:250});
comp.typ = player2;
comp._xscale = -comp._xscale;
roundOver = true;
compScore = 0;
persScore = 0;
var time = 0;
t = 0;
barbPowerPrirost = 1;
powarPowerPrirost = 2;
zombiePowerPrirost = 4;
crazyPowerPrirost = 3;
witchPowerPrirost = 2;
kaplyaCounter = 0;
slyunaCounter = 0;
MovieClip.prototype.shotDone = function () {
if (this._name == "pers") {
turn = true;
} else {
turn = false;
}
if (this.typ == "barb") {
if (this.dubets.hitTest(_root.head) && (_root.myTurn == turn)) {
_root.myTurn = !turn;
this.mySound.attachSound("_punch");
this.mySound.start();
_root.xspeed = -_root.xspeed;
if (this._name == "pers") {
_root.rotationSpeed = _root.rotationSpeed + _root.persSpeed;
_root.yspeed = _root.yspeed + (_root.persSpeed / 3);
_root.xspeed = -50;
_root.rasschetTraektorii();
} else {
_root.rotationSpeed = _root.rotationSpeed + _root.compSpeed;
_root.yspeed = _root.yspeed + (_root.compSpeed / 3);
_root.xspeed = 50;
_root.rasschetTraektorii2();
}
}
} else if (this.typ == "zombie") {
if (this.hand.hitTest(_root.head) && (_root.myTurn == turn)) {
_root.myTurn = !turn;
this.mySound.attachSound("_zombie catch");
this.mySound.start();
_root.xspeed = -_root.xspeed;
if (this._name == "pers") {
_root.rotationSpeed = _root.rotationSpeed + _root.persSpeed;
_root.yspeed = _root.yspeed + (_root.persSpeed / 3);
_root.rasschetTraektorii();
} else {
_root.rotationSpeed = _root.rotationSpeed + _root.compSpeed;
_root.yspeed = _root.yspeed + (_root.compSpeed / 3);
_root.rasschetTraektorii2();
}
}
}
};
MovieClip.prototype.headMovement = function () {
if ((_root.yspeed == 0) && (random(15) == 1)) {
_root.yspeed = random(5) - 2;
}
this._x = this._x + _root.xspeed;
this._y = this._y + _root.yspeed;
this._rotation = this._rotation + _root.rotationSpeed;
if (_root.rotationSpeed > 0) {
_root.rotationSpeed = _root.rotationSpeed - _root.rotationUskorenie;
}
if (_root.rotationSpeed < 0) {
_root.rotationSpeed = _root.rotationSpeed + _root.rotationUskorenie;
}
if ((this._y > 375) || (this._y < 30)) {
_root.yspeed = -_root.yspeed;
}
while (this._y < 30) {
this._y++;
}
while (this._y > 375) {
this._y--;
}
if (this._x < -20) {
_root.persScore++;
_root.pscore.gotoAndPlay(2);
_root.head.onEnterFrame = undefined;
_root.head.swapDepths(99999);
_root.head.removeMovieClip();
_root.xspeed = 0;
_root.roundOver = true;
_root.screen.gotoAndPlay("nextRound");
_root.mySound.attachSound("_gol");
_root.mySound.start();
}
if (this._x > 570) {
_root.compScore++;
_root.cscore.gotoAndPlay(2);
_root.head.onEnterFrame = undefined;
_root.head.swapDepths(99999);
_root.head.removeMovieClip();
_root.xspeed = 0;
_root.roundOver = true;
_root.screen.gotoAndPlay("nextRound");
_root.mySound.attachSound("_gol");
_root.mySound.start();
}
if (_root.xspeed < -20) {
_root.xspeed = _root.xspeed + 0.5;
}
if (_root.xspeed > 20) {
_root.xspeed = _root.xspeed - 0.5;
}
if ((_root.xspeed > 0) && (_root.xspeed < 20)) {
_root.xspeed = _root.xspeed + 0.2;
}
if ((_root.xspeed < 0) && (_root.xspeed > -20)) {
_root.xspeed = _root.xspeed - 0.2;
}
};
if (player11chel == true) {
pers.onEnterFrame = persik;
}
if (player11chel == false) {
pers.onEnterFrame = campik2;
}
if (player22chel == true) {
comp.onEnterFrame = persik2;
}
if (player22chel == false) {
comp.onEnterFrame = campik;
}
screen.gotoAndPlay(2);
head._visible = false;
onEnterFrame = function () {
if (((persScore >= 10) && (gameOver == false)) || ((compScore >= 10) && (gameOver == false))) {
gameOver = true;
if (tournament == false) {
gotoAndPlay ("gameOver");
} else {
gotoAndPlay ("tournament");
}
}
if (roundOver != true) {
_root.t = int((getTimer() - _root.t0) / 1000);
}
};
stop();
Instance of Symbol 440 MovieClip "cpower" in Frame 190
onClipEvent (enterFrame) {
this.gotoAndStop(_root.compPower);
}
Instance of Symbol 440 MovieClip "cpower" in Frame 190
onClipEvent (enterFrame) {
this.gotoAndStop(_root.persPower);
}
Instance of Symbol 456 MovieClip in Frame 190
onClipEvent (load) {
function __f_load(eventObj) {
this.cacheAsBitmap = true;
}
this.addEventListener("load", __f_load);
}
Frame 191
removeall();
compp.gotoAndStop(player2);
perss.gotoAndStop(player1);
pp.onEnterFrame = function () {
if (this.hitTest(_xmouse, _ymouse)) {
this._xscale = (this._yscale = this._yscale + ((120 - this._yscale) / 5));
} else {
this._xscale = (this._yscale = this._yscale - ((this._yscale - 100) / 5));
}
};
pp.onRelease = function () {
getURL ("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
};
Frame 192
removeall();
Frame 205
stop();
Frame 206
removeall();
tBar.character.gotoAndStop(player1);
trace("333333333");
trace(persScore);
if (persScore >= 10) {
trace("!!!!!!!!!!!");
trace(persScore);
score[level] = ((persScore - compScore) * 10) * level;
level++;
} else {
minus = minus + (10 * level);
}
if ((persScore >= 10) && (level >= 6)) {
gameOver = true;
gotoAndPlay ("gameOverTournament");
}
Frame 207
if (persScore >= 10) {
persScore = undefined;
tBar.gotoAndPlay("level" + level);
}
if (persScore < 10) {
tBar.gotoAndStop("level" + (level + 1));
}
tBar.level = level;
if (level == 1) {
player2 = "barb";
} else if (level == 2) {
player2 = "powar";
} else if (level == 3) {
player2 = "witch";
} else if (level == 4) {
player2 = "crazy";
} else if (level == 5) {
player2 = "zombie";
}
Frame 289
stop();
Instance of Symbol 492 MovieClip in Frame 289
onClipEvent (keyDown) {
_root.gotoAndPlay("startGame");
}
Frame 290
stop();
Frame 292
stop();
Frame 293
checksum = 0;
level = 0;
comp.gotoAndStop(player1);
if (difficulcy == "easy") {
scorrr._visible = false;
}
trace("scores in each level:");
trace("level 1");
trace(score[1]);
trace("level 2");
trace(score[2]);
trace("level 3");
trace(score[3]);
trace("level 4");
trace(score[4]);
trace("level 5");
trace(score[5]);
totalScore = ((((score[1] + score[2]) + score[3]) + score[4]) + score[5]) - minus;
pp.onEnterFrame = function () {
if (this.hitTest(_xmouse, _ymouse)) {
this._xscale = (this._yscale = this._yscale + ((120 - this._yscale) / 5));
} else {
this._xscale = (this._yscale = this._yscale - ((this._yscale - 100) / 5));
}
};
pp.onRelease = function () {
getURL ("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
};
Instance of Symbol 472 MovieClip "comp" in Frame 293
onClipEvent (load) {
function __f_load(eventObj) {
this.cacheAsBitmap = true;
}
this.addEventListener("load", __f_load);
}
Instance of Symbol 497 MovieClip in Frame 293
onClipEvent (load) {
if (((_root.player11chel == true) && (_root.player22chel == true)) || ((_root.player11chel == false) && (_root.player22chel == false))) {
this._visible = false;
} else {
this._visible = true;
}
}
Frame 302
stop();
Frame 303
stop();
Frame 304
stop();
Frame 305
stop();
Frame 306
stop();
Frame 307
stop();
Frame 308
stop();
Frame 309
stop();
Frame 310
stop();
Frame 311
stop();
Frame 312
stop();
Frame 313
stop();
Frame 314
stop();
Frame 315
stop();
Frame 316
stop();
Frame 317
stop();
Frame 318
stop();
Frame 319
stop();
Frame 320
stop();
Frame 321
stop();
Frame 322
stop();
Frame 323
stop();
Frame 324
stop();
Frame 325
stop();
Frame 326
stop();
Frame 327
stop();
Frame 328
stop();
Frame 329
stop();
Frame 330
stop();
Frame 331
stop();
Symbol 46 Button
on (release) {
getURL ("http://madfatcat.com", "_blank");
}
Symbol 49 Button
on (release) {
getURL ("http://ugoplayer.com", "_blank");
}
Instance of Symbol 34 MovieClip in Symbol 50 MovieClip [credits] Frame 1
on (release) {
_parent.removeMovieClip();
}
Symbol 57 MovieClip [starr] Frame 17
removeMovieClip(this);
stop();
Symbol 76 MovieClip [zombie] Frame 1
_root.shot = false;
stop();
mySound = new Sound(this);
Symbol 76 MovieClip [zombie] Frame 2
mySound.attachSound("_head2");
mySound.start();
Symbol 76 MovieClip [zombie] Frame 13
gotoAndStop (1);
Symbol 76 MovieClip [zombie] Frame 14
mySound.attachSound("_kick2");
mySound.start();
Symbol 76 MovieClip [zombie] Frame 28
gotoAndStop (1);
Symbol 76 MovieClip [zombie] Frame 29
play();
Symbol 76 MovieClip [zombie] Frame 32
mySound.attachSound("_zombie shot");
mySound.start();
Symbol 76 MovieClip [zombie] Frame 41
gotoAndStop (1);
Symbol 76 MovieClip [zombie] Frame 42
play();
mySound.attachSound("_zombie shot");
mySound.start();
Symbol 76 MovieClip [zombie] Frame 54
gotoAndStop (1);
Symbol 76 MovieClip [zombie] Frame 55
_root.razriv(this._x, this._y + 20, 30);
mySound.attachSound("_hit");
mySound.start();
Symbol 76 MovieClip [zombie] Frame 67
gotoAndStop (1);
Symbol 97 MovieClip [crazy] Frame 1
_root.shot = false;
stop();
mySound = new Sound(this);
Symbol 97 MovieClip [crazy] Frame 2
mySound.attachSound("_head2");
mySound.start();
Symbol 97 MovieClip [crazy] Frame 10
gotoAndStop (1);
Symbol 97 MovieClip [crazy] Frame 11
mySound.attachSound("_kick2");
mySound.start();
Symbol 97 MovieClip [crazy] Frame 22
gotoAndStop (1);
Symbol 97 MovieClip [crazy] Frame 23
play();
Symbol 97 MovieClip [crazy] Frame 24
mySound.attachSound("_plyuet");
mySound.start();
Symbol 97 MovieClip [crazy] Frame 26
_root.attachMovie("slyuna", "slyuna" + _root.slyunaCounter, _root.getNextHighestDepth(), {_x:this._x, _y:this._y + 80});
if (this._name == "pers") {
eval ("_root.slyuna" + _root.slyunaCounter).swapDepths(_root.pers);
} else {
eval ("_root.slyuna" + _root.slyunaCounter).swapDepths(_root.comp);
}
eval ("_root.slyuna" + _root.slyunaCounter).hit = false;
eval ("_root.slyuna" + _root.slyunaCounter).whose = this._name;
eval ("_root.slyuna" + _root.slyunaCounter).onEnterFrame = function () {
if ((this.hitTest("_root.head") && (this.hit != true)) && (((_root.myTurn == true) && (this.whose == "pers")) || ((_root.myTurn == false) && (this.whose == "comp")))) {
this.hit = true;
this.gotoAndPlay("end");
_root.xspeed = -_root.xspeed;
_root.myTurn = !_root.myTurn;
if (this.whose == "pers") {
_root.rasschetTraektorii();
} else {
_root.rasschetTraektorii2();
}
}
if ((this.hitTest(_root.toporcomp) || (this.hitTest(_root.toporpers))) && (this.hit != true)) {
this.hit = true;
this.gotoAndPlay("end");
}
if (this.whose == "pers") {
this._x--;
} else {
this._x++;
}
if ((this._x > 550) || (this._x < 0)) {
this.swapDepths(99999);
this.removeMovieClip();
}
};
_root.slyunaCounter++;
Symbol 97 MovieClip [crazy] Frame 35
gotoAndStop (1);
Symbol 97 MovieClip [crazy] Frame 36
_root.razriv(this._x, this._y + 20, 30);
mySound.attachSound("_toporHit");
mySound.start();
Symbol 137 MovieClip [witch] Frame 1
_root.shot = false;
stop();
mySound = new Sound(this);
Symbol 137 MovieClip [witch] Frame 2
mySound.attachSound("_head2");
mySound.start();
Symbol 137 MovieClip [witch] Frame 10
gotoAndStop (1);
Symbol 137 MovieClip [witch] Frame 11
mySound.attachSound("_kick2");
mySound.start();
Symbol 137 MovieClip [witch] Frame 20
gotoAndStop (1);
Symbol 137 MovieClip [witch] Frame 21
play();
mySound.attachSound("_witch spell");
mySound.start();
Symbol 137 MovieClip [witch] Frame 26
_root.neberuchka = true;
Symbol 137 MovieClip [witch] Frame 36
gotoAndStop (1);
Symbol 137 MovieClip [witch] Frame 37
_root.razriv(this._x, this._y + 20, 30);
mySound.attachSound("_toporHit");
mySound.start();
Symbol 162 MovieClip [barb] Frame 1
_root.shot = false;
stop();
mySound = new Sound(this);
Symbol 162 MovieClip [barb] Frame 2
mySound.attachSound("_head2");
mySound.start();
Symbol 162 MovieClip [barb] Frame 10
gotoAndStop (1);
Symbol 162 MovieClip [barb] Frame 11
mySound.attachSound("_kick2");
mySound.start();
Symbol 162 MovieClip [barb] Frame 20
gotoAndStop (1);
Symbol 162 MovieClip [barb] Frame 21
play();
Symbol 162 MovieClip [barb] Frame 32
gotoAndStop (1);
Symbol 162 MovieClip [barb] Frame 33
_root.razriv(this._x, this._y + 20, 30);
mySound.attachSound("_hit");
mySound.start();
Symbol 192 MovieClip [powar] Frame 1
mySound = new Sound(this);
_root.shot = false;
stop();
Symbol 192 MovieClip [powar] Frame 2
mySound.attachSound("_head");
mySound.start();
Symbol 192 MovieClip [powar] Frame 11
gotoAndStop (1);
Symbol 192 MovieClip [powar] Frame 12
mySound.attachSound("_kick");
mySound.start();
Symbol 192 MovieClip [powar] Frame 21
gotoAndStop (1);
Symbol 192 MovieClip [powar] Frame 22
mySound.attachSound("_toporLetit");
mySound.start();
Symbol 192 MovieClip [powar] Frame 31
gotoAndStop (1);
Symbol 192 MovieClip [powar] Frame 32
_root.razriv(this._x, this._y + 20, 30);
mySound.attachSound("_hit");
mySound.start();
Symbol 203 MovieClip [slyuna] Frame 5
if (hit != true) {
gotoAndPlay (1);
}
Symbol 203 MovieClip [slyuna] Frame 11
this.swapDepths(99999);
this.removeMovieClip();
Symbol 218 Button
on (release) {
getURL ("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
}
Instance of Symbol 232 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
function __f_load(eventObj) {
this.cacheAsBitmap = true;
}
this.addEventListener("load", __f_load);
}
Symbol 239 MovieClip Frame 1
stop();
Symbol 264 Button
on (release) {
tournament = false;
_root.gotoAndPlay("deathMatch");
}
Symbol 267 Button
on (release) {
_root.instruction._visible = true;
}
Symbol 271 Button
on (release) {
tournament = true;
_root.gotoAndPlay("tournMenu");
}
Symbol 303 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 1
stop();
Instance of Symbol 322 MovieClip in Symbol 323 MovieClip Frame 2
on (release) {
getURL ("http://flashart.com.ua", "_blank");
}
Symbol 331 Button
on (release) {
_root.instruction._visible = false;
}
Symbol 352 Button
on (release) {
if (_root.player1 != undefined) {
_root.gotoAndPlay("newGame");
}
}
Symbol 358 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 381 Button
on (release) {
if ((_root.player1 != undefined) && (player2 != undefined)) {
_root.gotoAndPlay("startGame");
}
}
Symbol 412 Button
on (release) {
if (_root.player1 != undefined) {
_root.gotoAndPlay("tournament");
}
}
Symbol 419 MovieClip Frame 1
stop();
_root.difficulcy = "hard";
Symbol 419 MovieClip Frame 2
_root.difficulcy = "easy";
Symbol 428 Button
on (release) {
gotoAndPlay ("gameOver");
}
Symbol 433 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 74
_root.init();
Symbol 433 MovieClip Frame 100
stop();
Symbol 440 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 453 Button
on (release) {
removeall();
gotoAndPlay ("newGame");
}
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 2
play();
Symbol 461 MovieClip Frame 39
_root.luts.gotoAndPlay(2);
Symbol 461 MovieClip Frame 59
gotoAndStop (1);
Symbol 461 MovieClip Frame 125
_root.luts.gotoAndPlay(2);
Symbol 471 Button
on (release) {
_root.player1 = undefined;
_root.player2 = undefined;
_root.gotoAndPlay("newGame");
}
Symbol 472 MovieClip Frame 1
stop();
Instance of Symbol 372 MovieClip in Symbol 472 MovieClip Frame 2
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "powar";
}
on (rollOver) {
_root.msg = "This one throws his hatchet to stop the enemy for a second and to beat back the skull";
}
Instance of Symbol 375 MovieClip in Symbol 472 MovieClip Frame 3
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "witch";
}
on (rollOver) {
_root.msg = "The witch can beat back the skull remotely";
}
Instance of Symbol 369 MovieClip in Symbol 472 MovieClip Frame 4
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "crazy";
}
on (rollOver) {
_root.msg = "His spit can beat back the skull";
}
Instance of Symbol 373 MovieClip in Symbol 472 MovieClip Frame 5
on (release) {
_root.unSelectAll1();
this.gotoAndStop(2);
_root.chosen2 = true;
_root.player1 = "zombie";
}
on (rollOver) {
_root.msg = "Zombie can retrieve the skull using lunges (up and down)";
}
Symbol 487 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 59
stop();
Symbol 487 MovieClip Frame 118
stop();
Symbol 487 MovieClip Frame 177
stop();
Symbol 487 MovieClip Frame 236
stop();
Symbol 488 Button
on (release) {
delete this.onEnterFrame;
gotoAndPlay ("startGame");
}
Symbol 494 Button
on (release) {
_root.player1 = undefined;
_root.player2 = undefined;
_root.level = 1;
_root.persScore = 0;
_root.gotoAndPlay("newGame");
}