Frame 1
function cTimer() {
this.startTime = getTimer();
}
cTimer.prototype.restartTimer = function () {
this.startTime = getTimer();
};
cTimer.prototype.milliseconds = function () {
return(getTimer() - this.startTime);
};
cTimer.prototype.seconds = function () {
return(int((getTimer() - this.startTime) / 1000));
};
iZombieSpawnTimer = new cTimer();
iCollisionTimer = new cTimer();
iSpawnFrequencyTimer = new cTimer();
iBatSpawnTimer = new cTimer();
iStunnedTimer = new cTimer();
iLevelPauseTimer = new cTimer();
iHowlTimer = new cTimer();
function cCharacter(clip, x, y, x_vel, y_vel, x_max, x_min, y_max, y_min) {
this.pClip = clip;
this.pX = x;
this.pY = y;
this.pXVel = x_vel;
this.pYVel = y_vel;
this.pXMax = x_max;
this.pXMin = x_min;
this.pYMax = y_max;
this.pYMin = y_min;
this.pLastDirection = "Left";
this.pAlive = true;
this.pLives = 9;
this.pJumping = false;
this.pDucking = false;
this.pStunned = false;
}
function mKeyStroke() {
var i;
var key_down = -1;
if (400 < (getTimer() - _root.gCrTimer)) {
i = 1;
while (i < 91) {
if (Key.isDown(i)) {
key_down = i;
}
i++;
}
if (key_down >= 65) {
_root.gCrCheck = (_root.gCrCheck + key_down) + ":";
_root.gCrTimer = getTimer();
if (_root.gCrCheck == "67:82:69:68:73:84:83:") {
_root.mCr();
}
} else if ((key_down == 13) || (key_down == 32)) {
_root.gCrCheck = "";
_root.gCrTimer = getTimer();
}
}
}
function mCr() {
_root.CR.duplicateMovieClip("CR_1", 1000);
_root.CR_1._x = 250;
_root.CR_1._y = 187.5;
_root.CR_1._xscale = 100;
_root.CR_1._yscale = 100;
_root.gCRt = _root.gCRtemp;
_root.CR_1.gotoAndPlay("Show");
}
cCharacter.prototype.mDestructor = function () {
};
cCharacter.prototype.mSetXVelocity = function (x_vel) {
this.pXVel = x_vel;
};
cCharacter.prototype.mSetYVelocity = function (y_vel) {
if (this.pY == 0) {
this.pYVel = y_vel;
}
};
cCharacter.prototype.mForceYVelocity = function (y_vel) {
this.pYVel = y_vel;
};
cCharacter.prototype.mReset = function () {
this.pAlive = true;
this.pJumping = false;
this.pDucking = false;
this.pStunned = false;
this.pXVel = 0;
this.pYVel = 0;
this.mStop();
};
cCharacter.prototype.mZapped = function () {
if (this.pLives < 2) {
this.pAlive = false;
_root.screamSound.start();
} else {
_root.aGhosts[_root.gNextGhost].mPlay(10 - this.pLives);
this.pLives = this.pLives - 1;
_root.gNextGhost = _root.gNextGhost + 1;
if (_root.gGhostCount < _root.gNextGhost) {
_root.gNextGhost = 1;
}
_root.ahhSound.start();
this.pStunned = true;
_root.iStunnedTimer.restartTimer();
}
};
cCharacter.prototype.mDuck = function () {
if (this.pY == 0) {
this.pXVel = 0;
this.pDucking = true;
}
};
cCharacter.prototype.mStop = function () {
if (this.pLastDirection == "Left") {
this.pClip.gotoAndPlay("StopLeft");
} else if (this.pLastDirection == "Right") {
this.pClip.gotoAndPlay("StopRight");
}
};
cCharacter.prototype.mSetAnimation = function () {
if (this.pStunned) {
if (this.pLastDirection == "Left") {
this.pClip.gotoAndPlay("StunnedLeft");
} else if (this.pLastDirection == "Right") {
this.pClip.gotoAndPlay("StunnedRight");
}
} else if (0 < this.pY) {
this.pDucking = false;
if (0 < this.pXVel) {
if (!this.pJumping) {
_root.bounceSound.start();
this.pClip.gotoAndPlay("JumpRight");
this.pLastDirection = "Right";
this.pJumping = true;
}
} else if (this.pXVel < 0) {
if (!this.pJumping) {
_root.bounceSound.start();
this.pClip.gotoAndPlay("JumpLeft");
this.pLastDirection = "Left";
this.pJumping = true;
}
} else if (!this.pJumping) {
_root.bounceSound.start();
if (this.pLastDirection == "Left") {
this.pClip.gotoAndPlay("JumpLeft");
} else if (this.pLastDirection == "Right") {
this.pClip.gotoAndPlay("JumpRight");
}
this.pJumping = true;
}
} else {
this.pJumping = false;
if (0 < this.pXVel) {
this.pDucking = false;
this.pClip.gotoAndPlay("Right");
this.pLastDirection = "Right";
} else if (this.pXVel < 0) {
this.pDucking = false;
this.pClip.gotoAndPlay("Left");
this.pLastDirection = "Left";
} else if (this.pDucking) {
if (this.pLastDirection == "Left") {
this.pClip.gotoAndPlay("DuckLeft");
} else if (this.pLastDirection == "Right") {
this.pClip.gotoAndPlay("DuckRight");
}
} else if (this.pLastDirection == "Left") {
this.pClip.gotoAndPlay("StopLeft");
} else if (this.pLastDirection == "Right") {
this.pClip.gotoAndPlay("StopRight");
}
}
};
cCharacter.prototype.mMove = function () {
var x_vel = this.pXVel;
if (0 < this.pY) {
x_vel = x_vel * 2;
}
if (this.pAlive) {
this.pClip._visible = 1;
if (0 < (this.pY + this.pYVel)) {
this.pY = this.pY + this.pYVel;
this.pYVel = this.pYVel - 10;
} else {
this.pY = 0;
this.pYVel = 0;
}
if (((this.pX + x_vel) < this.pXMax) && (this.pXMin < (this.pX + x_vel))) {
this.pX = this.pX + x_vel;
if (0 < this.pXVel) {
if (0 < (this.pXVel - 2)) {
this.pXVel = this.pXVel - 2;
} else {
this.pXVel = 0;
}
} else if (this.pXVel < 0) {
if ((this.pXVel + 2) < 0) {
this.pXVel = this.pXVel + 2;
} else {
this.pXVel = 0;
}
}
} else {
this.pXVel = 0;
}
this.mSetAnimation();
} else {
this.pClip.gotoAndPlay("Zapped");
if (this.pY < 400) {
this.pY = this.pY + 10;
}
}
this.pClip._x = _root.SYLVESTER_x_start;
this.pClip._y = this.pYMin - this.pY;
};
function cZombie(clip, x, y, x_vel, y_vel, x_max, x_min, y_max, y_min) {
this.pClip = clip;
this.pX = x;
this.pY = y;
this.pXVel = x_vel;
this.pYVel = y_vel;
this.pXMax = x_max;
this.pXMin = x_min;
this.pYMax = y_max;
this.pYMin = y_min;
this.pLastDirection = "Left";
this.pAlive = false;
this.pClip.pParent = this;
this.pSpawning = false;
this.pCollisionTimer = new _root.cTimer();
this.pLives = 1;
}
cZombie.prototype.mDestructor = function () {
};
cZombie.prototype.mDump = function () {
trace("Clip: " + this.pClip);
trace("Alive: " + this.pAlive);
trace("XVel: " + this.pXVel);
trace("X: " + this.pX);
};
cZombie.prototype.mSetXVelocity = function (x_vel) {
this.pXVel = x_vel;
};
cZombie.prototype.mSetYVelocity = function (y_vel) {
if (this.pY == 0) {
this.pYVel = y_vel;
}
};
cZombie.prototype.mSylvesterCall = function () {
var random_sound = random(_root.gZombieSoundsCount);
_root.aZombieSounds[random_sound].start();
};
cZombie.prototype.mZapped = function () {
var points;
this.pLives = this.pLives - 1;
if (this.pLives < 1) {
this.pAlive = false;
_root.gZombiesKilled = _root.gZombiesKilled + 1;
} else {
trace("Zombie: zapped" + this.pLives);
this.pClip._alpha = 100 * (this.pLives / 3);
}
_root.zapSound.start();
points = 25 * (3 - this.pLives);
_root.gScore = _root.gScore + points;
_root.aPoints[_root.gNextPoints].mPlay(points, this.pX);
_root.gNextPoints = _root.gNextPoints + 1;
if (_root.gPointsCount < _root.gNextPoints) {
_root.gNextPoints = 1;
}
};
cZombie.prototype.mCheckCollision = function () {
var x_distance = Math.abs(this.pX - _root.iSylvester.pX);
var y_distance = Math.abs(this.pY - _root.iSylvester.pY);
if ((this.pAlive && (x_distance < 30)) && (y_distance < 30)) {
if (2 < this.pCollisionTimer.seconds()) {
this.pCollisionTimer.restartTimer();
_root.iSylvester.mZapped();
}
} else if (this.pAlive && (x_distance < 50)) {
if ((y_distance < 75) && (_root.iSylvester.pYVel < 0)) {
trace("SylvesterY: " + _root.iSylvester.pY);
_root.iSylvester.mForceYVelocity(30);
this.mZapped();
}
}
};
cZombie.prototype.mReset = function () {
this.pAlive = false;
this.pSpawning = true;
this.pLives = 0;
this.pX = -1000;
this.pY = 0;
this.pXVel = 0;
this.pYVel = 0;
this.pLastDirection == "Left";
this.pClip.gotoAndPlay("StopLeft");
this.pClip._x = -1000;
};
cZombie.prototype.mSpawn = function (x) {
var x_temp = (555 - random(1300));
this.pSpawning = true;
_root.gZombiesSpawned = _root.gZombiesSpawned + 1;
this.pClip._alpha = 100;
this.pClip._visible = 1;
this.pLives = _root.gZombieLives;
this.pX = x_temp;
this.pXVel = 2 + random(8);
if (_root.iSylvester.pX < this.pX) {
this.pXVel = -this.pXVel;
}
if (this.pXVel >= 0) {
this.pClip.gotoAndPlay("SpawnRight");
this.pLastDirection = "Right";
} else if (this.pXVel < 0) {
this.pClip.gotoAndPlay("SpawnLeft");
this.pLastDirection = "Left";
}
};
cZombie.prototype.mMove = function () {
if (this.pAlive) {
this.pClip._visible = 1;
if (_root.iSylvester.pX < this.pX) {
if (0 < this.pXVel) {
this.pXVel = -this.pXVel;
}
} else if (this.pX < _root.iSylvester.pX) {
if (this.pXVel < 0) {
this.pXVel = -this.pXVel;
}
}
if (((this.pX + this.pXVel) < this.pXMax) && (this.pXMin < (this.pX + this.pXVel))) {
this.pX = this.pX + this.pXVel;
if (0 < this.pXVel) {
this.pClip.gotoAndPlay("Right");
this.pLastDirection = "Right";
} else if (this.pXVel < 0) {
this.pClip.gotoAndPlay("Left");
this.pLastDirection = "Left";
} else if (this.pLastDirection == "Left") {
this.pClip.gotoAndPlay("StopLeft");
} else if (this.pLastDirection == "Right") {
this.pClip.gotoAndPlay("StopRight");
}
} else {
this.pXVel = -this.pXVel;
}
} else if (!this.pSpawning) {
if (this.pLastDirection != "Zapped") {
this.pClip.gotoAndPlay("Zapped");
this.pClip.zombie.gotoAndPlay(random(12));
this.pLastDirection = "Zapped";
}
}
this.pClip._x = (this.pX - _root.iSylvester.pX) + _root.iSylvester.pClip._x;
this.pClip._y = this.pYMin + (_root.iSylvester.pY / 4);
};
function cBat(clip, x, y, x_vel, y_vel, x_max, x_min, y_max, y_min) {
this.pClip = clip;
this.pX = x;
this.pY = y;
this.pXVel = x_vel;
this.pYVel = y_vel;
this.pXMax = x_max;
this.pXMin = x_min;
this.pYMax = y_max;
this.pYMin = y_min;
this.pLastDirection = "Left";
this.pAlive = false;
this.pClip.pParent = this;
this.pSpawning = false;
this.pCollisionTimer = new _root.cTimer();
this.pLives = 1;
}
cBat.prototype.mDestructor = function () {
};
cBat.prototype.mDump = function () {
trace("Clip: " + this.pClip);
trace("Alive: " + this.pAlive);
trace("XVel: " + this.pXVel);
};
cBat.prototype.mSetXVelocity = function (x_vel) {
this.pXVel = x_vel;
};
cBat.prototype.mSetYVelocity = function (y_vel) {
if (this.pY == 0) {
this.pYVel = y_vel;
}
};
cBat.prototype.mCheckCollision = function () {
var x_distance = Math.abs(this.pX - _root.iSylvester.pX);
var y_distance = Math.abs(this.pY - _root.iSylvester.pY);
if ((this.pAlive && (x_distance < 30)) && (!_root.iSylvester.pDucking)) {
if (2 < this.pCollisionTimer.seconds()) {
this.pCollisionTimer.restartTimer();
_root.iSylvester.mZapped();
_root.batSound.start();
}
}
};
cBat.prototype.mReset = function () {
this.pAlive = false;
this.pSpawning = false;
this.pLives = 0;
this.pX = -1000;
this.pY = 0;
this.pXVel = 0;
this.pYVel = 0;
this.pLastDirection == "Left";
this.pClip.gotoAndPlay("Left");
this.pClip._x = -1000;
};
cBat.prototype.mSpawn = function () {
var random_direction = random(2);
var x_temp;
var y_temp;
if (random_direction == 1) {
x_temp = 555;
this.pXVel = -_root.gBatSpeed;
} else {
x_temp = -745;
this.pXVel = _root.gBatSpeed;
}
this.pClip._alpha = 100;
this.pX = x_temp;
this.pY = y_temp;
this.pAlive = true;
trace((((("Bat:spawn: " + this.pX) + ", ") + this.pY) + ", ") + this.pXVel);
_root.batSound.start();
};
cBat.prototype.mMove = function () {
if (this.pAlive) {
this.pClip._visible = 1;
if (((this.pX + this.pXVel) < this.pXMax) && (this.pXMin < (this.pX + this.pXVel))) {
this.pX = this.pX + this.pXVel;
if (0 < this.pXVel) {
this.pClip.gotoAndPlay("Right");
this.pLastDirection = "Right";
} else if (this.pXVel < 0) {
this.pClip.gotoAndPlay("Left");
this.pLastDirection = "Left";
}
} else {
this.pAlive = false;
this.pClip._visible = 0;
}
}
this.pClip._x = (this.pX - _root.iSylvester.pX) + _root.iSylvester.pClip._x;
this.pClip._y = this.pYMin + (_root.iSylvester.pY / 4);
};
function cGhost(clip, x_start, y_start) {
this.pClip = clip;
this.pXStart = x_start;
this.pYStart = y_start;
this.pX = 0;
this.pY = -1000;
this.pXVel = 0;
this.pYVel = 10;
this.pLife = 1;
this.pAlive = false;
}
cGhost.prototype.mDestructor = function () {
};
cGhost.prototype.mSetXVelocity = function (x_vel) {
this.pXVel = x_vel;
};
cGhost.prototype.mSetYVelocity = function (y_vel) {
if (this.pY == 0) {
this.pYVel = y_vel;
}
};
cGhost.prototype.mForceYVelocity = function (y_vel) {
this.pYVel = y_vel;
};
cGhost.prototype.mReset = function () {
this.pAlive = false;
this.pLife = 1;
this.pX = 0;
this.pY = 0;
this.pXVel = 0;
this.pYVel = 0;
this.pClip.life.gotoAndPlay((this.pLife * 2) - 1);
this.pClip._visible = 0;
this.pClip._x = -1000;
};
cGhost.prototype.mPlay = function (life) {
this.pLife = life;
this.pAlive = true;
this.pY = 0;
};
cGhost.prototype.mMove = function () {
if (this.pAlive) {
this.pClip._visible = 1;
if (this.pY < 400) {
this.pY = this.pY + 10;
this.pClip.life.gotoAndPlay((this.pLife * 2) - 1);
} else {
this.pAlive = false;
this.pY = -1000;
}
}
this.pClip._x = _root.GHOST_x_start;
this.pClip._y = this.pYStart - this.pY;
};
function cPoints(clip, x_start, y_start) {
this.pClip = clip;
this.pXStart = x_start;
this.pYStart = y_start;
this.pX = 0;
this.pY = -1000;
this.pXVel = 0;
this.pYVel = 10;
this.pValue = 25;
this.pAlive = false;
}
cPoints.prototype.mDestructor = function () {
};
cPoints.prototype.mSetXVelocity = function (x_vel) {
this.pXVel = x_vel;
};
cPoints.prototype.mSetYVelocity = function (y_vel) {
if (this.pY == 0) {
this.pYVel = y_vel;
}
};
cPoints.prototype.mForceYVelocity = function (y_vel) {
this.pYVel = y_vel;
};
cPoints.prototype.mReset = function () {
this.pAlive = false;
this.pX = -1000;
this.pY = 0;
this.pXVel = 0;
this.pYVel = 0;
this.pValue = 0;
this.pClip._x = -1000;
};
cPoints.prototype.mPlay = function (value, x) {
this.pX = x;
this.pValue = value;
this.pAlive = true;
this.pY = 0;
};
cPoints.prototype.mMove = function () {
if (this.pAlive) {
this.pClip._visible = 1;
if (this.pY < 400) {
this.pY = this.pY + 10;
this.pClip.pPoints = this.pValue;
} else {
this.pAlive = false;
this.pY = -1000;
}
}
this.pClip._x = (this.pX - _root.iSylvester.pX) + _root.iSylvester.pClip._x;
this.pClip._y = (this.pYStart - this.pY) + (_root.iSylvester.pY / 4);
};
function mSyncBGs() {
var MG_new = (MG_start - _root.iSylvester.pX);
var MG_y_new = (MG_y_start + (_root.iSylvester.pY / 4));
var BG_new = (BG_start - (_root.iSylvester.pX / 2));
var BG_y_new = (BG_y_start + (_root.iSylvester.pY / 8));
if ((MG_new < _root.MG_max) && (_root.MG_min < MG_new)) {
_root.MG_main._x = MG_new;
_root.BG_main._x = BG_new;
}
_root.MG_main._y = MG_y_new;
_root.BG_main._y = BG_y_new;
}
BG_start = 319;
BG_y_start = 448;
BG_max = 549;
BG_min = 170;
BG_main._x = BG_start;
BG_width = BG_max - BG_min;
MG_start = 188;
MG_y_start = 200;
MG_max = 648;
MG_min = -100;
MG_main._x = MG_start;
MG_width = MG_max - MG_min;
function mKillAll() {
_root.iSylvester.pAlive = false;
_root.iSylvester.pClip.removeMovieClip();
i = 1;
while (i < (_root.gZombieCount + 1)) {
_root.aZombies[i].pAlive = false;
_root.aZombies[i].pClip.removeMovieClip();
i++;
}
i = 1;
while (i < (_root.gGhostCount + 1)) {
_root.aGhosts[i].pAlive = false;
_root.aGhosts[i].pClip.removeMovieClip();
i++;
}
i = 1;
while (i < (_root.gBatCount + 1)) {
_root.aBats[i].pAlive = false;
_root.aBats[i].pClip.removeMovieClip();
i++;
}
i = 1;
while (i < (_root.gPointsCount + 1)) {
_root.aPoints[i].pAlive = false;
_root.aPoints[i].pClip.removeMovieClip();
i++;
}
}
function mHideAll() {
_root.iSylvester.pClip._visible = 0;
i = 1;
while (i < (_root.gZombieCount + 1)) {
_root.aZombies[i].pClip._visible = 0;
i++;
}
i = 1;
while (i < (_root.gGhostCount + 1)) {
_root.aGhosts[i].pClip._visible = 0;
i++;
}
i = 1;
while (i < (_root.gBatCount + 1)) {
_root.aBats[i].pClip._visible = 0;
i++;
}
i = 1;
while (i < (_root.gPointsCount + 1)) {
_root.aPoints[i].pClip._visible = 0;
i++;
}
}
function mNextLevel() {
_root.iSylvester.mReset();
i = 1;
while (i < (_root.gZombieCount + 1)) {
_root.aZombies[i].mReset();
i++;
}
i = 1;
while (i < (_root.gGhostCount + 1)) {
_root.aGhosts[i].mReset();
i++;
}
i = 1;
while (i < (_root.gBatCount + 1)) {
_root.aBats[i].mReset();
i++;
}
i = 1;
while (i < (_root.gPointsCount + 1)) {
_root.aPoints[i].mReset();
i++;
}
}
Frame 2
_root.gVersionNum = "1.0";
fscommand ("showmenu", "false");
Set("/:gGameID", "tweety_zombies");
pLoadStartTime = int(getTimer() / 1000);
loadVariablesNum ((((("/tracking.html?game=" add /:gGameID) add "&stage=0&timer=") add pLoadStartTime) add "&random_id=") add pLoadStartTime, 0);
Frame 4
Set("_level0:gWTE_FL", _framesloaded);
Set("_level0:gWTE_PL", int((_level0:gWTE_FL / _level0:gWTE_TF) * 100));
Set("_level0:gWTE_PLtxt", _level0:gWTE_PL add "%");
ifFrameLoaded (73) {
Set("_level0:gGameLoaded", true);
gotoAndPlay (9);
}
Set("/:gGameState", "LOADING");
tellTarget ("/hs_scripts") {
call("mLoading");
};
Frame 6
gotoAndPlay (4);
Frame 9
SYLVESTER_x_start = sylvester._x;
SYLVESTER_y_start = sylvester._y;
ZOMBIE_x_start = tweety._x;
ZOMBIE_y_start = tweety._y;
GHOST_x_start = ghost._x;
GHOST_y_start = ghost._y;
POINTS_x_start = POINTS_type._x;
POINTS_y_start = POINTS_type._y;
BAT_x_start = bat._x;
BAT_y_start = bat._y;
bounceSound = new Sound();
bounceSound.attachSound("Whoosh");
zapSound = new Sound();
zapSound.attachSound("Bounce");
ahhSound = new Sound();
ahhSound.attachSound("SylvesterGasp");
screamSound = new Sound();
screamSound.attachSound("17_");
batSound = new Sound();
batSound.attachSound("BatwSonar.aif");
aZombieSounds = new Array();
gZombieSoundsCount = 5;
aZombieSounds[1] = new Sound();
aZombieSounds[1].attachSound("BwainsLoud");
aZombieSounds[2] = new Sound();
aZombieSounds[2].attachSound("TweetyGrunt1");
aZombieSounds[3] = new Sound();
aZombieSounds[3].attachSound("TweetyGrunt2");
aZombieSounds[4] = new Sound();
aZombieSounds[4].attachSound("TweetySylvester1");
aZombieSounds[5] = new Sound();
aZombieSounds[5].attachSound("TweetySylvester2");
howlOwlSound = new Sound();
howlOwlSound.attachSound("HowlOwl");
_root.gHowlDelay = 60;
tellTarget ("/hs_scripts") {
call("mLoaded");
};
Frame 15
sylvester.duplicateMovieClip("sylvester_1", 50);
iSylvester = new cCharacter(sylvester_1, 0, 0, 0, 0, 280, -450, SYLVESTER_y_start + 300, SYLVESTER_y_start);
sylvester._visible = 0;
sylvester_1._visible = 0;
tweety.duplicateMovieClip("tweety_1", 10);
tweety.duplicateMovieClip("tweety_2", 11);
tweety.duplicateMovieClip("tweety_3", 12);
tweety.duplicateMovieClip("tweety_4", 13);
tweety.duplicateMovieClip("tweety_5", 14);
tweety.duplicateMovieClip("tweety_6", 15);
tweety.duplicateMovieClip("tweety_7", 16);
tweety.duplicateMovieClip("tweety_8", 17);
tweety.duplicateMovieClip("tweety_9", 18);
tweety.duplicateMovieClip("tweety_10", 19);
tweety.duplicateMovieClip("tweety_11", 20);
tweety.duplicateMovieClip("tweety_12", 21);
tweety.duplicateMovieClip("tweety_13", 22);
tweety.duplicateMovieClip("tweety_14", 23);
tweety.duplicateMovieClip("tweety_15", 24);
tweety.duplicateMovieClip("tweety_16", 25);
tweety.duplicateMovieClip("tweety_17", 26);
tweety.duplicateMovieClip("tweety_18", 27);
tweety.duplicateMovieClip("tweety_19", 28);
tweety.duplicateMovieClip("tweety_20", 29);
aZombies = new Array();
gZombieCount = 20;
gNextZombie = 20;
aZombies[1] = new cZombie(tweety_1, -1000, 0, -5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[2] = new cZombie(tweety_2, -1000, 0, 5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[3] = new cZombie(tweety_3, -1000, 0, -5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[4] = new cZombie(tweety_4, -1000, 0, 5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[5] = new cZombie(tweety_5, -1000, 0, -5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[6] = new cZombie(tweety_6, -1000, 0, 5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[7] = new cZombie(tweety_7, -1000, 0, -5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[8] = new cZombie(tweety_8, -1000, 0, 5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[9] = new cZombie(tweety_9, -1000, 0, -5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[10] = new cZombie(tweety_10, -1000, 0, 5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[11] = new cZombie(tweety_11, -1000, 0, -5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[12] = new cZombie(tweety_12, -1000, 0, 5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[13] = new cZombie(tweety_13, -1000, 0, -5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[14] = new cZombie(tweety_14, -1000, 0, 5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[15] = new cZombie(tweety_15, -1000, 0, -5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[16] = new cZombie(tweety_16, -1000, 0, 5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[17] = new cZombie(tweety_17, -1000, 0, -5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[18] = new cZombie(tweety_18, -1000, 0, 5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[19] = new cZombie(tweety_19, -1000, 0, -5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
aZombies[20] = new cZombie(tweety_20, -1000, 0, 5, 0, 555, -750, ZOMBIE_y_start + 300, ZOMBIE_y_start);
tweety._visible = 0;
ghost._y = -1000;
ghost.duplicateMovieClip("ghost_1", 7);
ghost.duplicateMovieClip("ghost_2", 8);
ghost.duplicateMovieClip("ghost_3", 9);
aGhosts = new Array();
gGhostCount = 3;
gNextGhost = 1;
aGhosts[1] = new cGhost(ghost_1, GHOST_x_start, GHOST_y_start);
aGhosts[2] = new cGhost(ghost_2, GHOST_x_start, GHOST_y_start);
aGhosts[3] = new cGhost(ghost_3, GHOST_x_start, GHOST_y_start);
ghost._visible = 0;
POINTS_type.duplicateMovieClip("points_1", 40);
POINTS_type.duplicateMovieClip("points_2", 41);
POINTS_type.duplicateMovieClip("points_3", 42);
POINTS_type.duplicateMovieClip("points_4", 43);
POINTS_type.duplicateMovieClip("points_5", 44);
aPoints = new Array();
gPointsCount = 5;
gNextPoints = 1;
aPoints[1] = new cPoints(points_1, POINTS_x_start, POINTS_y_start);
aPoints[2] = new cPoints(points_2, POINTS_x_start, POINTS_y_start);
aPoints[3] = new cPoints(points_3, POINTS_x_start, POINTS_y_start);
aPoints[4] = new cPoints(points_4, POINTS_x_start, POINTS_y_start);
aPoints[5] = new cPoints(points_5, POINTS_x_start, POINTS_y_start);
POINTS_type._visible = 0;
bat.duplicateMovieClip("bat_1", 4);
bat.duplicateMovieClip("bat_2", 5);
bat.duplicateMovieClip("bat_3", 6);
aBats = new Array();
gBatCount = 3;
gNextBat = 1;
aBats[1] = new cBat(bat_1, -1000, 0, 0, 0, 555, -750, BAT_y_start + 300, BAT_y_start);
aBats[2] = new cBat(bat_2, -1000, 0, 0, 0, 555, -750, BAT_y_start + 300, BAT_y_start);
aBats[3] = new cBat(bat_3, -1000, 0, 0, 0, 555, -750, BAT_y_start + 300, BAT_y_start);
bat._visible = 0;
_root.iBatSpawnTimer.restartTimer();
MASK_type.duplicateMovieClip("mask", 100);
_root.iZombieSpawnTimer.restartTimer();
gScore = 0;
gLevel = 1;
_root.mNextLevel();
_root.mSyncBGs();
stop();
Frame 17
tellTarget ("/hs_scripts") {
call("mPlay");
};
Frame 20
trace("Sylvester: " add _root.iSylvester.pAlive);
if (_root.gLevel == 1) {
_root.gNextBatDelayRange = 7;
_root.gNextBatDelay = 45;
_root.gNextZombieDelayRange = 7;
_root.gNextZombieDelay = 2;
_root.gMaxZombies = 10;
_root.gZombieLives = 1;
_root.gMaxBats = 1;
_root.gBatSpeed = 10;
_root.gZombieVelocityRange = 7;
} else if (_root.gLevel == 2) {
_root.gNextBatDelayRange = 10;
_root.gNextBatDelay = 30;
_root.gNextZombieDelayRange = 5;
_root.gNextZombieDelay = 2;
_root.gMaxZombies = 15;
_root.gZombieLives = 2;
_root.gMaxBats = 1;
_root.gBatSpeed = 15;
_root.gZombieVelocityRange = 14;
} else if (_root.gLevel == 3) {
_root.gNextBatDelayRange = 10;
_root.gNextBatDelay = 20;
_root.gNextZombieDelayRange = 3;
_root.gNextZombieDelay = 2;
_root.gMaxZombies = 20;
_root.gZombieLives = 2;
_root.gMaxBats = 2;
_root.gBatSpeed = 15;
_root.gZombieVelocityRange = 21;
} else if (3 < _root.gLevel) {
_root.gNextBatDelayRange = 10;
_root.gNextBatDelay = 10;
_root.gNextZombieDelayRange = 3;
_root.gNextZombieDelay = 2;
_root.gMaxZombies = 20;
_root.gZombieLives = 3;
_root.gMaxBats = 3;
_root.gBatSpeed = 12 + _root.gLevel;
_root.gZombieVelocityRange = 30;
}
_root.gZombiesKilled = 0;
_root.gZombiesSpawned = 0;
gNextZombie = 20;
_root.iBatSpawnTimer.restartTimer();
_root.iZombieSpawnTimer.restartTimer();
_root.iHowlTimer.restartTimer();
tellTarget ("/hs_scripts") {
call("mLevelStart");
};
Frame 28
if (!_root.iSylvester.pStunned) {
if (Key.isDown(Key.RIGHT)) {
_root.iSylvester.mSetXVelocity(20);
} else if (Key.isDown(Key.LEFT)) {
_root.iSylvester.mSetXVelocity(-20);
}
if (Key.isDown(Key.SPACE)) {
_root.iSylvester.mSetYVelocity(40);
}
if (Key.isDown(Key.UP)) {
_root.iSylvester.mSetYVelocity(40);
}
if (Key.isDown(Key.DOWN)) {
_root.iSylvester.mDuck();
}
if (Key.isDown(Key.SHIFT)) {
_root.iSylvester.mDuck();
}
if (Key.isDown(81)) {
_root.iSylvester.pAlive = false;
}
}
if (!_root.iSylvester.pAlive) {
_root.mKillAll();
_root.gotoAndPlay("End");
}
if ((_root.gZombiesKilled == _root.gMaxZombies) && (_root.iSylvester.pY == 0)) {
_root.mNextLevel();
_root.gotoAndPlay("LevelComplete");
} else {
if (500 < _root.iStunnedTimer.milliseconds()) {
_root.iSylvester.pStunned = false;
}
if (_root.gHowlDelay < _root.iHowlTimer.seconds()) {
_root.iHowlTimer.restartTimer();
_root.howlOwlSound.start();
_root.gHowlDelay = 30 + random(30);
}
if (20 < _root.iSpawnFrequencyTimer.seconds()) {
_root.iSpawnFrequencyTimer.restartTimer();
_root.gNextZombieDelayRange = _root.gNextZombieDelayRange - 1;
if (_root.gNextZombieDelayRange < 1) {
_root.gNextZombieDelayRange = 0;
}
}
if ((_root.gNextZombieDelay < _root.iZombieSpawnTimer.seconds()) && (_root.gZombiesSpawned < _root.gMaxZombies)) {
_root.iZombieSpawnTimer.restartTimer();
_root.gNextZombieDelay = 2 + random(_root.gNextZombieDelayRange);
_root.aZombies[_root.gNextZombie].mSpawn();
_root.gNextZombie = _root.gNextZombie - 1;
if (_root.gNextZombie < 1) {
_root.gNextZombie = 10;
}
}
if (_root.gNextBatDelay < _root.iBatSpawnTimer.seconds()) {
i = 1;
while (i < (_root.gMaxBats + 1)) {
if (!_root.aBats[i].pAlive) {
_root.iBatSpawnTimer.restartTimer();
_root.gNextBatDelay = 2 + random(_root.gNextBatDelayRange);
_root.aBats[i].mSpawn();
}
i++;
}
}
_root.iSylvester.mMove();
i = 1;
while (i < (_root.gZombieCount + 1)) {
_root.aZombies[i].mMove();
_root.aZombies[i].mCheckCollision();
i++;
}
i = 1;
while (i < (_root.gGhostCount + 1)) {
_root.aGhosts[i].mMove();
i++;
}
i = 1;
while (i < (_root.gMaxBats + 1)) {
_root.aBats[i].mMove();
_root.aBats[i].mCheckCollision();
i++;
}
i = 1;
while (i < (_root.gPointsCount + 1)) {
_root.aPoints[i].mMove();
i++;
}
_root.mKeyStroke();
_root.mSyncBGs();
_root.gLives = _root.iSylvester.pLives;
}
Frame 29
gotoAndPlay(_currentframe - 1);
Frame 35
_root.iLevelPauseTimer.restartTimer();
Frame 36
if (3 < _root.iLevelPauseTimer.seconds()) {
_root.gLevel = _root.gLevel + 1;
_root.gotoAndPlay("NextLevel");
}
Frame 37
_root.gotoAndPlay(_currentframe - 1);
Frame 83
stop();
tellTarget ("/hs_scripts") {
call("mGameOver");
};
Symbol 17 MovieClip Frame 1
loadMovie ("/games/med/HSScripts.swf", "");
Symbol 17 MovieClip Frame 4
stop();
Symbol 21 MovieClip Frame 5
stop();
Symbol 25 MovieClip Frame 5
stop();
Symbol 28 Button
on (release) {
play();
}
Symbol 32 MovieClip Frame 2
_root._quality = "HIGH";
Symbol 32 MovieClip Frame 4
stop();
Symbol 32 MovieClip Frame 6
_root._quality = "MEDIUM";
Symbol 32 MovieClip Frame 9
stop();
Symbol 32 MovieClip Frame 11
_root._quality = "LOW";
Symbol 32 MovieClip Frame 14
stop();
Symbol 32 MovieClip Frame 16
_root._quality = "BEST";
Symbol 32 MovieClip Frame 19
stop();
Symbol 35 Button
on (press) {
pParent.mDump();
}
Symbol 85 MovieClip Frame 1
Symbol 85 MovieClip Frame 25
_parent.pParent.mSylvesterCall();
Symbol 85 MovieClip Frame 67
_parent.pParent.pAlive = true;
_parent.pParent.pSpawning = false;
Symbol 86 MovieClip Frame 5
stop();
Symbol 86 MovieClip Frame 10
stop();
Symbol 86 MovieClip Frame 15
stop();
Symbol 86 MovieClip Frame 20
stop();
Symbol 86 MovieClip Frame 21
Symbol 86 MovieClip Frame 25
stop();
Symbol 86 MovieClip Frame 26
Symbol 86 MovieClip Frame 30
stop();
Symbol 86 MovieClip Frame 31
Symbol 86 MovieClip Frame 35
stop();
Symbol 127 MovieClip Frame 3
stop();
Symbol 128 MovieClip Frame 3
stop();
Symbol 129 MovieClip Frame 5
stop();
Symbol 129 MovieClip Frame 10
stop();
Symbol 129 MovieClip Frame 15
stop();
Symbol 129 MovieClip Frame 20
stop();
Symbol 129 MovieClip Frame 25
stop();
Symbol 129 MovieClip Frame 30
stop();
Symbol 129 MovieClip Frame 35
stop();
Symbol 129 MovieClip Frame 40
stop();
Symbol 129 MovieClip Frame 45
stop();
Symbol 129 MovieClip Frame 50
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 4
stop();
Symbol 146 MovieClip Frame 6
stop();
Symbol 146 MovieClip Frame 8
stop();
Symbol 146 MovieClip Frame 10
stop();
Symbol 146 MovieClip Frame 12
stop();
Symbol 146 MovieClip Frame 14
stop();
Symbol 146 MovieClip Frame 16
stop();
Symbol 146 MovieClip Frame 18
stop();
Symbol 153 MovieClip Frame 4
stop();
Symbol 153 MovieClip Frame 9
stop();
Symbol 154 Button
on (release) {
_root.iSylvester.pAlive = true;
_root.iSylvester.pLives = 9;
_root.iSylvester.pY = 0;
_root.iZombie.pAlive = true;
_root.gScore = 0;
}
Symbol 155 Button
on (release) {
gotoAndPlay (10);
}
Symbol 156 Button
on (release) {
gotoAndPlay (1);
}
Symbol 164 MovieClip Frame 2
stop();
Symbol 165 MovieClip Frame 1
_visible = 0;
Symbol 165 MovieClip Frame 5
stop();
Symbol 165 MovieClip Frame 10
_visible = 1;
Symbol 165 MovieClip Frame 360
gotoAndPlay (1);
Symbol 182 Button
on (release) {
getURL ("/all_new_toons/twick_or_tweety/TweetyZombies.sit");
}
Symbol 185 Button
on (release) {
getURL ("javascript:openWindow('/all_new_toons/twick_or_tweety/email_friend.html', 300, 400)");
}
Symbol 187 Button
on (release) {
getURL ("/all_new_toons/twick_or_tweety/TweetyZombies.zip");
}
Symbol 192 Button
on (release) {
play();
}
Symbol 202 Button
on (release) {
_root.play();
}
Symbol 204 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 17
stop();
Symbol 209 MovieClip Frame 1
_visible = 0;
Symbol 209 MovieClip Frame 5
stop();
Symbol 215 MovieClip Frame 1
_visible = 0;
loadMovie ("/games/med/HSMinScore.swf", "");
Symbol 215 MovieClip Frame 4
stop();
Symbol 238 Button
on (release) {
_root.gotoAndPlay("Replay");
}