Frame 1
swInterface.init();
gotoAndPlay (5);
Frame 3
actBytes = _root.getBytesLoaded() || 0;
totBytes = _root.getBytesTotal() || 100;
percent = Math.round((actBytes * 100) / totBytes);
if ((totBytes - actBytes) > 10) {
this.bar._xscale = percent;
this.gotoAndPlay(2);
}
Frame 5
_global.vars = new Object();
gotoAndStop (10);
Frame 10
this.totalScore = 0;
stop();
Frame 30
stop();
Frame 45
gotoAndPlay (10);
Frame 90
this.speelVeld.naam = _global.vars.naam;
Frame 95
stop();
Symbol 7 MovieClip [scoreAnimation] Frame 1
this.targetX = 455;
this.targetY = 30;
this.targetScale = 0;
Symbol 7 MovieClip [scoreAnimation] Frame 15
this.stop();
this.onEnterFrame = function () {
var dY = (this.targetY - this._y);
var dX = (this.targetX - this._x);
var dScale = (this.targetScale - this._xscale);
this.vY = dY / this.speed;
this.vX = dX / this.speed;
this.vScale = dScale / this.speed;
this._y = this._y + this.vY;
this._x = this._x + this.vX;
this._xscale = this._xscale + this.vScale;
this._yscale = this._yscale + this.vScale;
if (Math.abs(dScale) < _global.vars.precision) {
this.tempScore = _global.vars.totalScore;
this.targetScore = (_global.vars.totalScore = _global.vars.totalScore + this.score.score);
this.onEnterFrame = function () {
var dScore = (this.targetScore - this.tempScore);
this.vScore = dScore / this.speed;
this.tempScore = this.tempScore + this.vScore;
_global.vars.MCPlayground._parent._parent._parent.totalScore = Math.round(this.tempScore);
if (Math.abs(dScore) < _global.vars.precision) {
_global.vars.MCPlayground._parent._parent._parent.totalScore = _global.vars.totalScore;
if (_global.vars.doubleScore) {
_global.vars.gameOver = true;
_global.vars.MCCode.gameOver();
}
this.removeMovieClip();
}
};
}
};
Symbol 36 Button
on (release) {
this.gotoAndPlay(50);
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
stop();
Symbol 44 MovieClip Frame 3
stop();
Symbol 54 MovieClip Frame 1
this.container1.attachMovie(this.currentStone, "c1", 1);
stop();
Symbol 54 MovieClip Frame 6
this.container1.attachMovie(this.currentStone, "c1", 1);
this.container2.attachMovie(this.nextStone, "c1", 1);
Symbol 54 MovieClip Frame 20
gotoAndStop (1);
Symbol 59 MovieClip Frame 1
function spawnStone(y, x, t) {
_global.vars.level[y][x] = t;
var d = ((y * _global.vars.arraySizeX) + x);
if (_global.vars.MCPlayground[(("s" + y) + "_") + x]) {
_global.vars.MCPlayground[(("s" + y) + "_") + x].removeMovieClip();
}
if (t == 999) {
return(undefined);
}
_global.vars.MCPlayGround.attachMovie("stone" + t, (("s" + y) + "_") + x, d);
currentStone = _global.vars.MCPlayGround[(("s" + y) + "_") + x];
helpVar = y % 2;
currentStone._x = (x * _global.vars.stoneStepX) + ((helpVar * _global.vars.stoneStepX) / 2);
currentStone._y = y * _global.vars.stoneStepY;
currentStone.x = x;
currentStone.y = y;
currentStone.t = t;
currentStone.tagged = false;
currentStone.popped = false;
}
function doSpawnStone() {
if (this.delayCount > this.delay) {
var dScale = (this.targetScale - this._xscale);
this.vScale = dScale / this.speed;
this._xscale = this._xscale + this.vScale;
this._yscale = this._yscale + this.vScale;
if (Math.abs(dScale) < _global.vars.precision) {
this.onEnterFrame = null;
this._xscale = (this._yscale = this.targetScale);
}
} else {
this.delayCount++;
}
}
function doMoveStone() {
var a = ((this.angle * 3.141593) / 180);
this.dx = (Math.cos(a) * -1) * this.speed;
this.dy = (Math.sin(a) * -1) * this.speed;
var arrayY = Math.floor((this._y + this.dy) / _global.vars.stoneStepY);
var helpVar = (arrayY % 2);
if (this.angle < 45) {
helpVar2 = (_global.vars.stoneStepX - (((arrayY + 1) % 2) * _global.vars.stoneStepX)) - ((15 * (90 - this.angle)) / 90);
} else if (this.angle > 135) {
helpVar2 = (((-(arrayY + 1)) % 2) * _global.vars.stoneStepX) + ((15 * (this.angle - 90)) / 90);
} else {
helpVar2 = (_global.vars.stoneStepX / 2) - (((arrayY + 1) % 2) * _global.vars.stoneStepX);
}
var arrayX = Math.floor((((this._x + this.dx) + ((helpVar * _global.vars.stoneStepX) / 2)) - helpVar2) / _global.vars.stoneStepX);
if (arrayX <= 0) {
arrayX = 0;
}
if (arrayY < 0) {
arrayY = 0;
this.dy = 0;
}
if (arrayX >= (_global.vars.arraySizeX - 1)) {
arrayX = _global.vars.arraySizeX - 1;
}
if ((this._x + this.dx) < ((-_global.vars.stoneStepX) / 4)) {
this.dx = 0;
this.angle = 180 - this.angle;
return(undefined);
}
if ((this._x + this.dx) > ((_global.vars.arraySizeX * _global.vars.stoneStepX) + (_global.vars.stoneStepX / 4))) {
this.dx = 0;
this.angle = 180 - this.angle;
return(undefined);
}
newY = Math.floor(this._y / _global.vars.stoneStepY);
var helpVar = (newY % 2);
if (this.angle < 45) {
helpVar2 = (_global.vars.stoneStepX - (((newY + 1) % 2) * _global.vars.stoneStepX)) - ((15 * (90 - this.angle)) / 90);
} else if (this.angle > 135) {
helpVar2 = (((-(newY + 1)) % 2) * _global.vars.stoneStepX) + ((15 * (this.angle - 90)) / 90);
} else {
helpVar2 = (_global.vars.stoneStepX / 2) - (((newY + 1) % 2) * _global.vars.stoneStepX);
}
newX = Math.floor(((this._x + ((helpVar * _global.vars.stoneStepX) / 2)) - helpVar2) / _global.vars.stoneStepX);
if (newX <= 0) {
newX = 0;
}
if (newY < 0) {
newY = 0;
}
if (newX >= (_global.vars.arraySizeX - 1)) {
newX = _global.vars.arraySizeX - 1;
}
if ((_global.vars.level[arrayY][arrayX] != 999) || (newY == 0)) {
if (_global.playSounds) {
_global.vars.MCSoundPok.gotoAndPlay(10);
}
_global.vars.colors[this.t]++;
spawnStone(newY, newX, this.t);
_global.vars.MCCode.gotoAndStop(4);
this.removeMovieClip();
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
}
function doClearStone() {
if (this.delayCount > this.delay) {
if (!this.popped) {
if (_global.playSounds) {
_global.vars.MCSoundPop.gotoAndPlay(10 + (Math.floor(Math.random() * 4) * 5));
}
this.popped = true;
}
var dScale = (this.targetScale - this._xscale);
this.vScale = dScale / this.speed;
this._xscale = this._xscale + this.vScale;
this._yscale = this._yscale + this.vScale;
if (Math.abs(dScale) < _global.vars.precision) {
_global.vars.colors[this.t]--;
this.onEnterFrame = null;
if (this.last) {
_global.vars.MCCode.gotoAndStop(5);
}
this.removeMovieClip;
}
} else {
this.delayCount++;
}
}
function moveCanon() {
var x = (this._x - this._parent._xmouse);
var y = (this._y - this._parent._ymouse);
var angle = (Math.atan(y / x) / 0.017453);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
if ((angle >= 6) && (angle <= 174)) {
this._rotation = angle;
}
}
function addNewRow() {
var helpArray = [];
var helpIndex = 0;
i = 0;
while (i < 6) {
if (_global.vars.colors[i] > 0) {
helpArray[helpIndex++] = i;
}
i++;
}
y = _global.vars.arraySizeY - 1;
while (y >= 0) {
x = 0;
while (x < _global.vars.arraySizeX) {
if (y <= (6 - helpIndex)) {
var t = helpArray[Math.floor(Math.random() * helpIndex)];
_global.vars.level[y][x] = t;
_global.vars.colors[t]++;
} else {
_global.vars.level[y][x] = _global.vars.level[y - (7 - helpIndex)][x];
}
t = _global.vars.level[y][x];
spawnStone(y, x, t);
x++;
}
y--;
}
clearIsolated();
}
function init() {
_global.vars.arraySizeX = 17;
_global.vars.arraySizeY = 15;
_global.vars.stoneDepth = 0;
_global.vars.stoneStepX = 24;
_global.vars.stoneStepY = 24;
_global.vars.neighboursIndex = 0;
_global.vars.neighbours = new Array();
_global.vars.precision = 2;
_global.vars.radius = 7;
_global.vars.levelHeight = 9;
_global.vars.stoneContainer = new Array();
_global.vars.MCGameField = this._parent;
_global.vars.MCCanon = this._parent.canon;
_global.vars.MCFailureHolder = this._parent._parent.failureHolder;
_global.vars.MCSoundPop = this._parent.soundPop;
_global.vars.MCSoundPok = this._parent.soundPok;
_global.vars.failureCount = 0;
_global.vars.failureCountMin = 1;
_global.vars.failureMax = 5;
_global.vars.MCCode = this;
_global.vars.totalScore = 0;
_global.vars.colors = [0, 0, 0, 0, 0, 0];
_global.vars.MCCanon._rotation = 90;
_global.vars.gameOver = false;
_global.vars.ffi = 0;
_global.vars.scoreBounds = [9999, 9999, 0, 0];
_global.vars.scoreMove = 0;
_global.vars.doubleScore = false;
_global.vars.oldTotalScore = 0;
_global.playSounds = true;
this._parent.canon.onMouseMove = moveCanon;
this._parent.canon.d = 10;
this._parent.canon.onEnterFrame = function () {
if (this.d > 0) {
this.d--;
}
if (Key.isDown(37)) {
if (this._rotation >= 10) {
this._rotation = this._rotation - 3;
}
}
if (Key.isDown(39)) {
if (this._rotation <= 170) {
this._rotation = this._rotation + 3;
}
}
if (this.d == 0) {
if (Key.isDown(32)) {
this.d = 10;
if (_global.vars.canonShootClear) {
shootStone(_global.vars.MCCanon._rotation, _global.vars.stoneContainer[1]);
updateStoneContainer();
}
}
if (Key.isDown(g.charCodeAt()) || (Key.isDown(G.charCodeAt()))) {
this.d = 10;
_global.playSounds = !_global.playSounds;
}
}
};
_global.vars.canonShootClear = true;
this.createEmptyMovieClip("playground", 1);
this.playground.beginFill("0x000000", 0);
var x = (_global.vars.arraySizeX * _global.vars.stoneStepX);
var y = ((_global.vars.arraySizeY - 1) * _global.vars.stoneStepY);
var oX = (_global.vars.stoneStepX / 2);
var oY = (_global.vars.stoneStepY / 2);
this.playground.moveTo(-oX, -oY);
this.playground.lineTo(x, -oY);
this.playground.lineTo(x, y - oY);
this.playground.lineTo(-oX, y - oY);
this.playground.lineTo(-oX, -oY);
this.playground.endFill;
_global.vars.MCPlayground = this.playground;
this.createEmptyMovieClip("stoneContainer", 2);
_global.vars.MCStoneContainer = this.stoneContainer;
_global.vars.MCStoneContainer._x = _global.vars.stoneContainerX;
_global.vars.MCStoneContainer._y = _global.vars.stoneContainerY;
this.createEmptyMovieClip("score", 3);
_global.vars.MCScore = this.score;
_global.vars.level = new Array();
y = 0;
while (y < _global.vars.arraySizeY) {
_global.vars.level[y] = new Array();
x = 0;
while (x < _global.vars.arraySizeX) {
if (y < _global.vars.levelHeight) {
var t = Math.floor(Math.random() * 6);
_global.vars.colors[t]++;
} else {
var t = 999;
}
spawnStone(y, x, t);
x++;
}
y++;
}
i = 0;
while (i < 2) {
_global.vars.stoneContainer[i] = Math.floor(Math.random() * 6);
i++;
}
updateStoneContainer();
_global.vars.MCPlayground.onMouseDown = function () {
if ((((this._ymouse > ((_global.vars.arraySizeY - 1) * _global.vars.stoneStepY)) || (this._ymouse < ((-_global.vars.stoneStepY) / 2))) || (this._xmouse > (_global.vars.arraySizeX * _global.vars.stoneStepX))) || (this._xmouse < ((-_global.vars.stoneStepX) / 2))) {
return(undefined);
}
if (_global.vars.canonShootClear) {
var newX = Math.floor((this._xmouse + (_global.vars.stoneStepX / 2)) / _global.vars.stoneStepX);
var newY = Math.floor((this._ymouse + (_global.vars.stoneStepY / 2)) / _global.vars.stoneStepY);
if (newX > _global.vars.arraySizeX) {
newX = _global.vars.arraySizeX;
}
if (newY > _global.vars.arraySizeY) {
newY = _global.vars.arraySizeY;
}
if (newX < 0) {
newX = 0;
}
if (newY < 0) {
newY = 0;
}
shootStone(_global.vars.MCCanon._rotation, _global.vars.stoneContainer[1]);
updateStoneContainer();
}
};
}
function updateStoneContainer() {
var helpArray = [];
var helpIndex = 0;
i = 0;
while (i < 6) {
if (_global.vars.colors[i] > 0) {
helpArray[helpIndex++] = i;
}
i++;
}
_global.vars.failureMax = helpIndex - 1;
_global.vars.stoneContainer[1] = _global.vars.stoneContainer[0];
_global.vars.stoneContainer[0] = helpArray[Math.floor(Math.random() * helpIndex)];
_global.vars.MCGameField.stoneContainer.currentStone = "stone" + _global.vars.stoneContainer[1];
_global.vars.MCGameField.stoneContainer.nextStone = "stone" + _global.vars.stoneContainer[0];
_global.vars.MCGameField.stoneContainer.gotoAndPlay(2);
var tempColors = _global.vars.colors;
var numTempColors = 0;
var i = 0;
while (i < 6) {
if (tempColors[i] > 0) {
numTempColors++;
}
i++;
}
trace(tempColors);
trace("colors left:" + numTempColors);
trace(_global.vars.stoneContainer[1]);
trace(_global.vars.stoneContainer[0]);
if (((((numTempColors <= 2) && (tempColors[currentStone.t] != 0)) && (tempColors[_global.vars.stoneContainer[0]] != 0)) && (tempColors[_global.vars.stoneContainer[1]] != 0)) && (_global.vars.MCGameField.delayCounter._currentframe == 1)) {
_global.vars.MCGameField.delayCounter.gotoAndPlay(5);
}
}
function shootStone(r, t) {
_global.vars.canonShootClear = false;
_global.vars.MCPlayGround.attachMovie("stone" + t, "shoot", 9999);
currentStone = _global.vars.MCPlayGround.shoot;
currentStone.speed = 12;
currentStone.angle = r;
currentStone.t = t;
currentStone._x = (_global.vars.arraySizeX * _global.vars.stoneStepX) / 2;
currentStone._y = (_global.vars.arraySizeY * _global.vars.stoneStepY) - 16;
currentStone.onEnterFrame = doMoveStone;
}
function clearIsolated() {
var x = 0;
while (x < _global.vars.arraySizeX) {
var name = _global.vars.MCplayGround["s0_" + x];
if ((!name.tagged) && (_global.vars.level[0][x] != 999)) {
floodFillIsolated(0, x);
}
x++;
}
_global.vars.neighboursIndex = 0;
_global.vars.neighbours = new Array();
_global.vars.ffi = 0;
y = 0;
while (y < _global.vars.arraySizeY) {
x = 0;
while (x < _global.vars.arraySizeX) {
var name = _global.vars.MCplayGround[(("s" + y) + "_") + x];
if ((!name.tagged) && (_global.vars.level[y][x] != 999)) {
_global.vars.neighbours[_global.vars.neighboursIndex++] = name;
_global.vars.level[y][x] = 999;
name.last = false;
name.popped = false;
name.targetScale = 0;
name.speed = 3;
name.delay = (_global.vars.ffi++) * 3;
name.onEnterFrame = doClearStone;
}
name.tagged = false;
x++;
}
y++;
}
if (_global.vars.neighBoursIndex > 0) {
i = 0;
while (i < _global.vars.neighbours.length) {
tempMC = _global.vars.neighbours[i];
var y2 = (tempMC.y * _global.vars.stoneStepY);
var helpVar = (tempMC.y % 2);
var x2 = ((tempMC.x * _global.vars.stoneStepX) + ((helpVar * _global.vars.stoneStepX) / 2));
if (x2 < _global.vars.scoreBounds[0]) {
_global.vars.scoreBounds[0] = x2;
}
if (y2 < _global.vars.scoreBounds[1]) {
_global.vars.scoreBounds[1] = y2;
}
if (x2 > _global.vars.scoreBounds[2]) {
_global.vars.scoreBounds[2] = x2;
}
if (y2 > _global.vars.scoreBounds[3]) {
_global.vars.scoreBounds[3] = y2;
}
_global.vars.scoreMove = _global.vars.scoreMove + 100;
i++;
}
} else {
return(undefined);
}
_global.vars.scoreMove = _global.vars.scoreMove + (int((_global.vars.neighbours.length - 1) / 3) * 100);
}
function gameOver() {
clearInterval(_global.vars.delayCounter);
_global.vars.MCcanon.onEnterFrame = null;
for (mc in _global.vars.MCCode) {
_global.vars.MCCode[mc].onEnterFrame = null;
}
trace("GAME OVER!");
_global.vars.MCCanon.onMouseMove = null;
_global.vars.MCPlayground.onMouseDown = null;
_global.vars.MCGameField.gotoAndPlay(2);
_global.vars.MCGameField.gameOverScreen.gameOverScore.score = _global.vars.totalScore;
}
function checkGameEnd() {
var stoneBottomCount = 0;
var stoneTopCount = 0;
x = 0;
while (x < _global.vars.arraySizeX) {
if (_global.vars.level[_global.vars.arraySizeY - 1][x] != 999) {
stoneBottomCount++;
}
if (_global.vars.level[0][x] != 999) {
stoneTopCount++;
}
x++;
}
if (stoneBottomCount > 0) {
_global.vars.gameOver = true;
gameOver();
} else if (stoneTopCount == 0) {
_global.vars.scoreMove = _global.vars.scoreMove + _global.vars.totalScore;
_global.vars.doubleScore = true;
clearInterval(_global.vars.delayCounter);
}
}
floodFill = function (y, x, t) {
var name = _global.vars.MCplayGround[(("s" + y) + "_") + x];
if (name.tagged || (_global.vars.level[y][x] != t)) {
return(undefined);
}
name.tagged = true;
_global.vars.neighbours[_global.vars.neighboursIndex++] = name;
var helpVar = (y % 2);
var xTemp = (x + helpVar);
if (y > 0) {
if (xTemp > 0) {
floodFill(y - 1, xTemp - 1, t);
}
if (xTemp < _global.vars.arraySizeX) {
floodFill(y - 1, xTemp, t);
}
}
if (x > 0) {
floodFill(y, x - 1, t);
}
if (x < (_global.vars.arraySizeX - 1)) {
floodFill(y, x + 1, t);
}
if (y < (_global.vars.arraySizeY - 1)) {
if (xTemp > 0) {
floodFill(y + 1, xTemp - 1, t);
}
if (xTemp < _global.vars.arraySizeX) {
floodFill(y + 1, xTemp, t);
}
}
};
floodFillIsolated = function (y, x) {
var name = _global.vars.MCplayGround[(("s" + y) + "_") + x];
if (_global.vars.level[y][x] == 999) {
return(undefined);
}
name.tagged = true;
var helpVar = (y % 2);
var xTemp = (x + helpVar);
if (y > 0) {
if (xTemp > 0) {
if (!_global.vars.MCplayGround[(("s" + (y - 1)) + "_") + (xTemp - 1)].tagged) {
floodFillIsolated(y - 1, xTemp - 1);
}
}
if (xTemp < _global.vars.arraySizeX) {
if (!_global.vars.MCplayGround[(("s" + (y - 1)) + "_") + xTemp].tagged) {
floodFillIsolated(y - 1, xTemp);
}
}
}
if (x > 0) {
if (!_global.vars.MCplayGround[(("s" + y) + "_") + (x - 1)].tagged) {
floodFillIsolated(y, x - 1);
}
}
if (x < (_global.vars.arraySizeX - 1)) {
if (!_global.vars.MCplayGround[(("s" + y) + "_") + (x + 1)].tagged) {
floodFillIsolated(y, x + 1);
}
}
if (y < (_global.vars.arraySizeY - 1)) {
if (xTemp > 0) {
if (!_global.vars.MCplayGround[(("s" + (y + 1)) + "_") + (xTemp - 1)].tagged) {
floodFillIsolated(y + 1, xTemp - 1);
}
}
if (xTemp < _global.vars.arraySizeX) {
if (!_global.vars.MCplayGround[(("s" + (y + 1)) + "_") + xTemp].tagged) {
floodFillIsolated(y + 1, xTemp);
}
}
}
};
Symbol 59 MovieClip Frame 2
stop();
init();
Symbol 59 MovieClip Frame 3
stop();
Symbol 59 MovieClip Frame 4
_global.vars.neighboursIndex = 0;
_global.vars.neighbours = new Array();
_global.vars.scoreBounds = [9999, 9999, 0, 0];
_global.vars.scoreMove = 0;
floodFill(newY, newX, _global.vars.level[newY][newX]);
if (_global.vars.neighBoursIndex >= 3) {
i = 0;
while (i < _global.vars.neighbours.length) {
tempMC = _global.vars.neighbours[i];
_global.vars.level[tempMC.y][tempMC.x] = 999;
tempMC.tagged = false;
tempMC.popped = false;
tempMC.targetScale = 0;
tempMC.speed = 3;
tempMC.delay = i * 3;
if (i == (_global.vars.neighbours.length - 1)) {
tempMC.last = true;
} else {
tempMC.last = false;
}
tempMC.onEnterFrame = doClearStone;
var y2 = (tempMC.y * _global.vars.stoneStepY);
var helpVar = (tempMC.y % 2);
var x2 = ((tempMC.x * _global.vars.stoneStepX) + ((helpVar * _global.vars.stoneStepX) / 2));
if (x2 < _global.vars.scoreBounds[0]) {
_global.vars.scoreBounds[0] = x2;
}
if (y2 < _global.vars.scoreBounds[1]) {
_global.vars.scoreBounds[1] = y2;
}
if (x2 > _global.vars.scoreBounds[2]) {
_global.vars.scoreBounds[2] = x2;
}
if (y2 > _global.vars.scoreBounds[3]) {
_global.vars.scoreBounds[3] = y2;
}
_global.vars.scoreMove = _global.vars.scoreMove + 10;
i++;
}
_global.vars.scoreMove = _global.vars.scoreMove + (int((_global.vars.neighbours.length - 1) / 3) * 10);
} else {
i = 0;
while (i < _global.vars.neighbours.length) {
tempMC = _global.vars.neighbours[i];
tempMC.tagged = false;
i++;
}
_global.vars.failureCount++;
if (_global.vars.failureCount > 5) {
_global.vars.failureCount = _global.vars.failureCountMin++;
if (_global.vars.failureCountMin > 6) {
trace(_global.vars.failureMax);
_global.vars.failureCountMin = 6 - _global.vars.failureMax;
_global.vars.failureCount = 5 - _global.vars.failureMax;
}
i = 1;
while (i <= 5) {
if (i < _global.vars.failureCountMin) {
_global.vars.MCFailureHolder["fail" + i].gotoAndStop(3);
} else {
_global.vars.MCFailureHolder["fail" + i].gotoAndStop(1);
}
i++;
}
addNewRow();
} else {
_global.vars.MCFailureHolder["fail" + _global.vars.failureCount].gotoAndStop(2);
}
checkGameEnd();
_global.vars.canonShootClear = true;
}
_global.vars.MCCode.gotoAndStop(3);
stop();
Symbol 59 MovieClip Frame 5
clearIsolated();
checkGameEnd();
_global.vars.MCScore.attachMovie("scoreAnimation", "scoreAnimation", 1);
_global.vars.MCScore.scoreAnimation.score.score = _global.vars.scoreMove;
if (_global.vars.doubleScore) {
_global.vars.MCScore.scoreAnimation._x = (_global.vars.arraySizeX * _global.vars.stoneStepX) / 2;
_global.vars.MCScore.scoreAnimation._y = (_global.vars.arraySizeY * _global.vars.stoneStepY) / 2;
_global.vars.MCScore.scoreAnimation._xscale = (_global.vars.MCScore.scoreAnimation._yscale = 400);
_global.vars.MCScore.scoreAnimation.speed = 10;
} else {
_global.vars.MCScore.scoreAnimation._x = _global.vars.scoreBounds[0] + ((_global.vars.scoreBounds[2] - _global.vars.scoreBounds[0]) / 2);
_global.vars.MCScore.scoreAnimation._y = _global.vars.scoreBounds[1] + ((_global.vars.scoreBounds[3] - _global.vars.scoreBounds[1]) / 2);
_global.vars.MCScore.scoreAnimation.speed = 2;
_global.vars.canonShootClear = true;
if (_global.vars.gameOver) {
_global.vars.MCCode.gameOver();
}
}
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 14
stop();
Symbol 64 MovieClip Frame 19
stop();
Symbol 64 MovieClip Frame 24
stop();
Symbol 64 MovieClip Frame 29
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 15
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 95
function delayDec() {
_global.vars.delaySeconds--;
if (_global.vars.delaySeconds < 0) {
_global.vars.delayMinutes--;
_global.vars.delayseconds = 59;
}
if ((_global.vars.delayMinutes == 0) && (_global.vars.delaySeconds == 0)) {
clearInterval(_global.vars.delayCounter);
_global.vars.gameOver = true;
_global.vars.MCCode.gameOver();
}
if (_global.vars.delaySeconds < 10) {
_global.vars.delaySeconds = "0" + _global.vars.delaySeconds;
}
_global.vars.MCGameField.delayCounter.delayMC.delay = (_global.vars.delayMinutes + ":") + _global.vars.delaySeconds;
}
_global.vars.delayMinutes = 5;
_global.vars.delaySeconds = 0;
_global.vars.delayCounter = setInterval(this.delayDec, 1000);
stop();
Symbol 84 Button
on (release) {
gotoAndPlay (26);
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 10
clearInterval(_global.vars.scoreSavingSystemInterval);
this.gameOverScreen.gameOverScore.score = _global.vars.totalScore;
Symbol 86 MovieClip Frame 20
this.gameOverScreen.gameOverScore.score = _global.vars.totalScore;
Symbol 86 MovieClip Frame 25
stop();
Symbol 86 MovieClip Frame 39
_root.gotoAndStop(10);
Symbol 91 Button
on (release) {
this.gotoAndPlay(10);
}