Frame 1
stop();
Instance of Symbol 6 MovieClip in Frame 1
onClipEvent (load) {
tot = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = (loaded / tot) * 100;
text = Math.floor(percent);
text = text + "%";
if (loaded == tot) {
_root.gotoAndStop(2);
}
}
Frame 2
stop();
bobrs = 2;
score = 0;
Instance of Symbol 5 MovieClip "ship1" in Frame 2
onClipEvent (enterFrame) {
if (_root.land.hitTest(this._x, this._y, true)) {
tellTarget ("../") {
gotoAndPlay ("explode");
};
}
}
Frame 3
if (bobrs % 3) {
setProperty("bridge", _visible , false);
}
if (bobrs > 2) {
tellTarget ("land") {
gotoAndStop (2);
};
}
if (bobrs > 3) {
tellTarget ("land") {
gotoAndStop (3);
};
}
if (bobrs > 4) {
tellTarget ("land") {
gotoAndStop (4);
};
}
if (bobrs > 5) {
tellTarget ("land") {
gotoAndStop (5);
};
}
if (bobrs > 6) {
tellTarget ("land") {
gotoAndStop (6);
};
}
if (bobrs > 7) {
tellTarget ("land") {
gotoAndStop (1);
};
}
if (bobrs > 8) {
tellTarget ("land") {
gotoAndStop (2);
};
}
if (bobrs > 9) {
tellTarget ("land") {
gotoAndStop (3);
};
}
if (bobrs > 10) {
tellTarget ("land") {
gotoAndStop (4);
};
}
if (bobrs > 11) {
tellTarget ("land") {
gotoAndStop (5);
};
}
if (bobrs > 12) {
tellTarget ("land") {
gotoAndStop (6);
};
}
if (psw == "habasi") {
bobrs = 3;
score = 70;
tellTarget ("land") {
gotoAndStop (2);
};
}
if (psw == "bober") {
bobrs = 4;
score = 160;
tellTarget ("land") {
gotoAndStop (3);
};
}
if (psw == "zaec") {
bobrs = 6;
score = 320;
tellTarget ("land") {
gotoAndStop (5);
};
}
if (psw == "rost") {
bobrs = 8;
score = 480;
tellTarget ("land") {
gotoAndStop (1);
};
}
if (psw == "dedmorost") {
bobrs = 10;
score = 640;
tellTarget ("land") {
gotoAndStop (3);
};
}
if (psw == "sukamazay") {
bobrs = 12;
score = 780;
tellTarget ("land") {
gotoAndStop (5);
};
}
i = 600;
while (i < (600 + bobrs)) {
duplicateMovieClip ("bobr", "bobr" + i, i);
x = random(600) + 50;
y = random(400) + 50;
name = "bobr" + i;
rt = random(360);
setProperty(name, _x , x);
setProperty(name, _y , y);
setProperty(name, _rotation , rt);
i++;
}
i = 700;
while (i < 710) {
duplicateMovieClip ("zaec", "zaec" + i, i);
x = random(700);
y = random(480);
name = "zaec" + i;
ro = random(360);
setProperty(name, _rotation , ro);
setProperty(name, _x , x);
setProperty(name, _y , y);
if (!animals) {
animals = 0;
}
_root.animals++;
_root.totalanimals = 10;
i++;
}
_root.time0 = getTimer();
ship1._rotation = 90;
Instance of Symbol 60 MovieClip "land" in Frame 3
/* no clip actions */
Instance of Symbol 39 MovieClip "finish" in Frame 3
onClipEvent (enterFrame) {
if (_root.ship1.hitTest(this._x, this._y, false)) {
if (_root.animals < 1) {
_root.finita = true;
tellTarget ("../") {
gotoAndPlay ("victory");
};
}
}
}
Instance of Symbol 5 MovieClip "ship1" in Frame 3
onClipEvent (enterFrame) {
if (_root.land.hitTest(this._x, this._y, true)) {
tellTarget ("../") {
gotoAndPlay ("explode");
};
}
}
Instance of Symbol 69 MovieClip "bobr" in Frame 3
onClipEvent (enterFrame) {
if (_root.finita) {
removeMovieClip(this);
}
if (_root.ship1.hitTest(this._x, this._y, false)) {
tellTarget ("../") {
gotoAndPlay ("bobr");
};
}
if (this._y < 30) {
this._y = this._y + 5;
this._rotation = this._rotation + 180;
}
if (this._y > 570) {
this._y = this._y - 5;
this._rotation = this._rotation + 180;
}
if (this._x < 30) {
this._x = this._x + 5;
this._rotation = this._rotation + 180;
}
if (this._x > 770) {
this._x = this._x - 5;
this._rotation = this._rotation + 180;
}
}
Instance of Symbol 33 MovieClip "zaec" in Frame 3
onClipEvent (enterFrame) {
if (_root.land.hitTest(this._x, this._y, true)) {
removeMovieClip(this);
_root.animals--;
_root.totalanimals--;
}
if (_root.ship1.hitTest(this)) {
removeMovieClip(this);
score = score + 10;
_root.animals--;
}
if (_root.finita) {
removeMovieClip(this);
}
}
Frame 4
stop();
ship1.onEnterFrame = function () {
_root.time1 = getTimer();
_root.time = (_root.time1 - _root.time0) / 1000;
_root.time = Math.round(_root.time);
if (speed > 0.5) {
if (i > 160) {
i = 1;
}
i++;
newname = "bubble" + i;
duplicateMovieClip ("bubble", newname, i);
tellTarget (newname) {
_x = ((_root.ship1._x - 3) + random(6));
_y = (_root.ship1._y - random(4));
_rotation = (_root.ship1._rotation - 90);
};
}
if (ship1._y < 20) {
ship1._y = 20;
}
if (ship1._y > 580) {
ship1._y = 580;
}
if (ship1._x < 20) {
ship1._x = 20;
}
if (ship1._x > 780) {
ship1._x = 780;
}
if (speed > 0) {
speed = speed - 0.02;
}
_root.angle = ship1._rotation;
sinus = Math.sin((angle * Math.PI) / 180);
cosinus = Math.cos((angle * Math.PI) / 180);
ship1._y = ship1._y - (speed * sinus);
ship1._x = ship1._x - (speed * cosinus);
spd = Math.round(speed * 16);
with (ship1) {
if (Key.isDown(39)) {
if (speed > 0) {
ship1._rotation = ship1._rotation + 3;
}
}
if (Key.isDown(37)) {
if (speed > 0) {
ship1._rotation = ship1._rotation - 3;
}
}
if (Key.isDown(38)) {
gotoAndPlay(2);
if (!speed) {
speed = 1;
} else {
speed = speed + 0.06;
}
}
if (Key.isDown(40)) {
if (speed > 0) {
speed = speed - 0.03;
}
}
}
};
Frame 5
_root.finita = true;
bobrs = 1;
finalscore = score;
pass = 0;
Frame 88
stop();
Frame 89
_root.finita = true;
finalscore = score;
score = 0;
bobrs = 1;
stop();
Frame 90
if (bobrs > 1) {
psw = "habasi";
}
if (bobrs > 3) {
psw = "bober";
}
if (bobrs > 5) {
psw = "zaec";
}
if (bobrs > 7) {
psw = "rost";
}
if (bobrs > 9) {
psw = "dedmorost";
}
if (bobrs > 11) {
psw = "sukamazay";
}
stop();
Frame 91
bobrs++;
gotoAndPlay (3);
Symbol 5 MovieClip Frame 1
stop();
Symbol 15 Button
on (press) {
gotoAndPlay (3);
}
Symbol 44 Button
on (press) {
getURL ("http://www.maplandia.net?ara=br", "_new");
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
stop();
Symbol 60 MovieClip Frame 3
stop();
Symbol 60 MovieClip Frame 4
stop();
Symbol 60 MovieClip Frame 5
stop();
Symbol 60 MovieClip Frame 6
stop();
Symbol 61 MovieClip Frame 60
removeMovieClip(this);
removeMovieClip(this);
Symbol 69 MovieClip Frame 1
setProperty(_root.bobr, _x , -108);
if ((Math.abs(this._x - _root.ship1._x) < 120) and (Math.abs(this._y - _root.ship1._y) < 120)) {
go = 2;
dx = _root.ship1._x - this._x;
dy = _root.ship1._y - this._y;
alpha = 57.2957795130823 * Math.atan2(dy, dx);
} else {
go = 1;
d_alpha = 0;
rnd = random(4);
if (rnd == 0) {
d_alpha = (random(3) - 1) * 5;
}
alpha = this._rotation + d_alpha;
}
this._rotation = alpha;
si = Math.sin((alpha * Math.PI) / 180);
co = Math.cos((alpha * Math.PI) / 180);
this._y = this._y + (go * si);
this._x = this._x + (go * co);
Symbol 88 Button
on (press) {
psw = "password";
_root.finita = false;
_root.speed = 0;
_root.animals = "qwerty";
_root.totalanimals = "qwerty";
gotoAndStop (2);
}
Symbol 98 Button
on (press) {
psw = "password";
_root.finita = false;
_root.speed = 0;
_root.animals = "qwerty";
_root.totalanimals = "qwerty";
gotoAndPlay ("final");
}