Frame 1
play();
Frame 7
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percent = (loaded / total) * 100;
loader._width = percent;
Frame 8
if (percent < 99) {
gotoAndPlay (6);
}
Frame 74
secondSound = new Sound();
secondSound.stop();
Frame 142
oceanSound = new Sound();
oceanSound.attachSound("ocean");
oceanSound.start(0, 500);
gullSound = new Sound();
gullSound.attachSound("gullcall");
goopSound = new Sound();
goopSound.attachSound("goop");
Frame 146
stop();
Frame 147
score = 0;
shots = 50;
stop();
Frame 148
stop();
Symbol 36 Button
on (release) {
gotoAndPlay ("gameStart");
_root.gullSound.start(0, 0);
}
Symbol 51 MovieClip Frame 1
dy = _parent.landMove;
land1._y = land1._y + dy;
land2._y = land2._y + dy;
if (land1._y > 590) {
land1._y = land2._y - 746;
}
if (land2._y > 590) {
land2._y = land1._y - 746;
}
Symbol 72 MovieClip Frame 1
hittable = 1;
enemyType = "muscles_white";
counter = 2 / _parent.level;
Math.round(counter);
hrrgSound = new Sound();
hrrgSound.attachSound("hrrg");
Symbol 72 MovieClip Frame 2
if (replicant == 1) {
hrrgSound.start(0, 0);
}
Symbol 72 MovieClip Frame 11
counter--;
if (counter <= 0) {
if (replicant == 1) {
_parent.fireHostile(enemyType, this._x, this._y);
}
}
Symbol 72 MovieClip Frame 33
if (counter > 0) {
gotoAndPlay ("repeat");
} else {
gotoAndPlay (1);
}
Symbol 72 MovieClip Frame 34
hittable = 0;
_root.score = _root.score + 50;
Symbol 72 MovieClip Frame 53
removeMovieClip(this);
Symbol 87 MovieClip Frame 1
hittable = 1;
enemyType = "muscles_black";
counter = 3 / _parent.level;
Math.round(counter);
hrrgSound = new Sound();
hrrgSound.attachSound("hrrg");
Symbol 87 MovieClip Frame 2
if (replicant == 1) {
hrrgSound.start(0, 0);
}
Symbol 87 MovieClip Frame 5
counter--;
if (counter <= 0) {
if (replicant == 1) {
_parent.fireHostile(enemyType, this._x, this._y);
}
}
Symbol 87 MovieClip Frame 29
if (counter > 0) {
gotoAndPlay ("repeat");
} else {
gotoAndPlay (1);
}
Symbol 87 MovieClip Frame 30
hittable = 0;
_root.score = _root.score + 50;
Symbol 87 MovieClip Frame 50
removeMovieClip(this);
Symbol 96 MovieClip Frame 1
hittable = 1;
enemyType = "girl_on_blanket";
Symbol 96 MovieClip Frame 2
gotoAndPlay (1);
Symbol 96 MovieClip Frame 3
hittable = 0;
_root.score = _root.score + 25;
Symbol 96 MovieClip Frame 22
removeMovieClip(this);
Symbol 129 MovieClip Frame 1
hittable = 1;
enemyType = "slingshot_kid";
Symbol 129 MovieClip Frame 15
if (replicant == 1) {
_parent.fireHostile(enemyType, this._x, this._y);
}
twangSound = new Sound();
twangSound.attachSound("twang");
if (replicant == 1) {
twangSound.start(0, 0);
}
Symbol 129 MovieClip Frame 39
stretchSound = new Sound();
stretchSound.attachSound("stretch");
if (replicant == 1) {
stretchSound.start(0, 0);
}
Symbol 129 MovieClip Frame 45
gotoAndPlay (1);
Symbol 129 MovieClip Frame 46
hittable = 0;
_root.score = _root.score + 100;
Symbol 129 MovieClip Frame 64
removeMovieClip(this);
Symbol 152 MovieClip Frame 1
hittable = 1;
enemyType = "exploder_mine";
Symbol 152 MovieClip Frame 70
if (replicant == 1) {
_parent.fireHostile(enemyType, this._x, this._y);
}
if (replicant == 1) {
popSound = new Sound();
popSound.attachSound("pop");
popSound.start(0, 0);
}
Symbol 152 MovieClip Frame 124
gotoAndPlay (1);
Symbol 152 MovieClip Frame 125
hittable = 0;
_parent.fireHostile(enemyType, this._x, this._y);
_root.score = _root.score + 100;
Symbol 152 MovieClip Frame 128
_parent.fireHostile(enemyType, this._x, this._y);
Symbol 152 MovieClip Frame 146
removeMovieClip(this);
Symbol 164 MovieClip Frame 1
hittable = 1;
enemyType = "fat_floater";
whooshSound = new Sound();
whooshSound.attachSound("whoosh");
Symbol 164 MovieClip Frame 24
_parent.fireHostile(enemyType, this._x, this._y);
if (replicant == 1) {
whooshSound.start(0, 0);
}
Symbol 164 MovieClip Frame 52
_parent.fireHostile(enemyType, this._x, this._y);
if (replicant == 1) {
whooshSound.start(0, 0);
}
Symbol 164 MovieClip Frame 76
_parent.fireHostile(enemyType, this._x, this._y);
if (replicant == 1) {
whooshSound.start(0, 0);
}
Symbol 164 MovieClip Frame 99
_parent.fireHostile(enemyType, this._x, this._y);
if (replicant == 1) {
whooshSound.start(0, 0);
}
Symbol 164 MovieClip Frame 107
gotoAndPlay (1);
Symbol 164 MovieClip Frame 108
hittable = 0;
_root.score = _root.score + 75;
Symbol 164 MovieClip Frame 126
removeMovieClip(this);
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 11
stop();
Symbol 172 MovieClip Frame 22
stop();
Symbol 178 MovieClip Frame 1
if (_parent.gamepause == 0) {
_parent.shotMovement();
_parent.bonusMovement();
_parent.enemyMovement();
_parent.hostileMovement();
_parent.hostileCollision();
_parent.shotCollision();
_parent.bonusCollision();
}
if ((_root.score > 750) && (_parent.levelindicator == 1)) {
_parent.levelindicator = 2;
_parent.level = 2;
_parent._parent.level2.play();
}
if ((_root.score > 2000) && (_parent.levelindicator == 2)) {
_parent.levelindicator = 3;
_parent.level = 3;
_parent._parent.level3.play();
}
if ((_root.score > 3000) && (_parent.levelindicator == 3)) {
_parent.levelindicator = 4;
_parent.landMove = _parent.landMove + 3;
_parent._parent.level4.play();
}
if ((_root.score > 4000) && (_parent.levelindicator == 4)) {
_parent.levelindicator = 5;
_parent.level = 4;
_parent._parent.level5.play();
}
if ((_root.score > 5000) && (_parent.levelindicator == 5)) {
_parent.levelindicator = 6;
_parent.landMove = _parent.landMove + 5;
_parent._parent.level6.play();
}
Symbol 201 MovieClip Frame 1
bonusTill = 100;
Symbol 201 MovieClip Frame 10
bonusTill--;
if (bonusTill <= 0) {
_parent.disperseBonus();
gotoAndPlay ("A");
} else {
gotoAndPlay ("B");
}
Symbol 204 MovieClip Frame 1
timeTill = (20 / _parent.level) + random(10);
Symbol 204 MovieClip Frame 10
timeTill--;
if (timeTill <= 0) {
_parent.disperseEnemy();
gotoAndPlay ("A");
} else {
gotoAndPlay ("B");
}
Symbol 205 MovieClip Frame 1
function fireShot(x, y) {
duplicateMovieClip (shot, "shotmovie" + shotnum, shotnum + 1000);
shots.push("shotmovie" + shotnum);
this["shotmovie" + shotnum]._x = x + 32;
this["shotmovie" + shotnum]._y = y;
shotnum++;
}
function fireHostile(type, x, y) {
switch (type) {
case "slingshot_kid" :
i = 0;
while (i < 3) {
duplicateMovieClip (kid_shot, "hostile" + hostilenum, hostilenum + 5000);
hostiles.push("hostile" + hostilenum);
this["hostile" + hostilenum].moveType = String(i * 30);
this["hostile" + hostilenum]._x = x + 15;
this["hostile" + hostilenum]._y = y + 15;
hostilenum++;
i++;
}
break;
case "exploder_mine" :
i = 0;
while (i < 8) {
duplicateMovieClip (mine_shot, "hostile" + hostilenum, hostilenum + 5000);
hostiles.push("hostile" + hostilenum);
this["hostile" + hostilenum].moveType = String(i * 45);
this["hostile" + hostilenum]._x = x + 24;
this["hostile" + hostilenum]._y = y + 8;
hostileTotal++;
hostilenum++;
i++;
}
break;
case "muscles_black" :
duplicateMovieClip (dumbell_1, "hostile" + hostilenum, hostilenum + 5000);
hostiles.push("hostile" + hostilenum);
this["hostile" + hostilenum].moveType = String(0);
this["hostile" + hostilenum]._x = x + 6;
this["hostile" + hostilenum]._y = y + 30;
hostileTotal++;
hostilenum++;
break;
case "fat_floater" :
duplicateMovieClip (can, "hostile" + hostilenum, hostilenum + 5000);
hostiles.push("hostile" + hostilenum);
this["hostile" + hostilenum].moveType = String(0);
this["hostile" + hostilenum]._x = x + 10;
this["hostile" + hostilenum]._y = y - 5;
hostileTotal++;
hostilenum++;
break;
case "muscles_white" :
duplicateMovieClip (dumbell_2, "hostile" + hostilenum, hostilenum + 5000);
hostiles.push("hostile" + hostilenum);
this["hostile" + hostilenum].moveType = String(45);
this["hostile" + hostilenum]._x = x + 50;
this["hostile" + hostilenum]._y = y + 15;
hostileTotal++;
hostilenum++;
duplicateMovieClip (dumbell_2, "hostile" + hostilenum, hostilenum + 5000);
hostiles.push("hostile" + hostilenum);
this["hostile" + hostilenum].moveType = String(315);
this["hostile" + hostilenum]._x = x - 10;
this["hostile" + hostilenum]._y = y + 15;
hostileTotal++;
hostilenum++;
}
}
function disperseBonus() {
newBonusX = random(180);
duplicateMovieClip (garbage, "bonus" + bonusnum, bonusnum + 1000);
bonuses.push("bonus" + bonusnum);
this["bonus" + bonusnum]._x = newBonusX;
this["bonus" + bonusnum]._y = -30;
bonusnum++;
}
function disperseEnemy() {
newEnemyX = random(340);
if (newEnemyX < 180) {
whichone = random(4);
switch (whichone) {
case 0 :
duplicateMovieClip (muscles_black, "enemy" + enemyID, enemyID);
break;
case 1 :
duplicateMovieClip (muscles_white, "enemy" + enemyID, enemyID);
break;
case 2 :
duplicateMovieClip (slingshot_kid, "enemy" + enemyID, enemyID);
break;
case 3 :
duplicateMovieClip (girl_on_blanket, "enemy" + enemyID, enemyID);
}
} else {
whichone = random(2);
switch (whichone) {
case 0 :
duplicateMovieClip (fat_floater, "enemy" + enemyID, enemyID);
break;
case 1 :
duplicateMovieClip (exploder_mine, "enemy" + enemyID, enemyID);
}
}
this["enemy" + enemyID].replicant = 1;
this["enemy" + enemyID]._y = -50;
this["enemy" + enemyID]._x = newEnemyX;
enemies.push("enemy" + enemyID);
enemyID++;
}
function enemyMovement() {
i = enemies.length - 1;
while (i >= 0) {
this[enemies[i]]._y = this[enemies[i]]._y + landMove;
if (this[enemies[i]]._y > 595) {
removeMovieClip(this[enemies[i]]);
enemies.splice(i, 1);
enemytotal--;
}
i--;
}
}
function bonusMovement() {
i = bonuses.length;
while (i >= 0) {
this[bonuses[i]]._y = this[bonuses[i]]._y + landMove;
if (this[bonuses[i]]._y > 595) {
removeMovieClip(this[bonuses[i]]);
bonuses.splice(i, 1);
}
i--;
}
}
function shotMovement() {
i = shots.length - 1;
gullhit = 0;
while (i >= 0) {
this[shots[i]]._y = this[shots[i]]._y - 20;
if (this[shots[i]]._y < -10) {
removeMovieClip(this[shots[i]]);
shots.splice(i, 1);
}
i--;
}
}
function hostileMovement() {
arrayLength = hostiles.length;
i = arrayLength - 1;
while (i >= 0) {
clip = this[hostiles[i]];
moveType = clip.moveType;
angle = (Number(moveType) * 3.14) / 180;
if (moveType == "180") {
clip._x = clip._x + (12 * Math.sin(angle));
} else {
clip._x = clip._x + (10 * Math.sin(angle));
}
clip._y = (clip._y + (10 * Math.cos(angle))) + landMove;
if ((((clip._x > 380) || (clip._x < 0)) || (clip._y < -10)) || (clip._y > 595)) {
removeMovieClip(clip);
hostiles.splice(i, 1);
}
i--;
}
}
function shotCollision() {
i = enemies.length - 1;
while (i >= 0) {
if (this[enemies[i]].hittable == 1) {
j = shots.length - 1;
while (j >= 0) {
if (this[shots[j]].hitTest(this[enemies[i]]) == 1) {
this[enemies[i]].gotoAndPlay("splat");
removeMovieClip(this[shots[j]]);
shots.splice(j, 1);
enemies.splice(i, 1);
}
j--;
}
}
i--;
}
}
function hostileCollision() {
i = hostiles.length - 1;
while (i >= 0) {
gullhit = this[hostiles[i]].hitTest(gull);
if (gullhit == 1) {
removeMovieClip(this[hostiles[i]]);
hostiles.splice(i, 1);
killbird();
_root.bird.gotoAndPlay("fall");
}
i--;
}
}
function bonusCollision() {
i = bonuses.length - 1;
while (i >= 0) {
gullhit = this[bonuses[i]].hitTest(gull);
if (gullhit == 1) {
chompSound = new Sound();
chompSound.attachSound("chomp");
chompSound.start(0, 0);
removeMovieClip(this[bonuses[i]]);
bonuses.splice(i, 1);
if (_root.shots < 42) {
_root.shots = _root.shots + 8;
} else if (_root.shots >= 45) {
_root.shots = 50;
}
}
i--;
}
}
function pausegame() {
if (gamepause == 0) {
gamepause = 1;
_root.pausemovie.gotoAndStop("show");
disperse.stop();
land.stop();
i = enemies.length - 1;
while (i >= 0) {
this[enemies[i]].stop();
i--;
}
} else if (gamepause == 1) {
gamepause = 0;
_root.pausemovie.gotoAndStop("hide");
disperse.play();
land.play();
i = enemies.length;
while (i >= 0) {
this[enemies[i]].play();
i--;
}
}
}
function killbird() {
gamepause = 1;
disperse.stop();
land.stop();
_root.lives.play();
i = enemies.length - 1;
while (i >= 0) {
this["enemy" + i].stop();
i--;
}
lives--;
}
function reset() {
i = hostiles.length - 1;
while (i >= 0) {
removeMovieClip(this[hostiles[i]]);
hostiles.splice(i, 1);
i--;
}
i = shots.length - 1;
while (i >= 0) {
removeMovieClip(this[shots[i]]);
shots.splice(i, 1);
i--;
}
i = enemies.length - 1;
while (i >= 0) {
removeMovieClip(this[enemies[i]]);
enemies.splice(i, 1);
i--;
}
hostileTotal = 0;
hostilenum = 0;
enemytotal = 0;
enemyID = 0;
shots = new Array();
enemies = new Array();
hostiles = new Array();
_root.bird._x = 191.1;
_root.bird._y = 500.4;
_root.bird.gotoAndStop(1);
gull._x = 178.4;
gull._y = 483.5;
gamepause = 0;
disperse.play();
land.play();
}
landMove = 5;
level = 1;
levelindicator = 1;
lives = 3;
shotnum = 0;
hostileTotal = 0;
hostilenum = 0;
bonusnum = 0;
enemytotal = 0;
enemyID = 0;
gamepause = 0;
shots = new Array();
enemies = new Array();
hostiles = new Array();
bonuses = new Array();
Instance of Symbol 172 MovieClip "gull" in Symbol 205 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.gamepause == 0) {
if (!Key.isDown()) {
_root.bird.gotoAndStop("straight");
gotoAndStop ("straight");
}
if (Key.isDown(39) && (_x < 300)) {
_x = (_x + 10);
gotoAndStop ("right");
_root.bird._x = _root.bird._x + 10;
_root.bird.gotoAndStop("right");
}
if (Key.isDown(37) && (_x > 0)) {
_x = (_x - 10);
gotoAndStop ("left");
_root.bird._x = _root.bird._x - 10;
_root.bird.gotoAndStop("left");
}
if (Key.isDown(38) && (_y > 0)) {
_y = (_y - 10);
_root.bird._y = _root.bird._y - 10;
}
if (Key.isDown(40) && (_y < 550)) {
_y = (_y + 10);
_root.bird._y = _root.bird._y + 10;
}
}
}
onClipEvent (keyDown) {
if (_parent.gamepause == 0) {
if (Key.isDown(32)) {
_root.goopSound.start(0, 0);
if (_root.shots > 0) {
destx = _x;
desty = _y;
_root.shots--;
_parent.fireShot(destx, desty);
}
}
if (Key.isDown(16)) {
_parent.disperseEnemy();
}
}
if (Key.isDown(80)) {
_parent.pausegame();
}
}
Symbol 205 MovieClip Frame 2
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 65
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 65
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 65
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 65
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 65
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 11
stop();
Symbol 228 MovieClip Frame 22
stop();
Symbol 228 MovieClip Frame 58
if (_root.game.lives == 0) {
_root.gotoAndStop("gameOver");
} else {
_root.game.reset();
}
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 10
stop();
Symbol 238 MovieClip Frame 65
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 10
stop();
Symbol 251 MovieClip Frame 20
stop();
Symbol 251 MovieClip Frame 29
stop();
Symbol 260 Button
on (release) {
gotoAndPlay ("gameStart");
}