Frame 1
function StartCreatingLevel0() {
return(_root._game.CreatePlayingField(0, 4, 2, FinishCreatingLevel0));
}
function FinishCreatingLevel0(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel0");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:0}], [{_x:0, _y:1}, {_x:1, _y:1}]]);
_local1.PositionPiece(0, 1, -3);
_local1.PositionPiece(1, 2, -2);
_local1.PositionPiece(2, 0, -1);
return(_local1);
}
function StartCreatingLevel1() {
return(_root._game.CreatePlayingField(1, 4, 2, FinishCreatingLevel1));
}
function FinishCreatingLevel1(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel1");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:1, _y:1}], [{_x:3, _y:0}, {_x:3, _y:1}], [{_x:0, _y:1}]]);
_local1.PositionPiece(0, 0, -3);
_local1.PositionPiece(1, 0, -2);
_local1.PositionPiece(2, 2, -3);
_local1.PositionPiece(3, 2, -1);
return(_local1);
}
function StartCreatingLevel2() {
return(_root._game.CreatePlayingField(2, 6, 3, FinishCreatingLevel2));
}
function FinishCreatingLevel2(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel2");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:3, _y:2}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:3, _y:1}, {_x:5, _y:1}], [{_x:5, _y:0}], [{_x:1, _y:1}, {_x:1, _y:2}], [{_x:4, _y:2}, {_x:5, _y:2}]]);
_local1.PositionPiece(0, 5, -5);
_local1.PositionPiece(1, 0, -4);
_local1.PositionPiece(2, 2, -5);
_local1.PositionPiece(3, 4, -5);
_local1.PositionPiece(4, 0, -3);
_local1.PositionPiece(5, 0, -5);
return(_local1);
}
function StartCreatingLevel3() {
return(_root._game.CreatePlayingField(3, 6, 3, FinishCreatingLevel3));
}
function FinishCreatingLevel3(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel3");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:1, _y:2}], [{_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}, {_x:3, _y:1}], [{_x:0, _y:1}, {_x:0, _y:2}], [{_x:3, _y:2}, {_x:4, _y:2}], [{_x:5, _y:2}]]);
_local1.PositionPiece(0, 2, -5);
_local1.PositionPiece(1, 1, -3);
_local1.PositionPiece(2, 4, -5);
_local1.PositionPiece(3, 3, -4);
_local1.PositionPiece(4, 0, -5);
_local1.PositionPiece(5, 1, -4);
_local1.PositionPiece(6, 1, -2);
return(_local1);
}
function StartCreatingLevel4() {
return(_root._game.CreatePlayingField(4, 6, 3, FinishCreatingLevel4));
}
function FinishCreatingLevel4(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel4");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:1, _y:2}], [{_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}], [{_x:0, _y:1}, {_x:0, _y:2}], [{_x:3, _y:1}, {_x:4, _y:1}], [{_x:3, _y:2}, {_x:4, _y:2}, {_x:5, _y:2}]]);
_local1.PositionPiece(0, 0, -5);
_local1.PositionPiece(1, 4, -5);
_local1.PositionPiece(2, 2, -5);
_local1.PositionPiece(3, 4, -5);
_local1.PositionPiece(4, 0, -2);
_local1.PositionPiece(5, 4, -2);
_local1.PositionPiece(6, 1, -3);
return(_local1);
}
function StartCreatingLevel6() {
return(_root._game.CreatePlayingField(6, 6, 3, FinishCreatingLevel6));
}
function FinishCreatingLevel6(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel6");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:2, _y:2}], [{_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}], [{_x:5, _y:0}, {_x:5, _y:1}], [{_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:4, _y:2}, {_x:5, _y:2}], [{_x:0, _y:2}]]);
_local1.PositionPiece(0, 0, -4);
_local1.PositionPiece(1, 4, -5);
_local1.PositionPiece(2, 0, -5);
_local1.PositionPiece(3, 0, -2);
_local1.PositionPiece(4, 2, -5);
_local1.PositionPiece(5, 2, -4);
return(_local1);
}
function StartCreatingLevel5() {
return(_root._game.CreatePlayingField(5, 6, 3, FinishCreatingLevel5));
}
function FinishCreatingLevel5(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel5");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:5, _y:2}], [{_x:0, _y:1}, {_x:1, _y:1}], [{_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:4, _y:2}, {_x:4, _y:1}], [{_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}]]);
_local1.PositionPiece(0, 0, -5);
_local1.PositionPiece(1, 4, -5);
_local1.PositionPiece(2, 0, -4);
_local1.PositionPiece(3, 4, -4);
_local1.PositionPiece(4, 1, -3);
_local1.PositionPiece(5, 1, -4);
return(_local1);
}
function StartCreatingLevel7() {
return(_root._game.CreatePlayingField(7, 7, 4, FinishCreatingLevel7));
}
function FinishCreatingLevel7(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel7");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:2, _y:3}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:6, _y:0}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:2, _y:2}], [{_x:4, _y:3}], [{_x:6, _y:3}]]);
_local1.PositionPiece(0, 0, -6);
_local1.PositionPiece(1, 2, -4);
_local1.PositionPiece(2, 2, -6);
_local1.PositionPiece(3, 5, -5);
_local1.PositionPiece(4, 5, -6);
_local1.PositionPiece(5, 0, -2);
_local1.PositionPiece(6, 4, -6);
_local1.PositionPiece(7, 4, -3);
return(_local1);
}
function StartCreatingLevel10() {
return(_root._game.CreatePlayingField(10, 7, 4, FinishCreatingLevel10));
}
function FinishCreatingLevel10(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel10");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}, {_x:1, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:3, _y:2}], [{_x:3, _y:1}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:3, _y:3}], [{_x:6, _y:3}]]);
_local1.PositionPiece(0, 2, -6);
_local1.PositionPiece(1, 1, -5);
_local1.PositionPiece(2, 5, -6);
_local1.PositionPiece(3, 5, -4);
_local1.PositionPiece(4, 0, -5);
_local1.PositionPiece(5, 1, -6);
_local1.PositionPiece(6, 0, -3);
_local1.PositionPiece(7, 4, -4);
return(_local1);
}
function StartCreatingLevel9() {
return(_root._game.CreatePlayingField(9, 6, 3, FinishCreatingLevel9));
}
function FinishCreatingLevel9(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel7");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:2, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}], [{_x:3, _y:1}, {_x:3, _y:2}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:5, _y:2}], [{_x:5, _y:1}], [{_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}]]);
_local1.PositionPiece(0, 0, -4);
_local1.PositionPiece(1, 1, -5);
_local1.PositionPiece(2, 3, -3);
_local1.PositionPiece(3, 4, -4);
_local1.PositionPiece(4, 0, -5);
_local1.PositionPiece(5, 1, -4);
return(_local1);
}
function StartCreatingLevel8() {
return(_root._game.CreatePlayingField(8, 7, 4, FinishCreatingLevel8));
}
function FinishCreatingLevel8(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel8");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:0, _y:2}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:5, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}, {_x:6, _y:2}], [{_x:2, _y:1}, {_x:2, _y:2}, {_x:3, _y:2}, {_x:4, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:3, _y:1}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:4, _y:3}], [{_x:6, _y:3}]]);
_local1.PositionPiece(0, 0, -6);
_local1.PositionPiece(1, 4, -6);
_local1.PositionPiece(2, 2, -6);
_local1.PositionPiece(3, 5, -5);
_local1.PositionPiece(4, 2, -4);
_local1.PositionPiece(5, 1, -3);
_local1.PositionPiece(6, 0, -2);
_local1.PositionPiece(7, 1, -6);
return(_local1);
}
function StartCreatingLevel11() {
return(_root._game.CreatePlayingField(11, 7, 4, FinishCreatingLevel11));
}
function FinishCreatingLevel11(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel11");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:0}, {_x:6, _y:0}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:3, _y:2}, {_x:3, _y:3}], [{_x:4, _y:2}, {_x:4, _y:3}], [{_x:5, _y:2}, {_x:5, _y:3}]]);
_local1.PositionPiece(0, 0, -4);
_local1.PositionPiece(1, 1, -4);
_local1.PositionPiece(2, 0, -6);
_local1.PositionPiece(3, 3, -6);
_local1.PositionPiece(4, 5, -4);
_local1.PositionPiece(5, 3, -3);
_local1.PositionPiece(6, 2, -6);
_local1.PositionPiece(7, 3, -5);
return(_local1);
}
function StartCreatingLevel14() {
return(_root._game.CreatePlayingField(14, 7, 4, FinishCreatingLevel14));
}
function FinishCreatingLevel14(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel14");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}], [{_x:4, _y:2}, {_x:4, _y:3}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:5, _y:3}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:2, _y:3}]]);
_local1.PositionPiece(0, 0, -4);
_local1.PositionPiece(1, 0, -6);
_local1.PositionPiece(2, 1, -6);
_local1.PositionPiece(3, 4, -6);
_local1.PositionPiece(4, 6, -3);
_local1.PositionPiece(5, 5, -5);
_local1.PositionPiece(6, 4, -1);
return(_local1);
}
function StartCreatingLevel12() {
return(_root._game.CreatePlayingField(12, 7, 4, FinishCreatingLevel12));
}
function FinishCreatingLevel12(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel12");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:4, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}], [{_x:6, _y:0}, {_x:6, _y:1}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:4, _y:3}], [{_x:1, _y:2}, {_x:2, _y:2}, {_x:3, _y:2}, {_x:4, _y:2}], [{_x:5, _y:3}, {_x:6, _y:3}]]);
_local1.PositionPiece(0, 0, -4);
_local1.PositionPiece(1, 0, -6);
_local1.PositionPiece(2, 2, -6);
_local1.PositionPiece(3, 6, -5);
_local1.PositionPiece(4, 2, -2);
_local1.PositionPiece(5, 3, -2);
_local1.PositionPiece(6, 5, -6);
return(_local1);
}
function StartCreatingLevel13() {
return(_root._game.CreatePlayingField(13, 7, 4, FinishCreatingLevel13));
}
function FinishCreatingLevel13(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel13");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}, {_x:0, _y:2}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:3, _y:2}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:5, _y:3}, {_x:4, _y:3}, {_x:3, _y:3}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:0, _y:3}, {_x:2, _y:3}]]);
_local1.PositionPiece(0, 1, -6);
_local1.PositionPiece(1, 0, -5);
_local1.PositionPiece(2, 3, -6);
_local1.PositionPiece(3, 6, -5);
_local1.PositionPiece(4, 3, -5);
_local1.PositionPiece(5, 3, -3);
_local1.PositionPiece(6, 1, -3);
return(_local1);
}
function StartCreatingLevel16() {
return(_root._game.CreatePlayingField(16, 8, 5, FinishCreatingLevel16));
}
function FinishCreatingLevel16(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel16");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}], [{_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:6, _y:1}], [{_x:1, _y:2}, {_x:1, _y:3}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}], [{_x:4, _y:2}, {_x:4, _y:3}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:6, _y:4}, {_x:5, _y:4}, {_x:4, _y:4}], [{_x:5, _y:3}], [{_x:0, _y:4}, {_x:1, _y:4}], [{_x:2, _y:4}]]);
_local1.PositionPiece(0, 1, -8);
_local1.PositionPiece(1, 5, -8);
_local1.PositionPiece(2, 3, -6);
_local1.PositionPiece(3, 3, -8);
_local1.PositionPiece(4, 6, -7);
_local1.PositionPiece(5, 0, -8);
_local1.PositionPiece(6, 2, -6);
_local1.PositionPiece(7, 6, -5);
_local1.PositionPiece(8, 2, -2);
_local1.PositionPiece(9, 1, -5);
_local1.PositionPiece(10, 3, -7);
_local1.PositionPiece(11, 0, -4);
_local1.PositionPiece(12, 4, -2);
return(_local1);
}
function StartCreatingLevel15() {
return(_root._game.CreatePlayingField(15, 8, 5, FinishCreatingLevel15));
}
function FinishCreatingLevel15(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel15");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:1}, {_x:2, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}], [{_x:7, _y:0}], [{_x:3, _y:1}, {_x:3, _y:2}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}, {_x:4, _y:4}], [{_x:4, _y:2}, {_x:5, _y:2}, {_x:6, _y:2}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:0, _y:4}], [{_x:4, _y:3}, {_x:5, _y:3}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:5, _y:4}]]);
_local1.PositionPiece(0, 1, -7);
_local1.PositionPiece(1, 4, -6);
_local1.PositionPiece(2, 3, -8);
_local1.PositionPiece(3, 5, -8);
_local1.PositionPiece(4, 2, -8);
_local1.PositionPiece(5, 0, -7);
_local1.PositionPiece(6, 0, -5);
_local1.PositionPiece(7, 4, -5);
_local1.PositionPiece(8, 5, -2);
_local1.PositionPiece(9, 3, -4);
return(_local1);
}
function StartCreatingLevel17() {
return(_root._game.CreatePlayingField(17, 8, 5, FinishCreatingLevel17));
}
function FinishCreatingLevel17(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel17");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:7, _y:0}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}], [{_x:1, _y:1}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:3, _y:3}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:2, _y:2}, {_x:4, _y:2}], [{_x:5, _y:2}, {_x:6, _y:2}], [{_x:4, _y:3}, {_x:5, _y:3}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:7, _y:4}, {_x:5, _y:4}, {_x:4, _y:4}, {_x:3, _y:4}], [{_x:2, _y:4}]]);
_local1.PositionPiece(0, 5, -8);
_local1.PositionPiece(1, 5, -7);
_local1.PositionPiece(2, 3, -8);
_local1.PositionPiece(3, 6, -6);
_local1.PositionPiece(4, 1, -8);
_local1.PositionPiece(5, 0, -8);
_local1.PositionPiece(6, 2, -6);
_local1.PositionPiece(7, 3, -6);
_local1.PositionPiece(8, 2, -2);
_local1.PositionPiece(9, 2, -3);
_local1.PositionPiece(10, 1, -2);
_local1.PositionPiece(11, 1, -4);
return(_local1);
}
function StartCreatingLevel18() {
return(_root._game.CreatePlayingField(18, 8, 5, FinishCreatingLevel18));
}
function FinishCreatingLevel18(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel18");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:6, _y:1}, {_x:6, _y:2}], [{_x:0, _y:2}, {_x:0, _y:3}], [{_x:3, _y:2}, {_x:3, _y:3}], [{_x:4, _y:2}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:3, _y:4}, {_x:2, _y:4}], [{_x:1, _y:3}, {_x:1, _y:4}, {_x:0, _y:4}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:5, _y:4}, {_x:7, _y:4}]]);
_local1.PositionPiece(0, 0, -7);
_local1.PositionPiece(1, 1, -8);
_local1.PositionPiece(2, 6, -8);
_local1.PositionPiece(3, 4, -6);
_local1.PositionPiece(4, 3, -8);
_local1.PositionPiece(5, 7, -6);
_local1.PositionPiece(6, 6, -2);
_local1.PositionPiece(7, 4, -5);
_local1.PositionPiece(8, 1, -5);
_local1.PositionPiece(9, 4, -2);
_local1.PositionPiece(10, 1, -2);
return(_local1);
}
function StartCreatingLevel19() {
return(_root._game.CreatePlayingField(19, 8, 5, FinishCreatingLevel19));
}
function FinishCreatingLevel19(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel19");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}], [{_x:6, _y:0}, {_x:7, _y:0}], [{_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:2, _y:2}], [{_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:2, _y:3}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}], [{_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}, {_x:2, _y:4}], [{_x:1, _y:3}], [{_x:5, _y:3}, {_x:5, _y:4}, {_x:4, _y:4}, {_x:3, _y:4}, {_x:6, _y:4}], [{_x:6, _y:3}], [{_x:7, _y:4}]]);
_local1.PositionPiece(0, 4, -6);
_local1.PositionPiece(1, 1, -8);
_local1.PositionPiece(2, 1, -5);
_local1.PositionPiece(3, 5, -4);
_local1.PositionPiece(4, 5, -7);
_local1.PositionPiece(5, 0, -7);
_local1.PositionPiece(6, 3, -6);
_local1.PositionPiece(7, 0, -3);
_local1.PositionPiece(8, 0, -8);
_local1.PositionPiece(9, 1, -3);
_local1.PositionPiece(10, 7, -6);
_local1.PositionPiece(11, 5, -8);
return(_local1);
}
function StartCreatingLevel20() {
return(_root._game.CreatePlayingField(20, 8, 5, FinishCreatingLevel20));
}
function FinishCreatingLevel20(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel20");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:6, _y:3}], [{_x:0, _y:1}, {_x:1, _y:1}], [{_x:2, _y:1}, {_x:2, _y:2}], [{_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:6, _y:1}, {_x:6, _y:2}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}, {_x:2, _y:4}], [{_x:5, _y:3}, {_x:5, _y:4}], [{_x:6, _y:4}, {_x:7, _y:4}]]);
_local1.PositionPiece(0, 2, -6);
_local1.PositionPiece(1, 3, -3);
_local1.PositionPiece(2, 1, -7);
_local1.PositionPiece(3, 3, -7);
_local1.PositionPiece(4, 3, -8);
_local1.PositionPiece(5, 7, -4);
_local1.PositionPiece(6, 6, -7);
_local1.PositionPiece(7, 5, -6);
_local1.PositionPiece(8, 0, -8);
_local1.PositionPiece(9, 5, -3);
_local1.PositionPiece(10, 5, -8);
_local1.PositionPiece(11, 2, -5);
return(_local1);
}
function StartCreatingLevel23() {
return(_root._game.CreatePlayingField(23, 8, 5, FinishCreatingLevel23));
}
function FinishCreatingLevel23(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel23");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:2, _y:1}, {_x:1, _y:1}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:0}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:0, _y:1}, {_x:0, _y:2}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:3, _y:2}], [{_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:3, _y:4}, {_x:4, _y:4}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}, {_x:1, _y:3}], [{_x:3, _y:3}, {_x:4, _y:3}, {_x:5, _y:3}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:7, _y:4}, {_x:5, _y:4}]]);
_local1.PositionPiece(0, 0, -6);
_local1.PositionPiece(1, 0, -8);
_local1.PositionPiece(2, 4, -8);
_local1.PositionPiece(3, 6, -8);
_local1.PositionPiece(4, 3, -8);
_local1.PositionPiece(5, 2, -5);
_local1.PositionPiece(6, 0, -5);
_local1.PositionPiece(7, 6, -3);
_local1.PositionPiece(8, 5, -4);
_local1.PositionPiece(9, 3, -3);
return(_local1);
}
function StartCreatingLevel21() {
return(_root._game.CreatePlayingField(21, 8, 5, FinishCreatingLevel21));
}
function FinishCreatingLevel21(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel21");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:3, _y:1}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}, {_x:7, _y:1}], [{_x:6, _y:0}, {_x:7, _y:0}], [{_x:2, _y:1}, {_x:2, _y:2}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:2, _y:3}], [{_x:5, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:6, _y:4}], [{_x:5, _y:3}, {_x:5, _y:4}], [{_x:2, _y:4}, {_x:3, _y:4}]]);
_local1.PositionPiece(0, 2, -8);
_local1.PositionPiece(1, 0, -8);
_local1.PositionPiece(2, 3, -5);
_local1.PositionPiece(3, 1, -7);
_local1.PositionPiece(4, 6, -4);
_local1.PositionPiece(5, 5, -8);
_local1.PositionPiece(6, 0, -3);
_local1.PositionPiece(7, 4, -4);
_local1.PositionPiece(8, 1, -2);
_local1.PositionPiece(9, 5, -3);
_local1.PositionPiece(10, 0, -5);
_local1.PositionPiece(11, 6, -8);
return(_local1);
}
function StartCreatingLevel22() {
return(_root._game.CreatePlayingField(22, 8, 5, FinishCreatingLevel22));
}
function FinishCreatingLevel22(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel22");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:6, _y:3}, {_x:6, _y:2}], [{_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}], [{_x:1, _y:2}, {_x:1, _y:3}], [{_x:3, _y:2}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:1, _y:4}, {_x:2, _y:4}, {_x:3, _y:4}], [{_x:5, _y:4}, {_x:6, _y:4}, {_x:7, _y:4}]]);
_local1.PositionPiece(0, 5, -5);
_local1.PositionPiece(1, 2, -8);
_local1.PositionPiece(2, 5, -6);
_local1.PositionPiece(3, 7, -5);
_local1.PositionPiece(4, 0, -4);
_local1.PositionPiece(5, 6, -8);
_local1.PositionPiece(6, 6, -4);
_local1.PositionPiece(7, 4, -6);
_local1.PositionPiece(8, 5, -8);
_local1.PositionPiece(9, 3, -4);
_local1.PositionPiece(10, 0, -7);
_local1.PositionPiece(11, 1, -6);
return(_local1);
}
function StartCreatingLevel24() {
return(_root._game.CreatePlayingField(24, 8, 5, FinishCreatingLevel24));
}
function FinishCreatingLevel24(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel24");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:3, _y:2}, {_x:4, _y:2}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}, {_x:5, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:6, _y:4}, {_x:5, _y:4}], [{_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}, {_x:0, _y:4}], [{_x:3, _y:3}, {_x:3, _y:4}, {_x:4, _y:4}], [{_x:4, _y:3}, {_x:5, _y:3}]]);
_local1.PositionPiece(0, 3, -4);
_local1.PositionPiece(1, 0, -8);
_local1.PositionPiece(2, 2, -8);
_local1.PositionPiece(3, 6, -7);
_local1.PositionPiece(4, 4, -7);
_local1.PositionPiece(5, 5, -5);
_local1.PositionPiece(6, 2, -2);
_local1.PositionPiece(7, 1, -3);
_local1.PositionPiece(8, 4, -8);
return(_local1);
}
function StartCreatingLevel25() {
return(_root._game.CreatePlayingField(25, 8, 5, FinishCreatingLevel25));
}
function FinishCreatingLevel25(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel25");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:5, _y:0}, {_x:5, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:7, _y:0}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}], [{_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}], [{_x:4, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}], [{_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}], [{_x:4, _y:3}, {_x:4, _y:4}, {_x:5, _y:4}, {_x:6, _y:4}, {_x:7, _y:4}, {_x:7, _y:3}], [{_x:2, _y:4}]]);
_local1.PositionPiece(0, 0, -8);
_local1.PositionPiece(1, 0, -5);
_local1.PositionPiece(2, 4, -7);
_local1.PositionPiece(3, 2, -5);
_local1.PositionPiece(4, 4, -8);
_local1.PositionPiece(5, 4, -5);
_local1.PositionPiece(6, 1, -7);
_local1.PositionPiece(7, 6, -8);
_local1.PositionPiece(8, 0, -7);
_local1.PositionPiece(9, 5, -7);
_local1.PositionPiece(10, 1, -2);
_local1.PositionPiece(11, 5, -8);
return(_local1);
}
function StartCreatingLevel26() {
return(_root._game.CreatePlayingField(26, 8, 5, FinishCreatingLevel26));
}
function FinishCreatingLevel26(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel26");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}], [{_x:2, _y:0}, {_x:2, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:6, _y:3}, {_x:5, _y:3}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:2, _y:2}], [{_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}, {_x:4, _y:2}], [{_x:0, _y:2}, {_x:1, _y:2}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}], [{_x:1, _y:3}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:3, _y:4}], [{_x:2, _y:4}], [{_x:5, _y:4}, {_x:6, _y:4}, {_x:7, _y:4}]]);
_local1.PositionPiece(0, 0, -8);
_local1.PositionPiece(1, 0, -3);
_local1.PositionPiece(2, 6, -8);
_local1.PositionPiece(3, 2, -8);
_local1.PositionPiece(4, 5, -6);
_local1.PositionPiece(5, 1, -7);
_local1.PositionPiece(6, 4, -6);
_local1.PositionPiece(7, 4, -8);
_local1.PositionPiece(8, 1, -5);
_local1.PositionPiece(9, 1, -3);
_local1.PositionPiece(10, 4, -7);
_local1.PositionPiece(11, 2, -1);
return(_local1);
}
function StartCreatingLevel27() {
return(_root._game.CreatePlayingField(27, 8, 5, FinishCreatingLevel27));
}
function FinishCreatingLevel27(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel27");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}], [{_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:3, _y:2}], [{_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:3, _y:4}], [{_x:5, _y:1}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:0, _y:3}, {_x:0, _y:4}], [{_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}], [{_x:3, _y:3}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:7, _y:4}], [{_x:5, _y:4}]]);
_local1.PositionPiece(0, 0, -6);
_local1.PositionPiece(1, 1, -6);
_local1.PositionPiece(2, 1, -8);
_local1.PositionPiece(3, 4, -8);
_local1.PositionPiece(4, 7, -6);
_local1.PositionPiece(5, 0, -2);
_local1.PositionPiece(6, 5, -5);
_local1.PositionPiece(7, 6, -6);
_local1.PositionPiece(8, 4, -4);
_local1.PositionPiece(9, 2, -4);
_local1.PositionPiece(10, 6, -8);
_local1.PositionPiece(11, 0, -8);
_local1.PositionPiece(12, 4, -7);
return(_local1);
}
function StartCreatingLevel28() {
return(_root._game.CreatePlayingField(28, 8, 5, FinishCreatingLevel28));
}
function FinishCreatingLevel28(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel28");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:0}, {_x:7, _y:2}], [{_x:0, _y:1}, {_x:1, _y:1}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:3, _y:4}, {_x:4, _y:4}, {_x:4, _y:3}], [{_x:0, _y:2}, {_x:1, _y:2}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:6, _y:4}], [{_x:6, _y:2}, {_x:6, _y:3}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:3}], [{_x:7, _y:3}, {_x:7, _y:4}]]);
_local1.PositionPiece(0, 0, -8);
_local1.PositionPiece(1, 3, -8);
_local1.PositionPiece(2, 6, -8);
_local1.PositionPiece(3, 1, -6);
_local1.PositionPiece(4, 5, -6);
_local1.PositionPiece(5, 0, -7);
_local1.PositionPiece(6, 0, -3);
_local1.PositionPiece(7, 0, -6);
_local1.PositionPiece(8, 7, -5);
_local1.PositionPiece(9, 3, -5);
_local1.PositionPiece(10, 3, -7);
return(_local1);
}
function StartCreatingLevel29() {
return(_root._game.CreatePlayingField(29, 8, 5, FinishCreatingLevel29));
}
function FinishCreatingLevel29(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel29");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:2, _y:2}], [{_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}, {_x:5, _y:3}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:1}, {_x:1, _y:3}, {_x:0, _y:3}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}], [{_x:3, _y:3}, {_x:3, _y:4}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:6, _y:4}, {_x:5, _y:4}], [{_x:0, _y:4}]]);
_local1.PositionPiece(0, 5, -5);
_local1.PositionPiece(1, 3, -4);
_local1.PositionPiece(2, 6, -8);
_local1.PositionPiece(3, 3, -8);
_local1.PositionPiece(4, 3, -8);
_local1.PositionPiece(5, 0, -4);
_local1.PositionPiece(6, 1, -8);
_local1.PositionPiece(7, 2, -4);
_local1.PositionPiece(8, 0, -6);
_local1.PositionPiece(9, 4, -2);
_local1.PositionPiece(10, 7, -7);
return(_local1);
}
function StartCreatingLevel30() {
return(_root._game.CreatePlayingField(30, 9, 6, FinishCreatingLevel30));
}
function FinishCreatingLevel30(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel30");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}], [{_x:1, _y:1}, {_x:1, _y:2}, {_x:0, _y:2}], [{_x:2, _y:1}, {_x:2, _y:2}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:6, _y:4}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}, {_x:7, _y:2}, {_x:8, _y:2}], [{_x:6, _y:1}, {_x:7, _y:1}], [{_x:3, _y:2}, {_x:3, _y:3}, {_x:2, _y:3}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:3, _y:4}], [{_x:6, _y:3}, {_x:7, _y:3}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:7, _y:4}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}], [{_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}, {_x:8, _y:5}], [{_x:3, _y:5}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 3, -8);
_local1.PositionPiece(2, 4, -9);
_local1.PositionPiece(3, 7, -7);
_local1.PositionPiece(4, 2, -9);
_local1.PositionPiece(5, 6, -7);
_local1.PositionPiece(6, 1, -6);
_local1.PositionPiece(7, 2, -3);
_local1.PositionPiece(8, 0, -8);
_local1.PositionPiece(9, 2, -7);
_local1.PositionPiece(10, 4, -3);
_local1.PositionPiece(11, 0, -5);
_local1.PositionPiece(12, 0, -2);
_local1.PositionPiece(13, 1, -9);
return(_local1);
}
function StartCreatingLevel31() {
return(_root._game.CreatePlayingField(31, 9, 6, FinishCreatingLevel31));
}
function FinishCreatingLevel31(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel31");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:8, _y:1}, {_x:8, _y:0}, {_x:8, _y:2}, {_x:7, _y:2}], [{_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:0, _y:2}], [{_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:4, _y:2}], [{_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:5, _y:3}, {_x:4, _y:3}, {_x:3, _y:3}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:1, _y:3}], [{_x:6, _y:2}, {_x:6, _y:3}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}], [{_x:7, _y:3}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:8, _y:5}, {_x:7, _y:5}], [{_x:1, _y:4}, {_x:2, _y:4}, {_x:3, _y:4}, {_x:3, _y:5}], [{_x:4, _y:4}, {_x:4, _y:5}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:6, _y:4}, {_x:7, _y:4}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 5, -9);
_local1.PositionPiece(2, 7, -3);
_local1.PositionPiece(3, 6, -5);
_local1.PositionPiece(4, 0, -8);
_local1.PositionPiece(5, 3, -3);
_local1.PositionPiece(6, 4, -5);
_local1.PositionPiece(7, 4, -9);
_local1.PositionPiece(8, 0, -7);
_local1.PositionPiece(9, 2, -6);
_local1.PositionPiece(10, 6, -6);
_local1.PositionPiece(11, 3, -9);
_local1.PositionPiece(12, 4, -7);
return(_local1);
}
function StartCreatingLevel32() {
return(_root._game.CreatePlayingField(32, 9, 6, FinishCreatingLevel32));
}
function FinishCreatingLevel32(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel32");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:7, _y:2}], [{_x:2, _y:2}, {_x:3, _y:2}], [{_x:5, _y:2}, {_x:6, _y:2}], [{_x:1, _y:3}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:5, _y:3}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:6, _y:5}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:8, _y:4}, {_x:8, _y:5}], [{_x:8, _y:3}], [{_x:0, _y:4}, {_x:1, _y:4}, {_x:2, _y:4}], [{_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}, {_x:1, _y:5}], [{_x:4, _y:4}, {_x:5, _y:4}], [{_x:0, _y:5}], [{_x:4, _y:5}, {_x:5, _y:5}], [{_x:7, _y:5}]]);
_local1.PositionPiece(0, 0, -6);
_local1.PositionPiece(1, 6, -3);
_local1.PositionPiece(2, 1, -3);
_local1.PositionPiece(3, 3, -9);
_local1.PositionPiece(4, 5, -9);
_local1.PositionPiece(5, 5, -6);
_local1.PositionPiece(6, 1, -9);
_local1.PositionPiece(7, 0, -7);
_local1.PositionPiece(8, 8, -5);
_local1.PositionPiece(9, 7, -9);
_local1.PositionPiece(10, 0, -9);
_local1.PositionPiece(11, 4, -5);
_local1.PositionPiece(12, 5, -5);
_local1.PositionPiece(13, 1, -6);
_local1.PositionPiece(14, 3, -4);
_local1.PositionPiece(15, 5, -1);
_local1.PositionPiece(16, 7, -7);
return(_local1);
}
function StartCreatingLevel33() {
return(_root._game.CreatePlayingField(33, 9, 6, FinishCreatingLevel33));
}
function FinishCreatingLevel33(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel33");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:1, _y:2}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:3, _y:4}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}], [{_x:5, _y:0}, {_x:6, _y:0}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:7, _y:1}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}], [{_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}], [{_x:2, _y:2}, {_x:2, _y:3}], [{_x:5, _y:2}, {_x:5, _y:3}], [{_x:7, _y:2}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:7, _y:4}], [{_x:6, _y:3}, {_x:6, _y:4}], [{_x:7, _y:3}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}, {_x:4, _y:5}], [{_x:2, _y:4}], [{_x:4, _y:4}, {_x:5, _y:4}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}], [{_x:8, _y:5}]]);
_local1.PositionPiece(0, 5, -9);
_local1.PositionPiece(1, 6, -6);
_local1.PositionPiece(2, 2, -7);
_local1.PositionPiece(3, 4, -3);
_local1.PositionPiece(4, 2, -9);
_local1.PositionPiece(5, 7, -8);
_local1.PositionPiece(6, 7, -9);
_local1.PositionPiece(7, 1, -8);
_local1.PositionPiece(8, 8, -4);
_local1.PositionPiece(9, 4, -8);
_local1.PositionPiece(10, 1, -6);
_local1.PositionPiece(11, 2, -4);
_local1.PositionPiece(12, 4, -2);
_local1.PositionPiece(13, 8, -7);
_local1.PositionPiece(14, 0, -4);
_local1.PositionPiece(15, 0, -9);
return(_local1);
}
function StartCreatingLevel34() {
return(_root._game.CreatePlayingField(34, 9, 6, FinishCreatingLevel34));
}
function FinishCreatingLevel34(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel34");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:7, _y:1}], [{_x:1, _y:1}], [{_x:3, _y:1}, {_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}], [{_x:3, _y:2}, {_x:3, _y:3}], [{_x:4, _y:2}, {_x:4, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:6, _y:4}, {_x:6, _y:5}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:7, _y:3}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:7, _y:4}], [{_x:7, _y:2}, {_x:8, _y:2}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:1, _y:4}], [{_x:3, _y:4}, {_x:3, _y:5}], [{_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:5}], [{_x:2, _y:5}], [{_x:7, _y:5}, {_x:8, _y:5}]]);
_local1.PositionPiece(0, 0, -8);
_local1.PositionPiece(1, 1, -2);
_local1.PositionPiece(2, 0, -9);
_local1.PositionPiece(3, 7, -6);
_local1.PositionPiece(4, 7, -4);
_local1.PositionPiece(5, 5, -9);
_local1.PositionPiece(6, 8, -8);
_local1.PositionPiece(7, 3, -7);
_local1.PositionPiece(8, 6, -3);
_local1.PositionPiece(9, 5, -7);
_local1.PositionPiece(10, 1, -3);
_local1.PositionPiece(11, 3, -5);
_local1.PositionPiece(12, 1, -8);
_local1.PositionPiece(13, 6, -5);
_local1.PositionPiece(14, 0, -5);
_local1.PositionPiece(15, 4, -9);
_local1.PositionPiece(16, 5, -6);
return(_local1);
}
function StartCreatingLevel35() {
return(_root._game.CreatePlayingField(35, 9, 6, FinishCreatingLevel35));
}
function FinishCreatingLevel35(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel35");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:0}], [{_x:1, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:8, _y:1}, {_x:8, _y:2}], [{_x:7, _y:0}, {_x:8, _y:0}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:2, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:4, _y:2}, {_x:5, _y:2}, {_x:6, _y:2}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:8, _y:3}], [{_x:2, _y:3}, {_x:2, _y:4}], [{_x:3, _y:3}, {_x:3, _y:4}, {_x:4, _y:4}], [{_x:4, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:7, _y:5}], [{_x:1, _y:4}], [{_x:7, _y:4}, {_x:8, _y:4}, {_x:8, _y:5}], [{_x:2, _y:5}, {_x:3, _y:5}]]);
_local1.PositionPiece(0, 4, -5);
_local1.PositionPiece(1, 4, -9);
_local1.PositionPiece(2, 1, -9);
_local1.PositionPiece(3, 2, -9);
_local1.PositionPiece(4, 3, -7);
_local1.PositionPiece(5, 7, -8);
_local1.PositionPiece(6, 0, -5);
_local1.PositionPiece(7, 3, -5);
_local1.PositionPiece(8, 6, -9);
_local1.PositionPiece(9, 4, -8);
_local1.PositionPiece(10, 5, -9);
_local1.PositionPiece(11, 7, -3);
_local1.PositionPiece(12, 4, -3);
_local1.PositionPiece(13, 7, -7);
_local1.PositionPiece(14, 6, -8);
_local1.PositionPiece(15, 7, -4);
_local1.PositionPiece(16, 0, -1);
return(_local1);
}
function StartCreatingLevel36() {
return(_root._game.CreatePlayingField(36, 9, 6, FinishCreatingLevel36));
}
function FinishCreatingLevel36(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel36");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}], [{_x:1, _y:0}, {_x:1, _y:1}], [{_x:2, _y:0}, {_x:3, _y:0}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:3, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:5, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}], [{_x:6, _y:1}, {_x:6, _y:2}], [{_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:8, _y:3}, {_x:8, _y:2}, {_x:8, _y:4}], [{_x:3, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}, {_x:1, _y:5}, {_x:0, _y:5}, {_x:2, _y:5}], [{_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}], [{_x:5, _y:3}, {_x:5, _y:4}, {_x:6, _y:4}], [{_x:6, _y:3}], [{_x:2, _y:4}], [{_x:7, _y:4}, {_x:7, _y:5}], [{_x:3, _y:5}, {_x:4, _y:5}, {_x:5, _y:5}], [{_x:6, _y:5}], [{_x:8, _y:5}]]);
_local1.PositionPiece(0, 6, -4);
_local1.PositionPiece(1, 0, -5);
_local1.PositionPiece(2, 1, -9);
_local1.PositionPiece(3, 3, -7);
_local1.PositionPiece(4, 8, -7);
_local1.PositionPiece(5, 6, -9);
_local1.PositionPiece(6, 0, -7);
_local1.PositionPiece(7, 1, -4);
_local1.PositionPiece(8, 3, -9);
_local1.PositionPiece(9, 4, -3);
_local1.PositionPiece(10, 0, -8);
_local1.PositionPiece(11, 7, -4);
_local1.PositionPiece(12, 6, -8);
_local1.PositionPiece(13, 5, -8);
_local1.PositionPiece(14, 7, -8);
_local1.PositionPiece(15, 5, -5);
_local1.PositionPiece(16, 5, -9);
_local1.PositionPiece(17, 0, -9);
return(_local1);
}
function StartCreatingLevel37() {
return(_root._game.CreatePlayingField(37, 9, 6, FinishCreatingLevel37));
}
function FinishCreatingLevel37(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel37");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}, {_x:1, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:7, _y:2}, {_x:6, _y:2}, {_x:6, _y:1}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}, {_x:3, _y:5}, {_x:4, _y:5}], [{_x:4, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}], [{_x:1, _y:3}, {_x:1, _y:4}], [{_x:4, _y:3}, {_x:4, _y:4}, {_x:5, _y:4}], [{_x:6, _y:3}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:7, _y:5}, {_x:8, _y:5}], [{_x:8, _y:3}, {_x:8, _y:4}], [{_x:2, _y:4}, {_x:2, _y:5}, {_x:1, _y:5}], [{_x:6, _y:4}, {_x:6, _y:5}], [{_x:5, _y:5}]]);
_local1.PositionPiece(0, 4, -9);
_local1.PositionPiece(1, 0, -9);
_local1.PositionPiece(2, 0, -4);
_local1.PositionPiece(3, 3, -8);
_local1.PositionPiece(4, 6, -8);
_local1.PositionPiece(5, 3, -7);
_local1.PositionPiece(6, 3, -4);
_local1.PositionPiece(7, 0, -8);
_local1.PositionPiece(8, 2, -7);
_local1.PositionPiece(9, 2, -9);
_local1.PositionPiece(10, 0, -7);
_local1.PositionPiece(11, 5, -5);
_local1.PositionPiece(12, 7, -9);
_local1.PositionPiece(13, 0, -5);
_local1.PositionPiece(14, 7, -2);
_local1.PositionPiece(15, 3, -9);
return(_local1);
}
function StartCreatingLevel38() {
return(_root._game.CreatePlayingField(38, 9, 6, FinishCreatingLevel38));
}
function FinishCreatingLevel38(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel38");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}, {_x:0, _y:2}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:3, _y:2}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}], [{_x:1, _y:2}, {_x:1, _y:3}], [{_x:5, _y:2}, {_x:6, _y:2}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}], [{_x:3, _y:3}, {_x:4, _y:3}], [{_x:5, _y:3}, {_x:6, _y:3}, {_x:6, _y:4}], [{_x:2, _y:4}, {_x:2, _y:5}, {_x:1, _y:5}, {_x:0, _y:5}, {_x:3, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:6, _y:5}], [{_x:7, _y:4}, {_x:7, _y:5}, {_x:8, _y:5}]]);
_local1.PositionPiece(0, 3, -5);
_local1.PositionPiece(1, 0, -8);
_local1.PositionPiece(2, 1, -7);
_local1.PositionPiece(3, 7, -6);
_local1.PositionPiece(4, 7, -9);
_local1.PositionPiece(5, 5, -8);
_local1.PositionPiece(6, 8, -3);
_local1.PositionPiece(7, 4, -3);
_local1.PositionPiece(8, 2, -9);
_local1.PositionPiece(9, 1, -2);
_local1.PositionPiece(10, 3, -9);
_local1.PositionPiece(11, 1, -2);
_local1.PositionPiece(12, 5, -9);
_local1.PositionPiece(13, 7, -8);
_local1.PositionPiece(14, 3, -7);
return(_local1);
}
function StartCreatingLevel39() {
return(_root._game.CreatePlayingField(39, 9, 6, FinishCreatingLevel39));
}
function FinishCreatingLevel39(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel39");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}], [{_x:7, _y:0}, {_x:7, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:4, _y:4}], [{_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}, {_x:2, _y:4}], [{_x:5, _y:2}, {_x:6, _y:2}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:8, _y:3}], [{_x:8, _y:2}], [{_x:1, _y:3}, {_x:1, _y:4}], [{_x:3, _y:3}, {_x:3, _y:4}, {_x:3, _y:5}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:7, _y:5}, {_x:8, _y:5}, {_x:8, _y:4}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}], [{_x:7, _y:4}], [{_x:4, _y:5}, {_x:5, _y:5}]]);
_local1.PositionPiece(0, 5, -7);
_local1.PositionPiece(1, 3, -9);
_local1.PositionPiece(2, 1, -8);
_local1.PositionPiece(3, 0, -9);
_local1.PositionPiece(4, 5, -6);
_local1.PositionPiece(5, 0, -7);
_local1.PositionPiece(6, 0, -4);
_local1.PositionPiece(7, 1, -9);
_local1.PositionPiece(8, 1, -4);
_local1.PositionPiece(9, 7, -9);
_local1.PositionPiece(10, 4, -8);
_local1.PositionPiece(11, 3, -8);
_local1.PositionPiece(12, 2, -3);
_local1.PositionPiece(13, 6, -4);
_local1.PositionPiece(14, 8, -9);
_local1.PositionPiece(15, 1, -5);
return(_local1);
}
function StartCreatingLevel40() {
return(_root._game.CreatePlayingField(40, 9, 6, FinishCreatingLevel40));
}
function FinishCreatingLevel40(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel40");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:2, _y:1}], [{_x:4, _y:0}, {_x:4, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}], [{_x:0, _y:1}, {_x:1, _y:1}], [{_x:5, _y:1}, {_x:6, _y:1}, {_x:7, _y:1}], [{_x:8, _y:1}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:7, _y:3}, {_x:6, _y:3}, {_x:6, _y:4}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:2}, {_x:2, _y:2}], [{_x:3, _y:2}, {_x:4, _y:2}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:6, _y:2}, {_x:7, _y:2}], [{_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}, {_x:0, _y:4}], [{_x:3, _y:3}, {_x:4, _y:3}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}, {_x:1, _y:5}, {_x:0, _y:5}], [{_x:7, _y:4}, {_x:7, _y:5}, {_x:8, _y:5}, {_x:8, _y:4}], [{_x:6, _y:5}]]);
_local1.PositionPiece(0, 2, -9);
_local1.PositionPiece(1, 0, -7);
_local1.PositionPiece(2, 0, -3);
_local1.PositionPiece(3, 0, -9);
_local1.PositionPiece(4, 2, -5);
_local1.PositionPiece(5, 6, -7);
_local1.PositionPiece(6, 3, -7);
_local1.PositionPiece(7, 3, -4);
_local1.PositionPiece(8, 6, -4);
_local1.PositionPiece(9, 5, -2);
_local1.PositionPiece(10, 6, -9);
_local1.PositionPiece(11, 2, -8);
_local1.PositionPiece(12, 1, -3);
_local1.PositionPiece(13, 6, -7);
_local1.PositionPiece(14, 5, -6);
return(_local1);
}
function StartCreatingLevel41() {
return(_root._game.CreatePlayingField(41, 9, 6, FinishCreatingLevel41));
}
function FinishCreatingLevel41(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel41");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}], [{_x:2, _y:0}, {_x:3, _y:0}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:5, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:7, _y:1}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:3, _y:3}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:7, _y:2}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:7, _y:4}, {_x:6, _y:4}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}], [{_x:6, _y:3}, {_x:7, _y:3}], [{_x:0, _y:4}, {_x:0, _y:5}], [{_x:2, _y:4}, {_x:2, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:1, _y:5}], [{_x:3, _y:5}], [{_x:6, _y:5}, {_x:7, _y:5}, {_x:8, _y:5}]]);
_local1.PositionPiece(0, 5, -5);
_local1.PositionPiece(1, 5, -8);
_local1.PositionPiece(2, 4, -9);
_local1.PositionPiece(3, 0, -8);
_local1.PositionPiece(4, 0, -9);
_local1.PositionPiece(5, 7, -9);
_local1.PositionPiece(6, 3, -9);
_local1.PositionPiece(7, 6, -7);
_local1.PositionPiece(8, 0, -3);
_local1.PositionPiece(9, 0, -6);
_local1.PositionPiece(10, 6, -1);
_local1.PositionPiece(11, 8, -7);
_local1.PositionPiece(12, 2, -9);
_local1.PositionPiece(13, 4, -6);
_local1.PositionPiece(14, 3, -2);
_local1.PositionPiece(15, 2, -7);
_local1.PositionPiece(16, 1, -8);
_local1.PositionPiece(17, 6, -4);
return(_local1);
}
function StartCreatingLevel42() {
return(_root._game.CreatePlayingField(42, 9, 6, FinishCreatingLevel42));
}
function FinishCreatingLevel42(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel42");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}], [{_x:3, _y:1}, {_x:4, _y:1}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:6, _y:1}, {_x:7, _y:1}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:8, _y:3}], [{_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}], [{_x:3, _y:2}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}], [{_x:4, _y:2}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:6, _y:4}], [{_x:1, _y:4}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:2, _y:4}, {_x:3, _y:4}], [{_x:4, _y:4}, {_x:4, _y:5}], [{_x:8, _y:4}, {_x:8, _y:5}, {_x:7, _y:5}, {_x:6, _y:5}, {_x:5, _y:5}], [{_x:3, _y:5}]]);
_local1.PositionPiece(0, 2, -7);
_local1.PositionPiece(1, 7, -4);
_local1.PositionPiece(2, 5, -9);
_local1.PositionPiece(3, 0, -9);
_local1.PositionPiece(4, 7, -8);
_local1.PositionPiece(5, 7, -6);
_local1.PositionPiece(6, 3, -8);
_local1.PositionPiece(7, 0, -6);
_local1.PositionPiece(8, 2, -5);
_local1.PositionPiece(9, 1, -7);
_local1.PositionPiece(10, 3, -7);
_local1.PositionPiece(11, 1, -3);
_local1.PositionPiece(12, 0, -8);
_local1.PositionPiece(13, 1, -2);
_local1.PositionPiece(14, 4, -9);
return(_local1);
}
function StartCreatingLevel43() {
return(_root._game.CreatePlayingField(43, 9, 6, FinishCreatingLevel43));
}
function FinishCreatingLevel43(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel43");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:1, _y:2}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}, {_x:5, _y:3}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:7, _y:1}], [{_x:0, _y:1}, {_x:0, _y:2}], [{_x:2, _y:2}, {_x:3, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:3, _y:3}, {_x:2, _y:3}], [{_x:5, _y:2}], [{_x:7, _y:2}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:7, _y:5}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:2, _y:5}, {_x:3, _y:5}, {_x:4, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:5, _y:4}], [{_x:6, _y:4}, {_x:6, _y:5}, {_x:5, _y:5}], [{_x:8, _y:4}, {_x:8, _y:5}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 0, -7);
_local1.PositionPiece(2, 5, -9);
_local1.PositionPiece(3, 1, -7);
_local1.PositionPiece(4, 4, -2);
_local1.PositionPiece(5, 4, -8);
_local1.PositionPiece(6, 6, -7);
_local1.PositionPiece(7, 3, -7);
_local1.PositionPiece(8, 3, -4);
_local1.PositionPiece(9, 0, -5);
_local1.PositionPiece(10, 5, -6);
_local1.PositionPiece(11, 6, -3);
_local1.PositionPiece(12, 3, -6);
_local1.PositionPiece(13, 2, -9);
return(_local1);
}
function StartCreatingLevel44() {
return(_root._game.CreatePlayingField(44, 9, 6, FinishCreatingLevel44));
}
function FinishCreatingLevel44(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel44");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:5, _y:3}, {_x:6, _y:3}], [{_x:5, _y:0}, {_x:6, _y:0}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:7, _y:3}, {_x:7, _y:2}], [{_x:0, _y:1}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}], [{_x:1, _y:2}], [{_x:4, _y:2}, {_x:4, _y:3}], [{_x:3, _y:3}, {_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}, {_x:1, _y:5}, {_x:1, _y:4}], [{_x:0, _y:4}, {_x:0, _y:5}], [{_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}], [{_x:5, _y:4}, {_x:6, _y:4}, {_x:7, _y:4}, {_x:8, _y:4}], [{_x:8, _y:5}]]);
_local1.PositionPiece(0, 2, -9);
_local1.PositionPiece(1, 5, -4);
_local1.PositionPiece(2, 6, -9);
_local1.PositionPiece(3, 7, -9);
_local1.PositionPiece(4, 5, -8);
_local1.PositionPiece(5, 1, -8);
_local1.PositionPiece(6, 0, -8);
_local1.PositionPiece(7, 4, -8);
_local1.PositionPiece(8, 0, -6);
_local1.PositionPiece(9, 2, -6);
_local1.PositionPiece(10, 8, -7);
_local1.PositionPiece(11, 0, -4);
_local1.PositionPiece(12, 1, -2);
_local1.PositionPiece(13, 4, -7);
return(_local1);
}
function StartCreatingLevel45() {
return(_root._game.CreatePlayingField(45, 9, 6, FinishCreatingLevel45));
}
function FinishCreatingLevel45(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel45");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}], [{_x:0, _y:1}], [{_x:2, _y:2}, {_x:3, _y:2}, {_x:4, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}, {_x:4, _y:3}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:7, _y:3}, {_x:7, _y:4}], [{_x:1, _y:3}, {_x:2, _y:3}], [{_x:3, _y:3}, {_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}], [{_x:8, _y:3}, {_x:8, _y:4}, {_x:8, _y:5}], [{_x:0, _y:4}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:1, _y:5}, {_x:0, _y:5}], [{_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:5}], [{_x:5, _y:4}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:7, _y:5}]]);
_local1.PositionPiece(0, 6, -4);
_local1.PositionPiece(1, 4, -9);
_local1.PositionPiece(2, 0, -9);
_local1.PositionPiece(3, 5, -7);
_local1.PositionPiece(4, 5, -6);
_local1.PositionPiece(5, 0, -5);
_local1.PositionPiece(6, 2, -3);
_local1.PositionPiece(7, 7, -9);
_local1.PositionPiece(8, 0, -4);
_local1.PositionPiece(9, 8, -5);
_local1.PositionPiece(10, 4, -5);
_local1.PositionPiece(11, 3, -8);
_local1.PositionPiece(12, 0, -7);
return(_local1);
}
function StartCreatingLevel46() {
return(_root._game.CreatePlayingField(46, 9, 6, FinishCreatingLevel46));
}
function FinishCreatingLevel46(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel46");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:0}], [{_x:2, _y:0}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}], [{_x:8, _y:0}, {_x:8, _y:1}], [{_x:4, _y:1}, {_x:5, _y:1}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:8, _y:2}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}], [{_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:5, _y:3}], [{_x:3, _y:2}, {_x:4, _y:2}, {_x:5, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:8, _y:4}, {_x:8, _y:5}], [{_x:8, _y:3}], [{_x:0, _y:4}, {_x:1, _y:4}], [{_x:2, _y:4}, {_x:2, _y:5}, {_x:1, _y:5}, {_x:0, _y:5}, {_x:3, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}], [{_x:5, _y:4}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:7, _y:5}, {_x:5, _y:5}, {_x:4, _y:5}]]);
_local1.PositionPiece(0, 2, -9);
_local1.PositionPiece(1, 4, -8);
_local1.PositionPiece(2, 8, -9);
_local1.PositionPiece(3, 4, -9);
_local1.PositionPiece(4, 3, -9);
_local1.PositionPiece(5, 0, -7);
_local1.PositionPiece(6, 0, -9);
_local1.PositionPiece(7, 4, -3);
_local1.PositionPiece(8, 5, -6);
_local1.PositionPiece(9, 2, -3);
_local1.PositionPiece(10, 0, -6);
_local1.PositionPiece(11, 5, -1);
_local1.PositionPiece(12, 0, -5);
_local1.PositionPiece(13, 0, -5);
_local1.PositionPiece(14, 4, -5);
return(_local1);
}
function StartCreatingLevel47() {
return(_root._game.CreatePlayingField(47, 9, 6, FinishCreatingLevel47));
}
function FinishCreatingLevel47(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel47");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:4, _y:2}], [{_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}], [{_x:1, _y:1}, {_x:2, _y:1}], [{_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}], [{_x:6, _y:1}], [{_x:1, _y:2}, {_x:2, _y:2}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}], [{_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}, {_x:1, _y:5}, {_x:0, _y:5}], [{_x:3, _y:3}, {_x:4, _y:3}], [{_x:5, _y:3}, {_x:5, _y:4}, {_x:6, _y:4}], [{_x:6, _y:3}], [{_x:8, _y:3}, {_x:8, _y:4}, {_x:8, _y:5}, {_x:7, _y:5}, {_x:6, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:2, _y:5}, {_x:3, _y:5}], [{_x:5, _y:5}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 2, -3);
_local1.PositionPiece(2, 0, -8);
_local1.PositionPiece(3, 5, -5);
_local1.PositionPiece(4, 0, -6);
_local1.PositionPiece(5, 7, -6);
_local1.PositionPiece(6, 0, -7);
_local1.PositionPiece(7, 2, -8);
_local1.PositionPiece(8, 5, -9);
_local1.PositionPiece(9, 5, -3);
_local1.PositionPiece(10, 8, -7);
_local1.PositionPiece(11, 2, -6);
_local1.PositionPiece(12, 6, -8);
_local1.PositionPiece(13, 1, -6);
_local1.PositionPiece(14, 6, -9);
_local1.PositionPiece(15, 6, -4);
_local1.PositionPiece(16, 7, -9);
_local1.PositionPiece(17, 7, -1);
_local1.PositionPiece(18, 1, -4);
return(_local1);
}
function StartCreatingLevel48() {
return(_root._game.CreatePlayingField(48, 9, 6, FinishCreatingLevel48));
}
function FinishCreatingLevel48(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel48");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:6, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:8, _y:3}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:1, _y:1}, {_x:1, _y:2}], [{_x:2, _y:1}, {_x:2, _y:2}], [{_x:3, _y:2}, {_x:4, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:1, _y:3}, {_x:2, _y:3}], [{_x:3, _y:3}, {_x:3, _y:4}], [{_x:4, _y:3}, {_x:4, _y:4}, {_x:5, _y:4}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:6, _y:5}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:7, _y:5}, {_x:8, _y:5}, {_x:8, _y:4}], [{_x:1, _y:4}, {_x:2, _y:4}], [{_x:2, _y:5}, {_x:3, _y:5}, {_x:4, _y:5}, {_x:5, _y:5}]]);
_local1.PositionPiece(0, 3, -7);
_local1.PositionPiece(1, 3, -9);
_local1.PositionPiece(2, 0, -9);
_local1.PositionPiece(3, 6, -9);
_local1.PositionPiece(4, 2, -6);
_local1.PositionPiece(5, 1, -3);
_local1.PositionPiece(6, 7, -8);
_local1.PositionPiece(7, 5, -5);
_local1.PositionPiece(8, 6, -1);
_local1.PositionPiece(9, 8, -5);
_local1.PositionPiece(10, 0, -6);
_local1.PositionPiece(11, 4, -3);
_local1.PositionPiece(12, 3, -6);
_local1.PositionPiece(13, 1, -9);
_local1.PositionPiece(14, 5, -3);
return(_local1);
}
function StartCreatingLevel49() {
return(_root._game.CreatePlayingField(49, 9, 6, FinishCreatingLevel49));
}
function FinishCreatingLevel49(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel49");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:8, _y:2}], [{_x:0, _y:1}, {_x:0, _y:2}], [{_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:3, _y:2}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}, {_x:1, _y:5}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}, {_x:3, _y:5}, {_x:4, _y:5}], [{_x:4, _y:3}, {_x:4, _y:4}], [{_x:5, _y:3}, {_x:6, _y:3}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:8, _y:4}, {_x:8, _y:3}, {_x:8, _y:5}], [{_x:2, _y:4}, {_x:2, _y:5}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}, {_x:6, _y:4}], [{_x:0, _y:5}]]);
_local1.PositionPiece(0, 6, -3);
_local1.PositionPiece(1, 3, -9);
_local1.PositionPiece(2, 2, -3);
_local1.PositionPiece(3, 0, -4);
_local1.PositionPiece(4, 3, -8);
_local1.PositionPiece(5, 5, -8);
_local1.PositionPiece(6, 3, -6);
_local1.PositionPiece(7, 0, -8);
_local1.PositionPiece(8, 2, -7);
_local1.PositionPiece(9, 1, -9);
_local1.PositionPiece(10, 5, -7);
_local1.PositionPiece(11, 5, -5);
_local1.PositionPiece(12, 4, -2);
_local1.PositionPiece(13, 0, -9);
return(_local1);
}
function StartCreatingLevel50() {
return(_root._game.CreatePlayingField(50, 10, 6, FinishCreatingLevel50));
}
function FinishCreatingLevel50(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel50");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:2, _y:3}, {_x:1, _y:3}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:3, _y:3}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:6, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:9, _y:1}, {_x:9, _y:0}, {_x:9, _y:2}, {_x:9, _y:3}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}], [{_x:1, _y:1}, {_x:1, _y:2}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}, {_x:7, _y:2}], [{_x:3, _y:2}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:7, _y:5}], [{_x:5, _y:3}, {_x:5, _y:4}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:6, _y:3}], [{_x:2, _y:4}, {_x:2, _y:5}, {_x:3, _y:5}, {_x:3, _y:4}, {_x:4, _y:4}], [{_x:8, _y:4}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:0, _y:5}, {_x:1, _y:5}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 4, -4);
_local1.PositionPiece(2, 2, -9);
_local1.PositionPiece(3, 7, -8);
_local1.PositionPiece(4, 8, -6);
_local1.PositionPiece(5, 4, -9);
_local1.PositionPiece(6, 5, -5);
_local1.PositionPiece(7, 5, -8);
_local1.PositionPiece(8, 0, -6);
_local1.PositionPiece(9, 3, -4);
_local1.PositionPiece(10, 0, -4);
_local1.PositionPiece(11, 9, -9);
_local1.PositionPiece(12, 0, -8);
_local1.PositionPiece(13, 6, -6);
_local1.PositionPiece(14, 7, -9);
return(_local1);
}
function StartCreatingLevel51() {
return(_root._game.CreatePlayingField(51, 10, 6, FinishCreatingLevel51));
}
function FinishCreatingLevel51(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel51");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:2, _y:2}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:9, _y:3}, {_x:9, _y:4}], [{_x:9, _y:0}], [{_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:5, _y:3}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:8, _y:4}, {_x:8, _y:5}], [{_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:3, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:3, _y:3}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}], [{_x:1, _y:4}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:6, _y:5}], [{_x:6, _y:4}], [{_x:3, _y:5}], [{_x:7, _y:5}], [{_x:9, _y:5}]]);
_local1.PositionPiece(0, 2, -4);
_local1.PositionPiece(1, 5, -8);
_local1.PositionPiece(2, 0, -9);
_local1.PositionPiece(3, 8, -3);
_local1.PositionPiece(4, 1, -7);
_local1.PositionPiece(5, 6, -8);
_local1.PositionPiece(6, 3, -6);
_local1.PositionPiece(7, 3, -3);
_local1.PositionPiece(8, 8, -8);
_local1.PositionPiece(9, 4, -4);
_local1.PositionPiece(10, 8, -8);
_local1.PositionPiece(11, 4, -6);
_local1.PositionPiece(12, 6, -9);
_local1.PositionPiece(13, 3, -8);
_local1.PositionPiece(14, 4, -9);
_local1.PositionPiece(15, 5, -9);
_local1.PositionPiece(16, 0, -4);
_local1.PositionPiece(17, 1, -8);
return(_local1);
}
function StartCreatingLevel52() {
return(_root._game.CreatePlayingField(52, 10, 6, FinishCreatingLevel52));
}
function FinishCreatingLevel52(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel52");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:0, _y:3}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:8, _y:1}, {_x:9, _y:1}, {_x:9, _y:0}], [{_x:8, _y:0}], [{_x:0, _y:1}, {_x:0, _y:2}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:3, _y:2}, {_x:3, _y:3}], [{_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}, {_x:1, _y:5}, {_x:0, _y:5}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:6, _y:3}], [{_x:7, _y:2}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:9, _y:4}], [{_x:9, _y:2}, {_x:9, _y:3}], [{_x:4, _y:3}, {_x:4, _y:4}, {_x:5, _y:4}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:6, _y:4}, {_x:6, _y:5}], [{_x:0, _y:4}], [{_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}], [{_x:7, _y:5}, {_x:8, _y:5}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 8, -4);
_local1.PositionPiece(1, 6, -9);
_local1.PositionPiece(2, 3, -2);
_local1.PositionPiece(3, 1, -9);
_local1.PositionPiece(4, 4, -9);
_local1.PositionPiece(5, 3, -7);
_local1.PositionPiece(6, 8, -8);
_local1.PositionPiece(7, 5, -6);
_local1.PositionPiece(8, 4, -5);
_local1.PositionPiece(9, 1, -3);
_local1.PositionPiece(10, 2, -9);
_local1.PositionPiece(11, 0, -9);
_local1.PositionPiece(12, 2, -8);
_local1.PositionPiece(13, 8, -5);
_local1.PositionPiece(14, 5, -6);
_local1.PositionPiece(15, 5, -7);
return(_local1);
}
function StartCreatingLevel53() {
return(_root._game.CreatePlayingField(53, 10, 6, FinishCreatingLevel53));
}
function FinishCreatingLevel53(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel53");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:8, _y:2}, {_x:8, _y:1}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:9, _y:3}], [{_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}, {_x:0, _y:4}], [{_x:3, _y:2}, {_x:3, _y:3}, {_x:3, _y:4}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:5, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:0, _y:3}, {_x:1, _y:3}], [{_x:5, _y:3}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:8, _y:4}, {_x:8, _y:5}, {_x:9, _y:5}], [{_x:8, _y:3}], [{_x:9, _y:4}], [{_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}]]);
_local1.PositionPiece(0, 0, -8);
_local1.PositionPiece(1, 1, -9);
_local1.PositionPiece(2, 2, -9);
_local1.PositionPiece(3, 7, -6);
_local1.PositionPiece(4, 8, -7);
_local1.PositionPiece(5, 7, -9);
_local1.PositionPiece(6, 3, -8);
_local1.PositionPiece(7, 6, -6);
_local1.PositionPiece(8, 3, -5);
_local1.PositionPiece(9, 4, -1);
_local1.PositionPiece(10, 8, -6);
_local1.PositionPiece(11, 0, -4);
_local1.PositionPiece(12, 3, -4);
_local1.PositionPiece(13, 4, -7);
_local1.PositionPiece(14, 0, -5);
_local1.PositionPiece(15, 5, -2);
return(_local1);
}
function StartCreatingLevel54() {
return(_root._game.CreatePlayingField(54, 10, 6, FinishCreatingLevel54));
}
function FinishCreatingLevel54(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel54");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:3, _y:1}, {_x:2, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}, {_x:5, _y:1}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}], [{_x:8, _y:1}, {_x:8, _y:2}, {_x:9, _y:2}, {_x:9, _y:3}], [{_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:3, _y:3}], [{_x:3, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}], [{_x:5, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:5, _y:5}], [{_x:8, _y:3}, {_x:8, _y:4}, {_x:9, _y:4}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:7, _y:5}, {_x:8, _y:5}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 4, -7);
_local1.PositionPiece(1, 3, -9);
_local1.PositionPiece(2, 1, -5);
_local1.PositionPiece(3, 9, -8);
_local1.PositionPiece(4, 7, -8);
_local1.PositionPiece(5, 8, -6);
_local1.PositionPiece(6, 7, -4);
_local1.PositionPiece(7, 6, -3);
_local1.PositionPiece(8, 6, -7);
_local1.PositionPiece(9, 0, -7);
_local1.PositionPiece(10, 3, -6);
_local1.PositionPiece(11, 2, -3);
_local1.PositionPiece(12, 0, -9);
_local1.PositionPiece(13, 1, -9);
_local1.PositionPiece(14, 4, -5);
return(_local1);
}
function StartCreatingLevel55() {
return(_root._game.CreatePlayingField(55, 10, 6, FinishCreatingLevel55));
}
function FinishCreatingLevel55(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel55");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:8, _y:2}, {_x:7, _y:2}, {_x:6, _y:2}], [{_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:3, _y:3}, {_x:2, _y:3}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:2}, {_x:2, _y:2}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:7, _y:4}], [{_x:7, _y:3}, {_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:1, _y:4}], [{_x:2, _y:4}, {_x:3, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:5}, {_x:6, _y:5}], [{_x:5, _y:4}], [{_x:8, _y:4}], [{_x:2, _y:5}, {_x:3, _y:5}], [{_x:7, _y:5}]]);
_local1.PositionPiece(0, 1, -6);
_local1.PositionPiece(1, 4, -9);
_local1.PositionPiece(2, 4, -2);
_local1.PositionPiece(3, 3, -6);
_local1.PositionPiece(4, 6, -7);
_local1.PositionPiece(5, 8, -9);
_local1.PositionPiece(6, 5, -8);
_local1.PositionPiece(7, 0, -6);
_local1.PositionPiece(8, 0, -9);
_local1.PositionPiece(9, 5, -8);
_local1.PositionPiece(10, 1, -3);
_local1.PositionPiece(11, 3, -8);
_local1.PositionPiece(12, 3, -4);
_local1.PositionPiece(13, 2, -8);
_local1.PositionPiece(14, 6, -8);
_local1.PositionPiece(15, 8, -1);
_local1.PositionPiece(16, 3, -9);
return(_local1);
}
function StartCreatingLevel56() {
return(_root._game.CreatePlayingField(56, 10, 6, FinishCreatingLevel56));
}
function FinishCreatingLevel56(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel56");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:3, _y:2}, {_x:3, _y:1}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:5, _y:3}, {_x:4, _y:3}, {_x:3, _y:3}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:8, _y:2}, {_x:8, _y:3}], [{_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}, {_x:6, _y:4}], [{_x:8, _y:1}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:0, _y:3}, {_x:0, _y:4}], [{_x:9, _y:3}, {_x:9, _y:4}, {_x:8, _y:4}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:5, _y:4}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}], [{_x:7, _y:4}], [{_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}, {_x:4, _y:5}], [{_x:8, _y:5}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 0, -8);
_local1.PositionPiece(1, 0, -9);
_local1.PositionPiece(2, 5, -4);
_local1.PositionPiece(3, 7, -4);
_local1.PositionPiece(4, 4, -8);
_local1.PositionPiece(5, 1, -8);
_local1.PositionPiece(6, 7, -6);
_local1.PositionPiece(7, 9, -9);
_local1.PositionPiece(8, 7, -9);
_local1.PositionPiece(9, 6, -8);
_local1.PositionPiece(10, 3, -7);
_local1.PositionPiece(11, 0, -2);
_local1.PositionPiece(12, 8, -9);
_local1.PositionPiece(13, 0, -3);
_local1.PositionPiece(14, 5, -9);
return(_local1);
}
function StartCreatingLevel57() {
return(_root._game.CreatePlayingField(57, 10, 6, FinishCreatingLevel57));
}
function FinishCreatingLevel57(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel57");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}, {_x:0, _y:2}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:8, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:6, _y:2}], [{_x:6, _y:1}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:0, _y:4}, {_x:0, _y:5}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}, {_x:2, _y:4}], [{_x:3, _y:2}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:5}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:7, _y:4}], [{_x:9, _y:2}, {_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}, {_x:7, _y:5}], [{_x:0, _y:3}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:5, _y:4}], [{_x:7, _y:3}], [{_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:6, _y:5}]]);
_local1.PositionPiece(0, 1, -8);
_local1.PositionPiece(1, 6, -8);
_local1.PositionPiece(2, 4, -6);
_local1.PositionPiece(3, 4, -9);
_local1.PositionPiece(4, 0, -4);
_local1.PositionPiece(5, 9, -9);
_local1.PositionPiece(6, 2, -7);
_local1.PositionPiece(7, 0, -6);
_local1.PositionPiece(8, 0, -8);
_local1.PositionPiece(9, 7, -4);
_local1.PositionPiece(10, 7, -7);
_local1.PositionPiece(11, 4, -6);
_local1.PositionPiece(12, 2, -9);
_local1.PositionPiece(13, 4, -8);
_local1.PositionPiece(14, 1, -9);
_local1.PositionPiece(15, 1, -1);
_local1.PositionPiece(16, 3, -9);
return(_local1);
}
function StartCreatingLevel58() {
return(_root._game.CreatePlayingField(58, 10, 6, FinishCreatingLevel58));
}
function FinishCreatingLevel58(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel58");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}, {_x:1, _y:1}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:5, _y:2}, {_x:6, _y:2}, {_x:6, _y:1}], [{_x:5, _y:1}], [{_x:7, _y:1}, {_x:8, _y:1}, {_x:8, _y:2}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:0, _y:4}, {_x:0, _y:5}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:7, _y:4}], [{_x:9, _y:2}, {_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}, {_x:7, _y:5}], [{_x:0, _y:3}], [{_x:3, _y:3}, {_x:3, _y:4}, {_x:2, _y:4}, {_x:2, _y:5}, {_x:1, _y:5}], [{_x:4, _y:3}, {_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:5}], [{_x:5, _y:3}, {_x:6, _y:3}, {_x:6, _y:4}], [{_x:5, _y:4}], [{_x:3, _y:5}], [{_x:6, _y:5}]]);
_local1.PositionPiece(0, 3, -5);
_local1.PositionPiece(1, 6, -6);
_local1.PositionPiece(2, 2, -9);
_local1.PositionPiece(3, 7, -6);
_local1.PositionPiece(4, 8, -5);
_local1.PositionPiece(5, 2, -8);
_local1.PositionPiece(6, 1, -8);
_local1.PositionPiece(7, 7, -9);
_local1.PositionPiece(8, 0, -6);
_local1.PositionPiece(9, 3, -4);
_local1.PositionPiece(10, 5, -4);
_local1.PositionPiece(11, 0, -9);
_local1.PositionPiece(12, 0, -4);
_local1.PositionPiece(13, 5, -9);
_local1.PositionPiece(14, 8, -3);
_local1.PositionPiece(15, 1, -9);
_local1.PositionPiece(16, 4, -6);
_local1.PositionPiece(17, 9, -9);
return(_local1);
}
function StartCreatingLevel59() {
return(_root._game.CreatePlayingField(59, 10, 6, FinishCreatingLevel59));
}
function FinishCreatingLevel59(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel59");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:8, _y:2}, {_x:8, _y:3}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:9, _y:1}, {_x:9, _y:0}, {_x:9, _y:2}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:2}], [{_x:4, _y:1}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}, {_x:0, _y:4}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:6, _y:4}, {_x:5, _y:4}, {_x:4, _y:4}], [{_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}], [{_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}, {_x:1, _y:5}], [{_x:8, _y:4}, {_x:8, _y:5}, {_x:7, _y:5}, {_x:6, _y:5}], [{_x:0, _y:5}], [{_x:4, _y:5}, {_x:5, _y:5}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 1, -9);
_local1.PositionPiece(2, 7, -6);
_local1.PositionPiece(3, 4, -8);
_local1.PositionPiece(4, 8, -9);
_local1.PositionPiece(5, 1, -4);
_local1.PositionPiece(6, 5, -9);
_local1.PositionPiece(7, 7, -9);
_local1.PositionPiece(8, 6, -4);
_local1.PositionPiece(9, 4, -5);
_local1.PositionPiece(10, 3, -9);
_local1.PositionPiece(11, 7, -2);
_local1.PositionPiece(12, 1, -2);
_local1.PositionPiece(13, 8, -5);
_local1.PositionPiece(14, 2, -6);
return(_local1);
}
function StartCreatingLevel60() {
return(_root._game.CreatePlayingField(60, 10, 6, FinishCreatingLevel60));
}
function FinishCreatingLevel60(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel60");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:1, _y:3}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:2, _y:1}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:8, _y:2}, {_x:7, _y:2}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:5, _y:3}, {_x:6, _y:3}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}, {_x:6, _y:1}], [{_x:7, _y:1}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:2, _y:5}], [{_x:2, _y:2}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:2, _y:3}, {_x:3, _y:4}, {_x:4, _y:4}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:7, _y:5}, {_x:8, _y:5}, {_x:9, _y:5}, {_x:9, _y:4}], [{_x:8, _y:3}, {_x:8, _y:4}, {_x:9, _y:3}], [{_x:5, _y:4}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:0, _y:5}, {_x:1, _y:5}], [{_x:3, _y:5}]]);
_local1.PositionPiece(0, 4, -5);
_local1.PositionPiece(1, 0, -6);
_local1.PositionPiece(2, 4, -9);
_local1.PositionPiece(3, 4, -8);
_local1.PositionPiece(4, 7, -7);
_local1.PositionPiece(5, 4, -3);
_local1.PositionPiece(6, 6, -7);
_local1.PositionPiece(7, 0, -5);
_local1.PositionPiece(8, 3, -8);
_local1.PositionPiece(9, 0, -3);
_local1.PositionPiece(10, 6, -4);
_local1.PositionPiece(11, 2, -4);
_local1.PositionPiece(12, 0, -8);
_local1.PositionPiece(13, 8, -8);
_local1.PositionPiece(14, 7, -9);
return(_local1);
}
function StartCreatingLevel61() {
return(_root._game.CreatePlayingField(61, 10, 6, FinishCreatingLevel61));
}
function FinishCreatingLevel61(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel61");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}, {_x:8, _y:1}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}], [{_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:2}, {_x:4, _y:2}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:5, _y:4}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:5, _y:5}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:2}, {_x:9, _y:4}], [{_x:0, _y:4}, {_x:1, _y:4}, {_x:1, _y:5}], [{_x:2, _y:4}, {_x:3, _y:4}, {_x:3, _y:5}], [{_x:7, _y:4}, {_x:8, _y:4}, {_x:8, _y:5}], [{_x:0, _y:5}], [{_x:2, _y:5}], [{_x:4, _y:5}], [{_x:7, _y:5}], [{_x:9, _y:5}]]);
_local1.PositionPiece(0, 2, -9);
_local1.PositionPiece(1, 4, -9);
_local1.PositionPiece(2, 4, -5);
_local1.PositionPiece(3, 0, -3);
_local1.PositionPiece(4, 0, -8);
_local1.PositionPiece(5, 5, -7);
_local1.PositionPiece(6, 6, -3);
_local1.PositionPiece(7, 8, -7);
_local1.PositionPiece(8, 8, -3);
_local1.PositionPiece(9, 4, -6);
_local1.PositionPiece(10, 2, -5);
_local1.PositionPiece(11, 1, -7);
_local1.PositionPiece(12, 1, -9);
_local1.PositionPiece(13, 0, -9);
_local1.PositionPiece(14, 2, -8);
_local1.PositionPiece(15, 4, -7);
_local1.PositionPiece(16, 9, -9);
return(_local1);
}
function StartCreatingLevel62() {
return(_root._game.CreatePlayingField(62, 10, 6, FinishCreatingLevel62));
}
function FinishCreatingLevel62(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel62");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:9, _y:1}, {_x:9, _y:0}, {_x:9, _y:2}, {_x:8, _y:2}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:0, _y:3}], [{_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:3, _y:2}, {_x:3, _y:3}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:5, _y:3}, {_x:6, _y:3}, {_x:6, _y:2}], [{_x:6, _y:1}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}], [{_x:2, _y:3}, {_x:2, _y:4}, {_x:2, _y:5}], [{_x:4, _y:3}, {_x:4, _y:4}, {_x:3, _y:4}], [{_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:4}, {_x:8, _y:4}, {_x:8, _y:5}, {_x:7, _y:5}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:1, _y:4}], [{_x:5, _y:4}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:3, _y:5}], [{_x:9, _y:5}]]);
_local1.PositionPiece(0, 6, -8);
_local1.PositionPiece(1, 4, -9);
_local1.PositionPiece(2, 4, -5);
_local1.PositionPiece(3, 8, -3);
_local1.PositionPiece(4, 6, -7);
_local1.PositionPiece(5, 1, -6);
_local1.PositionPiece(6, 1, -9);
_local1.PositionPiece(7, 5, -8);
_local1.PositionPiece(8, 9, -9);
_local1.PositionPiece(9, 4, -8);
_local1.PositionPiece(10, 7, -5);
_local1.PositionPiece(11, 5, -3);
_local1.PositionPiece(12, 2, -4);
_local1.PositionPiece(13, 0, -9);
_local1.PositionPiece(14, 0, -2);
_local1.PositionPiece(15, 0, -7);
_local1.PositionPiece(16, 5, -7);
return(_local1);
}
function StartCreatingLevel63() {
return(_root._game.CreatePlayingField(63, 10, 6, FinishCreatingLevel63));
}
function FinishCreatingLevel63(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel63");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:6, _y:1}, {_x:5, _y:1}, {_x:4, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:7, _y:2}, {_x:6, _y:2}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:9, _y:3}, {_x:9, _y:4}, {_x:8, _y:4}], [{_x:0, _y:1}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:1, _y:2}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:2, _y:3}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}], [{_x:4, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:2, _y:5}, {_x:1, _y:5}, {_x:0, _y:5}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:7, _y:4}, {_x:7, _y:3}, {_x:8, _y:3}], [{_x:3, _y:4}, {_x:3, _y:5}, {_x:4, _y:5}, {_x:5, _y:5}, {_x:5, _y:4}, {_x:6, _y:5}], [{_x:7, _y:5}, {_x:8, _y:5}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 5, -9);
_local1.PositionPiece(2, 5, -7);
_local1.PositionPiece(3, 8, -6);
_local1.PositionPiece(4, 4, -7);
_local1.PositionPiece(5, 4, -4);
_local1.PositionPiece(6, 0, -8);
_local1.PositionPiece(7, 6, -3);
_local1.PositionPiece(8, 1, -8);
_local1.PositionPiece(9, 2, -5);
_local1.PositionPiece(10, 1, -2);
_local1.PositionPiece(11, 2, -3);
return(_local1);
}
function StartCreatingLevel64() {
return(_root._game.CreatePlayingField(64, 10, 6, FinishCreatingLevel64));
}
function FinishCreatingLevel64(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel64");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:4, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:8, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}], [{_x:2, _y:2}, {_x:3, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:3, _y:3}], [{_x:5, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:6, _y:5}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:2}, {_x:9, _y:4}], [{_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:5, _y:3}, {_x:5, _y:4}, {_x:5, _y:5}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:7, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:8, _y:4}, {_x:8, _y:5}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 1, -7);
_local1.PositionPiece(1, 3, -7);
_local1.PositionPiece(2, 1, -9);
_local1.PositionPiece(3, 3, -9);
_local1.PositionPiece(4, 6, -6);
_local1.PositionPiece(5, 8, -4);
_local1.PositionPiece(6, 0, -4);
_local1.PositionPiece(7, 6, -9);
_local1.PositionPiece(8, 3, -5);
_local1.PositionPiece(9, 5, -3);
_local1.PositionPiece(10, 9, -7);
_local1.PositionPiece(11, 0, -9);
_local1.PositionPiece(12, 8, -9);
_local1.PositionPiece(13, 0, -6);
return(_local1);
}
function StartCreatingLevel65() {
return(_root._game.CreatePlayingField(65, 10, 6, FinishCreatingLevel65));
}
function FinishCreatingLevel65(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel65");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:2, _y:1}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:9, _y:0}], [{_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:4, _y:2}, {_x:3, _y:2}, {_x:3, _y:3}], [{_x:8, _y:1}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:8, _y:2}], [{_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:7, _y:4}, {_x:8, _y:4}], [{_x:1, _y:3}], [{_x:4, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}], [{_x:7, _y:3}, {_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}, {_x:4, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}], [{_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}]]);
_local1.PositionPiece(0, 0, -6);
_local1.PositionPiece(1, 7, -7);
_local1.PositionPiece(2, 2, -6);
_local1.PositionPiece(3, 4, -9);
_local1.PositionPiece(4, 7, -4);
_local1.PositionPiece(5, 1, -4);
_local1.PositionPiece(6, 2, -9);
_local1.PositionPiece(7, 3, -5);
_local1.PositionPiece(8, 9, -9);
_local1.PositionPiece(9, 0, -9);
_local1.PositionPiece(10, 4, -8);
_local1.PositionPiece(11, 4, -2);
_local1.PositionPiece(12, 4, -7);
_local1.PositionPiece(13, 7, -8);
return(_local1);
}
function StartCreatingLevel66() {
return(_root._game.CreatePlayingField(66, 10, 6, FinishCreatingLevel66));
}
function FinishCreatingLevel66(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel66");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:1}, {_x:2, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:8, _y:3}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:4, _y:4}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:7, _y:3}], [{_x:9, _y:2}, {_x:9, _y:3}, {_x:9, _y:4}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}], [{_x:2, _y:4}, {_x:2, _y:5}, {_x:1, _y:5}, {_x:3, _y:5}, {_x:4, _y:5}], [{_x:3, _y:4}], [{_x:6, _y:4}, {_x:6, _y:5}, {_x:7, _y:5}, {_x:8, _y:5}, {_x:8, _y:4}], [{_x:7, _y:4}], [{_x:5, _y:5}], [{_x:9, _y:5}]]);
_local1.PositionPiece(0, 0, -7);
_local1.PositionPiece(1, 2, -9);
_local1.PositionPiece(2, 1, -4);
_local1.PositionPiece(3, 0, -4);
_local1.PositionPiece(4, 7, -9);
_local1.PositionPiece(5, 1, -9);
_local1.PositionPiece(6, 8, -6);
_local1.PositionPiece(7, 5, -3);
_local1.PositionPiece(8, 4, -4);
_local1.PositionPiece(9, 9, -9);
_local1.PositionPiece(10, 6, -8);
_local1.PositionPiece(11, 2, -8);
_local1.PositionPiece(12, 0, -8);
_local1.PositionPiece(13, 7, -2);
_local1.PositionPiece(14, 2, -8);
_local1.PositionPiece(15, 8, -7);
_local1.PositionPiece(16, 0, -9);
return(_local1);
}
function StartCreatingLevel67() {
return(_root._game.CreatePlayingField(67, 10, 6, FinishCreatingLevel67));
}
function FinishCreatingLevel67(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel67");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:8, _y:1}, {_x:8, _y:2}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}], [{_x:2, _y:1}, {_x:2, _y:2}, {_x:2, _y:3}, {_x:1, _y:3}, {_x:0, _y:3}, {_x:0, _y:4}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:2}], [{_x:4, _y:1}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:6, _y:3}, {_x:5, _y:3}], [{_x:9, _y:2}, {_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:8, _y:3}, {_x:8, _y:4}, {_x:7, _y:4}, {_x:6, _y:4}, {_x:5, _y:4}, {_x:5, _y:5}], [{_x:1, _y:4}, {_x:1, _y:5}, {_x:0, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}, {_x:4, _y:5}], [{_x:2, _y:4}, {_x:3, _y:4}, {_x:4, _y:4}], [{_x:6, _y:5}, {_x:7, _y:5}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 5, -8);
_local1.PositionPiece(2, 6, -7);
_local1.PositionPiece(3, 2, -9);
_local1.PositionPiece(4, 7, -6);
_local1.PositionPiece(5, 4, -5);
_local1.PositionPiece(6, 5, -7);
_local1.PositionPiece(7, 5, -6);
_local1.PositionPiece(8, 0, -6);
_local1.PositionPiece(9, 3, -9);
_local1.PositionPiece(10, 0, -5);
_local1.PositionPiece(11, 0, -2);
_local1.PositionPiece(12, 6, -9);
_local1.PositionPiece(13, 2, -7);
return(_local1);
}
function StartCreatingLevel68() {
return(_root._game.CreatePlayingField(68, 10, 6, FinishCreatingLevel68));
}
function FinishCreatingLevel68(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel68");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:4, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:8, _y:1}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:4, _y:2}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:2, _y:3}], [{_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:8, _y:3}, {_x:8, _y:2}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:2, _y:4}], [{_x:2, _y:2}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:5, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:5, _y:4}], [{_x:9, _y:2}, {_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:3, _y:4}, {_x:3, _y:5}, {_x:4, _y:5}, {_x:5, _y:5}, {_x:6, _y:5}], [{_x:6, _y:4}, {_x:7, _y:4}, {_x:7, _y:5}], [{_x:8, _y:4}], [{_x:0, _y:5}]]);
_local1.PositionPiece(0, 3, -7);
_local1.PositionPiece(1, 0, -9);
_local1.PositionPiece(2, 0, -8);
_local1.PositionPiece(3, 4, -8);
_local1.PositionPiece(4, 6, -3);
_local1.PositionPiece(5, 2, -5);
_local1.PositionPiece(6, 0, -3);
_local1.PositionPiece(7, 0, -7);
_local1.PositionPiece(8, 9, -9);
_local1.PositionPiece(9, 4, -3);
_local1.PositionPiece(10, 8, -8);
_local1.PositionPiece(11, 6, -5);
_local1.PositionPiece(12, 5, -9);
_local1.PositionPiece(13, 3, -9);
_local1.PositionPiece(14, 7, -7);
return(_local1);
}
function StartCreatingLevel69() {
return(_root._game.CreatePlayingField(69, 10, 6, FinishCreatingLevel69));
}
function FinishCreatingLevel69(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel69");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:5, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:8, _y:2}], [{_x:9, _y:0}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}, {_x:1, _y:3}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}], [{_x:3, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:6, _y:3}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:5, _y:3}, {_x:5, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:5}], [{_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:4}], [{_x:2, _y:4}], [{_x:6, _y:4}, {_x:6, _y:5}, {_x:7, _y:5}, {_x:8, _y:5}, {_x:9, _y:5}, {_x:8, _y:4}], [{_x:7, _y:4}], [{_x:0, _y:5}]]);
_local1.PositionPiece(0, 8, -9);
_local1.PositionPiece(1, 5, -6);
_local1.PositionPiece(2, 4, -3);
_local1.PositionPiece(3, 8, -8);
_local1.PositionPiece(4, 4, -9);
_local1.PositionPiece(5, 1, -7);
_local1.PositionPiece(6, 2, -2);
_local1.PositionPiece(7, 4, -8);
_local1.PositionPiece(8, 0, -9);
_local1.PositionPiece(9, 0, -6);
_local1.PositionPiece(10, 2, -9);
_local1.PositionPiece(11, 6, -9);
_local1.PositionPiece(12, 4, -5);
_local1.PositionPiece(13, 5, -2);
_local1.PositionPiece(14, 7, -6);
_local1.PositionPiece(15, 6, -6);
return(_local1);
}
function StartCreatingLevel70() {
return(_root._game.CreatePlayingField(70, 10, 6, FinishCreatingLevel70));
}
function FinishCreatingLevel70(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel70");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:9, _y:0}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:1, _y:1}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:1, _y:5}, {_x:0, _y:5}], [{_x:2, _y:1}, {_x:2, _y:2}, {_x:2, _y:3}, {_x:2, _y:4}], [{_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}], [{_x:7, _y:1}, {_x:8, _y:1}, {_x:9, _y:1}], [{_x:3, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:5, _y:3}], [{_x:7, _y:2}, {_x:8, _y:2}, {_x:9, _y:2}, {_x:9, _y:3}], [{_x:3, _y:3}, {_x:3, _y:4}, {_x:3, _y:5}], [{_x:6, _y:3}, {_x:7, _y:3}, {_x:7, _y:4}], [{_x:8, _y:3}, {_x:8, _y:4}, {_x:8, _y:5}, {_x:9, _y:5}], [{_x:0, _y:4}], [{_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:6, _y:4}], [{_x:5, _y:4}], [{_x:9, _y:4}], [{_x:2, _y:5}], [{_x:7, _y:5}]]);
_local1.PositionPiece(0, 1, -8);
_local1.PositionPiece(1, 7, -8);
_local1.PositionPiece(2, 2, -9);
_local1.PositionPiece(3, 7, -6);
_local1.PositionPiece(4, 1, -7);
_local1.PositionPiece(5, 9, -7);
_local1.PositionPiece(6, 0, -6);
_local1.PositionPiece(7, 6, -3);
_local1.PositionPiece(8, 4, -2);
_local1.PositionPiece(9, 3, -5);
_local1.PositionPiece(10, 6, -6);
_local1.PositionPiece(11, 5, -8);
_local1.PositionPiece(12, 3, -3);
_local1.PositionPiece(13, 8, -9);
_local1.PositionPiece(14, 3, -7);
_local1.PositionPiece(15, 0, -8);
_local1.PositionPiece(16, 9, -9);
_local1.PositionPiece(17, 0, -9);
_local1.PositionPiece(18, 7, -9);
return(_local1);
}
function StartCreatingLevel71() {
return(_root._game.CreatePlayingField(71, 10, 6, FinishCreatingLevel71));
}
function FinishCreatingLevel71(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel71");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:0}, {_x:7, _y:0}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}], [{_x:2, _y:1}, {_x:2, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}, {_x:6, _y:3}, {_x:6, _y:4}], [{_x:6, _y:2}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:7, _y:4}, {_x:7, _y:5}], [{_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}], [{_x:1, _y:4}, {_x:1, _y:5}, {_x:2, _y:5}], [{_x:3, _y:4}, {_x:3, _y:5}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:6, _y:5}], [{_x:8, _y:5}]]);
_local1.PositionPiece(0, 3, -9);
_local1.PositionPiece(1, 7, -8);
_local1.PositionPiece(2, 0, -2);
_local1.PositionPiece(3, 8, -5);
_local1.PositionPiece(4, 9, -9);
_local1.PositionPiece(5, 7, -5);
_local1.PositionPiece(6, 5, -9);
_local1.PositionPiece(7, 2, -6);
_local1.PositionPiece(8, 7, -9);
_local1.PositionPiece(9, 4, -4);
_local1.PositionPiece(10, 0, -7);
_local1.PositionPiece(11, 4, -7);
_local1.PositionPiece(12, 0, -9);
_local1.PositionPiece(13, 2, -9);
_local1.PositionPiece(14, 0, -5);
_local1.PositionPiece(15, 3, -8);
return(_local1);
}
function StartCreatingLevel72() {
return(_root._game.CreatePlayingField(72, 10, 6, FinishCreatingLevel72));
}
function FinishCreatingLevel72(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel72");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:1, _y:2}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}, {_x:8, _y:1}], [{_x:1, _y:1}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:3, _y:4}], [{_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}, {_x:6, _y:4}], [{_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:8, _y:2}, {_x:9, _y:2}, {_x:9, _y:3}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:8, _y:3}, {_x:8, _y:4}, {_x:8, _y:5}, {_x:9, _y:5}], [{_x:0, _y:4}, {_x:0, _y:5}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}], [{_x:9, _y:4}]]);
_local1.PositionPiece(0, 9, -3);
_local1.PositionPiece(1, 8, -7);
_local1.PositionPiece(2, 2, -7);
_local1.PositionPiece(3, 2, -9);
_local1.PositionPiece(4, 8, -9);
_local1.PositionPiece(5, 4, -6);
_local1.PositionPiece(6, 6, -6);
_local1.PositionPiece(7, 0, -4);
_local1.PositionPiece(8, 2, -4);
_local1.PositionPiece(9, 6, -9);
_local1.PositionPiece(10, 0, -7);
_local1.PositionPiece(11, 4, -4);
_local1.PositionPiece(12, 5, -7);
_local1.PositionPiece(13, 1, -9);
_local1.PositionPiece(14, 0, -6);
_local1.PositionPiece(15, 6, -9);
return(_local1);
}
function StartCreatingLevel73() {
return(_root._game.CreatePlayingField(73, 10, 6, FinishCreatingLevel73));
}
function FinishCreatingLevel73(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel73");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:3, _y:2}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}, {_x:5, _y:1}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:6, _y:2}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:9, _y:2}, {_x:9, _y:1}], [{_x:9, _y:0}], [{_x:3, _y:1}], [{_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:3, _y:4}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:2, _y:5}], [{_x:3, _y:3}], [{_x:6, _y:3}, {_x:7, _y:3}, {_x:8, _y:3}, {_x:8, _y:4}], [{_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:4, _y:5}, {_x:3, _y:5}], [{_x:6, _y:4}, {_x:6, _y:5}, {_x:7, _y:5}, {_x:7, _y:4}]]);
_local1.PositionPiece(0, 8, -9);
_local1.PositionPiece(1, 6, -4);
_local1.PositionPiece(2, 1, -5);
_local1.PositionPiece(3, 0, -7);
_local1.PositionPiece(4, 3, -6);
_local1.PositionPiece(5, 2, -8);
_local1.PositionPiece(6, 7, -9);
_local1.PositionPiece(7, 7, -5);
_local1.PositionPiece(8, 2, -9);
_local1.PositionPiece(9, 1, -3);
_local1.PositionPiece(10, 5, -9);
_local1.PositionPiece(11, 8, -7);
_local1.PositionPiece(12, 4, -7);
_local1.PositionPiece(13, 5, -3);
_local1.PositionPiece(14, 5, -6);
_local1.PositionPiece(15, 7, -3);
_local1.PositionPiece(16, 8, -6);
return(_local1);
}
function StartCreatingLevel74() {
return(_root._game.CreatePlayingField(74, 10, 6, FinishCreatingLevel74));
}
function FinishCreatingLevel74(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel74");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}, {_x:0, _y:2}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:2, _y:2}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:5, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:7, _y:2}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:3, _y:4}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}, {_x:5, _y:3}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}], [{_x:4, _y:2}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:6, _y:4}, {_x:5, _y:4}, {_x:5, _y:5}], [{_x:8, _y:3}, {_x:8, _y:4}, {_x:9, _y:4}], [{_x:9, _y:3}], [{_x:4, _y:5}], [{_x:6, _y:5}, {_x:7, _y:5}, {_x:8, _y:5}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 1, -9);
_local1.PositionPiece(1, 0, -3);
_local1.PositionPiece(2, 4, -5);
_local1.PositionPiece(3, 4, -9);
_local1.PositionPiece(4, 0, -4);
_local1.PositionPiece(5, 6, -7);
_local1.PositionPiece(6, 6, -9);
_local1.PositionPiece(7, 3, -7);
_local1.PositionPiece(8, 4, -8);
_local1.PositionPiece(9, 8, -5);
_local1.PositionPiece(10, 0, -9);
_local1.PositionPiece(11, 2, -4);
_local1.PositionPiece(12, 0, -7);
_local1.PositionPiece(13, 8, -8);
_local1.PositionPiece(14, 3, -9);
_local1.PositionPiece(15, 5, -9);
_local1.PositionPiece(16, 3, -3);
return(_local1);
}
function StartCreatingLevel75() {
return(_root._game.CreatePlayingField(75, 10, 6, FinishCreatingLevel75));
}
function FinishCreatingLevel75(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel75");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}, {_x:8, _y:1}], [{_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:5, _y:4}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:7, _y:4}, {_x:8, _y:4}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:7, _y:3}], [{_x:9, _y:2}, {_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}], [{_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}, {_x:1, _y:5}, {_x:0, _y:5}], [{_x:4, _y:5}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 6, -9);
_local1.PositionPiece(2, 5, -9);
_local1.PositionPiece(3, 0, -8);
_local1.PositionPiece(4, 3, -5);
_local1.PositionPiece(5, 7, -4);
_local1.PositionPiece(6, 1, -5);
_local1.PositionPiece(7, 0, -7);
_local1.PositionPiece(8, 9, -7);
_local1.PositionPiece(9, 1, -3);
_local1.PositionPiece(10, 2, -8);
_local1.PositionPiece(11, 7, -8);
_local1.PositionPiece(12, 4, -8);
_local1.PositionPiece(13, 5, -2);
_local1.PositionPiece(14, 4, -3);
return(_local1);
}
function StartCreatingLevel76() {
return(_root._game.CreatePlayingField(76, 10, 6, FinishCreatingLevel76));
}
function FinishCreatingLevel76(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel76");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:0}], [{_x:2, _y:0}, {_x:3, _y:0}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}], [{_x:2, _y:2}, {_x:3, _y:2}, {_x:3, _y:3}], [{_x:4, _y:2}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:5, _y:4}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:9, _y:3}], [{_x:0, _y:4}, {_x:1, _y:4}, {_x:1, _y:5}, {_x:0, _y:5}], [{_x:3, _y:4}], [{_x:6, _y:5}, {_x:7, _y:5}]]);
_local1.PositionPiece(0, 1, -7);
_local1.PositionPiece(1, 3, -8);
_local1.PositionPiece(2, 2, -9);
_local1.PositionPiece(3, 6, -6);
_local1.PositionPiece(4, 8, -9);
_local1.PositionPiece(5, 9, -7);
_local1.PositionPiece(6, 8, -6);
_local1.PositionPiece(7, 4, -9);
_local1.PositionPiece(8, 7, -4);
_local1.PositionPiece(9, 1, -5);
_local1.PositionPiece(10, 4, -6);
_local1.PositionPiece(11, 0, -8);
_local1.PositionPiece(12, 1, -9);
_local1.PositionPiece(13, 7, -8);
_local1.PositionPiece(14, 4, -8);
_local1.PositionPiece(15, 6, -9);
return(_local1);
}
function StartCreatingLevel77() {
return(_root._game.CreatePlayingField(77, 10, 6, FinishCreatingLevel77));
}
function FinishCreatingLevel77(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel77");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:8, _y:1}, {_x:8, _y:0}, {_x:7, _y:0}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:5, _y:2}, {_x:6, _y:2}], [{_x:1, _y:2}, {_x:2, _y:2}, {_x:1, _y:3}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:5, _y:4}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:9, _y:4}, {_x:9, _y:3}], [{_x:4, _y:3}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:5, _y:3}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:3, _y:4}], [{_x:7, _y:4}, {_x:7, _y:5}, {_x:6, _y:5}, {_x:5, _y:5}, {_x:8, _y:5}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 0, -8);
_local1.PositionPiece(1, 4, -7);
_local1.PositionPiece(2, 6, -9);
_local1.PositionPiece(3, 3, -9);
_local1.PositionPiece(4, 7, -5);
_local1.PositionPiece(5, 4, -7);
_local1.PositionPiece(6, 2, -6);
_local1.PositionPiece(7, 7, -8);
_local1.PositionPiece(8, 4, -4);
_local1.PositionPiece(9, 8, -4);
_local1.PositionPiece(10, 2, -9);
_local1.PositionPiece(11, 1, -8);
_local1.PositionPiece(12, 3, -2);
_local1.PositionPiece(13, 1, -7);
_local1.PositionPiece(14, 0, -4);
return(_local1);
}
function StartCreatingLevel78() {
return(_root._game.CreatePlayingField(78, 10, 6, FinishCreatingLevel78));
}
function FinishCreatingLevel78(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel78");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:5, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:7, _y:1}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:9, _y:3}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:5, _y:4}, {_x:5, _y:3}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:8, _y:4}, {_x:8, _y:5}], [{_x:2, _y:3}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:3, _y:4}], [{_x:2, _y:4}, {_x:2, _y:5}, {_x:3, _y:5}, {_x:4, _y:5}], [{_x:9, _y:4}, {_x:9, _y:5}], [{_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}]]);
_local1.PositionPiece(0, 5, -6);
_local1.PositionPiece(1, 3, -4);
_local1.PositionPiece(2, 0, -4);
_local1.PositionPiece(3, 8, -5);
_local1.PositionPiece(4, 0, -9);
_local1.PositionPiece(5, 1, -9);
_local1.PositionPiece(6, 0, -8);
_local1.PositionPiece(7, 2, -9);
_local1.PositionPiece(8, 8, -9);
_local1.PositionPiece(9, 5, -5);
_local1.PositionPiece(10, 4, -8);
_local1.PositionPiece(11, 9, -9);
_local1.PositionPiece(12, 4, -9);
return(_local1);
}
function StartCreatingLevel79() {
return(_root._game.CreatePlayingField(79, 10, 6, FinishCreatingLevel79));
}
function FinishCreatingLevel79(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel79");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:0}], [{_x:1, _y:0}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:4, _y:2}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:7, _y:2}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}], [{_x:7, _y:1}], [{_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:8, _y:4}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:3, _y:3}, {_x:4, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:6, _y:4}], [{_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:4}], [{_x:2, _y:4}, {_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}, {_x:4, _y:5}, {_x:5, _y:5}], [{_x:4, _y:4}], [{_x:6, _y:5}, {_x:7, _y:5}, {_x:8, _y:5}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 7, -5);
_local1.PositionPiece(1, 0, -9);
_local1.PositionPiece(2, 4, -3);
_local1.PositionPiece(3, 3, -9);
_local1.PositionPiece(4, 5, -4);
_local1.PositionPiece(5, 8, -9);
_local1.PositionPiece(6, 2, -5);
_local1.PositionPiece(7, 7, -8);
_local1.PositionPiece(8, 0, -7);
_local1.PositionPiece(9, 0, -3);
_local1.PositionPiece(10, 8, -3);
_local1.PositionPiece(11, 0, -4);
_local1.PositionPiece(12, 6, -7);
_local1.PositionPiece(13, 3, -7);
_local1.PositionPiece(14, 6, -8);
_local1.PositionPiece(15, 1, -8);
return(_local1);
}
function StartCreatingLevel80() {
return(_root._game.CreatePlayingField(80, 10, 6, FinishCreatingLevel80));
}
function FinishCreatingLevel80(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel80");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:9, _y:3}, {_x:8, _y:3}, {_x:8, _y:2}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}], [{_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:5, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}, {_x:5, _y:3}], [{_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:3, _y:4}, {_x:3, _y:5}, {_x:4, _y:5}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:6, _y:4}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:2, _y:4}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:6, _y:5}], [{_x:8, _y:4}, {_x:8, _y:5}, {_x:7, _y:5}], [{_x:9, _y:4}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 3, -6);
_local1.PositionPiece(1, 3, -9);
_local1.PositionPiece(2, 4, -9);
_local1.PositionPiece(3, 7, -6);
_local1.PositionPiece(4, 7, -9);
_local1.PositionPiece(5, 8, -9);
_local1.PositionPiece(6, 0, -6);
_local1.PositionPiece(7, 6, -3);
_local1.PositionPiece(8, 0, -9);
_local1.PositionPiece(9, 8, -3);
_local1.PositionPiece(10, 6, -8);
_local1.PositionPiece(11, 2, -3);
_local1.PositionPiece(12, 1, -7);
_local1.PositionPiece(13, 5, -6);
_local1.PositionPiece(14, 2, -9);
return(_local1);
}
function StartCreatingLevel81() {
return(_root._game.CreatePlayingField(81, 10, 6, FinishCreatingLevel81));
}
function FinishCreatingLevel81(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel81");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:3, _y:3}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:9, _y:3}, {_x:8, _y:3}, {_x:8, _y:4}], [{_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:0, _y:3}], [{_x:3, _y:2}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}, {_x:3, _y:5}], [{_x:2, _y:3}, {_x:2, _y:4}, {_x:1, _y:4}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:7, _y:4}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:3, _y:4}], [{_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}, {_x:7, _y:5}, {_x:6, _y:5}], [{_x:2, _y:5}], [{_x:5, _y:5}]]);
_local1.PositionPiece(0, 1, -3);
_local1.PositionPiece(1, 4, -3);
_local1.PositionPiece(2, 1, -9);
_local1.PositionPiece(3, 5, -5);
_local1.PositionPiece(4, 0, -9);
_local1.PositionPiece(5, 8, -5);
_local1.PositionPiece(6, 6, -5);
_local1.PositionPiece(7, 3, -8);
_local1.PositionPiece(8, 7, -7);
_local1.PositionPiece(9, 3, -8);
_local1.PositionPiece(10, 6, -9);
_local1.PositionPiece(11, 1, -5);
_local1.PositionPiece(12, 8, -9);
_local1.PositionPiece(13, 6, -9);
_local1.PositionPiece(14, 6, -7);
_local1.PositionPiece(15, 9, -9);
_local1.PositionPiece(16, 3, -6);
return(_local1);
}
function StartCreatingLevel82() {
return(_root._game.CreatePlayingField(82, 10, 6, FinishCreatingLevel82));
}
function FinishCreatingLevel82(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel82");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:2, _y:2}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:8, _y:2}, {_x:9, _y:2}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:2, _y:1}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:3, _y:3}], [{_x:8, _y:1}], [{_x:3, _y:2}], [{_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}], [{_x:2, _y:3}], [{_x:6, _y:3}, {_x:7, _y:3}, {_x:7, _y:4}], [{_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:4}], [{_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:5}], [{_x:5, _y:4}, {_x:6, _y:4}, {_x:6, _y:5}], [{_x:8, _y:4}, {_x:8, _y:5}, {_x:9, _y:5}], [{_x:7, _y:5}]]);
_local1.PositionPiece(0, 2, -6);
_local1.PositionPiece(1, 6, -9);
_local1.PositionPiece(2, 1, -4);
_local1.PositionPiece(3, 5, -8);
_local1.PositionPiece(4, 6, -8);
_local1.PositionPiece(5, 8, -6);
_local1.PositionPiece(6, 4, -3);
_local1.PositionPiece(7, 1, -8);
_local1.PositionPiece(8, 2, -7);
_local1.PositionPiece(9, 4, -6);
_local1.PositionPiece(10, 0, -6);
_local1.PositionPiece(11, 1, -9);
_local1.PositionPiece(12, 3, -8);
_local1.PositionPiece(13, 0, -8);
_local1.PositionPiece(14, 8, -7);
_local1.PositionPiece(15, 1, -6);
_local1.PositionPiece(16, 4, -9);
return(_local1);
}
function StartCreatingLevel83() {
return(_root._game.CreatePlayingField(83, 10, 6, FinishCreatingLevel83));
}
function FinishCreatingLevel83(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel83");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:9, _y:3}, {_x:9, _y:4}], [{_x:0, _y:1}, {_x:1, _y:1}, {_x:2, _y:1}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:2}, {_x:4, _y:1}], [{_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:7, _y:3}], [{_x:8, _y:1}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:3, _y:4}], [{_x:2, _y:2}], [{_x:5, _y:3}, {_x:5, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:7, _y:5}, {_x:7, _y:4}, {_x:8, _y:4}], [{_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:5, _y:5}], [{_x:8, _y:5}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 2, -8);
_local1.PositionPiece(1, 0, -9);
_local1.PositionPiece(2, 1, -9);
_local1.PositionPiece(3, 9, -7);
_local1.PositionPiece(4, 5, -9);
_local1.PositionPiece(5, 3, -6);
_local1.PositionPiece(6, 0, -3);
_local1.PositionPiece(7, 8, -9);
_local1.PositionPiece(8, 5, -6);
_local1.PositionPiece(9, 0, -6);
_local1.PositionPiece(10, 1, -8);
_local1.PositionPiece(11, 8, -9);
_local1.PositionPiece(12, 6, -7);
_local1.PositionPiece(13, 6, -2);
_local1.PositionPiece(14, 4, -9);
_local1.PositionPiece(15, 1, -6);
return(_local1);
}
function StartCreatingLevel84() {
return(_root._game.CreatePlayingField(84, 10, 6, FinishCreatingLevel84));
}
function FinishCreatingLevel84(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel84");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:0, _y:1}, {_x:0, _y:2}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:3, _y:2}, {_x:3, _y:3}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:7, _y:2}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:9, _y:3}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:2, _y:3}, {_x:2, _y:4}, {_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}, {_x:4, _y:5}], [{_x:5, _y:3}, {_x:5, _y:4}, {_x:6, _y:4}], [{_x:6, _y:3}, {_x:7, _y:3}, {_x:7, _y:4}], [{_x:8, _y:3}, {_x:8, _y:4}, {_x:8, _y:5}], [{_x:1, _y:4}], [{_x:9, _y:4}, {_x:9, _y:5}], [{_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}]]);
_local1.PositionPiece(0, 2, -9);
_local1.PositionPiece(1, 3, -5);
_local1.PositionPiece(2, 7, -9);
_local1.PositionPiece(3, 0, -9);
_local1.PositionPiece(4, 4, -6);
_local1.PositionPiece(5, 3, -9);
_local1.PositionPiece(6, 9, -9);
_local1.PositionPiece(7, 0, -7);
_local1.PositionPiece(8, 1, -3);
_local1.PositionPiece(9, 6, -8);
_local1.PositionPiece(10, 1, -5);
_local1.PositionPiece(11, 5, -9);
_local1.PositionPiece(12, 7, -4);
_local1.PositionPiece(13, 9, -5);
_local1.PositionPiece(14, 2, -6);
return(_local1);
}
function StartCreatingLevel85() {
return(_root._game.CreatePlayingField(85, 10, 6, FinishCreatingLevel85));
}
function FinishCreatingLevel85(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel85");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:4, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:2, _y:2}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:7, _y:0}, {_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}, {_x:8, _y:1}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}], [{_x:1, _y:1}, {_x:2, _y:1}], [{_x:7, _y:1}], [{_x:4, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}, {_x:4, _y:3}, {_x:3, _y:3}, {_x:2, _y:3}], [{_x:8, _y:2}, {_x:9, _y:2}, {_x:9, _y:3}, {_x:8, _y:3}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:3, _y:4}, {_x:3, _y:5}], [{_x:6, _y:3}, {_x:6, _y:4}, {_x:6, _y:5}, {_x:5, _y:5}], [{_x:4, _y:4}, {_x:4, _y:5}, {_x:5, _y:4}], [{_x:7, _y:4}, {_x:8, _y:4}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}, {_x:7, _y:5}], [{_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}]]);
_local1.PositionPiece(0, 5, -9);
_local1.PositionPiece(1, 2, -5);
_local1.PositionPiece(2, 0, -4);
_local1.PositionPiece(3, 4, -8);
_local1.PositionPiece(4, 1, -9);
_local1.PositionPiece(5, 6, -1);
_local1.PositionPiece(6, 1, -7);
_local1.PositionPiece(7, 3, -3);
_local1.PositionPiece(8, 8, -8);
_local1.PositionPiece(9, 3, -7);
_local1.PositionPiece(10, 8, -6);
_local1.PositionPiece(11, 7, -6);
_local1.PositionPiece(12, 0, -6);
_local1.PositionPiece(13, 2, -9);
return(_local1);
}
function StartCreatingLevel86() {
return(_root._game.CreatePlayingField(86, 10, 6, FinishCreatingLevel86));
}
function FinishCreatingLevel86(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel86");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:8, _y:2}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:2, _y:3}, {_x:1, _y:3}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:4, _y:2}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:7, _y:2}], [{_x:7, _y:1}, {_x:8, _y:1}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}], [{_x:4, _y:3}, {_x:4, _y:4}, {_x:5, _y:4}, {_x:6, _y:4}, {_x:6, _y:3}], [{_x:5, _y:3}], [{_x:7, _y:3}, {_x:8, _y:3}, {_x:9, _y:3}], [{_x:1, _y:4}, {_x:2, _y:4}, {_x:3, _y:4}, {_x:3, _y:5}, {_x:4, _y:5}, {_x:5, _y:5}], [{_x:7, _y:4}, {_x:7, _y:5}, {_x:8, _y:5}, {_x:8, _y:4}, {_x:9, _y:4}], [{_x:6, _y:5}], [{_x:9, _y:5}]]);
_local1.PositionPiece(0, 7, -6);
_local1.PositionPiece(1, 0, -4);
_local1.PositionPiece(2, 7, -9);
_local1.PositionPiece(3, 7, -7);
_local1.PositionPiece(4, 8, -5);
_local1.PositionPiece(5, 4, -8);
_local1.PositionPiece(6, 1, -5);
_local1.PositionPiece(7, 3, -8);
_local1.PositionPiece(8, 1, -9);
_local1.PositionPiece(9, 0, -9);
_local1.PositionPiece(10, 3, -2);
_local1.PositionPiece(11, 4, -9);
_local1.PositionPiece(12, 1, -6);
_local1.PositionPiece(13, 5, -3);
_local1.PositionPiece(14, 3, -5);
_local1.PositionPiece(15, 6, -9);
_local1.PositionPiece(16, 5, -8);
return(_local1);
}
function StartCreatingLevel87() {
return(_root._game.CreatePlayingField(87, 10, 6, FinishCreatingLevel87));
}
function FinishCreatingLevel87(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel87");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:1, _y:3}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:9, _y:0}], [{_x:2, _y:1}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}, {_x:5, _y:2}, {_x:5, _y:3}], [{_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:8, _y:2}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}], [{_x:2, _y:2}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:4, _y:3}], [{_x:3, _y:2}], [{_x:6, _y:2}, {_x:6, _y:3}, {_x:7, _y:3}], [{_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:2, _y:4}, {_x:2, _y:5}, {_x:1, _y:5}, {_x:0, _y:5}, {_x:3, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:6, _y:4}, {_x:7, _y:4}], [{_x:8, _y:4}], [{_x:7, _y:5}]]);
_local1.PositionPiece(0, 5, -6);
_local1.PositionPiece(1, 7, -9);
_local1.PositionPiece(2, 4, -9);
_local1.PositionPiece(3, 6, -8);
_local1.PositionPiece(4, 7, -7);
_local1.PositionPiece(5, 1, -9);
_local1.PositionPiece(6, 1, -8);
_local1.PositionPiece(7, 0, -7);
_local1.PositionPiece(8, 2, -6);
_local1.PositionPiece(9, 1, -7);
_local1.PositionPiece(10, 8, -5);
_local1.PositionPiece(11, 0, -4);
_local1.PositionPiece(12, 0, -2);
_local1.PositionPiece(13, 5, -7);
_local1.PositionPiece(14, 3, -4);
_local1.PositionPiece(15, 0, -8);
_local1.PositionPiece(16, 0, -9);
return(_local1);
}
function StartCreatingLevel88() {
return(_root._game.CreatePlayingField(88, 10, 6, FinishCreatingLevel88));
}
function FinishCreatingLevel88(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel88");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:8, _y:1}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:8, _y:2}, {_x:8, _y:3}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:2}], [{_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}, {_x:4, _y:3}], [{_x:5, _y:1}, {_x:5, _y:2}, {_x:4, _y:2}], [{_x:6, _y:2}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:8, _y:4}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}, {_x:2, _y:4}], [{_x:5, _y:3}, {_x:6, _y:3}, {_x:6, _y:4}], [{_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:5, _y:4}], [{_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:4, _y:5}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}, {_x:8, _y:5}]]);
_local1.PositionPiece(0, 5, -9);
_local1.PositionPiece(1, 7, -8);
_local1.PositionPiece(2, 1, -2);
_local1.PositionPiece(3, 2, -5);
_local1.PositionPiece(4, 0, -9);
_local1.PositionPiece(5, 1, -9);
_local1.PositionPiece(6, 8, -6);
_local1.PositionPiece(7, 6, -5);
_local1.PositionPiece(8, 5, -7);
_local1.PositionPiece(9, 5, -8);
_local1.PositionPiece(10, 0, -7);
_local1.PositionPiece(11, 1, -6);
_local1.PositionPiece(12, 5, -2);
_local1.PositionPiece(13, 3, -1);
return(_local1);
}
function StartCreatingLevel89() {
return(_root._game.CreatePlayingField(89, 10, 6, FinishCreatingLevel89));
}
function FinishCreatingLevel89(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel89");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:3, _y:2}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}], [{_x:2, _y:0}, {_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:6, _y:2}, {_x:6, _y:1}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:1, _y:4}, {_x:2, _y:4}], [{_x:1, _y:3}, {_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}], [{_x:5, _y:3}, {_x:5, _y:4}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:6, _y:3}, {_x:7, _y:3}, {_x:8, _y:3}], [{_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}, {_x:8, _y:4}], [{_x:4, _y:4}], [{_x:6, _y:4}, {_x:7, _y:4}, {_x:7, _y:5}], [{_x:2, _y:5}, {_x:3, _y:5}], [{_x:6, _y:5}]]);
_local1.PositionPiece(0, 0, -7);
_local1.PositionPiece(1, 1, -7);
_local1.PositionPiece(2, 0, -9);
_local1.PositionPiece(3, 4, -3);
_local1.PositionPiece(4, 9, -9);
_local1.PositionPiece(5, 8, -9);
_local1.PositionPiece(6, 1, -3);
_local1.PositionPiece(7, 7, -4);
_local1.PositionPiece(8, 7, -6);
_local1.PositionPiece(9, 6, -9);
_local1.PositionPiece(10, 3, -4);
_local1.PositionPiece(11, 4, -8);
_local1.PositionPiece(12, 3, -8);
_local1.PositionPiece(13, 1, -8);
_local1.PositionPiece(14, 5, -9);
_local1.PositionPiece(15, 4, -8);
return(_local1);
}
function StartCreatingLevel90() {
return(_root._game.CreatePlayingField(90, 10, 6, FinishCreatingLevel90));
}
function FinishCreatingLevel90(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel90");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:3, _y:2}], [{_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}], [{_x:6, _y:0}, {_x:6, _y:1}, {_x:6, _y:2}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:8, _y:1}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:6, _y:3}, {_x:7, _y:3}, {_x:8, _y:3}, {_x:9, _y:3}], [{_x:7, _y:2}, {_x:8, _y:2}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}], [{_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:3, _y:4}, {_x:3, _y:5}], [{_x:2, _y:3}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:5, _y:4}, {_x:5, _y:5}], [{_x:6, _y:4}, {_x:7, _y:4}, {_x:8, _y:4}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:4, _y:5}], [{_x:6, _y:5}, {_x:7, _y:5}]]);
_local1.PositionPiece(0, 0, -5);
_local1.PositionPiece(1, 3, -6);
_local1.PositionPiece(2, 0, -7);
_local1.PositionPiece(3, 3, -9);
_local1.PositionPiece(4, 1, -9);
_local1.PositionPiece(5, 7, -9);
_local1.PositionPiece(6, 8, -6);
_local1.PositionPiece(7, 3, -8);
_local1.PositionPiece(8, 5, -9);
_local1.PositionPiece(9, 2, -6);
_local1.PositionPiece(10, 6, -4);
_local1.PositionPiece(11, 5, -6);
_local1.PositionPiece(12, 2, -2);
_local1.PositionPiece(13, 7, -4);
_local1.PositionPiece(14, 5, -8);
return(_local1);
}
function StartCreatingLevel91() {
return(_root._game.CreatePlayingField(91, 10, 6, FinishCreatingLevel91));
}
function FinishCreatingLevel91(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel91");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:0, _y:2}, {_x:0, _y:3}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:5, _y:0}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:4}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:3, _y:3}], [{_x:4, _y:1}, {_x:4, _y:2}, {_x:5, _y:2}], [{_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}], [{_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:2, _y:5}, {_x:1, _y:5}], [{_x:4, _y:3}, {_x:5, _y:3}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:7, _y:4}], [{_x:0, _y:4}, {_x:0, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:5, _y:4}, {_x:5, _y:5}, {_x:4, _y:5}, {_x:3, _y:5}], [{_x:8, _y:4}, {_x:8, _y:5}, {_x:7, _y:5}, {_x:6, _y:5}, {_x:9, _y:5}]]);
_local1.PositionPiece(0, 0, -5);
_local1.PositionPiece(1, 6, -6);
_local1.PositionPiece(2, 0, -6);
_local1.PositionPiece(3, 8, -9);
_local1.PositionPiece(4, 8, -6);
_local1.PositionPiece(5, 4, -9);
_local1.PositionPiece(6, 6, -3);
_local1.PositionPiece(7, 1, -9);
_local1.PositionPiece(8, 6, -9);
_local1.PositionPiece(9, 5, -9);
_local1.PositionPiece(10, 2, -2);
_local1.PositionPiece(11, 0, -9);
_local1.PositionPiece(12, 3, -4);
_local1.PositionPiece(13, 1, -6);
return(_local1);
}
function StartCreatingLevel92() {
return(_root._game.CreatePlayingField(92, 10, 6, FinishCreatingLevel92));
}
function FinishCreatingLevel92(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel92");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}, {_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:5, _y:1}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:8, _y:2}, {_x:8, _y:3}, {_x:9, _y:3}], [{_x:2, _y:1}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:3, _y:1}, {_x:4, _y:1}, {_x:4, _y:2}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:2, _y:4}, {_x:3, _y:4}], [{_x:3, _y:2}, {_x:3, _y:3}, {_x:4, _y:3}, {_x:4, _y:4}, {_x:4, _y:5}, {_x:3, _y:5}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:5, _y:4}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:7, _y:5}, {_x:8, _y:5}, {_x:8, _y:4}], [{_x:6, _y:4}, {_x:6, _y:5}, {_x:5, _y:5}], [{_x:9, _y:4}, {_x:9, _y:5}], [{_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 5, -9);
_local1.PositionPiece(2, 7, -9);
_local1.PositionPiece(3, 4, -4);
_local1.PositionPiece(4, 8, -5);
_local1.PositionPiece(5, 2, -8);
_local1.PositionPiece(6, 0, -7);
_local1.PositionPiece(7, 7, -4);
_local1.PositionPiece(8, 2, -7);
_local1.PositionPiece(9, 9, -6);
_local1.PositionPiece(10, 4, -9);
_local1.PositionPiece(11, 0, -2);
_local1.PositionPiece(12, 6, -4);
_local1.PositionPiece(13, 4, -6);
return(_local1);
}
function StartCreatingLevel93() {
return(_root._game.CreatePlayingField(93, 10, 6, FinishCreatingLevel93));
}
function FinishCreatingLevel93(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel93");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:0}, {_x:3, _y:0}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:5, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:7, _y:0}, {_x:7, _y:1}, {_x:8, _y:1}, {_x:8, _y:0}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:9, _y:3}, {_x:9, _y:4}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:3, _y:2}], [{_x:3, _y:1}], [{_x:4, _y:2}, {_x:4, _y:3}, {_x:3, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}], [{_x:5, _y:2}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:6, _y:4}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:7, _y:5}, {_x:6, _y:5}, {_x:5, _y:5}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:8, _y:5}, {_x:9, _y:5}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:0, _y:4}], [{_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}, {_x:1, _y:5}, {_x:0, _y:5}, {_x:4, _y:5}], [{_x:4, _y:4}]]);
_local1.PositionPiece(0, 0, -7);
_local1.PositionPiece(1, 0, -9);
_local1.PositionPiece(2, 3, -9);
_local1.PositionPiece(3, 8, -9);
_local1.PositionPiece(4, 5, -9);
_local1.PositionPiece(5, 3, -4);
_local1.PositionPiece(6, 7, -8);
_local1.PositionPiece(7, 6, -6);
_local1.PositionPiece(8, 1, -4);
_local1.PositionPiece(9, 7, -7);
_local1.PositionPiece(10, 6, -9);
_local1.PositionPiece(11, 7, -3);
_local1.PositionPiece(12, 0, -6);
_local1.PositionPiece(13, 7, -9);
return(_local1);
}
function StartCreatingLevel94() {
return(_root._game.CreatePlayingField(94, 10, 6, FinishCreatingLevel94));
}
function FinishCreatingLevel94(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel94");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:1, _y:1}, {_x:1, _y:2}, {_x:0, _y:2}, {_x:0, _y:1}], [{_x:2, _y:0}, {_x:2, _y:1}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:8, _y:1}, {_x:8, _y:0}, {_x:9, _y:0}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}, {_x:4, _y:2}], [{_x:9, _y:1}, {_x:9, _y:2}, {_x:8, _y:2}], [{_x:2, _y:2}, {_x:3, _y:2}, {_x:3, _y:3}], [{_x:7, _y:2}, {_x:7, _y:3}, {_x:6, _y:3}, {_x:6, _y:4}, {_x:7, _y:4}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}], [{_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}, {_x:3, _y:4}, {_x:4, _y:4}], [{_x:4, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:5, _y:5}], [{_x:8, _y:3}, {_x:9, _y:3}, {_x:9, _y:4}], [{_x:8, _y:4}, {_x:8, _y:5}, {_x:7, _y:5}, {_x:6, _y:5}, {_x:9, _y:5}], [{_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:4, _y:5}]]);
_local1.PositionPiece(0, 4, -9);
_local1.PositionPiece(1, 6, -7);
_local1.PositionPiece(2, 7, -7);
_local1.PositionPiece(3, 6, -9);
_local1.PositionPiece(4, 7, -2);
_local1.PositionPiece(5, 2, -9);
_local1.PositionPiece(6, 0, -7);
_local1.PositionPiece(7, 7, -4);
_local1.PositionPiece(8, 1, -3);
_local1.PositionPiece(9, 2, -6);
_local1.PositionPiece(10, 4, -3);
_local1.PositionPiece(11, 0, -9);
_local1.PositionPiece(12, 0, -5);
_local1.PositionPiece(13, 6, -5);
_local1.PositionPiece(14, 6, -8);
return(_local1);
}
function StartCreatingLevel95() {
return(_root._game.CreatePlayingField(95, 10, 6, FinishCreatingLevel95));
}
function FinishCreatingLevel95(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel95");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:0, _y:2}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}], [{_x:4, _y:0}, {_x:4, _y:1}, {_x:5, _y:1}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:7, _y:1}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:1, _y:1}, {_x:2, _y:1}, {_x:2, _y:2}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}, {_x:5, _y:3}, {_x:6, _y:3}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:8, _y:3}], [{_x:1, _y:2}, {_x:1, _y:3}, {_x:1, _y:4}, {_x:1, _y:5}, {_x:0, _y:5}, {_x:0, _y:4}], [{_x:5, _y:2}], [{_x:8, _y:2}], [{_x:0, _y:3}], [{_x:2, _y:3}, {_x:3, _y:3}, {_x:3, _y:4}, {_x:4, _y:4}], [{_x:9, _y:3}, {_x:9, _y:4}, {_x:8, _y:4}, {_x:8, _y:5}], [{_x:2, _y:4}, {_x:2, _y:5}, {_x:3, _y:5}], [{_x:5, _y:4}, {_x:6, _y:4}, {_x:7, _y:4}], [{_x:4, _y:5}, {_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}], [{_x:9, _y:5}]]);
_local1.PositionPiece(0, 0, -9);
_local1.PositionPiece(1, 1, -7);
_local1.PositionPiece(2, 1, -9);
_local1.PositionPiece(3, 1, -6);
_local1.PositionPiece(4, 7, -9);
_local1.PositionPiece(5, 3, -8);
_local1.PositionPiece(6, 0, -3);
_local1.PositionPiece(7, 0, -6);
_local1.PositionPiece(8, 8, -9);
_local1.PositionPiece(9, 5, -9);
_local1.PositionPiece(10, 3, -9);
_local1.PositionPiece(11, 2, -9);
_local1.PositionPiece(12, 7, -3);
_local1.PositionPiece(13, 5, -9);
_local1.PositionPiece(14, 6, -7);
_local1.PositionPiece(15, 5, -1);
_local1.PositionPiece(16, 6, -5);
_local1.PositionPiece(17, 4, -9);
return(_local1);
}
function StartCreatingLevel96() {
return(_root._game.CreatePlayingField(96, 10, 6, FinishCreatingLevel96));
}
function FinishCreatingLevel96(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel96");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:3, _y:0}, {_x:3, _y:1}, {_x:4, _y:1}, {_x:5, _y:1}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:2, _y:1}, {_x:2, _y:2}, {_x:1, _y:2}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:5, _y:2}, {_x:4, _y:2}, {_x:4, _y:3}], [{_x:7, _y:1}, {_x:7, _y:2}, {_x:7, _y:3}, {_x:6, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}, {_x:2, _y:5}], [{_x:3, _y:2}, {_x:3, _y:3}, {_x:2, _y:3}, {_x:1, _y:3}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:7, _y:4}], [{_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:1, _y:4}, {_x:2, _y:4}, {_x:3, _y:4}, {_x:4, _y:4}], [{_x:6, _y:4}, {_x:6, _y:5}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:3, _y:5}], [{_x:7, _y:5}]]);
_local1.PositionPiece(0, 1, -9);
_local1.PositionPiece(1, 3, -8);
_local1.PositionPiece(2, 2, -9);
_local1.PositionPiece(3, 0, -9);
_local1.PositionPiece(4, 8, -9);
_local1.PositionPiece(5, 6, -7);
_local1.PositionPiece(6, 2, -4);
_local1.PositionPiece(7, 1, -7);
_local1.PositionPiece(8, 2, -7);
_local1.PositionPiece(9, 8, -6);
_local1.PositionPiece(10, 4, -3);
_local1.PositionPiece(11, 2, -5);
_local1.PositionPiece(12, 5, -5);
_local1.PositionPiece(13, 7, -9);
_local1.PositionPiece(14, 7, -8);
return(_local1);
}
function StartCreatingLevel97() {
return(_root._game.CreatePlayingField(97, 10, 6, FinishCreatingLevel97));
}
function FinishCreatingLevel97(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel97");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:0, _y:1}, {_x:1, _y:1}], [{_x:1, _y:0}, {_x:2, _y:0}, {_x:2, _y:1}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}], [{_x:5, _y:0}, {_x:5, _y:1}, {_x:5, _y:2}], [{_x:6, _y:0}, {_x:7, _y:0}, {_x:8, _y:0}, {_x:8, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:9, _y:0}, {_x:9, _y:1}, {_x:9, _y:2}, {_x:9, _y:3}], [{_x:3, _y:1}, {_x:3, _y:2}, {_x:4, _y:2}], [{_x:6, _y:1}, {_x:6, _y:2}, {_x:6, _y:3}, {_x:6, _y:4}], [{_x:0, _y:2}, {_x:0, _y:3}, {_x:1, _y:3}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:2, _y:3}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:7, _y:3}, {_x:7, _y:4}, {_x:8, _y:4}, {_x:8, _y:5}], [{_x:3, _y:3}, {_x:3, _y:4}, {_x:2, _y:4}, {_x:1, _y:4}], [{_x:4, _y:3}, {_x:5, _y:3}, {_x:5, _y:4}, {_x:4, _y:4}, {_x:4, _y:5}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:5}], [{_x:9, _y:4}, {_x:9, _y:5}], [{_x:2, _y:5}, {_x:3, _y:5}], [{_x:5, _y:5}, {_x:6, _y:5}, {_x:7, _y:5}]]);
_local1.PositionPiece(0, 3, -2);
_local1.PositionPiece(1, 4, -9);
_local1.PositionPiece(2, 6, -9);
_local1.PositionPiece(3, 5, -7);
_local1.PositionPiece(4, 6, -4);
_local1.PositionPiece(5, 9, -7);
_local1.PositionPiece(6, 0, -9);
_local1.PositionPiece(7, 4, -8);
_local1.PositionPiece(8, 6, -6);
_local1.PositionPiece(9, 0, -5);
_local1.PositionPiece(10, 6, -2);
_local1.PositionPiece(11, 2, -9);
_local1.PositionPiece(12, 3, -5);
_local1.PositionPiece(13, 8, -8);
_local1.PositionPiece(14, 0, -7);
_local1.PositionPiece(15, 0, -6);
return(_local1);
}
function StartCreatingLevel98() {
return(_root._game.CreatePlayingField(98, 10, 6, FinishCreatingLevel98));
}
function FinishCreatingLevel98(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel98");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:3, _y:1}, {_x:3, _y:2}, {_x:2, _y:2}], [{_x:4, _y:0}, {_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}], [{_x:8, _y:0}, {_x:8, _y:1}, {_x:9, _y:1}, {_x:9, _y:2}], [{_x:9, _y:0}], [{_x:0, _y:1}, {_x:0, _y:2}, {_x:1, _y:2}, {_x:1, _y:3}, {_x:2, _y:3}], [{_x:1, _y:1}, {_x:2, _y:1}], [{_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}, {_x:6, _y:3}], [{_x:6, _y:1}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:4, _y:2}, {_x:4, _y:3}, {_x:3, _y:3}], [{_x:8, _y:2}, {_x:8, _y:3}, {_x:8, _y:4}, {_x:7, _y:4}, {_x:7, _y:5}, {_x:6, _y:5}], [{_x:0, _y:3}, {_x:0, _y:4}, {_x:1, _y:4}, {_x:2, _y:4}], [{_x:5, _y:3}, {_x:5, _y:4}, {_x:5, _y:5}, {_x:4, _y:5}], [{_x:7, _y:3}], [{_x:9, _y:3}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:3, _y:4}, {_x:4, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}], [{_x:6, _y:4}], [{_x:0, _y:5}, {_x:1, _y:5}]]);
_local1.PositionPiece(0, 2, -9);
_local1.PositionPiece(1, 8, -9);
_local1.PositionPiece(2, 0, -4);
_local1.PositionPiece(3, 6, -7);
_local1.PositionPiece(4, 8, -8);
_local1.PositionPiece(5, 2, -3);
_local1.PositionPiece(6, 0, -7);
_local1.PositionPiece(7, 5, -9);
_local1.PositionPiece(8, 4, -8);
_local1.PositionPiece(9, 5, -3);
_local1.PositionPiece(10, 7, -6);
_local1.PositionPiece(11, 7, -2);
_local1.PositionPiece(12, 3, -7);
_local1.PositionPiece(13, 3, -8);
_local1.PositionPiece(14, 1, -8);
_local1.PositionPiece(15, 4, -5);
_local1.PositionPiece(16, 5, -1);
_local1.PositionPiece(17, 0, -9);
return(_local1);
}
function StartCreatingLevel99() {
return(_root._game.CreatePlayingField(99, 10, 6, FinishCreatingLevel99));
}
function FinishCreatingLevel99(fieldHost, width, height) {
FreshDebug.Trace("FinishCreatingLevel99");
var _local1 = fieldHost._field;
_local1.Build(width, height);
_local1.SetGroups([[{_x:0, _y:0}, {_x:1, _y:0}, {_x:2, _y:0}], [{_x:3, _y:0}, {_x:4, _y:0}, {_x:4, _y:1}, {_x:5, _y:1}, {_x:5, _y:2}, {_x:6, _y:2}], [{_x:5, _y:0}, {_x:6, _y:0}, {_x:7, _y:0}, {_x:7, _y:1}, {_x:7, _y:2}], [{_x:8, _y:0}, {_x:9, _y:0}, {_x:9, _y:1}], [{_x:0, _y:1}, {_x:1, _y:1}, {_x:2, _y:1}, {_x:3, _y:1}], [{_x:6, _y:1}], [{_x:8, _y:1}, {_x:8, _y:2}, {_x:9, _y:2}, {_x:9, _y:3}], [{_x:0, _y:2}, {_x:1, _y:2}, {_x:2, _y:2}, {_x:3, _y:2}], [{_x:4, _y:2}, {_x:4, _y:3}, {_x:4, _y:4}], [{_x:0, _y:3}, {_x:1, _y:3}, {_x:2, _y:3}, {_x:2, _y:4}], [{_x:3, _y:3}, {_x:3, _y:4}, {_x:3, _y:5}, {_x:2, _y:5}, {_x:1, _y:5}], [{_x:5, _y:3}, {_x:6, _y:3}, {_x:6, _y:4}], [{_x:7, _y:3}, {_x:7, _y:4}, {_x:7, _y:5}, {_x:6, _y:5}], [{_x:8, _y:3}, {_x:8, _y:4}, {_x:9, _y:4}, {_x:9, _y:5}, {_x:8, _y:5}], [{_x:0, _y:4}, {_x:0, _y:5}, {_x:1, _y:4}], [{_x:5, _y:4}, {_x:5, _y:5}, {_x:4, _y:5}]]);
_local1.PositionPiece(0, 7, -8);
_local1.PositionPiece(1, 2, -6);
_local1.PositionPiece(2, 3, -9);
_local1.PositionPiece(3, 2, -3);
_local1.PositionPiece(4, 6, -9);
_local1.PositionPiece(5, 7, -6);
_local1.PositionPiece(6, 5, -6);
_local1.PositionPiece(7, 1, -8);
_local1.PositionPiece(8, 0, -8);
_local1.PositionPiece(9, 0, -5);
_local1.PositionPiece(10, 5, -5);
_local1.PositionPiece(11, 8, -7);
_local1.PositionPiece(12, 7, -3);
_local1.PositionPiece(13, 0, -4);
_local1.PositionPiece(14, 6, -7);
_local1.PositionPiece(15, 8, -5);
return(_local1);
}
stop();
Symbol 1 MovieClip [Piece] Frame 1
#initclip 55
Object.registerClass("Piece", CPhitPiece);
#endinitclip
Symbol 5 MovieClip [Tile] Frame 1
#initclip 39
Object.registerClass("Tile", CPhitTile);
#endinitclip
Symbol 11 MovieClip [Field] Frame 1
#initclip 40
Object.registerClass("Field", CPlayingField);
#endinitclip
Symbol 11 MovieClip [Field] Frame 36
OnVictoryDone();
Symbol 12 MovieClip [Field Host] Frame 1
#initclip 41
Object.registerClass("Field Host", CFieldHost);
#endinitclip
Symbol 12 MovieClip [Field Host] Frame 20
OnAppearDone();
Symbol 12 MovieClip [Field Host] Frame 39
OnDisappearDone();
Symbol 19 Button
on (release) {
OnClicked();
}
Symbol 20 MovieClip [Skip Level Button] Frame 1
#initclip 42
Object.registerClass("Skip Level Button", CSkipLevelButton);
#endinitclip
Symbol 22 MovieClip [ArmorGames Link] Frame 1
#initclip 43
Object.registerClass("ArmorGames Link", CPhitButton);
#endinitclip
Symbol 28 MovieClip [Debug Window] Frame 1
#initclip 44
Object.registerClass("Debug Window", CDebugWindow);
#endinitclip
Symbol 38 MovieClip [Button - Long] Frame 1
#initclip 45
Object.registerClass("Button - Long", CPhitButton);
#endinitclip
Symbol 51 MovieClip [Button - Stock] Frame 1
#initclip 46
Object.registerClass("Button - Stock", CPhitButton);
#endinitclip
Symbol 52 MovieClip [Message Box] Frame 1
#initclip 47
Object.registerClass("Message Box", CPhitMessageBox);
#endinitclip
Symbol 72 MovieClip [UI] Frame 1
#initclip 48
Object.registerClass("UI", CPhitGameUI);
#endinitclip
Symbol 72 MovieClip [UI] Frame 25
OnAppearDone();
Symbol 72 MovieClip [UI] Frame 39
OnDisappearDone();
Symbol 73 MovieClip [Game] Frame 1
#initclip 49
Object.registerClass("Game", CPhitGameCodeCreate);
#endinitclip
Symbol 80 MovieClip [Menu Pick Level] Frame 1
#initclip 50
Object.registerClass("Menu Pick Level", CMenuPickLevel);
#endinitclip
Symbol 88 MovieClip [Button - Main Menu] Frame 1
#initclip 51
Object.registerClass("Button - Main Menu", CPhitButton);
#endinitclip
Symbol 96 MovieClip [Button - Prominent] Frame 1
#initclip 52
Object.registerClass("Button - Prominent", CPhitButton);
#endinitclip
Symbol 121 MovieClip [Main Menu] Frame 1
#initclip 53
Object.registerClass("Main Menu", CPhitMenu);
#endinitclip
FixupButtons();
Symbol 121 MovieClip [Main Menu] Frame 64
FixupButtons();
OnAppearDone();
Symbol 121 MovieClip [Main Menu] Frame 84
OnDismissDone();
Symbol 121 MovieClip [Main Menu] Frame 85
FixupButtons();
Symbol 121 MovieClip [Main Menu] Frame 116
OnToPickTransitionDone();
Symbol 121 MovieClip [Main Menu] Frame 136
OnDismissDone();
Symbol 121 MovieClip [Main Menu] Frame 137
FixupButtons();
Symbol 121 MovieClip [Main Menu] Frame 156
gotoAndStop ("display");
Symbol 171 MovieClip Frame 212
_root._presentation.gotoAndStop("menu");
Symbol 176 MovieClip [Presentation] Frame 1
#initclip 54
Object.registerClass("Presentation", CPhitPresentation);
#endinitclip
Symbol 178 MovieClip [__Packages.FreshDebug] Frame 0
class FreshDebug
{
function FreshDebug () {
}
static function Assert(expression, stringForm) {
if (_global._dbgAssertEnabled && (!expression)) {
var _local2 = ("FRESH ASSERT: Expression '" + stringForm) + "'";
throw _local2;
}
return(expression);
}
static function Trace(msg, tag) {
if (_global._dbgTraceEnabled) {
if (!IsSuppressed(tag)) {
if (_root._debugWindow) {
CDebugWindow(_root._debugWindow).Trace(msg);
}
}
}
}
static function Suppress(tag) {
if ((tag == undefined) || (tag.length == 0)) {
tag = "<undefined>";
}
if (!_global._mapSuppressedTags) {
_global._mapSuppressedTags = new Array();
}
_global._mapSuppressedTags[tag] = true;
}
static function Unsuppress(tag) {
if ((tag == undefined) || (tag.length == 0)) {
tag = "<undefined>";
}
if (_global._mapSuppressedTags) {
_global._mapSuppressedTags[tag] = undefined;
}
}
static function IsSuppressed(tag) {
if ((tag == undefined) || (tag.length == 0)) {
tag = "<undefined>";
}
if (!_global._mapSuppressedTags) {
return(false);
}
return(_global._mapSuppressedTags[tag]);
}
}
Symbol 179 MovieClip [__Packages.CDebugWindow] Frame 0
class CDebugWindow extends MovieClip
{
var _traceText, _visible;
function CDebugWindow () {
super();
_root._debugWindow = this;
Key.addListener(this);
HideLog();
}
function Trace(msg, tag) {
_traceText.text = _traceText.text + (msg + newline);
}
function onKeyUp() {
if (((_global._dbgTraceEnabled && (Key.isDown(17))) && (Key.isDown(16))) && (Key.getCode() == 33)) {
ToggleLog();
}
}
function ShowLog() {
_visible = true;
}
function HideLog() {
_visible = false;
}
function ToggleLog() {
_visible = !_visible;
}
}
Symbol 180 MovieClip [__Packages.CMovieClipFresh] Frame 0
class CMovieClipFresh extends MovieClip
{
function CMovieClipFresh () {
super();
}
function FirstFrameInitialize() {
}
function onEnterFrame() {
m_nUpdates++;
if (m_nUpdates == 1) {
FirstFrameInitialize();
}
}
var m_nUpdates = 0;
}
Symbol 181 MovieClip [__Packages.CPlayingField] Frame 0
class CPlayingField extends CMovieClipFresh
{
var stop, _visible, _shuffler, _arrPieceSetMoves, _travellingPieces, _arrPendingPieceMoveSet, mc_pieceHost, _pieceGrid, removeMovieClip, mc_pieceHostHost, _arrGroups, gotoAndPlay, _x, _trayBackground, _y, _frame;
function CPlayingField () {
super();
(stop());// not popped
_visible = false;
_shuffler = new CPieceShuffler();
_arrPieceSetMoves = new Array();
_travellingPieces = new Array();
_arrPendingPieceMoveSet = new Array();
_startTime = GetTime();
SetInteractive(false);
}
function AddTravellingPiece(piece) {
var _local2 = 0;
while (_local2 < _travellingPieces.length) {
if (piece == _travellingPieces[_local2]) {
return(false);
}
_local2++;
}
_travellingPieces.push(piece);
return(true);
}
function RecordTravellingPieceMovement() {
var _local2 = 0;
while (_local2 < _travellingPieces.length) {
CPhitPiece(_travellingPieces[_local2]).RecordLastMove();
_local2++;
}
FinalizePieceMoveSet();
_travellingPieces.splice(0);
_arrPendingPieceMoveSet = new Array();
}
function FinalizePieceMoveSet() {
_arrPieceSetMoves.splice(_curPieceSetMove + 1, (_arrPieceSetMoves.length - _curPieceSetMove) - 1);
_arrPieceSetMoves.push(_arrPendingPieceMoveSet);
_curPieceSetMove = _arrPieceSetMoves.length - 1;
_nMoves++;
}
function get _tileWidth() {
return(TILE_WIDTH);
}
function get _trayWidth() {
return(_trayExtentX);
}
function get _trayHeight() {
return(_trayExtentY);
}
function get _minTilePos() {
return(-_tableauExtentY);
}
function get _tableauPixelHeight() {
return(_tableauExtentY * _tileWidth);
}
function get _pixelWidth() {
return(_trayExtentX * _tileWidth);
}
function get _pixelHeight() {
return(_totalExtentY * _tileWidth);
}
function SetInteractive(isInteractive) {
if (_interactive != isInteractive) {
_interactive = isInteractive;
if (_interactive) {
if (_pauseStartTime) {
_timeSpentNonInteractive = _timeSpentNonInteractive + (GetTime() - _pauseStartTime);
_pauseStartTime = 0;
}
} else {
_pauseStartTime = GetTime();
}
var _local2 = 0;
while (_local2 < _nPieces) {
var _local3 = CPhitPiece(mc_pieceHost["piece" + _local2]);
_local3.SetInteractive(_interactive);
_local2++;
}
}
}
function IsInBounds(tilePos) {
return((((tilePos._x >= 0) && (tilePos._y >= (-_tableauExtentY))) && (tilePos._x < _trayExtentX)) && (tilePos._y < _trayExtentY));
}
function IsInTray(tilePos) {
return((((tilePos._x >= 0) && (tilePos._y >= 0)) && (tilePos._x < _trayExtentX)) && (tilePos._y < _trayExtentY));
}
function GetPieceAtTileLocation(tilePos) {
return(_pieceGrid[(tilePos._y * _trayExtentX) + tilePos._x]);
}
function SetTileOwner(tilePos, owner) {
FreshDebug.Assert(owner, "owner");
FreshDebug.Assert(!_pieceGrid[(tilePos._y * _trayExtentX) + tilePos._x], "_pieceGrid[ tilePos._y * _trayExtentX + tilePos._x ] == null OR undefined");
_pieceGrid[(tilePos._y * _trayExtentX) + tilePos._x] = owner;
}
function ClearTileOwner(tilePos) {
_pieceGrid[(tilePos._y * _trayExtentX) + tilePos._x] = null;
}
function CleanUp() {
_pieceGrid = null;
if (mc_pieceHost) {
(removeMovieClip());// not popped
mc_pieceHost = null;
}
}
function Build(trayExtentX, trayExtentY, minGroupSize, maxGroupSize) {
FreshDebug.Trace("Build");
CleanUp();
_trayExtentX = trayExtentX;
_trayExtentY = trayExtentY;
mc_pieceHostHost.createEmptyMovieClip("mc_pieceHost", 0);
mc_pieceHost = mc_pieceHostHost.mc_pieceHost;
FreshDebug.Assert(mc_pieceHost != undefined, "mc_pieceHost != undefined");
if ((minGroupSize != undefined) && (maxGroupSize != undefined)) {
var _local2 = new CTrayBuilder();
_arrGroups = _local2.Build(trayExtentX, trayExtentY, minGroupSize, maxGroupSize);
SetGroups(_arrGroups);
}
}
function BuildPieces(arrGroups) {
_pieceGrid = new Array();
var _local7 = _root.random.GetRandom() * 360;
var _local9 = 360 / arrGroups.length;
var _local3 = 0;
while (_local3 < arrGroups.length) {
var _local5 = mc_pieceHost.getNextHighestDepth();
var _local6 = CPhitPiece(mc_pieceHost.attachMovie("Piece", "piece" + _local3, _local5));
var _local4 = MathUtil.HSVtoRGB(_local7, 1, 0.75);
_local6.Create(_local4.r, _local4.g, _local4.b, arrGroups[_local3]);
_local7 = _local7 + _local9;
_local3++;
}
_nPieces = arrGroups.length;
}
function CreateTableau() {
_tableauExtentY = Math.ceil(_trayExtentY * 1.5);
_totalExtentY = _tableauExtentY + _trayExtentY;
}
function AreAllPiecesOutsideOfTray() {
var _local2 = 0;
while (_local2 < _nPieces) {
var _local3 = CPhitPiece(mc_pieceHost["piece" + _local2]);
if (!_local3.IsCompletelyOutsideOfTray()) {
return(false);
}
_local2++;
}
return(true);
}
function AreAllPiecesWithinTray() {
var _local2 = 0;
while (_local2 < _nPieces) {
var _local3 = CPhitPiece(mc_pieceHost["piece" + _local2]);
if (!_local3.IsCompletelyInsideOfTray()) {
return(false);
}
_local2++;
}
return(true);
}
function Shuffle(minIterations, maxIterations, maxStep, upBias) {
if (!_shuffler) {
return(undefined);
}
_shuffler.Shuffle(_trayExtentX, _trayExtentY, _tableauExtentY, mc_pieceHost, _nPieces, maxStep, minIterations, upBias);
var _local2 = minIterations;
while ((!AreAllPiecesOutsideOfTray()) && (_local2 < maxIterations)) {
_shuffler.Shuffle(_trayExtentX, _trayExtentY, _tableauExtentY, mc_pieceHost, _nPieces, maxStep, 1, upBias);
_local2++;
}
return(_local2);
}
function PlayVictory() {
if (_isPlayingVictory) {
return(undefined);
}
FreshDebug.Trace("PlayVictory");
(gotoAndPlay("victory"));// not popped
_isPlayingVictory = true;
SetInteractive(false);
}
function OnVictoryDone() {
FreshDebug.Trace("OnVictoryDone");
(stop());// not popped
_root._game.OnVictoryDisplayFinished();
}
function WantsBuilding() {
return(_wantsBuilding);
}
function IsAwake() {
return(true);
}
function SaveTrace(msg) {
FreshDebug.Trace(msg, "field-code");
}
function Save(iLevel) {
SaveTrace(("\tfunction StartCreatingLevel" + iLevel) + "() : CPlayingField");
SaveTrace("\t{");
SaveTrace(((((((("\t\treturn _root._game.CreatePlayingField( " + iLevel) + ", ") + _trayWidth) + ", ") + _trayHeight) + ", FinishCreatingLevel") + iLevel) + " );");
SaveTrace("\t}");
SaveTrace("");
SaveTrace(("\tfunction FinishCreatingLevel" + iLevel) + "( fieldHost : CFieldHost, width : Number, height : Number ) : CPlayingField");
SaveTrace("\t{");
SaveTrace(("\t\tFreshDebug.Trace( \"FinishCreatingLevel" + iLevel) + "\" );");
SaveTrace("");
SaveTrace("\t\tvar playingField : CPlayingField = fieldHost._field;");
SaveTrace("\t\tplayingField.Build( width, height );");
SaveTrace("");
SaveTrace("\t\tplayingField.SetGroups(");
SaveTrace("\t\t\t[");
var _local6 = 0;
while (_local6 < _arrGroups.length) {
var _local4 = _arrGroups[_local6];
var _local3 = "\t\t\t\t[";
var _local2 = 0;
while (_local2 < _local4.length) {
var _local5 = _local4[_local2];
_local3 = _local3 + ((((" {_x: " + _local5._x) + ", _y: ") + _local5._y) + " }");
if (_local2 < (_local4.length - 1)) {
_local3 = _local3 + ",";
}
_local2++;
}
_local3 = _local3 + " ]";
if (_local6 < (_arrGroups.length - 1)) {
_local3 = _local3 + ",";
}
SaveTrace(_local3);
_local6++;
}
SaveTrace("\t\t\t]");
SaveTrace("\t\t);");
SaveTrace("");
var _local7 = 0;
while (_local7 < _nPieces) {
var _local9 = CPhitPiece(mc_pieceHost["piece" + _local7]);
var _local8 = _local9.__get___tilePosition();
SaveTrace(((((("\t\tplayingField.PositionPiece( " + _local7) + ", ") + _local8._x) + ", ") + _local8._y) + " );");
_local7++;
}
SaveTrace("");
SaveTrace("\t\treturn playingField;");
SaveTrace("\t}");
}
function SetGroups(arrGroups) {
_arrGroups = arrGroups;
BuildPieces(arrGroups);
CreateTableau();
_trayBackground._x = _x - 2;
_trayBackground._y = _y - 2;
_trayBackground._width = (_tileWidth * _trayWidth) + 4;
_trayBackground._height = (_tileWidth * _trayHeight) + 4;
_wantsBuilding = false;
_visible = true;
}
function PositionPiece(iPiece, x, y) {
var _local2 = CPhitPiece(mc_pieceHost["piece" + iPiece]);
_local2.MoveToPosition(new Vector2D(x, y), true);
}
function RememberPieceBasePositions() {
var _local2 = 0;
while (_local2 < _nPieces) {
var _local3 = CPhitPiece(mc_pieceHost["piece" + _local2]);
_local3.RecordBaseSteadyPosition();
_local2++;
}
}
function RecordPieceMove(piece, startLoc, endLoc) {
var _local2 = {piece:piece, startLoc:startLoc, endLoc:endLoc};
_arrPendingPieceMoveSet.push(_local2);
}
function IsUndoAvailable() {
return(_curPieceSetMove >= 0);
}
function IsRedoAvailable() {
return((_curPieceSetMove + 1) < _arrPieceSetMoves.length);
}
function UndoLastPieceMove() {
if (_curPieceSetMove >= 0) {
var _local4 = _arrPieceSetMoves[_curPieceSetMove--];
var _local3 = 0;
while (_local3 < _local4.length) {
var _local2 = _local4[_local3];
FreshDebug.Assert(_local2.piece._tilePosition.IsEqual(_local2.endLoc), "move.piece._tilePosition.IsEqual( move.endLoc )");
_local2.piece.MoveToPosition(_local2.startLoc, true);
_local3++;
}
}
}
function RedoLastPieceMove() {
if ((_curPieceSetMove + 1) < _arrPieceSetMoves.length) {
var _local4 = _arrPieceSetMoves[++_curPieceSetMove];
var _local2 = _local4.length - 1;
while (_local2 >= 0) {
var _local3 = _local4[_local2];
_local3.piece.MoveToPosition(_local3.endLoc, true);
_local2--;
}
}
}
function ResetAllMoves() {
while (_curPieceSetMove >= 0) {
UndoLastPieceMove();
}
}
function GetNumMovesMade() {
return(_nMoves);
}
function GetTimeTaken() {
if (_startTime) {
var _local2 = GetTime();
return(((_local2 - _startTime) - _timeSpentNonInteractive) - ((_pauseStartTime > 0) ? (_local2 - _pauseStartTime) : 0));
}
return(undefined);
}
function GetTime() {
return(new Date().getTime() / 1000);
}
function SizeFrame(scale) {
_frame._x = _x;
_frame._y = (_y - _tableauPixelHeight) - 1;
_frame._width = _pixelWidth + (28 / scale);
_frame._height = _pixelHeight + 4;
}
var _trayExtentX = 0;
var _trayExtentY = 0;
var _tableauExtentY = 0;
var _totalExtentY = 0;
var _nPieces = 0;
var TILE_WIDTH = 50;
var _wantsBuilding = true;
var _isPlayingVictory = false;
var _nMoves = 0;
var _curPieceSetMove = -1;
var _interactive = true;
var _startTime = 0;
var _pauseStartTime = 0;
var _timeSpentNonInteractive = 0;
}
Symbol 182 MovieClip [__Packages.CPieceShuffler] Frame 0
class CPieceShuffler
{
function CPieceShuffler () {
}
function Shuffle(extentX, trayExtentY, tableauExtentY, pieceHost, nPieces, maxStep, maxIterations, upBias) {
var _local2 = 0;
while (_local2 < maxIterations) {
ShuffleSingleIteration(extentX, trayExtentY, tableauExtentY, pieceHost, nPieces, maxStep, upBias);
_local2++;
}
}
function ComparePiecesRandomly(a, b) {
return((_root.random.GetBoolean() ? -1 : 1));
}
function ShuffleSingleIteration(extentX, trayExtentY, tableauExtentY, pieceHost, nPieces, maxStep, upBias) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < nPieces) {
_local3[_local2] = pieceHost["piece" + _local2];
_local2++;
}
_local3.sort(ComparePiecesRandomly);
_local2 = 0;
while (_local2 < nPieces) {
_local3[_local2].SlideRandomly(1, maxStep, upBias);
_local2++;
}
}
}
Symbol 183 MovieClip [__Packages.CPhitPiece] Frame 0
class CPhitPiece extends CMovieClipFresh
{
var _location, _parent, _minTileExtent, _x, _y, _dragPoint, onPress, onRelease, onReleaseOutside, useHandCursor, _xmouse, _ymouse, _maxTileExtent, attachMovie, getNextHighestDepth, mc_borderHost, createEmptyMovieClip;
function CPhitPiece () {
super();
_location = new Vector2D(0, 0);
SetInteractive(true);
}
function get _tileWidth() {
return(_myField._tileWidth);
}
function get _myField() {
var _local2 = CPlayingField(_parent._parent._parent);
FreshDebug.Assert(_local2 != undefined, "field != undefined");
return(_local2);
}
function get _tilePosition() {
return(_minTileExtent.GetCopy());
}
function get _borderThickness() {
return(3);
}
function StartLerping() {
_isLerping = true;
_location._x = _x;
_location._y = _y;
}
function onEnterFrame() {
super.onEnterFrame();
if (_isLerping) {
var _local15 = 0.5;
var _local9 = _minTileExtent.GetCopy();
if (_dragPoint) {
var _local14 = new Vector2D(_parent._xmouse, _parent._ymouse);
var _local16 = _local14.GetSubtract(_dragPoint);
_local9.Set(_local16);
_local9.DivideScalar(_tileWidth);
_local9._x = Math.round(_local9._x);
_local9._y = Math.round(_local9._y);
var _local13 = CPlayingField(_myField);
_local9._x = MathUtil.Clamp(_local9._x, 0, _local13.__get___trayWidth() - 1);
_local9._y = MathUtil.Clamp(_local9._y, _local13.__get___minTilePos(), _local13.__get___trayHeight() - 1);
var _local11 = _local9.GetSubtract(_minTileExtent);
var _local3 = _local11.GetCopy();
_local3.SnapToMajorAxis();
_local3.Normalize();
if (_local3.MagnitudeSquared() > 0.0001) {
var _local12 = 2;
while (_local12--) {
var _local5 = _minTileExtent.GetMultiplyScalar(_tileWidth);
var _local4 = _local5.GetSubtract(_location);
var _local6 = _local4.MagnitudeSafe();
var _local8 = Math.abs(_local4.DotProduct(_local3));
if ((_local6 < 2) || (_local8 > 0.01)) {
var _local7 = AttemptMoveByDeltaWithPush(_local3);
if (!_local7) {
_local3 = _local11.GetCopy();
_local3.SnapToMinorAxis();
_local3.Normalize();
} else {
break;
}
}
}
}
}
_local9 = _minTileExtent.GetCopy();
_local9.MultiplyScalar(_tileWidth);
_location.Set(MathUtil.VectorLerp(_local9, _location, _local15));
var _local10 = _location.GetCopy();
_local10.DivideScalar(_tileWidth);
_local10._x = Math.round(_local10._x);
_local10._y = Math.round(_local10._y);
if (_priorLocationTile == null) {
_priorLocationTile = _local10.GetCopy();
}
if ((Math.abs(_local10._x - _priorLocationTile._x) > 0.1) || (Math.abs(_local10._y - _priorLocationTile._y) > 0.1)) {
}
_x = _location._x;
_y = _location._y;
_priorLocationTile.Set(_local10);
}
}
function SetInteractive(isInteractive) {
if (isInteractive) {
onPress = OnMousePress;
onRelease = OnMouseRelease;
onReleaseOutside = OnMouseRelease;
useHandCursor = true;
} else {
_dragPoint = null;
onPress = null;
onRelease = null;
onReleaseOutside = null;
useHandCursor = false;
}
}
function OnMousePress() {
_dragPoint = new Vector2D(_xmouse, _ymouse);
StartLerping();
}
function OnMouseRelease() {
_dragPoint = null;
if (!_lastSteadyLocation.IsEqual(_minTileExtent)) {
_myField.RecordTravellingPieceMovement();
}
}
function RecordLastMove() {
_myField.RecordPieceMove(this, _lastSteadyLocation.GetCopy(), _minTileExtent.GetCopy());
_lastSteadyLocation = _minTileExtent.GetCopy();
}
function Create(r, g, b, arrTiles) {
var _local6 = CPlayingField(_myField);
_minTileExtent = new Vector2D(100000, 100000);
_maxTileExtent = new Vector2D(-100000, -100000);
var _local3 = 0;
while (_local3 < arrTiles.length) {
FreshDebug.Assert(arrTiles[_local3] != undefined, "arrTiles[ i ] != undefined");
_minTileExtent._x = Math.min(_minTileExtent._x, arrTiles[_local3]._x);
_minTileExtent._y = Math.min(_minTileExtent._y, arrTiles[_local3]._y);
_maxTileExtent._x = Math.max(_maxTileExtent._x, arrTiles[_local3]._x);
_maxTileExtent._y = Math.max(_maxTileExtent._y, arrTiles[_local3]._y);
_local6.SetTileOwner(arrTiles[_local3], this);
_local3++;
}
_local3 = 0;
while (_local3 < arrTiles.length) {
var _local4 = new Vector2D((arrTiles[_local3]._x - _minTileExtent._x) * _tileWidth, (arrTiles[_local3]._y - _minTileExtent._y) * _tileWidth);
if (_local4 == undefined) {
FreshDebug.Trace("Faulty tile location " + _local3);
FreshDebug.Trace(_local4.GetStringForm());
FreshDebug.Trace(_minTileExtent.GetStringForm());
FreshDebug.Trace(_tileWidth);
}
var _local5 = CPhitTile(attachMovie("Tile", "tile" + _local3, getNextHighestDepth(), _local4));
_local5.Initialize(this, r, g, b);
_local3++;
}
_nTiles = arrTiles.length;
_x = _minTileExtent._x * _tileWidth;
_y = _minTileExtent._y * _tileWidth;
RenderOutline(((r << 16) | (g << 8)) | b);
}
function GetRandomCardinalDelta(upBias) {
if (upBias != undefined) {
if (upBias > _root.random.GetRandom()) {
return(new Vector2D(0, -1));
}
}
var _local2 = new Vector2D(1, 0);
if (_root.random.GetBoolean()) {
_local2._x = 0;
_local2._y = 1;
}
if (_root.random.GetBoolean()) {
_local2.Invert();
}
return(_local2);
}
function SlideRandomly(minDesiredSteps, maxSteps, upBias) {
if (minDesiredSteps == undefined) {
minDesiredSteps = 1;
}
var _local6 = _root.random.GetIntInRange(minDesiredSteps, maxSteps);
var _local5 = GetRandomCardinalDelta(upBias);
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = AttemptMoveByDelta(_local5);
if (!_local4) {
break;
}
_local3++;
}
}
function IsCompletelyOutsideOfTray() {
var _local4 = CPlayingField(_myField);
var _local2 = 0;
while (_local2 < _nTiles) {
var _local3 = this["tile" + _local2];
if (_local4.IsInTray(_local3.__get___tilePosition())) {
return(false);
}
_local2++;
}
return(true);
}
function IsCompletelyInsideOfTray() {
var _local4 = CPlayingField(_myField);
var _local2 = 0;
while (_local2 < _nTiles) {
var _local3 = this["tile" + _local2];
if (!_local4.IsInTray(_local3.__get___tilePosition())) {
return(false);
}
_local2++;
}
return(true);
}
function IsValidMoveByDelta(delta) {
var _local6 = CPlayingField(_myField);
var _local2 = 0;
while (_local2 < _nTiles) {
var _local5 = this["tile" + _local2];
var _local4 = _local5._tilePosition.GetAdd(delta);
if (!_local6.IsInBounds(_local4)) {
return(false);
}
var _local3 = _local6.GetPieceAtTileLocation(_local4);
if ((_local3 != null) && (_local3 != this)) {
return(false);
}
_local2++;
}
return(true);
}
function IsValidPosition(tilePos) {
return(IsValidMoveByDelta(tilePos.GetSubtract(_minTileExtent)));
}
function AttemptMoveByDelta(delta) {
if (delta.MagnitudeSafe() < 1E-5) {
return(true);
}
if (IsValidMoveByDelta(delta)) {
MoveByDelta(delta);
return(true);
}
return(false);
}
function AttemptMoveByDeltaWithPush(delta) {
if (delta.MagnitudeSafe() < 1E-5) {
return(true);
}
if (IsValidMoveByDeltaWithPush(delta, new Date().getTime() / 1000)) {
MoveByDeltaWithPush(delta, new Date().getTime() / 1000);
return(true);
}
return(false);
}
function IsValidMoveByDeltaWithPush(delta, recursionIndex) {
if (recursionIndex == _lastPushCheckIndex) {
return(_lastPushCheckResult);
}
_lastPushCheckResult = undefined;
_lastPushCheckIndex = recursionIndex;
var _local7 = CPlayingField(_myField);
var _local3 = 0;
while (_local3 < _nTiles) {
var _local6 = this["tile" + _local3];
var _local5 = _local6._tilePosition.GetAdd(delta);
if (!_local7.IsInBounds(_local5)) {
_lastPushCheckResult = false;
return(false);
}
var _local2 = _local7.GetPieceAtTileLocation(_local5);
if ((_local2 != null) && (_local2 != this)) {
var _local4 = _local2.IsValidMoveByDeltaWithPush(delta, recursionIndex);
if (_local4 == undefined) {
} else if (_local4 == false) {
_lastPushCheckResult = false;
return(false);
}
}
_local3++;
}
_lastPushCheckResult = true;
return(true);
}
function MoveByDeltaWithPush(delta, recursionIndex) {
if (recursionIndex == _lastPushIndex) {
return(undefined);
}
_lastPushIndex = recursionIndex;
var _local4 = CPlayingField(_myField);
_local4.AddTravellingPiece(this);
var _local3 = 0;
while (_local3 < _nTiles) {
var _local5 = this["tile" + _local3];
var _local6 = _local5._tilePosition.GetAdd(delta);
var _local2 = _local4.GetPieceAtTileLocation(_local6);
if ((_local2 != null) && (_local2 != this)) {
if (_isLerping) {
_local2.StartLerping();
}
_local2.MoveByDeltaWithPush(delta, recursionIndex);
}
if (_local4.GetPieceAtTileLocation(_local5.__get___tilePosition()) == this) {
_local4.ClearTileOwner(_local5.__get___tilePosition());
}
_local3++;
}
_minTileExtent.Add(delta);
_maxTileExtent.Add(delta);
if (!_isLerping) {
_x = _minTileExtent._x * _tileWidth;
_y = _minTileExtent._y * _tileWidth;
}
_local3 = 0;
while (_local3 < _nTiles) {
var _local5 = this["tile" + _local3];
_local4.SetTileOwner(_local5.__get___tilePosition(), this);
_local3++;
}
}
function MoveByDelta(delta) {
var _local3 = CPlayingField(_myField);
var _local2 = 0;
while (_local2 < _nTiles) {
var _local4 = this["tile" + _local2];
if (_local3.GetPieceAtTileLocation(_local4.__get___tilePosition()) == this) {
_local3.ClearTileOwner(_local4.__get___tilePosition());
}
_local2++;
}
_minTileExtent.Add(delta);
_maxTileExtent.Add(delta);
if (!_isLerping) {
_x = _minTileExtent._x * _tileWidth;
_y = _minTileExtent._y * _tileWidth;
}
_local2 = 0;
while (_local2 < _nTiles) {
var _local4 = this["tile" + _local2];
_local3.SetTileOwner(_local4.__get___tilePosition(), this);
_local2++;
}
}
function MoveToPosition(location, recordSteadyMove) {
var _local2 = location.GetSubtract(_minTileExtent);
MoveByDelta(_local2);
if (recordSteadyMove) {
_lastSteadyLocation = _minTileExtent.GetCopy();
}
}
function RecordBaseSteadyPosition() {
_lastSteadyLocation = _minTileExtent.GetCopy();
}
function RenderOutline(color) {
var _local8 = CPlayingField(_myField);
mc_borderHost = createEmptyMovieClip("mc_borderHost", getNextHighestDepth());
var _local5 = new Array();
_local5.push(new Vector2D(1, 0));
_local5.push(new Vector2D(-1, 0));
_local5.push(new Vector2D(0, 1));
_local5.push(new Vector2D(0, -1));
var _local6 = 0;
while (_local6 < _nTiles) {
var _local7 = this["tile" + _local6];
var _local4 = _local7.__get___tilePosition();
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2];
if (_local8.GetPieceAtTileLocation(_local4.GetAdd(_local3)) != this) {
RenderTileEdge(_local4.GetCopy(), _local3.GetCopy(), color);
}
_local2++;
}
_local6++;
}
}
function RenderTileEdge(tilePos, direction, color) {
tilePos.Subtract(_minTileExtent);
tilePos.MultiplyScalar(_tileWidth);
tilePos.AddScalar(_tileWidth * 0.5);
direction.MultiplyScalar(_tileWidth * 0.5);
var _local3 = direction.GetCopy();
_local3.Transpose();
var _local2 = direction.GetCopy();
_local2.Transpose();
_local2.Invert();
_local3.Add(direction);
_local2.Add(direction);
_local3.Add(tilePos);
_local2.Add(tilePos);
mc_borderHost.lineStyle(_borderThickness, color);
mc_borderHost.moveTo(_local3._x, _local3._y);
mc_borderHost.lineTo(_local2._x, _local2._y);
}
var _nTiles = 0;
var _isLerping = false;
var _lastSteadyLocation = null;
var _priorLocationTile = null;
var _lastPushIndex = -1;
var _lastPushCheckIndex = -1;
var _lastPushCheckResult = undefined;
}
Symbol 184 MovieClip [__Packages.Vector2D] Frame 0
class Vector2D
{
function Vector2D (x, y) {
_x = x;
_y = y;
}
function SetToZero() {
_x = (_y = 0);
}
function SetToRandomNormal() {
SetToAngleNormal((_root.random.GetRandom() * Math.PI) * 2);
}
function Set(v) {
_x = v._x;
_y = v._y;
}
function GetCopy() {
return(new Vector2D(_x, _y));
}
function GetStringForm() {
return(((("( " + _x) + ", ") + _y) + " )");
}
function IsEqual(v) {
return((v._x == _x) && (v._y == _y));
}
function IsZero(epsilon) {
return((_x <= epsilon) && (_y <= epsilon));
}
function Magnitude() {
return(Math.sqrt(MagnitudeSquared()));
}
function MagnitudeSafe() {
var _local2 = MagnitudeSquared();
if (_local2 > 0) {
return(Math.sqrt(_local2));
}
return(0);
}
function MagnitudeSquared() {
return((_x * _x) + (_y * _y));
}
function GetDistance(v) {
return(GetSubtract(v).MagnitudeSafe());
}
function GetDistanceSquared(v) {
return(GetSubtract(v).MagnitudeSquared());
}
function Rotate(angleRadians) {
var _local3 = Math.cos(angleRadians);
var _local2 = Math.sin(angleRadians);
var _local5 = (_local3 * _x) - (_local2 * _y);
var _local4 = (_local2 * _x) + (_local3 * _y);
_x = _local5;
_y = _local4;
}
function SetToAngleNormal(angleRadians) {
_x = Math.cos(angleRadians);
_y = Math.sin(angleRadians);
}
function Normalize() {
var _local2 = Magnitude();
if (_local2 > 0) {
_x = _x / _local2;
_y = _y / _local2;
}
}
function GetNormal() {
var _local2 = new Vector2D(_x, _y);
_local2.Normalize();
return(_local2);
}
function Invert() {
_x = -_x;
_y = -_y;
}
function Transpose() {
var _local2 = _x;
_x = _y;
_y = _local2;
}
function GetInverse() {
return(new Vector2D(-_x, -_y));
}
function GetAngle() {
return(Math.atan2(_y, _x));
}
function GetAngleDegrees() {
return((Math.atan2(_y, _x) / Math.PI) * 180);
}
function AddScalar(scalar) {
_x = _x + scalar;
_y = _y + scalar;
}
function SubtractScalar(scalar) {
_x = _x - scalar;
_y = _y - scalar;
}
function MultiplyScalar(scalar) {
_x = _x * scalar;
_y = _y * scalar;
}
function DivideScalar(scalar) {
_x = _x / scalar;
_y = _y / scalar;
}
function Add(v) {
_x = _x + v._x;
_y = _y + v._y;
}
function Subtract(v) {
_x = _x - v._x;
_y = _y - v._y;
}
function Multiply(v) {
_x = _x * v._x;
_y = _y * v._y;
}
function Divide(v) {
_x = _x / v._x;
_y = _y / v._y;
}
function DotProduct(v) {
return((_x * v._x) + (_y * v._y));
}
function GetAddScalar(scalar) {
var _local2 = new Vector2D(_x, _y);
_local2.AddScalar(scalar);
return(_local2);
}
function GetSubtractScalar(scalar) {
var _local2 = new Vector2D(_x, _y);
_local2.SubtractScalar(scalar);
return(_local2);
}
function GetMultiplyScalar(scalar) {
var _local2 = new Vector2D(_x, _y);
_local2.MultiplyScalar(scalar);
return(_local2);
}
function GetDivideScalar(scalar) {
var _local2 = new Vector2D(_x, _y);
_local2.DivideScalar(scalar);
return(_local2);
}
function GetAdd(v) {
var _local2 = new Vector2D(_x + v._x, _y + v._y);
return(_local2);
}
function GetSubtract(v) {
var _local2 = new Vector2D(_x - v._x, _y - v._y);
return(_local2);
}
function GetMultiply(v) {
var _local2 = new Vector2D(_x * v._x, _y * v._y);
return(_local2);
}
function SnapToMajorAxis() {
if (Math.abs(_x) > Math.abs(_y)) {
_y = 0;
} else {
_x = 0;
}
Normalize();
}
function SnapToMinorAxis() {
if (Math.abs(_x) < Math.abs(_y)) {
_y = 0;
} else {
_x = 0;
}
Normalize();
}
var _x = 0;
var _y = 0;
}
Symbol 185 MovieClip [__Packages.MathUtil] Frame 0
class MathUtil
{
function MathUtil () {
}
static function RandRange(min, max) {
return(min + (Math.random() * (max - min)));
}
static function RadiansToDegrees(radians) {
return((radians / Math.PI) * 180);
}
static function DegreesToRadians(degrees) {
return((degrees / 180) * Math.PI);
}
static function Clamp(x, min, max) {
return(Math.max(Math.min(x, max), min));
}
static function Wrap(x, min, max) {
var _local1 = (x - min) % (max - min);
return(((_local1 < 0) ? (max + _local1) : (min + _local1)));
}
static function Sign(x) {
return(((x > 0) ? 1 : (((x < 0) ? -1 : 0))));
}
static function SignNoZero(x) {
return(((x >= 0) ? 1 : -1));
}
static function MaxAbs(x, y) {
if (Math.abs(x) > Math.abs(y)) {
return(x);
}
return(y);
}
static function MinAbs(x, y) {
if (Math.abs(x) < Math.abs(y)) {
return(x);
}
return(y);
}
static function GetNormalizedAngle(angle) {
return(Wrap(angle, -180, 180));
}
static function AngleDelta(a1, a2) {
return(GetNormalizedAngle(a1 - a2));
}
static function Lerp(a, b, alpha) {
return(a + ((b - a) * alpha));
}
static function AngleLerp(a, b, alpha) {
return(GetNormalizedAngle(a + (AngleDelta(b, a) * alpha)));
}
static function VectorLerp(a, b, alpha) {
return(a.GetAdd(b.GetSubtract(a).GetMultiplyScalar(alpha)));
}
static function RGBtoHSV(r, g, b) {
r = r / 255;
g = g / 255;
b = b / 255;
var _local1 = new Object();
var _local7;
var _local2;
var _local4;
_local7 = Math.min(r, Math.min(g, b));
_local2 = Math.max(r, Math.max(g, b));
_local1.v = _local2;
_local4 = _local2 - _local7;
if (_local2 != 0) {
_local1.s = _local4 / _local2;
} else {
_local1.s = 0;
_local1.h = undefined;
return(_local1);
}
if (r == _local2) {
_local1.h = (g - b) / _local4;
} else if (g == _local2) {
_local1.h = 2 + ((b - r) / _local4);
} else {
_local1.h = 4 + ((r - g) / _local4);
}
_local1.h = _local1.h * 60;
if (_local1.h < 0) {
_local1.h = _local1.h + 360;
}
return(_local1);
}
static function HSVtoRGB(h, s, v) {
h = Wrap(h, 0, 360);
var _local1 = new Object();
var _local8;
var _local9;
var _local3;
var _local5;
var _local4;
if (s == 0) {
_local1.r = (_local1.g = (_local1.b = v * 255));
return(_local1);
}
h = h / 60;
_local8 = Math.floor(h);
_local9 = h - _local8;
_local3 = v * (1 - s);
_local5 = v * (1 - (s * _local9));
_local4 = v * (1 - (s * (1 - _local9)));
switch (_local8) {
case 0 :
_local1.r = v;
_local1.g = _local4;
_local1.b = _local3;
break;
case 1 :
_local1.r = _local5;
_local1.g = v;
_local1.b = _local3;
break;
case 2 :
_local1.r = _local3;
_local1.g = v;
_local1.b = _local4;
break;
case 3 :
_local1.r = _local3;
_local1.g = _local5;
_local1.b = v;
break;
case 4 :
_local1.r = _local4;
_local1.g = _local3;
_local1.b = v;
break;
default :
_local1.r = v;
_local1.g = _local3;
_local1.b = _local5;
}
_local1.r = _local1.r * 255;
_local1.g = _local1.g * 255;
_local1.b = _local1.b * 255;
return(_local1);
}
}
Symbol 186 MovieClip [__Packages.CPhitTile] Frame 0
class CPhitTile extends CMovieClipFresh
{
var _owner, _colorize, _x, _y;
function CPhitTile () {
super();
}
function Initialize(owner, r, g, b) {
_owner = owner;
new Color(_colorize).setTransform({ra:100, ga:100, ba:100, rb:r, gb:g, bb:b});
}
function get _tilePosition() {
return(_owner._tilePosition.GetAdd(new Vector2D(_x, _y).GetDivideScalar(_owner.__get___tileWidth())));
}
}
Symbol 187 MovieClip [__Packages.CTrayBuilder] Frame 0
class CTrayBuilder
{
var _arrGroups, _desiredGroupSize, _minGroupSize, _maxGroupSize, _tileGrid;
function CTrayBuilder () {
}
function Build(trayExtentX, trayExtentY, minGroupSize, maxGroupSize) {
_arrGroups = new Array();
_desiredGroupSize = new Array();
if (minGroupSize == undefined) {
minGroupSize = 1;
}
if (maxGroupSize == undefined) {
maxGroupSize = 6;
}
_minGroupSize = minGroupSize;
_maxGroupSize = maxGroupSize;
_trayExtentX = trayExtentX;
_trayExtentY = trayExtentY;
RandomizeTray();
return(_arrGroups);
}
function RandomizeTray() {
_tileGrid = new Array();
var _local3 = 0;
while (_local3 < _trayExtentY) {
var _local2 = 0;
while (_local2 < _trayExtentX) {
_tileGrid[(_local3 * _trayExtentX) + _local2] = -1;
_local2++;
}
_local3++;
}
CreatePieces();
}
function CreateNewGroup() {
_arrGroups.push(new Array());
return(_arrGroups.length - 1);
}
function CreatePieces() {
FreshDebug.Assert(_tileGrid != undefined, "_tileGrid != undefined");
var _local4 = 0;
while (_local4 < _trayExtentY) {
var _local2 = 0;
while (_local2 < _trayExtentX) {
if (_tileGrid[(_local4 * _trayExtentX) + _local2] >= 0) {
} else {
var _local3 = CreateNewGroup();
FreshDebug.Assert(_local3 >= 0, "iGroup >= 0");
EstablishGroup(new Vector2D(_local2, _local4), _local3);
}
_local2++;
}
_local4++;
}
}
function CompareNeighborsRandomly(v1, v2) {
return((_root.random.GetBoolean() ? -1 : 1));
}
function AddToGroup(tile, iGroup) {
_tileGrid[(tile._y * _trayExtentX) + tile._x] = iGroup;
_arrGroups[iGroup].push(tile);
if (GetGroupSize(iGroup) >= GetDesiredGroupSize(iGroup)) {
return(undefined);
}
var _local5 = new Array();
_local5.push(new Vector2D(tile._x + 1, tile._y + 0));
_local5.push(new Vector2D(tile._x - 1, tile._y + 0));
_local5.push(new Vector2D(tile._x + 0, tile._y + 1));
_local5.push(new Vector2D(tile._x + 0, tile._y - 1));
_local5.sort(CompareNeighborsRandomly);
var _local3 = 0;
while (_local3 < _local5.length) {
var _local2 = _local5[_local3];
if ((((_local2._x < 0) || (_local2._y < 0)) || (_local2._x >= _trayExtentX)) || (_local2._y >= _trayExtentY)) {
} else if (_tileGrid[(_local2._y * _trayExtentX) + _local2._x] >= 0) {
} else {
AddToGroup(_local2, iGroup);
if (GetGroupSize(iGroup) >= GetDesiredGroupSize(iGroup)) {
return(undefined);
}
}
_local3++;
}
}
function PickRandomDesiredGroupSize(iGroup) {
var _local3 = _root.random.GetRandom();
Math.pow(_local3, 5);
_desiredGroupSize[iGroup] = _minGroupSize + (_local3 * (_maxGroupSize - _minGroupSize));
}
function GetGroupSize(iGroup) {
return(_arrGroups[iGroup].length);
}
function GetDesiredGroupSize(iGroup) {
return(_desiredGroupSize[iGroup]);
}
function EstablishGroup(startTile, iGroup) {
PickRandomDesiredGroupSize(iGroup);
AddToGroup(startTile, iGroup);
}
var _trayExtentX = 0;
var _trayExtentY = 0;
}
Symbol 188 MovieClip [__Packages.CFieldHost] Frame 0
class CFieldHost extends MovieClip
{
var _visible, stop, gotoAndPlay, _field, removeMovieClip;
function CFieldHost () {
super();
_visible = false;
(stop());// not popped
}
function PlayAppear() {
_visible = true;
FreshDebug.Trace("PlayAppear");
(gotoAndPlay("appear"));// not popped
}
function OnAppearDone() {
FreshDebug.Trace("OnAppearDone");
_field.SetInteractive(true);
(stop());// not popped
}
function PlayDisappear() {
FreshDebug.Trace("PlayDisappear");
_field.SetInteractive(false);
(gotoAndPlay("disappear"));// not popped
}
function OnDisappearDone() {
FreshDebug.Trace("OnDisappearDone");
(stop());// not popped
_root._game.KillFieldHost(this);
(removeMovieClip());// not popped
}
}
Symbol 189 MovieClip [__Packages.CSkipLevelButton] Frame 0
class CSkipLevelButton extends MovieClip
{
function CSkipLevelButton () {
super();
}
function OnClicked() {
FreshDebug.Trace("OnClicked " + _iLevel);
_root._iStartLevel = _iLevel - 1;
_root._mainMenu.gotoAndPlay("dismiss pick");
}
var _iLevel = 0;
}
Symbol 190 MovieClip [__Packages.CPhitButton] Frame 0
class CPhitButton extends MovieClip
{
var gotoAndStop, _buttonText, _button;
function CPhitButton () {
super();
(gotoAndStop("enabled"));// not popped
}
function Initialize(buttonText, fnCallOnRelease) {
_buttonText = buttonText;
_button.onRelease = fnCallOnRelease;
}
function SetEnabled(enabled) {
if (_isEnabled != enabled) {
_isEnabled = enabled;
if (_isEnabled) {
(gotoAndStop("enabled"));// not popped
_button._visible = true;
} else {
(gotoAndStop("disabled"));// not popped
_button._visible = false;
}
}
}
function IsEnabled() {
return(_isEnabled);
}
var _isEnabled = true;
}
Symbol 191 MovieClip [__Packages.CPhitMessageBox] Frame 0
class CPhitMessageBox extends CMovieClipFresh
{
var _visible, _buttonLeft, _buttonRight, _strTitle, _strMessage, _fnOnYes, _fnOnNo, _parent;
function CPhitMessageBox () {
super();
}
function Show() {
_visible = true;
}
function Hide() {
_visible = false;
}
function FirstFrameInitialize() {
_buttonLeft.Initialize("Yes", OnYes);
_buttonRight.Initialize("No", OnNo);
Hide();
}
function Initialize(title, message, fnOnYes, fnOnNo) {
FreshDebug.Trace("CPhitMessageBox.Initialize");
_strTitle = title;
_strMessage = message;
_fnOnYes = fnOnYes;
_fnOnNo = fnOnNo;
}
function OnYes() {
FreshDebug.Trace("CPhitMessageBox.OnYes");
_parent._parent._fnOnYes();
}
function OnNo() {
_parent._parent._fnOnNo();
}
}
Symbol 192 MovieClip [__Packages.CPhitGameUI] Frame 0
class CPhitGameUI extends CMovieClipFresh
{
var _calculatingSpinner, _buttonQuit, _buttonUndo, _buttonRedo, _buttonReset, _buttonArmorGamesLink, _msgBoxQuit, stop, _levelString, _strTime, _strMoves;
function CPhitGameUI () {
super();
}
function FirstFrameInitialize() {
_root._gameUI = this;
_calculatingSpinner._visible = false;
_buttonQuit.Initialize("Quit", OnQuit);
_buttonUndo.Initialize("Undo", OnUndo);
_buttonUndo.SetEnabled(false);
_buttonRedo.Initialize("Redo", OnRedo);
_buttonRedo.SetEnabled(false);
_buttonReset.Initialize("Reset", OnReset);
_buttonReset.SetEnabled(false);
_buttonArmorGamesLink.Initialize("Visit ArmorGames.com", OnArmorGames);
_msgBoxQuit.Initialize("Quit?", "Would you like to quit this game and return to the main menu? You can come back to this level later.\n\nDo you want to quit?", OnQuitConfirmed, OnQuitDenied);
}
function OnAppearDone() {
(stop());// not popped
}
function OnDisappearDone() {
_root._presentation.gotoAndStop("menu");
}
function onEnterFrame() {
super.onEnterFrame();
var _local8 = _root._game.GetLevel();
if (_local8 == undefined) {
_levelString = "";
} else {
_levelString = String(_local8 + 1);
}
var _local4 = _root._game.GetField().GetTimeTaken();
if (_local4 == undefined) {
_strTime = "";
} else {
var _local6 = int(_local4 / 3600);
var _local7 = int(_local4 / 60) % 60;
var _local5 = int(_local4) % 60;
_strTime = (((((_local6 < 10) ? ("0" + _local6) : (_local6)) + ":") + ((_local7 < 10) ? ("0" + _local7) : (_local7))) + ":") + ((_local5 < 10) ? ("0" + _local5) : (_local5));
}
var _local9 = _root._game.GetField().GetNumMovesMade();
if (_local9 == undefined) {
_strMoves = "";
} else {
_strMoves = String(_local9);
}
_buttonUndo.SetEnabled(_root._game.IsUndoAvailable());
_buttonRedo.SetEnabled(_root._game.IsRedoAvailable());
_buttonReset.SetEnabled(_root._game.IsUndoAvailable());
_calculatingSpinner._visible = (!_root._game._doneShuffling) && (_root._game.m_nUpdates > 6);
}
function OnArmorGames() {
_root.getURL("http://www.armorgames.com/", "_blank");
}
function OnUndo() {
_root._game.GetField().UndoLastPieceMove();
}
function OnRedo() {
_root._game.GetField().RedoLastPieceMove();
}
function OnReset() {
_root._game.GetField().ResetAllMoves();
}
function OnQuit() {
FreshDebug.Trace("OnQuit");
_root._gameUI._msgBoxQuit.Show();
_root._game.GetField().SetInteractive(false);
}
function OnQuitConfirmed() {
FreshDebug.Trace("OnQuitConfirmed");
_root._gameUI.gotoAndPlay("disappear");
_root._game.GetFieldHost().gotoAndPlay("disappear");
}
function OnQuitDenied() {
FreshDebug.Trace("OnQuitDenied");
_root._gameUI._msgBoxQuit.Hide();
_root._game.GetField().SetInteractive(true);
}
}
Symbol 193 MovieClip [__Packages.CPhitGame] Frame 0
class CPhitGame extends CMovieClipFresh
{
var _statReporter, _arrFieldHosts, attachMovie;
function CPhitGame () {
super();
}
function FirstFrameInitialize() {
_root._game = this;
if (_root._iStartLevel) {
_iLevel = _root._iStartLevel;
}
_statReporter = new CServerStatReporter();
_arrFieldHosts = new Array();
Key.addListener(this);
StartFieldSequence();
}
function GetLevel() {
return(_iLevel);
}
function GetField() {
return(_field);
}
function GetFieldHost() {
return(_fieldHost);
}
function StartFieldSequence() {
FreshDebug.Trace("Seeding");
_root.random.SetSeed(_iLevel + _iSeedOffset);
StartBuildingField(_iLevel);
}
function StartBuildingField(iField) {
FreshDebug.Trace(("StartBuildingField( " + iField) + " )");
if (iField == undefined) {
iField = _arrFieldHosts.length;
}
var _local3 = iField;
attachMovie("Field Host", "fieldHost" + _local3, _local3);
_fieldHost = CFieldHost(this["fieldHost" + _local3]);
_arrFieldHosts[iField] = _fieldHost;
_totalIterations = 0;
_field = null;
_doneShuffling = false;
_isFieldSolved = false;
}
function onKeyUp() {
var _local2 = Key.getCode();
FreshDebug.Trace("key up=" + _local2);
if (Key.isDown(17)) {
switch (_local2) {
case 38 :
FinishCurrentLevel();
break;
case 90 :
_field.UndoLastPieceMove();
break;
case 89 :
_field.RedoLastPieceMove();
}
}
}
function IsUndoAvailable() {
return((!_isFieldSolved) && (_field.IsUndoAvailable()));
}
function IsRedoAvailable() {
return((!_isFieldSolved) && (_field.IsRedoAvailable()));
}
function onEnterFrame() {
super.onEnterFrame();
if (!_fieldHost) {
return(undefined);
}
_field = CPlayingField(_fieldHost._field);
if ((_field == null) || (!_field.IsAwake())) {
return(undefined);
}
if (_field && (_field.WantsBuilding())) {
BuildPendingField();
}
if (!_doneShuffling) {
ShuffleField();
} else {
UpdateGame();
}
}
function UpdateGame() {
if ((!_isFieldSolved) && (_field.AreAllPiecesWithinTray())) {
FinishCurrentLevel();
}
}
function GetFieldConfiguration(iLevel) {
if (iLevel < 2) {
return(new Object({width:4, height:2, minPieceSize:1, maxPieceSize:4, bias:0.5, minTotalIterations:10, maxTotalIterations:50, maxShuffleSlideLength:4}));
}
if (iLevel < 8) {
var _local2 = (iLevel - 2) / 6;
return(new Object({width:6, height:3, minPieceSize:1, maxPieceSize:5, bias:0.5, minTotalIterations:MathUtil.Lerp(50, 100, _local2), maxTotalIterations:MathUtil.Lerp(100, 150, _local2), maxShuffleSlideLength:5}));
}
if (iLevel < 15) {
var _local2 = (iLevel - 8) / 7;
return(new Object({width:7, height:4, minPieceSize:1, maxPieceSize:6, bias:0.33, minTotalIterations:MathUtil.Lerp(100, 200, _local2), maxTotalIterations:MathUtil.Lerp(200, 300, _local2), maxShuffleSlideLength:3}));
}
if (iLevel < 30) {
var _local2 = (iLevel - 15) / 15;
return(new Object({width:8, height:5, minPieceSize:1, maxPieceSize:6, bias:0.25, minTotalIterations:MathUtil.Lerp(200, 400, _local2), maxTotalIterations:MathUtil.Lerp(400, 600, _local2), maxShuffleSlideLength:2}));
}
if (iLevel < 50) {
var _local2 = (iLevel - 30) / 20;
return(new Object({width:9, height:6, minPieceSize:1, maxPieceSize:6, bias:0.25, minTotalIterations:MathUtil.Lerp(400, 800, _local2), maxTotalIterations:MathUtil.Lerp(800, 1200, _local2), maxShuffleSlideLength:2}));
}
if (iLevel < 100) {
var _local2 = (iLevel - 50) / 50;
return(new Object({width:10, height:6, minPieceSize:2, maxPieceSize:6, bias:0.2, minTotalIterations:MathUtil.Lerp(1000, 2000, _local2), maxTotalIterations:MathUtil.Lerp(2000, 4000, _local2), maxShuffleSlideLength:1}));
}
return(new Object({width:12, height:7, minPieceSize:1, maxPieceSize:6, bias:0.2, minTotalIterations:2000, maxTotalIterations:4000, maxShuffleSlideLength:1}));
}
function BuildPendingField() {
FreshDebug.Trace("Trying to build");
var _local2 = GetFieldConfiguration(_iLevel);
_field.Build(_local2.width, _local2.height, _local2.minPieceSize, _local2.maxPieceSize);
_doneShuffling = false;
_totalIterations = 0;
_bias = _local2.bias;
_minDesiredIterations = _local2.minTotalIterations;
_maxDesiredIterations = _local2.maxTotalIterations;
_maxShuffleSlideLength = _local2.maxShuffleSlideLength;
ScaleField(_fieldHost);
FreshDebug.Assert(!_field.WantsBuilding(), "!_field.WantsBuilding()");
}
function ShufflePerFrame() {
var _local3 = 1;
var _local2 = Math.min(8, _maxDesiredIterations - _totalIterations);
return(_field.Shuffle(_local3, _local2, _maxShuffleSlideLength, _bias));
}
function ShuffleField() {
FreshDebug.Trace("Shuffling");
var _local3 = 1;
var _local2 = Math.min(8, _maxDesiredIterations - _totalIterations);
_totalIterations = _totalIterations + ShufflePerFrame();
if (!_field.AreAllPiecesOutsideOfTray()) {
if (_totalIterations > _maxDesiredIterations) {
StartBuildingField(_iLevel);
}
} else if (_totalIterations >= _minDesiredIterations) {
_doneShuffling = true;
OnFinishShuffling();
}
}
function OnFinishShuffling() {
_field.RememberPieceBasePositions();
_fieldHost.PlayAppear();
}
function OnVictoryDisplayFinished() {
FreshDebug.Trace("OnVictoryDisplayFinished");
_fieldHost.PlayDisappear();
_fieldHost = null;
_field = null;
StartNextLevel();
}
function FinishCurrentLevel() {
FreshDebug.Trace("closing level");
_isFieldSolved = true;
ReportLevelStatsToServer();
_field.PlayVictory();
}
function StartNextLevel() {
_iLevel++;
FreshDebug.Trace("moving to level " + _iLevel);
_root._presentation.StoreLastPlayedLevel(_iLevel);
FreshDebug.Trace("Fabricating a new level.");
StartFieldSequence();
}
function KillFieldHost(host) {
var _local2 = 0;
while (_local2 < _arrFieldHosts.length) {
if (_arrFieldHosts[_local2] == host) {
_arrFieldHosts[_local2] = null;
break;
}
_local2++;
}
}
function ScaleField(fieldHost) {
var _local4 = fieldHost._field.__get___pixelWidth() / _gameWidth;
var _local5 = fieldHost._field.__get___pixelHeight() / _gameHeight;
var _local3 = 1 / _local5;
if (_local4 > _local5) {
_local3 = 1 / _local4;
}
fieldHost._xscale = (fieldHost._yscale = _local3 * 100);
fieldHost._x = (_gameWidth - (fieldHost._field.__get___pixelWidth() * _local3)) * 0.5;
fieldHost._y = fieldHost._field.__get___tableauPixelHeight() * _local3;
fieldHost._field.SizeFrame(_local3);
}
function ReportLevelStatsToServer() {
_statReporter.ReportLevelStats(_iLevel, _field.GetTimeTaken(), _field.GetNumMovesMade());
}
var _field = null;
var _fieldHost = null;
var _doneShuffling = false;
var _minDesiredIterations = 100;
var _maxDesiredIterations = 1000;
var _maxShuffleSlideLength = 5;
var _totalIterations = 0;
var _bias = 0;
var _isFieldSolved = false;
var _iLevel = 0;
var _iSeedOffset = 0;
var _gameWidth = 480;
var _gameHeight = 640;
}
Symbol 194 MovieClip [__Packages.CServerStatReporter] Frame 0
class CServerStatReporter
{
function CServerStatReporter () {
}
function get _statsServerPHP() {
return("phit_stats.php");
}
function ReportLevelStats(iLevel, secondsPlayed, nMoves) {
return(undefined);
if ("ReportLevelStats" != null) {
_root="ReportLevelStats";//parameter overwritten
FreshDebug.Trace((("\t" + _root) + "=") + this[_root]);
// unexpected jump
}
_local2;
var _local7 = _local3.sendAndLoad(_local6, _local5);
}
}
Symbol 195 MovieClip [__Packages.FreshFramework] Frame 0
class FreshFramework
{
function FreshFramework () {
}
static function get _isRunningLocally() {
return(m_isRunningLocally);
}
static function set _isRunningLocally(isRunningLocally) {
m_isRunningLocally = isRunningLocally;
//return(_isRunningLocally);
}
static function get _isRunningLocalRemoteDebug() {
return(m_isRunningLocalRemoteDebug);
}
static function set _isRunningLocalRemoteDebug(isRunningLocalRemoteDebug) {
m_isRunningLocalRemoteDebug = isRunningLocalRemoteDebug;
//return(_isRunningLocalRemoteDebug);
}
static function get _serverURL() {
if (m_isRunningLocalRemoteDebug) {
return("http://www.jeffwofford.com/");
}
if (m_isRunningLocally) {
return("http://localhost/");
}
return("/");
}
static function IsOnValidDomain() {
return((_isRunningLocally || (_isRunningLocalRemoteDebug)) || (_root._url.indexOf("http://www.jeffwofford.com") == 0));
}
static function get _doesSimulationExist() {
return(_root._simulation);
}
static function get _simulation() {
if (!_root._simulation) {
}
return(_root._simulation);
}
static function Initialize(doCreateIfAbsent) {
if ((!_root._simulation) && (doCreateIfAbsent)) {
_root._simulation = new CSimulation();
}
}
static function Shutdown() {
delete _root._simulation;
_root._simulation = null;
}
static function Update() {
_root._simulation.Update();
}
static var m_isRunningLocally = true;
static var m_isRunningLocalRemoteDebug = false;
}
Symbol 196 MovieClip [__Packages.CSimulation] Frame 0
class CSimulation
{
var m_arrClocks, m_arrDeltaTimes, m_arrTimeScalars, m_arrIsPaused, m_vecGravity, m_bodies, m_simulatedThings, m_collisionResolver;
function CSimulation (collisionResolver) {
m_timeSecondsReal = new Date().getTime() / 1000;
m_timeScalar = 1;
m_arrClocks = new Array();
m_arrDeltaTimes = new Array();
m_arrTimeScalars = new Array();
m_arrIsPaused = new Array();
m_vecGravity = new Vector2D(0, 0);
m_bodies = new Array();
m_simulatedThings = new Array();
if (collisionResolver) {
m_collisionResolver = collisionResolver;
} else {
m_collisionResolver = new CCollisionResolverBucketSort(8, 6, 800, 600, 0, 0);
}
}
function DestroyAllBodies() {
while (m_bodies.length > 0) {
m_bodies[0].Destroy();
}
}
function CreateNamedClock(name) {
m_arrClocks[name] = 0;
m_arrDeltaTimes[name] = 0;
m_arrTimeScalars[name] = 1;
m_arrIsPaused[name] = false;
}
function HasNamedClock(name) {
return(m_arrClocks[name] != undefined);
}
function SetPausedNamedClock(name, isPaused) {
if (name == "") {
m_isPaused = isPaused;
} else {
m_arrIsPaused[name] = isPaused;
}
}
function SetNamedTimeScalar(name, timeScalar) {
if (name == "") {
m_timeScalar = timeScalar;
} else {
m_arrTimeScalars[name] = timeScalar;
}
}
function GetNamedClock(name) {
if (name == "") {
return(m_timeSecondsSimulated);
}
return(m_arrClocks[name]);
}
function GetNamedDeltaTime(name) {
if (name == "") {
return(m_frameDeltaTimeSimulated);
}
return(m_arrDeltaTimes[name]);
}
function GetNamedTimeScalar(name) {
if (name == "") {
return(m_timeScalar);
}
return(m_arrTimeScalars[name]);
}
function GetNamedIsPaused(name) {
if (name == "") {
return(m_isPaused);
}
return(m_arrIsPaused[name]);
}
function UpdateNamedClock(name) {
FreshDebug.Assert(HasNamedClock(name), "HasNamedClock( name )");
if (!m_arrIsPaused[name]) {
if (m_constantFrameDeltaTime) {
m_arrDeltaTimes[name] = m_constantFrameDeltaTime * m_arrTimeScalars[name];
} else {
m_arrDeltaTimes[name] = m_frameDeltaTimeReal * m_arrTimeScalars[name];
}
m_arrDeltaTimes[name] = Math.min(m_arrDeltaTimes[name], m_maxFrameDeltaTime);
m_arrClocks[name] = m_arrClocks[name] + m_arrDeltaTimes[name];
} else {
m_arrDeltaTimes[name] = 0;
}
}
function UpdateAllClocks() {
var _local3 = m_timeSecondsReal;
m_timeSecondsReal = new Date().getTime() / 1000;
m_frameDeltaTimeReal = m_timeSecondsReal - _local3;
if (!m_isPaused) {
if (m_constantFrameDeltaTime) {
m_frameDeltaTimeSimulated = m_constantFrameDeltaTime * m_timeScalar;
} else {
m_frameDeltaTimeSimulated = m_frameDeltaTimeReal * m_timeScalar;
}
m_frameDeltaTimeSimulated = Math.min(m_frameDeltaTimeSimulated, m_maxFrameDeltaTime);
m_timeSecondsSimulated = m_timeSecondsSimulated + m_frameDeltaTimeSimulated;
} else {
m_frameDeltaTimeSimulated = 0;
}
for (var _local2 in m_arrClocks) {
UpdateNamedClock(_local2);
}
}
function Update() {
m_nUpdates++;
UpdateAllClocks();
if (m_shouldSortThings) {
m_simulatedThings.sortOn("_updatePriority");
}
var _local4 = 0;
while (_local4 < m_simulatedThings.length) {
m_simulatedThings[_local4].PreUpdate();
_local4++;
}
_local4 = 0;
while (_local4 < m_simulatedThings.length) {
m_simulatedThings[_local4].Update();
_local4++;
}
var _local2 = true;
var _local5 = 0;
while (_local2 && (_local5 < 4)) {
_local2 = false;
_local4 = 0;
while (_local4 < m_simulatedThings.length) {
var _local3 = m_simulatedThings[_local4].UpdateConstraints();
_local2 = _local2 || (_local3);
_local4++;
}
_local5++;
}
_local4 = 0;
while (_local4 < m_simulatedThings.length) {
m_simulatedThings[_local4].PostUpdate();
_local4++;
}
if (m_collisionResolver && (m_bCheckCollisions)) {
m_collisionResolver.ResolveCollisions(m_bodies);
}
}
function FindBody(body) {
var _local2 = 0;
while (_local2 < m_bodies.length) {
if (m_bodies[_local2] == body) {
return(_local2);
}
_local2++;
}
return(-1);
}
function RegisterBody(body) {
var _local2 = FindBody(body);
if (_local2 < 0) {
m_bodies.push(body);
RegisterSimulated(body);
}
}
function UnregisterBody(body) {
var _local2 = FindBody(body);
if (_local2 >= 0) {
m_bodies.splice(_local2, 1);
}
UnregisterSimulated(body);
}
function FindSimulated(simulated) {
var _local2 = 0;
while (_local2 < m_simulatedThings.length) {
if (m_simulatedThings[_local2] == simulated) {
return(_local2);
}
_local2++;
}
return(-1);
}
function RegisterSimulated(simulated) {
var _local2 = FindSimulated(simulated);
if (_local2 < 0) {
m_simulatedThings.push(simulated);
}
}
function UnregisterSimulated(simulated) {
var _local2 = FindSimulated(simulated);
if (_local2 >= 0) {
m_simulatedThings.splice(_local2, 1);
}
}
var m_nUpdates = 0;
var m_timeSecondsReal = 0;
var m_timeSecondsSimulated = 0;
var m_frameDeltaTimeReal = 0;
var m_frameDeltaTimeSimulated = 0;
var m_constantFrameDeltaTime = 0;
var m_timeScalar = 1;
var m_isPaused = false;
var m_bCheckCollisions = true;
var m_shouldSortThings = false;
var m_maxFrameDeltaTime = 0.1;
}
Symbol 197 MovieClip [__Packages.ICollisionResolver] Frame 0
interface ICollisionResolver
{
}
Symbol 198 MovieClip [__Packages.CCollisionResolverBucketSort] Frame 0
class CCollisionResolverBucketSort implements ICollisionResolver
{
var m_matrixWidth, m_matrixHeight, m_stageUpperLeftCorner, m_stagePixelsPerMatrixWidth, m_stagePixelsPerMatrixHeight, m_bucketMatrix, m_arrActiveBuckets;
function CCollisionResolverBucketSort (width, height, stageWidth, stageHeight, stageLeft, stageTop) {
m_matrixWidth = width;
m_matrixHeight = height;
m_stageUpperLeftCorner = new Vector2D(stageLeft, stageTop);
m_stagePixelsPerMatrixWidth = stageWidth / m_matrixWidth;
m_stagePixelsPerMatrixHeight = stageHeight / m_matrixHeight;
m_bucketMatrix = new Array(m_matrixWidth * m_matrixHeight);
var _local3 = 0;
while (_local3 < m_matrixWidth) {
var _local2 = 0;
while (_local2 < m_matrixHeight) {
m_bucketMatrix[_local3 + (_local2 * m_matrixWidth)] = new CCollisionBucket(_local3, _local2);
_local2++;
}
_local3++;
}
m_arrActiveBuckets = new Array();
CreateDebugDisplay();
}
function UpdateStagePosition(stageLeft, stageTop, stageWidth, stageHeight) {
m_stageUpperLeftCorner._x = stageLeft;
m_stageUpperLeftCorner._y = stageTop;
_global._bucketResolverDebugDisplay._x = stageLeft;
_global._bucketResolverDebugDisplay._y = stageTop;
}
function get _matrixWidth() {
return(m_matrixWidth);
}
function get _matrixHeight() {
return(m_matrixHeight);
}
function CreateDebugDisplay() {
if (!_global._bucketResolverDebugDisplay) {
if (!_global._bucketResolverDebugDisplayRoot) {
_global._bucketResolverDebugDisplayRoot = _root;
}
_global._bucketResolverDebugDisplay = _global._bucketResolverDebugDisplayRoot.createEmptyMovieClip("_bucketResolverDebugDisplay", _global._bucketResolverDebugDisplayRoot.getNextHighestDepth());
}
var _local5 = 0;
while (_local5 < m_matrixWidth) {
var _local4 = 0;
while (_local4 < m_matrixHeight) {
_global._bucketResolverDebugDisplay.attachMovie("Bucket Debug Square", "_bucketDebug" + (_local5 + (_local4 * m_matrixWidth)), _global._bucketResolverDebugDisplay.getNextHighestDepth(), {_x:m_stageUpperLeftCorner._x + (_local5 * m_stagePixelsPerMatrixWidth), _y:m_stageUpperLeftCorner._y + (_local4 * m_stagePixelsPerMatrixHeight), _xscale:m_stagePixelsPerMatrixWidth, _yscale:m_stagePixelsPerMatrixHeight});
_local4++;
}
_local5++;
}
}
function GetMatrixCoordinatesFromLocation(loc) {
return(new Vector2D(int((loc._x - m_stageUpperLeftCorner._x) / m_stagePixelsPerMatrixWidth), int((loc._y - m_stageUpperLeftCorner._y) / m_stagePixelsPerMatrixHeight)));
}
function ResolveCollisions(bodies) {
m_arrActiveBuckets.splice(0);
UpdateBodyBuckets(bodies);
ResolveCollisionWithinBuckets();
if (_global._bucketResolverDebugDisplay._visible) {
UpdateBucketDebugDisplay();
}
}
function UpdateBodyBuckets(bodies) {
var _local3 = 0;
while (_local3 < bodies.length) {
var _local2 = bodies[_local3];
if (_local2.__get___doesCollide()) {
if (_local2.__get___didMove() || (_local2.__get___nUpdates() == 1)) {
_local2.VacatePriorCollisionBuckets();
AddBodyToOverlappingBuckets(_local2);
}
} else {
_local2.VacatePriorCollisionBuckets();
}
_local3++;
}
}
function UpdateBucketDebugDisplay() {
var _local6 = 0;
while (_local6 < m_matrixWidth) {
var _local3 = 0;
while (_local3 < m_matrixHeight) {
var _local8 = _global._bucketResolverDebugDisplay["_bucketDebug" + (_local6 + (_local3 * m_matrixWidth))];
var _local7 = new Color(_local8);
_local7.setRGB(0);
var _local4 = m_bucketMatrix[_local6 + (_local3 * m_matrixWidth)];
if (_local4.m_arrOverlappingBodies.length > 0) {
var _local5 = 65280;
if (_local4.m_arrOverlappingBodies.length > 1) {
_local5 = 16711680 /* 0xFF0000 */;
}
_local7.setRGB(_local5);
}
_local3++;
}
_local6++;
}
}
function AddBodyToOverlappingBuckets(body) {
var _local5 = GetMatrixCoordinatesFromLocation(body.__get___topLeftCorner());
var _local6 = GetMatrixCoordinatesFromLocation(body.__get___bottomRightCorner());
var _local4 = _local5._x;
while (_local4 <= _local6._x) {
if ((_local4 < 0) || (_local4 >= m_matrixWidth)) {
} else {
var _local2 = _local5._y;
while (_local2 <= _local6._y) {
if ((_local2 < 0) || (_local2 >= m_matrixHeight)) {
} else {
var _local3 = m_bucketMatrix[int(_local4 + (_local2 * m_matrixWidth))];
_local3.AddBody(body);
if (_local3.m_arrOverlappingBodies.length >= 2) {
NoteActiveBucket(_local3);
}
}
_local2++;
}
}
_local4++;
}
}
function NoteActiveBucket(bucket) {
var _local3 = m_arrActiveBuckets.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_arrActiveBuckets[_local2] == bucket) {
return(undefined);
}
_local2++;
}
m_arrActiveBuckets.push(bucket);
}
function ResolveCollisionWithinBuckets() {
var _local8 = new Array();
var _local11 = m_arrActiveBuckets.length;
var _local10 = 0;
while (_local10 < _local11) {
var _local5 = m_arrActiveBuckets[_local10].m_arrOverlappingBodies;
var _local9 = 0;
while (_local9 < (_local5.length - 1)) {
var _local4 = _local5[_local9];
if (!_local4) {
_local5.splice(_local9, 1);
_local9--;
} else {
var _local2 = _local9 + 1;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2];
if (!_local3) {
_local5.splice(_local2, 1);
_local2--;
} else {
FreshDebug.Assert(_local4 != _local3, ("CCollisionResolverBucketSort.ResolveCollisionWithinBuckets(): bodyI [ " + _local4) + " ] != bodyJ");
if (!HasCollisionPair(_local4, _local3, _local8)) {
var _local6 = new Object();
_local6._body1 = _local4;
_local6._body2 = _local3;
_local8.push(_local6);
}
}
_local2++;
}
}
_local9++;
}
_local10++;
}
var _local9 = 0;
while (_local9 < _local8.length) {
var _local7 = _local8[_local9]._body1.DoesCollideWith(_local8[_local9]._body2);
if (_local7) {
if ((!_local7.m_body1.DoesSuppressCentralizedCollisionResolution()) && (!_local7.m_body2.DoesSuppressCentralizedCollisionResolution())) {
ResolveCollision(_local7);
}
_local7.m_body1.NotifyCollision(_local7);
_local7.m_body2.NotifyCollision(_local7);
}
_local9++;
}
}
function HasCollisionPair(bodyI, bodyJ, arrPairs) {
var _local2 = 0;
while (_local2 < arrPairs.length) {
var _local1 = arrPairs[_local2];
if (((_local1._body1 == bodyI) && (_local1._body2 == bodyJ)) || ((_local1._body1 == bodyJ) && (_local1._body2 == bodyI))) {
return(true);
}
_local2++;
}
return(false);
}
function ResolveCollision(collisionInfo) {
var _local2 = collisionInfo.m_body1.m_restitution * collisionInfo.m_body2.m_restitution;
var _local6 = collisionInfo.m_body1.m_mass / (collisionInfo.m_body1.m_mass + collisionInfo.m_body2.m_mass);
var _local13 = collisionInfo.m_body2.m_mass / (collisionInfo.m_body1.m_mass + collisionInfo.m_body2.m_mass);
var _local5 = collisionInfo.m_normal;
var _local8 = _local5.GetInverse();
var _local10 = collisionInfo.m_body1.__get___velocity();
var _local9 = collisionInfo.m_body2.__get___velocity();
var _local3 = _local5.GetMultiplyScalar(_local5.DotProduct(_local10));
var _local11 = _local10.GetSubtract(_local3);
var _local4 = _local8.GetMultiplyScalar(_local8.DotProduct(_local9));
var _local12 = _local9.GetSubtract(_local4);
var _local7 = _local11.GetSubtract(_local3.GetMultiplyScalar(_local6 * _local2).GetSubtract(_local4).GetMultiplyScalar(_local13 * _local2));
if (collisionInfo.m_body2.m_mass <= 0) {
_local7 = _local11.GetSubtract(_local3.GetMultiplyScalar(_local2));
}
var _local14 = _local12.GetSubtract(_local4.GetMultiplyScalar(_local13 * _local2).GetSubtract(_local3).GetMultiplyScalar(_local6 * _local2));
if (collisionInfo.m_body1.m_mass <= 0) {
_local14 = _local12.GetSubtract(_local4.GetMultiplyScalar(_local2));
}
collisionInfo.m_body1.ApplyImpulse(_local7);
collisionInfo.m_body2.ApplyImpulse(_local14);
}
}
Symbol 199 MovieClip [__Packages.CCollisionBucket] Frame 0
class CCollisionBucket
{
var m_matrixX, m_matrixY, m_arrOverlappingBodies;
function CCollisionBucket (matrixX, matrixY) {
m_matrixX = matrixX;
m_matrixY = matrixY;
m_arrOverlappingBodies = new Array();
}
function get _matrixLocation() {
return(new Vector2D(m_matrixX, m_matrixY));
}
function AddBody(body) {
FreshDebug.Assert(FindBody(body) < 0, ("CCollisionBucket.AddBody(): FindBody( body [ " + body._name) + " ] ) < 0");
m_arrOverlappingBodies.push(body);
body.NotifyAddedToBucket(this);
}
function FindBody(body) {
var _local3 = m_arrOverlappingBodies.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_arrOverlappingBodies[_local2] == body) {
return(_local2);
}
_local2++;
}
return(-1);
}
function RemoveBody(body) {
var _local2 = FindBody(body);
if (_local2 >= 0) {
m_arrOverlappingBodies.splice(_local2, 1);
}
}
}
Symbol 200 MovieClip [__Packages.ISimulated] Frame 0
interface ISimulated
{
}
Symbol 201 MovieClip [__Packages.CBody] Frame 0
class CBody extends MovieClip implements ISimulated
{
var m_velocity, m_acceleration, m_drag, m_forceAccumulator, m_impulseAccumulator, m_lastLocation, _x, _y, m_collisionVolume, m_arrCollisionBuckets, m_attachedBodies, swapDepths, removeMovieClip, _width, _height, _parent, _rotation, m_effectiveVelocity, m_isAttached;
function CBody () {
super();
FreshDebug.Assert(FreshFramework.__get___simulation() != undefined, "FreshFramework._simulation");
m_velocity = new Vector2D(0, 0);
m_acceleration = new Vector2D(0, 0);
m_drag = new Vector2D(0, 0);
m_forceAccumulator = new Vector2D(0, 0);
m_impulseAccumulator = new Vector2D(0, 0);
m_lastLocation = new Vector2D(_x, _y);
m_lastUpdateTime = FreshFramework._simulation.GetNamedClock(GetClockName());
if (!m_collisionVolume) {
CreateDefaultCollisionVolume();
}
FreshFramework._simulation.RegisterBody(this);
m_arrCollisionBuckets = new Array();
m_attachedBodies = new Array();
}
function Destroy() {
FreshFramework._simulation.UnregisterBody(this);
VacatePriorCollisionBuckets();
swapDepths(0);
(removeMovieClip());// not popped
}
function CreateDefaultCollisionVolume() {
m_collisionVolume = new CCircle(this, Math.max(_width, _height) * 0.5);
}
function get _updatePriority() {
return(0);
}
function get _location() {
return(new Vector2D(_x, _y));
}
function set _location(loc) {
_x = loc._x;
_y = loc._y;
//return(_location);
}
function GetLocation() {
return(new Vector2D(_x, _y));
}
function GetWorldSpaceLocation() {
var _local4 = _location;
var _local3 = _parent;
while (_local3 != _root) {
_local4.Add(new Vector2D(_local3._x, _local3._y));
_local3 = _local3._parent;
}
return(_local4);
}
function GetWorldSpaceRotation() {
var _local4 = _rotation;
var _local3 = _parent;
while (_local3 != _root) {
_local4 = _local4 + _local3._rotation;
_local3 = _local3._parent;
}
return(_local4);
}
function get _lastLocation() {
return(m_lastLocation);
}
function get _velocity() {
return(m_velocity.GetCopy());
}
function get _effectiveVelocity() {
return(m_effectiveVelocity);
}
function get _acceleration() {
return(m_acceleration);
}
function get _forceAccumulator() {
return(m_forceAccumulator.GetCopy());
}
function get _speed() {
return(m_velocity.MagnitudeSafe());
}
function get _doesCollide() {
return(m_collisionVolume && (m_doesCollide));
}
function get _didMove() {
return(m_didMove);
}
function get _topLeftCorner() {
if (m_collisionVolume) {
return(m_collisionVolume.__get___topLeftCorner());
}
return(_location);
}
function get _bottomRightCorner() {
if (m_collisionVolume) {
return(m_collisionVolume.__get___bottomRightCorner());
}
return(_location);
}
function get _boundingRadius() {
if (m_collisionVolume) {
return(m_collisionVolume.__get___boundingRadius());
}
return(Math.max(_width * 0.5, _height * 0.5));
}
function get _maxSpeed() {
return(m_maxSpeed);
}
function get _angularVelocity() {
return(m_angularVelocity);
}
function get _nUpdates() {
return(m_nUpdates);
}
function get _arrCollisionBuckets() {
return(m_arrCollisionBuckets);
}
function AttachBody(body) {
if (body) {
m_attachedBodies.push(body);
body.m_isAttached = true;
}
}
function NotifyAddedToBucket(bucket) {
m_arrCollisionBuckets.push(bucket);
}
function VacatePriorCollisionBuckets() {
var _local3 = m_arrCollisionBuckets.length;
var _local2 = 0;
while (_local2 < _local3) {
m_arrCollisionBuckets[_local2].RemoveBody(this);
_local2++;
}
m_arrCollisionBuckets.splice(0);
}
function NotifyCollision(collisionInfo) {
}
function ApplyForce(vecForce) {
if (m_mass > 0) {
m_forceAccumulator.Add(vecForce.GetDivideScalar(m_mass));
}
}
function ApplyThrust(vecForce) {
var _local2 = new Vector2D(vecForce._x, vecForce._y);
_local2.Rotate(MathUtil.DegreesToRadians(_rotation));
ApplyForce(_local2);
}
function ApplyImpulse(vecImpulse) {
if (m_mass > 0) {
m_nImpulses++;
m_impulseAccumulator.Add(vecImpulse);
}
}
function ApplyGravity(gravity) {
if (m_mass > 0) {
m_forceAccumulator.Add(gravity);
}
}
function ApplyTorque(torque) {
if (m_mass > 0) {
m_torqueAccumulator = m_torqueAccumulator + torque;
}
}
function GetClockName() {
return("");
}
function PreUpdate() {
m_didMove = false;
}
function Update() {
m_nUpdates++;
var _local4 = GetClockName();
var _local3 = FreshFramework._simulation.GetNamedDeltaTime(_local4);
if (((((!m_isAttached) && (m_isSimulating)) && (m_mass > 0)) && (!FreshFramework._simulation.GetNamedIsPaused(_local4))) && (_local3 > 0)) {
m_lastUpdateTime = FreshFramework._simulation.GetNamedClock(_local4);
if (m_doUpdateRotation) {
m_angularAcceleration = m_torqueAccumulator;
m_angularVelocity = m_angularVelocity + (m_angularAcceleration * _local3);
m_angularVelocity = m_angularVelocity - (m_angularVelocity * Math.min(m_dragAngular * _local3, 1));
_rotation = _rotation + (m_angularVelocity * _local3);
}
if (m_nImpulses > 0) {
m_impulseAccumulator.DivideScalar(m_nImpulses);
m_velocity.Set(m_impulseAccumulator);
}
m_acceleration.Set(m_forceAccumulator);
m_velocity.Add(m_acceleration.GetMultiplyScalar(_local3));
m_velocity.Subtract(m_velocity.GetMultiplyScalar(Math.min(m_dragLinear * _local3, 1)));
if (m_drag.MagnitudeSquared() > 0) {
var _local5 = MathUtil.DegreesToRadians(_rotation);
m_velocity.Rotate(-_local5);
m_velocity.Subtract(m_velocity.GetMultiply(m_drag.GetMultiplyScalar(_local3)));
m_velocity.Rotate(_local5);
}
if ((_maxSpeed >= 0) && (_speed > _maxSpeed)) {
m_velocity.Normalize();
m_velocity.MultiplyScalar(_maxSpeed);
}
if (m_velocity.MagnitudeSquared() < 0.01) {
m_velocity.SetToZero();
}
_x = _x + (m_velocity._x * _local3);
_y = _y + (m_velocity._y * _local3);
var _local2 = 0;
while (_local2 < m_attachedBodies.length) {
m_attachedBodies[_local2]._location = _location;
if (m_doRotateAttached) {
m_attachedBodies[_local2]._rotation = _rotation;
}
_local2++;
}
}
}
function UpdateConstraints() {
}
function PostUpdate() {
m_didMove = (m_nUpdates == 1) || (_location.GetDistanceSquared(m_lastLocation) > 0.0001);
m_effectiveVelocity = _location.GetSubtract(m_lastLocation);
m_lastLocation = _location;
m_forceAccumulator.SetToZero();
m_impulseAccumulator.SetToZero();
m_nImpulses = 0;
m_torqueAccumulator = 0;
}
function Rollback(amount) {
_location = (m_lastLocation);
}
function GetDelta(body) {
return(new Vector2D(_x - body._x, _y - body._y));
}
function GetDistance(body) {
return(GetDelta(body).Magnitude());
}
function GetDistanceSquared(body) {
return(GetDelta(body).MagnitudeSquared());
}
function DoesSuppressCentralizedCollisionResolution() {
return(false);
}
function DoesCollideWith(body) {
if ((!_doesCollide) || (!body.__get___doesCollide())) {
return(null);
}
var _local2 = Intersection.DoIntersect(m_collisionVolume, body.m_collisionVolume);
if (_local2) {
_local2.m_body1 = this;
_local2.m_body2 = body;
}
return(_local2);
}
var m_mass = 1;
var m_restitution = 1;
var m_dragLinear = 0.8;
var m_dragAngular = 0.8;
var m_maxSpeed = -1;
var m_doRotateAttached = false;
var m_doUpdateRotation = true;
var m_doesCollide = true;
var m_isSimulating = true;
var m_nUpdates = 0;
var m_nImpulses = 0;
var m_angularVelocity = 0;
var m_angularAcceleration = 0;
var m_torqueAccumulator = 0;
var m_lastUpdateTime = 0;
var m_maxOldLocations = 3;
var m_didMove = false;
}
Symbol 202 MovieClip [__Packages.CCollisionVolume] Frame 0
class CCollisionVolume
{
var m_body;
function CCollisionVolume (body) {
m_body = body;
}
function IsColliding() {
return(m_isColliding);
}
function get _topLeftCorner() {
return(m_body.__get___location());
}
function get _bottomRightCorner() {
return(m_body.__get___location());
}
function get _boundingRadius() {
return(0);
}
function MayCollideOnSeparation() {
return(false);
}
var m_isColliding = true;
var m_inverse = false;
}
Symbol 203 MovieClip [__Packages.CCircle] Frame 0
class CCircle extends CCollisionVolume
{
var m_body;
function CCircle (body, radius) {
super(body);
_radius = (radius);
}
function get _center() {
return(m_body.__get___location());
}
function get _boundingRadius() {
return(m_radius);
}
function get _radius() {
return(m_radius);
}
function set _radius(r) {
m_radius = r;
m_radiusSquared = r * r;
//return(_radius);
}
function get _topLeftCorner() {
return(m_body._location.GetSubtractScalar(m_radius));
}
function get _bottomRightCorner() {
return(m_body._location.GetAddScalar(m_radius));
}
var m_radius = 1;
var m_radiusSquared = 1;
}
Symbol 204 MovieClip [__Packages.CCollisionInfo] Frame 0
class CCollisionInfo
{
var m_body1, m_body2;
function CCollisionInfo () {
}
function GetOtherBody(body) {
if (m_body1 == body) {
return(m_body2);
}
if (m_body2 == body) {
return(m_body1);
}
return(null);
}
}
Symbol 205 MovieClip [__Packages.Intersection] Frame 0
class Intersection
{
function Intersection () {
}
static function DoIntersect(volume1, volume2) {
if ((!volume1.IsColliding()) || (!volume2.IsColliding())) {
return(null);
}
if ((!volume1.MayCollideOnSeparation()) && (!volume2.MayCollideOnSeparation())) {
if (volume1.m_body && (volume2.m_body)) {
var _local5 = volume1.m_body._effectiveVelocity.GetSubtract(volume2.m_body.__get___effectiveVelocity());
var _local6 = volume1.m_body._location.GetSubtract(volume2.m_body.__get___location());
if (_local5.DotProduct(_local6) > 0) {
return(null);
}
}
}
if (volume1 instanceof CHitTestCollision) {
var _local4 = volume1.m_body.GetWorldSpaceLocation();
return((volume2.m_body.hitTest(_local4._x, _local4._y, false) ? (new CCollisionInfo()) : null));
}
if (volume2 instanceof CHitTestCollision) {
var _local3 = volume2.m_body.GetWorldSpaceLocation();
return((volume1.m_body.hitTest(_local3._x, _local3._y, false) ? (new CCollisionInfo()) : null));
}
if ((volume1 instanceof CCircle) && (volume2 instanceof CCircle)) {
return(DoIntersectCircleCircle(CCircle(volume1), CCircle(volume2)));
}
if ((volume1 instanceof CCVAxisAlignedBox) && (volume2 instanceof CCVAxisAlignedBox)) {
return(DoIntersectAABAAB(CCVAxisAlignedBox(volume1), CCVAxisAlignedBox(volume2)));
}
if ((volume1 instanceof CLineSegment) && (volume2 instanceof CCircle)) {
return(DoIntersectCircleLineSegment(CCircle(volume2), CLineSegment(volume1)));
}
if ((volume1 instanceof CCircle) && (volume2 instanceof CLineSegment)) {
return(DoIntersectCircleLineSegment(CCircle(volume1), CLineSegment(volume2)));
}
if ((volume1 instanceof CCircle) && (volume2 instanceof CCVAxisAlignedBox)) {
return(DoIntersectCircleAAB(CCircle(volume1), CCVAxisAlignedBox(volume2)));
}
if ((volume1 instanceof CCVAxisAlignedBox) && (volume2 instanceof CCircle)) {
return(DoIntersectCircleAAB(CCircle(volume2), CCVAxisAlignedBox(volume1)));
}
if ((volume1 instanceof CCVAxisAlignedBox) && (volume2 instanceof CLineSegment)) {
return(DoIntersectAABLineSegment(CCVAxisAlignedBox(volume1), CLineSegment(volume2)));
}
if ((volume1 instanceof CLineSegment) && (volume2 instanceof CCVAxisAlignedBox)) {
return(DoIntersectAABLineSegment(CCVAxisAlignedBox(volume2), CLineSegment(volume1)));
}
if ((volume1 instanceof CLineSegment) && (volume2 instanceof CLineSegment)) {
return(DoIntersectLineSegmentLineSegment(CLineSegment(volume1), CLineSegment(volume2)));
}
}
static function DoIntersectCircleCircle(c1, c2) {
var _local6 = c1._center.GetDistance(c2.__get___center());
var _local4 = (c1.__get___radius() + c2.__get___radius()) - _local6;
if (_local4 > 0) {
var _local1 = new CCollisionInfo();
_local1.m_delta = c1._center.GetSubtract(c2.__get___center());
_local1.m_normal = _local1.m_delta.GetNormal();
_local1.m_interpenetrationDepth = _local4;
var _local5 = c1.__get___radius() / (c2.__get___radius() + c1.__get___radius());
_local1.m_approximateTouchPoint = c1._center.GetAdd(_local1.m_delta.GetMultiplyScalar(_local5));
return(_local1);
}
return(null);
}
static function DoIntersectAABAAB(aabb1, aabb2) {
var _local5 = (aabb1.__get___left() <= aabb2.__get___right()) && (aabb1.__get___right() >= aabb2.__get___left());
var _local4 = (aabb1.__get___top() <= aabb2.__get___bottom()) && (aabb1.__get___bottom() >= aabb2.__get___top());
if (_local5 && (_local4)) {
var _local1 = new CCollisionInfo();
_local1.m_delta = aabb1._center.GetSubtract(aabb2.__get___center());
_local1.m_normal = _local1.m_delta.GetNormal();
_local1.m_interpenetrationDepth = undefined;
_local1.m_approximateTouchPoint = undefined;
return(_local1);
}
return(null);
}
static function DoIntersectCircleAAB(circle, aab) {
var _local3 = aab.__get___topLeftCorner();
var _local2 = aab.__get___bottomRightCorner();
var _local5 = new Vector2D(_local2._x, _local3._y);
var _local6 = new Vector2D(_local3._x, _local2._y);
var _local1 = circle.__get___center();
var _local4 = circle.__get___radius();
if ((((_local1._x >= _local3._x) && (_local1._x <= _local2._x)) && (_local1._y >= _local3._y)) && (_local1._y <= _local2._y)) {
return(new CCollisionInfo());
}
var _local10 = IntersectCircleLineSegment(_local1, _local4, _local3, _local5);
var _local9 = IntersectCircleLineSegment(_local1, _local4, _local5, _local2);
var _local8 = IntersectCircleLineSegment(_local1, _local4, _local2, _local6);
var _local7 = IntersectCircleLineSegment(_local1, _local4, _local6, _local3);
if (((_local10 || (_local9)) || (_local8)) || (_local7)) {
return(new CCollisionInfo());
}
return(null);
}
static function DoIntersectLineSegmentLineSegment(segment1, segment2) {
if ((segment1.__get___radius() > 0) || (segment2.__get___radius() > 0)) {
if ((segment1.__get___radius() + segment2.__get___radius()) >= Distance.LineSegmentLineSegment(segment1, segment2)) {
return(new CCollisionInfo());
}
return(null);
}
return(IntersectLineSegmentLineSegment(segment1.m_endpoint1, segment1.m_endpoint2, segment2.m_endpoint1, segment2.m_endpoint2));
}
static function DoIntersectCircleLineSegment(circle, segment) {
if (segment.__get___radius() > 0) {
if (segment.__get___radius() >= Distance.CircleLineSegment(circle, segment)) {
return(new CCollisionInfo());
}
return(null);
}
return(IntersectCircleLineSegment(circle.__get___center(), circle.__get___radius(), segment.m_endpoint1, segment.m_endpoint2));
}
static function DoIntersectAABLineSegment(aab, segment) {
var _local3 = aab.__get___topLeftCorner();
var _local2 = aab.__get___bottomRightCorner();
var _local4 = new Vector2D(_local2._x, _local3._y);
var _local5 = new Vector2D(_local3._x, _local2._y);
if ((((segment.m_endpoint1._x >= _local3._x) && (segment.m_endpoint1._x <= _local2._x)) && (segment.m_endpoint1._y >= _local3._y)) && (segment.m_endpoint1._y <= _local2._y)) {
return(new CCollisionInfo());
}
if ((((segment.m_endpoint2._x >= _local3._x) && (segment.m_endpoint2._x <= _local2._x)) && (segment.m_endpoint2._y >= _local3._y)) && (segment.m_endpoint2._y <= _local2._y)) {
return(new CCollisionInfo());
}
if (segment.__get___radius() > 0) {
var _local9 = new CLineSegment();
_local9.m_endpoint1 = _local3;
_local9.m_endpoint2 = _local4;
var _local8 = new CLineSegment();
_local8.m_endpoint1 = _local4;
_local8.m_endpoint2 = _local2;
var _local7 = new CLineSegment();
_local7.m_endpoint1 = _local2;
_local7.m_endpoint2 = _local5;
var _local6 = new CLineSegment();
_local6.m_endpoint1 = _local5;
_local6.m_endpoint2 = _local3;
var _local13 = DoIntersectLineSegmentLineSegment(segment, _local9);
var _local12 = DoIntersectLineSegmentLineSegment(segment, _local8);
var _local11 = DoIntersectLineSegmentLineSegment(segment, _local7);
var _local10 = DoIntersectLineSegmentLineSegment(segment, _local6);
} else {
var _local13 = IntersectLineSegmentLineSegment(segment.m_endpoint1, segment.m_endpoint2, _local3, _local4);
var _local12 = IntersectLineSegmentLineSegment(segment.m_endpoint1, segment.m_endpoint2, _local4, _local2);
var _local11 = IntersectLineSegmentLineSegment(segment.m_endpoint1, segment.m_endpoint2, _local2, _local5);
var _local10 = IntersectLineSegmentLineSegment(segment.m_endpoint1, segment.m_endpoint2, _local5, _local3);
}
if (((_local13 || (_local12)) || (_local11)) || (_local10)) {
return(new CCollisionInfo());
}
return(null);
}
static function IntersectLineSegmentLineSegment(a1, a2, b1, b2) {
var _local9 = ((b2._x - b1._x) * (a1._y - b1._y)) - ((b2._y - b1._y) * (a1._x - b1._x));
var _local8 = ((a2._x - a1._x) * (a1._y - b1._y)) - ((a2._y - a1._y) * (a1._x - b1._x));
var _local3 = ((b2._y - b1._y) * (a2._x - a1._x)) - ((b2._x - b1._x) * (a2._y - a1._y));
if (_local3 != 0) {
var _local7 = _local9 / _local3;
var _local6 = _local8 / _local3;
if ((((0 <= _local7) && (_local7 <= 1)) && (0 <= _local6)) && (_local6 <= 1)) {
return(new CCollisionInfo());
}
return(null);
}
return(null);
}
static function IntersectCircleLineSegment(c, r, a1, a2) {
var _local8 = ((a2._x - a1._x) * (a2._x - a1._x)) + ((a2._y - a1._y) * (a2._y - a1._y));
var _local3 = 2 * (((a2._x - a1._x) * (a1._x - c._x)) + ((a2._y - a1._y) * (a1._y - c._y)));
var _local10 = (((((c._x * c._x) + (c._y * c._y)) + (a1._x * a1._x)) + (a1._y * a1._y)) - (2 * ((c._x * a1._x) + (c._y * a1._y)))) - (r * r);
var _local7 = (_local3 * _local3) - ((4 * _local8) * _local10);
if (_local7 < 0) {
return(null);
}
if (_local7 == 0) {
return(null);
}
var _local9 = Math.sqrt(_local7);
var _local6 = ((-_local3) + _local9) / (2 * _local8);
var _local5 = ((-_local3) - _local9) / (2 * _local8);
if (((_local6 < 0) || (_local6 > 1)) && ((_local5 < 0) || (_local5 > 1))) {
if (((_local6 < 0) && (_local5 < 0)) || ((_local6 > 1) && (_local5 > 1))) {
return(null);
}
return(new CCollisionInfo());
}
return(new CCollisionInfo());
}
}
Symbol 206 MovieClip [__Packages.CHitTestCollision] Frame 0
class CHitTestCollision extends CCollisionVolume
{
var m_body;
function CHitTestCollision (body) {
super(body);
}
function get _topLeftCorner() {
return(m_body.__get___location());
}
function get _bottomRightCorner() {
return(m_body.__get___location());
}
function MayCollideOnSeparation() {
return(true);
}
}
Symbol 207 MovieClip [__Packages.CCVAxisAlignedBox] Frame 0
class CCVAxisAlignedBox extends CCollisionVolume
{
var m_width, m_height, m_body;
function CCVAxisAlignedBox (body, width, height) {
super(body);
m_width = width;
m_height = height;
if (body) {
if (!width) {
m_width = body._width;
}
if (!height) {
m_height = body._height;
}
}
}
function get _halfWidth() {
return(m_width * 0.5);
}
function get _halfHeight() {
return(m_height * 0.5);
}
function get _boundingRadius() {
return(Math.max(_halfHeight, _halfWidth));
}
function get _center() {
return(m_body.__get___location());
}
function get _topLeftCorner() {
return(new Vector2D(m_body._x - (m_width * 0.5), m_body._y - (m_height * 0.5)));
}
function get _bottomRightCorner() {
return(new Vector2D(m_body._x + (m_width * 0.5), m_body._y + (m_height * 0.5)));
}
function get _left() {
return(m_body._x - (m_width * 0.5));
}
function get _right() {
return(m_body._x + (m_width * 0.5));
}
function get _top() {
return(m_body._y - (m_height * 0.5));
}
function get _bottom() {
return(m_body._y + (m_height * 0.5));
}
function set _topLeftCorner(corner) {
m_width = (m_body._x - corner._x) * 2;
m_height = (m_body._y - corner._y) * 2;
//return(_topLeftCorner);
}
function set _bottomRightCorner(corner) {
m_width = (corner._x - m_body._x) * 2;
m_height = (corner._y - m_body._y) * 2;
//return(_bottomRightCorner);
}
function set _left(value) {
m_width = (m_body._x - value) * 2;
//return(_left);
}
function set _right(value) {
m_width = (value - m_body._x) * 2;
//return(_right);
}
function set _top(value) {
m_height = (m_body._y - value) * 2;
//return(_top);
}
function set _bottom(value) {
m_height = (value - m_body._y) * 2;
//return(_bottom);
}
}
Symbol 208 MovieClip [__Packages.CLineSegment] Frame 0
class CLineSegment extends CCollisionVolume
{
var m_endpoint1, m_endpoint2, m_body;
function CLineSegment (body) {
super(body);
m_endpoint1 = new Vector2D(0, 0);
m_endpoint2 = new Vector2D(0, 0);
}
function UpdateToBodyMotion() {
m_endpoint1 = m_body._location;
m_endpoint2 = m_body._lastLocation;
}
function get _length() {
return(m_endpoint1.GetDistance(m_endpoint2));
}
function get _radius() {
return(m_radius);
}
function set _radius(radius) {
m_radius = radius;
//return(_radius);
}
function get _topLeftCorner() {
return(new Vector2D(Math.min(m_endpoint1._x - m_radius, m_endpoint2._x - m_radius), Math.min(m_endpoint1._y - m_radius, m_endpoint2._y - m_radius)));
}
function get _bottomRightCorner() {
return(new Vector2D(Math.max(m_endpoint1._x + m_radius, m_endpoint2._x + m_radius), Math.max(m_endpoint1._y + m_radius, m_endpoint2._y + m_radius)));
}
function MayCollideOnSeparation() {
return(true);
}
var m_radius = 0;
}
Symbol 209 MovieClip [__Packages.Distance] Frame 0
class Distance
{
function Distance () {
}
static function LineSegmentLineSegment(segment1, segment2) {
return(Math.sqrt(LineSegmentLineSegmentSquared(segment1, segment2)));
}
static function LineSegmentLineSegmentSquared(segment1, segment2) {
var _local21 = segment1.m_endpoint1;
var _local19 = segment1.m_endpoint2;
var _local20 = segment2.m_endpoint1;
var _local18 = segment2.m_endpoint2;
var _local27 = _local21.GetAdd(_local19).GetMultiplyScalar(0.5);
var _local26 = _local20.GetAdd(_local18).GetMultiplyScalar(0.5);
var _local24 = _local19.GetSubtract(_local21).GetNormal();
var _local17 = _local18.GetSubtract(_local20).GetNormal();
var _local9 = segment1.__get___length() * 0.5;
var _local6 = segment2.__get___length() * 0.5;
var _local16 = _local27.GetSubtract(_local26);
var _local11 = -_local24.DotProduct(_local17);
var _local8 = _local16.DotProduct(_local24);
var _local10 = -_local16.DotProduct(_local17);
var _local5 = _local16.MagnitudeSquared();
var _local15 = Math.abs(1 - (_local11 * _local11));
var _local2;
var _local1;
var _local4;
var _local25;
var _local13;
var _local7;
var _local3;
if (_local15 >= 1E-5) {
_local2 = (_local11 * _local10) - _local8;
_local1 = (_local11 * _local8) - _local10;
_local25 = _local9 * _local15;
_local13 = _local6 * _local15;
if (_local2 >= (-_local25)) {
if (_local2 <= _local25) {
if (_local1 >= (-_local13)) {
if (_local1 <= _local13) {
var _local22 = 1 / _local15;
_local2 = _local2 * _local22;
_local1 = _local1 * _local22;
_local4 = ((_local2 * ((_local2 + (_local11 * _local1)) + (2 * _local8))) + (_local1 * (((_local11 * _local2) + _local1) + (2 * _local10)))) + _local5;
} else {
_local1 = _local6;
_local7 = -((_local11 * _local1) + _local8);
if (_local7 < (-_local9)) {
_local2 = -_local9;
_local4 = ((_local2 * (_local2 - (2 * _local7))) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else if (_local7 <= _local9) {
_local2 = _local7;
_local4 = (((-_local2) * _local2) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else {
_local2 = _local9;
_local4 = ((_local2 * (_local2 - (2 * _local7))) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
}
}
} else {
_local1 = -_local6;
_local7 = -((_local11 * _local1) + _local8);
if (_local7 < (-_local9)) {
_local2 = -_local9;
_local4 = ((_local2 * (_local2 - (2 * _local7))) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else if (_local7 <= _local9) {
_local2 = _local7;
_local4 = (((-_local2) * _local2) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else {
_local2 = _local9;
_local4 = ((_local2 * (_local2 - (2 * _local7))) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
}
}
} else if (_local1 >= (-_local13)) {
if (_local1 <= _local13) {
_local2 = _local9;
_local3 = -((_local11 * _local2) + _local10);
if (_local3 < (-_local6)) {
_local1 = -_local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else if (_local3 <= _local6) {
_local1 = _local3;
_local4 = (((-_local1) * _local1) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else {
_local1 = _local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
}
} else {
_local1 = _local6;
_local7 = -((_local11 * _local1) + _local8);
if (_local7 < (-_local9)) {
_local2 = -_local9;
_local4 = ((_local2 * (_local2 - (2 * _local7))) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else if (_local7 <= _local9) {
_local2 = _local7;
_local4 = (((-_local2) * _local2) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else {
_local2 = _local9;
_local3 = -((_local11 * _local2) + _local10);
if (_local3 < (-_local6)) {
_local1 = -_local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else if (_local3 <= _local6) {
_local1 = _local3;
_local4 = (((-_local1) * _local1) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else {
_local1 = _local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
}
}
}
} else {
_local1 = -_local6;
_local7 = -((_local11 * _local1) + _local8);
if (_local7 < (-_local9)) {
_local2 = -_local9;
_local4 = ((_local2 * (_local2 - (2 * _local7))) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else if (_local7 <= _local9) {
_local2 = _local7;
_local4 = (((-_local2) * _local2) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else {
_local2 = _local9;
_local3 = -((_local11 * _local2) + _local10);
if (_local3 > _local6) {
_local1 = _local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else if (_local3 >= (-_local6)) {
_local1 = _local3;
_local4 = (((-_local1) * _local1) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else {
_local1 = -_local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
}
}
}
} else if (_local1 >= (-_local13)) {
if (_local1 <= _local13) {
_local2 = -_local9;
_local3 = -((_local11 * _local2) + _local10);
if (_local3 < (-_local6)) {
_local1 = -_local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else if (_local3 <= _local6) {
_local1 = _local3;
_local4 = (((-_local1) * _local1) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else {
_local1 = _local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
}
} else {
_local1 = _local6;
_local7 = -((_local11 * _local1) + _local8);
if (_local7 > _local9) {
_local2 = _local9;
_local4 = ((_local2 * (_local2 - (2 * _local7))) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else if (_local7 >= (-_local9)) {
_local2 = _local7;
_local4 = (((-_local2) * _local2) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else {
_local2 = -_local9;
_local3 = -((_local11 * _local2) + _local10);
if (_local3 < (-_local6)) {
_local1 = -_local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else if (_local3 <= _local6) {
_local1 = _local3;
_local4 = (((-_local1) * _local1) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else {
_local1 = _local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
}
}
}
} else {
_local1 = -_local6;
_local7 = -((_local11 * _local1) + _local8);
if (_local7 > _local9) {
_local2 = _local9;
_local4 = ((_local2 * (_local2 - (2 * _local7))) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else if (_local7 >= (-_local9)) {
_local2 = _local7;
_local4 = (((-_local2) * _local2) + (_local1 * (_local1 + (2 * _local10)))) + _local5;
} else {
_local2 = -_local9;
_local3 = -((_local11 * _local2) + _local10);
if (_local3 < (-_local6)) {
_local1 = -_local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else if (_local3 <= _local6) {
_local1 = _local3;
_local4 = (((-_local1) * _local1) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
} else {
_local1 = _local6;
_local4 = ((_local1 * (_local1 - (2 * _local3))) + (_local2 * (_local2 + (2 * _local8)))) + _local5;
}
}
}
} else {
var _local14 = _local9 + _local6;
var _local23 = ((_local11 > 0) ? -1 : 1);
var _local12 = -_local8;
if (_local12 < (-_local14)) {
_local12 = -_local14;
} else if (_local12 > _local14) {
_local12 = _local14;
}
_local1 = ((_local23 * _local8) * _local6) / _local14;
_local2 = _local12 + (_local23 * _local1);
_local4 = (_local12 * (_local12 + (2 * _local8))) + _local5;
}
return(Math.abs(_local4));
}
static function Vector2DLineSegment(vector, segment) {
return(Math.sqrt(Vector2DLineSegmentSquared(vector, segment)));
}
static function Vector2DLineSegmentSquared(vector, segment) {
var _local7 = segment.m_endpoint1;
var _local8 = segment.m_endpoint2;
var _local2 = _local7.GetAdd(_local8).GetMultiplyScalar(0.5);
var _local3 = _local8.GetSubtract(_local7).GetNormal();
var _local1 = segment.__get___length() * 0.5;
var _local5 = vector.GetSubtract(_local2);
var _local4 = _local3.DotProduct(_local5);
var _local6;
if ((-_local1) < _local4) {
if (_local4 < _local1) {
_local6 = _local2.GetAdd(_local3.GetMultiplyScalar(_local4));
} else {
_local6 = _local2.GetAdd(_local3.GetMultiplyScalar(_local1));
}
} else {
_local6 = _local2.GetSubtract(_local3.GetMultiplyScalar(_local1));
}
var _local9 = vector;
_local5 = _local6.GetSubtract(_local9);
return(_local5.MagnitudeSquared());
}
static function CircleLineSegment(circle, segment) {
return(Math.sqrt(Vector2DLineSegmentSquared(circle.__get___center(), segment)) - circle.__get___radius());
}
}
Symbol 210 MovieClip [__Packages.CPhitGameCodeCreate] Frame 0
class CPhitGameCodeCreate extends CPhitGame
{
var _arrHostsAwaitingNextOnEnterFrame, _iLevel, _arrFieldHosts, _fieldHost, _field, m_nUpdates, ScaleField, _isFieldSolved, _doneShuffling, attachMovie;
function CPhitGameCodeCreate () {
super();
}
function FirstFrameInitialize() {
_arrHostsAwaitingNextOnEnterFrame = new Array();
_iRetainedStartLevel = _root._iStartLevel;
super.FirstFrameInitialize();
}
function FinishFieldSequence() {
FreshDebug.Trace((("CPhitGameCodeCreate.FinishFieldSequence() _iLevel=" + _iLevel) + ", _iRetainedStartLevel=") + _iRetainedStartLevel);
if (_iRetainedStartLevel != undefined) {
_iLevel = _iRetainedStartLevel;
_iRetainedStartLevel = undefined;
}
FreshDebug.Assert(_iLevel < _arrFieldHosts.length, "_iLevel < _arrFieldHosts.length");
FreshDebug.Trace("using fieldhost " + _iLevel);
_fieldHost = _arrFieldHosts[_iLevel];
_field = _fieldHost._field;
_fieldHost.PlayAppear();
}
function onEnterFrame() {
if ((m_nUpdates > (_createStartWaitUpdate + 2)) && (_arrHostsAwaitingNextOnEnterFrame.length > 0)) {
var _local4 = 0;
while (_local4 < _arrHostsAwaitingNextOnEnterFrame.length) {
var _local3 = _arrHostsAwaitingNextOnEnterFrame[_local4];
_local3.resume(_local3.host, _local3.width, _local3.height);
ScaleField(_local3.host);
_local4++;
}
_arrHostsAwaitingNextOnEnterFrame.splice(0);
FinishFieldSequence();
}
super.onEnterFrame();
}
function StartNextLevel() {
_iLevel++;
FreshDebug.Trace("moving to level " + _iLevel);
_root._presentation.StoreLastPlayedLevel(_iLevel);
if (_arrFieldHosts[_iLevel] != undefined) {
FreshDebug.Trace("Using prebuilt level.");
_fieldHost = _arrFieldHosts[_iLevel];
_field = _fieldHost._field;
_isFieldSolved = false;
_doneShuffling = true;
_fieldHost.PlayAppear();
} else {
StartFieldSequence();
}
}
function CreatePlayingField(iLevel, width, height, resumeFn) {
var _local3 = iLevel;
attachMovie("Field Host", "fieldHost" + _local3, _local3);
var _local2 = CFieldHost(this["fieldHost" + _local3]);
_arrFieldHosts[iLevel] = _local2;
_arrHostsAwaitingNextOnEnterFrame.push({host:_local2, resume:resumeFn, width:width, height:height});
FreshDebug.Assert(_local2 != undefined, "_fieldHost != undefined");
FreshDebug.Assert(_local2._field != undefined, "_fieldHost._field != undefined");
_doneShuffling = true;
_isFieldSolved = false;
return(_local2._field);
}
function StartFieldSequence() {
var _local4 = "StartCreatingLevel" + _iLevel;
if ((_root[_local4] != undefined) && (_root[_local4] instanceof Function)) {
FreshDebug.Trace("Using creation function " + _local4);
_createStartWaitUpdate = m_nUpdates;
_root[_local4]();
} else {
FreshDebug.Trace("Found no creation function " + _local4);
super.StartFieldSequence();
}
}
var _createStartWaitUpdate = 10000000;
var _iRetainedStartLevel = undefined;
}
Symbol 211 MovieClip [__Packages.CMenuPickLevel] Frame 0
class CMenuPickLevel extends CMovieClipFresh
{
var stop, _buttonBack, _buttonJump, _skipLevelButtonHost;
function CMenuPickLevel () {
super();
(stop());// not popped
}
function FirstFrameInitialize() {
_buttonBack.Initialize("Back", OnBack);
_buttonJump.Initialize("Play", OnJump);
_buttonJump.SetEnabled(false);
var _local10 = 350;
var _local3 = _local10 / 10;
var _local2 = 1;
while (_local2 <= 10) {
_skipLevelButtonHost.attachMovie("Skip Level Button", "_button" + _skipLevelButtonHost.getNextHighestDepth(), _skipLevelButtonHost.getNextHighestDepth(), {_iLevel:_local2, _x:_local3 * (_local2 - 1), _y:0, _xscale:60, _yscale:60});
_local2++;
}
var _local9 = 60;
_local2 = 1;
_skipLevelButtonHost.attachMovie("Skip Level Button", "_button" + _skipLevelButtonHost.getNextHighestDepth(), _skipLevelButtonHost.getNextHighestDepth(), {_iLevel:15, _x:_local3 * (_local2 - 1), _y:_local9, _xscale:60, _yscale:60});
_local2 = 2;
while (_local2 <= 10) {
_skipLevelButtonHost.attachMovie("Skip Level Button", "_button" + _skipLevelButtonHost.getNextHighestDepth(), _skipLevelButtonHost.getNextHighestDepth(), {_iLevel:_local2 * 10, _x:_local3 * (_local2 - 1), _y:_local9, _xscale:60, _yscale:60});
_local2++;
}
}
function onEnterFrame() {
super.onEnterFrame();
_buttonJump.SetEnabled(int(_root._strJumpLevel) >= 1);
}
function OnBack() {
_root._mainMenu.gotoAndPlay("from pick level");
}
function OnJump() {
_root._iStartLevel = int(_root._strJumpLevel) - 1;
_root._mainMenu.gotoAndPlay("dismiss pick");
}
}
Symbol 212 MovieClip [__Packages.CPhitMenu] Frame 0
class CPhitMenu extends CMovieClipFresh
{
var gotoAndPlay, _buttonBegin, _buttonPickLevel, _buttonResume, _buttonArmor, stop;
function CPhitMenu () {
super();
_root._mainMenu = this;
(gotoAndPlay("appear"));// not popped
}
function FirstFrameInitialize() {
_buttonBegin.Initialize("Begin!", OnBegin);
_buttonPickLevel.Initialize("More Games...", OnMoreGames);
_buttonResume.Initialize("Skip to level...", OnPick);
var _local3 = CPhitPresentation(_root._presentation).GetLastPlayedLevel();
if (_local3 != undefined) {
_buttonArmor.Initialize("Resume level " + (_local3 + 1), OnResume);
} else {
_buttonArmor.SetEnabled(false);
}
}
function FixupButtons() {
FirstFrameInitialize();
}
function OnAppearDone() {
(stop());// not popped
}
function OnMoreGames() {
FreshDebug.Trace("CPhitMenu.OnMoreGames");
_root.getURL("http://www.armorgames.com/", "_blank");
}
function OnBegin() {
FreshDebug.Trace("CPhitMenu.OnBegin");
_root._iStartLevel = 0;
_root._mainMenu.gotoAndPlay("dismiss");
}
function OnDismissDone() {
_root._presentation.gotoAndStop("play");
}
function OnPick() {
FreshDebug.Trace("CPhitMenu.OnPick");
_root._mainMenu.gotoAndPlay("to pick level");
}
function OnToPickTransitionDone() {
(stop());// not popped
}
function OnResume() {
FreshDebug.Trace("CPhitMenu.OnResume");
_root._iStartLevel = CPhitPresentation(_root._presentation).GetLastPlayedLevel();
_root._mainMenu.gotoAndPlay("dismiss");
}
}
Symbol 213 MovieClip [__Packages.CPhitPresentation] Frame 0
class CPhitPresentation extends CMovieClipFresh
{
var gotoAndStop, _soundSystem;
function CPhitPresentation () {
super();
_root._strVer = "1.1.0";
FreshFramework.__set___isRunningLocally(false);
FreshFramework.__set___isRunningLocalRemoteDebug(false);
_global._dbgTraceEnabled = false;
_global._dbgAssertEnabled = false;
_root.random = new CRandom(2);
(gotoAndStop("intro"));// not popped
_soundSystem = new CFreshSoundSystem(this);
_soundSystem.SetSpatialPanParameters(240, 480);
}
function FirstFrameInitialize() {
FreshDebug.Trace("ver. " + _root._strVer);
}
function GetLastPlayedLevel() {
var _local1 = SharedObject.getLocal("phit");
return(_local1.data._iLevelLastPlayed);
}
function StoreLastPlayedLevel(iLevel) {
var _local1 = SharedObject.getLocal("phit");
_local1.data._iLevelLastPlayed = iLevel;
_local1.flush();
}
}
Symbol 214 MovieClip [__Packages.CFreshSoundSystem] Frame 0
class CFreshSoundSystem
{
var m_masterSound, m_arrSounds, m_globalSoundHost, m_panCenterX, m_panWidthX;
function CFreshSoundSystem (soundHost) {
m_masterSound = new Sound();
m_masterSound.setVolume(m_masterVolume);
m_arrSounds = new Array();
m_globalSoundHost = soundHost;
_root.g_freshSoundSystem = this;
}
static function GetInstance() {
return(_root.g_freshSoundSystem);
}
function SetSpatialPanParameters(centerX, widthX) {
m_panCenterX = centerX;
m_panWidthX = widthX;
}
function SetMasterVolume(volume) {
volume = MathUtil.Clamp(volume, 0, 100);
m_masterVolume = volume;
if (!m_isMuted) {
m_masterSound.setVolume(m_masterVolume);
}
}
function IsMuted() {
return(m_isMuted);
}
function SetMuted(muted) {
m_isMuted = muted;
if (m_isMuted) {
m_masterSound.setVolume(0);
} else {
m_masterSound.setVolume(m_masterVolume);
}
}
function GetHostedSoundId(soundId, hostMC) {
return((soundId + "~!~") + hostMC._name);
}
function PlaySound(soundId, hostMC, panX, nTimesToLoop, offsetSeconds) {
FreshDebug.Assert((soundId != undefined) && (soundId.length > 0), "soundId");
if (offsetSeconds == undefined) {
offsetSeconds = 0;
}
var _local2 = m_arrSounds[soundId];
if (!_local2) {
var _local4;
if (m_globalSoundHost) {
_local4 = m_globalSoundHost.createEmptyMovieClip("_soundHost" + m_globalSoundHost.getNextHighestDepth(), m_globalSoundHost.getNextHighestDepth());
}
_local2 = new Sound(_local4);
_local2.attachSound(soundId);
m_arrSounds[soundId] = _local2;
}
_local2.start(offsetSeconds, nTimesToLoop);
if (panX) {
SetSpatialPan(_local2, panX);
}
return(_local2);
}
function SetSpatialPan(theSound, panX) {
FreshDebug.Assert(theSound != undefined, "SetSpatialPan(): theSound != undefined");
var _local2 = MathUtil.Clamp((((panX - m_panCenterX) / m_panWidthX) * 0.5) * 100, -100, 100);
theSound.setPan(_local2);
}
function StopSound(soundId, hostMC) {
var _local2 = m_arrSounds[soundId];
if (!_local2) {
return(undefined);
}
_local2.stop(soundId);
}
function StopAllSounds() {
stopAllSounds();
}
var m_isMuted = false;
var m_masterVolume = 100;
}
Symbol 215 MovieClip [__Packages.CRandom] Frame 0
class CRandom
{
function CRandom (seed) {
if (seed != undefined) {
SetSeed(seed);
}
}
function SetSeed(seed) {
_seed = seed;
}
function GetRandom(Void) {
_seed = ((_seed * 9301) + 49297) % 233280;
return(_seed / 233280);
}
function GetNumInRange(bottom, top) {
return(bottom + (GetRandom() * ((top - bottom) + 1)));
}
function GetIntInRange(bottom, top) {
return(int(bottom + (GetRandom() * ((top - bottom) + 1))));
}
function GetBoolean(Void) {
return(GetRandom() < 0.5);
}
var _seed = 0;
}