Frame 1
hq = 1;
_quality = "BEST";
play();
Frame 2
stop();
Frame 3
play();
Frame 4
ifFrameLoaded (14) {
gotoAndPlay ("inszoom");
}
Frame 5
gotoAndPlay ("loop1");
Frame 9
play();
Frame 14
play();
Frame 15
ifFrameLoaded (30) {
gotoAndStop ("menu");
}
Frame 16
prevFrame();
Frame 19
stop();
_quality = "BEST";
Frame 30
function baa(num, pan) {
eval ("sheepfx" + num).setPan(pan);
eval ("sheepfx" + num).start();
}
function grr(pan) {
dogfx.setPan(pan);
dogfx.start();
grrOK = 0;
}
hq = 1;
sheepTotal = 6;
boom = new Array(0, 0, 0, 0, 0, 0, 0);
sheepRate = new Array(0, 30, 35, 45, 60, 80, 105);
sheepBound = 15;
dogAge = 15;
dogRate = 150;
i = 1;
while (sheepTotal >= i) {
duplicateMovieClip ("sheep", "sheep" + i, i + 10);
eval ("sheep" + i)._x = 230 + random(90);
eval ("sheep" + i)._y = 150 + random(90);
eval ("sheep" + i).gotoAndPlay(1);
fxnum = 1 + random(4);
Set("sheepfx" + i, new Sound("sheep" + i));
eval ("sheepfx" + i).attachSound("sheepfx" + fxnum);
eval ("sheepfx" + i).setVolume(40 + random(20));
i++;
}
dogfx = new Sound("dog");
dogfx.attachSound("dogfx");
sheep._x = 10000;
sheepPocket = 1;
gameover = 0;
nuke = 0;
dogalive = 1;
dog._x = 100;
dog._y = 100;
dog.gotoAndPlay(1);
score = 2000;
grrOK = 1;
play();
Frame 33
if (grrOK < 1) {
grrOK = grrOK + 0.1;
}
if (((gameover == 0) and (nuke == 0)) and (0 < score)) {
play();
} else {
score = 0;
gotoAndPlay ("nuke");
}
Frame 34
if (sheepPocket == 7) {
gotoAndPlay ("gamewin");
} else {
i = 1;
while (sheepTotal >= i) {
pocketTest = eval ("pocket" + i);
if (dog.hitTest(pocketTest)) {
gameover = 1;
dogalive = 0;
}
i++;
}
score--;
prevFrame();
}
Frame 36
play();
Frame 37
if (sheepPocket < 7) {
if (boom[sheepPocket] == 0) {
if (eval ("sheep" + sheepPocket).alive == 1) {
boom[sheepPocket] = 1;
} else {
sheepPocket++;
}
}
prevFrame();
} else {
gotoAndStop ("gameover");
}
Frame 39
_quality = "HIGH";
stop();
Frame 44
_quality = "HIGH";
stop();
Frame 47
stop();
Symbol 15 MovieClip Frame 95
_root.play();
Symbol 33 MovieClip Frame 1
play();
Symbol 33 MovieClip Frame 7
gotoAndPlay (1);
Symbol 42 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 45 Button
on (release) {
getURL ("http://www.freeworldgroup.com", "_blank");
}
Symbol 48 Button
on (release) {
getURL ("http://www.ifungames.com", "_blank");
}
Symbol 51 Button
on (release) {
getURL ("http://www.freeworldgroup.com/verti2.htm", "_blank");
}
Symbol 56 Button
on (release) {
gotoAndStop (30);
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 40
stop();
Symbol 75 MovieClip Frame 45
play();
Symbol 75 MovieClip Frame 54
_parent._parent.sheepPocket++;
stop();
Symbol 77 MovieClip Frame 1
sheepNum = Number(substring(this._name, length(this._name), 1));
sheepNumText = sheepNum;
sheepTotal = _parent.sheepTotal;
sheepRate = _parent.sheepRate[sheepNum];
dogRate = _parent.dogRate;
sheepBound = _parent.sheepBound;
alive = 1;
anim.gotoAndPlay(1);
play();
Symbol 77 MovieClip Frame 2
if (_parent.boom[sheepNum] == 1) {
anim.gotoAndPlay("boom");
gotoAndStop ("boom");
} else {
if (alive == 1) {
i = 1;
while (sheepTotal >= i) {
pocketTest = eval ("_parent.pocket" + i);
if (i == sheepNum) {
if (hitTest(pocketTest)) {
if (sheepNum == _parent.sheepPocket) {
_parent.sheepPocket++;
} else {
_parent.gameover = 1;
}
alive = 0;
anim.gotoAndStop("dead");
sheepNumText = "";
}
} else if (hitTest(pocketTest)) {
alive = 0;
anim.gotoAndStop("dead");
sheepNumText = "";
_parent.gameover = 1;
}
i++;
}
if (random(50) == 0) {
pan = int((sheepX - 275) / 2.3);
_parent.baa(sheepNum, pan);
}
}
play();
}
Symbol 77 MovieClip Frame 3
sheepX = this._x;
sheepY = this._y;
dogX = _parent.dog._x;
dogY = _parent.dog._y;
dogXvector = sheepX - dogX;
dogYvector = sheepY - dogY;
dogDistance = (dogXvector * dogXvector) + (dogYvector * dogYvector);
if (40000 < dogDistance) {
dogDistance = dogDistance * 5;
}
if ((dogDistance < 250) and (_parent.grrOK >= 1)) {
pan = int((dogX - 275) / 2.5);
_parent.grr(pan);
}
sheepDistance = 100000000 /* 0x5F5E100 */;
sheepXvectorTotal = 0;
sheepYvectorTotal = 0;
sheepDistanceTotal = 0;
i = 1;
while (sheepTotal >= i) {
if (i != sheepNum) {
sheepTest = eval ("_parent.sheep" + i);
sXv = sheepTest._x - sheepX;
sYv = sheepTest._y - sheepY;
if ((Math.abs(sXv) < sheepBound) and (Math.abs(sYv) < sheepBound)) {
sXv = 0;
sYv = 0;
}
sD = (sXv * sXv) + (sYv * sYv);
sheepXvectorTotal = sheepXvectorTotal + sXv;
sheepYvectorTotal = sheepYvectorTotal + sYv;
sheepDistanceTotal = sheepDistanceTotal + sD;
if (sD < sheepDistance) {
sheepXvector = sXv;
sheepYvector = sYv;
sheepDistance = sD;
}
}
i++;
}
sheepXvectorAverage = sheepXvectorTotal / (sheepTotal - 1);
sheepYvectorAverage = sheepYvectorTotal / (sheepTotal - 1);
sheepDistanceAverage = sheepDistanceTotal / (sheepTotal - 1);
sheepDistanceAverage = 11000 - sheepDistanceAverage;
if (sheepDistanceAverage < 2000) {
sheepDistanceAverage = 2000;
} else if (10000 < sheepDistanceAverage) {
sheepXvectorAverage = 0;
sheepYvectorAverage = 0;
sheepDistanceAverage = 10000;
}
sheepXfactor = (sheepXvectorAverage / sheepDistanceAverage) * sheepRate;
sheepYfactor = (sheepYvectorAverage / sheepDistanceAverage) * sheepRate;
dogXfactor = (dogXvector / dogDistance) * dogRate;
dogYfactor = (dogYvector / dogDistance) * dogRate;
if (dogDistance < sheepDistanceAverage) {
sheepXfactor = sheepXfactor / 2;
sheepYfactor = sheepYfactor / 2;
}
Xvector = dogXfactor + sheepXfactor;
Yvector = dogYfactor + sheepYfactor;
if ((50 < (sheepX + Xvector)) and ((sheepX + Xvector) < 500)) {
this._x = sheepX + Xvector;
}
if ((50 < (sheepY + Yvector)) and ((sheepY + Yvector) < 350)) {
this._y = sheepY + Yvector;
}
if (alive == 1) {
dX = Xvector;
dY = Yvector;
if (dX == 0) {
dX = 1;
}
angle = Math.abs(dY / dX);
if ((0 < dX) and (0 >= dY)) {
if (angle < 0.4) {
rotNum = 3;
} else if (2.4 < angle) {
rotNum = 1;
} else {
rotNum = 2;
}
} else if ((0 < dX) and (0 < dY)) {
if (angle < 0.4) {
rotNum = 3;
} else if (2.4 < angle) {
rotNum = 5;
} else {
rotNum = 4;
}
} else if ((dX < 0) and (0 < dY)) {
if (angle < 0.4) {
rotNum = 7;
} else if (2.4 < angle) {
rotNum = 5;
} else {
rotNum = 6;
}
} else if ((dX < 0) and (0 >= dY)) {
if (angle < 0.4) {
rotNum = 7;
} else if (2.4 < angle) {
rotNum = 1;
} else {
rotNum = 8;
}
}
anim.gotoAndStop("rot" + rotNum);
}
prevFrame();
Symbol 77 MovieClip Frame 5
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 40
stop();
Symbol 89 MovieClip Frame 1
a = _parent.dogAge;
b = 1.8;
xPos = this._x;
yPos = this._y;
dX = 0;
dY = 0;
play();
Symbol 89 MovieClip Frame 2
if (_parent.dogalive == 1) {
play();
} else {
anim.gotoAndStop("dead");
gotoAndStop ("dead");
}
Symbol 89 MovieClip Frame 3
dX = (dX + (((_parent._xmouse - xPos) * 1) / a)) / b;
dY = (dY + (((_parent._ymouse - yPos) * 1) / a)) / b;
xPos = xPos + dX;
yPos = yPos + dY;
this._x = xPos;
this._y = yPos;
if (dX == 0) {
dX = 1;
}
angle = Math.abs(dY / dX);
if ((0 < dX) and (0 >= dY)) {
if (angle < 0.4) {
rotNum = 3;
} else if (2.4 < angle) {
rotNum = 1;
} else {
rotNum = 2;
}
} else if ((0 < dX) and (0 < dY)) {
if (angle < 0.4) {
rotNum = 3;
} else if (2.4 < angle) {
rotNum = 5;
} else {
rotNum = 4;
}
} else if ((dX < 0) and (0 < dY)) {
if (angle < 0.4) {
rotNum = 7;
} else if (2.4 < angle) {
rotNum = 5;
} else {
rotNum = 6;
}
} else if ((dX < 0) and (0 >= dY)) {
if (angle < 0.4) {
rotNum = 7;
} else if (2.4 < angle) {
rotNum = 1;
} else {
rotNum = 8;
}
}
anim.gotoAndStop("rot" + rotNum);
prevFrame();
Symbol 89 MovieClip Frame 5
stop();
Symbol 96 Button
on (keyPress "<Space>") {
nuke = 1;
}
on (keyPress "q") {
if (hq == 0) {
hq = 1;
_quality = "HIGH";
} else {
hq = 0;
_quality = "LOW";
}
}
on (keyPress "Q") {
if (hq == 0) {
hq = 1;
_quality = "HIGH";
} else {
hq = 0;
_quality = "LOW";
}
}
Symbol 98 Button
on (release) {
gotoAndStop ("menu");
}