Section 1
//Bad_13 (Fixed_trueself_fla.Bad_13)
package Fixed_trueself_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Bad_13 extends MovieClip {
public var Leave_btn:SimpleButton;
public function Bad_13(){
addFrameScript(54, frame55);
}
public function urlbuttonClickHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.retrosabotage.com"), "_self");
}
function frame55(){
Leave_btn.addEventListener(MouseEvent.CLICK, urlbuttonClickHandler);
stop();
}
}
}//package Fixed_trueself_fla
Section 2
//CartonStart_17 (Fixed_trueself_fla.CartonStart_17)
package Fixed_trueself_fla {
import flash.events.*;
import flash.display.*;
public dynamic class CartonStart_17 extends MovieClip {
public var cartonstartbtn:SimpleButton;
public function CartonStart_17(){
addFrameScript(0, frame1, 1, frame2);
}
public function CartonbuttonClickHandler(_arg1:MouseEvent):void{
play();
}
function frame1(){
cartonstartbtn.addEventListener(MouseEvent.CLICK, CartonbuttonClickHandler);
stop();
}
function frame2(){
stop();
}
}
}//package Fixed_trueself_fla
Section 3
//Cine_11 (Fixed_trueself_fla.Cine_11)
package Fixed_trueself_fla {
import flash.display.*;
public dynamic class Cine_11 extends MovieClip {
public var Dummy:MovieClip;
}
}//package Fixed_trueself_fla
Section 4
//Game_3 (Fixed_trueself_fla.Game_3)
package Fixed_trueself_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Game_3 extends MovieClip {
public var Joueur:MovieClip;
public var Gloup:eatplus;
public var MetaPhase:int;
public var TimeCounter:int;
public var GhostAble:Boolean;
public var Starter:MovieClip;
public var JoueurD:JoueurDie;
public var frenzy:Boolean;
public var Ghost:MovieClip;
public var JoueurX:int;
public var JoueurY:int;
public var GPop:MovieClip;
public var once:Boolean;
public var FTimer:MovieClip;
public var BadEnd:MovieClip;
public var GoodEnd:MovieClip;
public var Ghosting:Boolean;
public var Cinema:MovieClip;
public var TestVariable:int;
public var TheGrid:Array;
public var Phase:int;
public var LastDirection:int;
public var WantedDirection:int;
public var ActualDirection:int;
public var TheCartonStart:MovieClip;
public var PopTimer:MovieClip;
public var GhostAlive:Boolean;
public var Glop:Eat;
public var Congrats:MovieClip;
public var PreFreezeDirection:int;
public var GhostK:GhostKill;
public var ThePacgommeHolder:MovieClip;
public var GhostX:int;
public var GhostY:int;
public var PacCount:int;
public var GhostDirection:int;
public var DotsRestants:int;
public var JoueurAlive:Boolean;
public var GhostCount:int;
public var Bah:Sprite;
public function Game_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
Bah = new Sprite();
GhostK = new GhostKill();
JoueurD = new JoueurDie();
Glop = new Eat();
Gloup = new eatplus();
BadEnd.stop();
GoodEnd.stop();
Cinema.stop();
stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyboardHandler);
stage.addEventListener(Event.ENTER_FRAME, mazerefresher);
}
public function KeyboardHandler(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case Keyboard.RIGHT:
WantedDirection = 1;
break;
case Keyboard.LEFT:
WantedDirection = 2;
break;
case Keyboard.UP:
WantedDirection = 3;
break;
case Keyboard.DOWN:
WantedDirection = 4;
break;
};
}
public function mazerefresher(_arg1:Event):void{
switch (MetaPhase){
case 1:
Cinema.Dummy.x = Ghost.x;
Cinema.Dummy.y = Ghost.y;
Cinema.play();
if (Cinema.currentFrame == (Cinema.totalFrames - 1)){
MetaPhase = 2;
GhostAble = true;
Phase = 0;
Cinema.Dummy.x = 1000;
Cinema.Dummy.y = 1000;
};
break;
case 3:
if (BadEnd.currentFrame == BadEnd.totalFrames){
BadEnd.stop();
};
if (GoodEnd.currentFrame == GoodEnd.totalFrames){
GoodEnd.stop();
};
break;
default:
if (Cinema.currentFrame == Cinema.totalFrames){
Cinema.gotoAndStop(1);
};
if (Phase == 0){
TheGrid = new Array();
frenzy = false;
WantedDirection = 0;
ActualDirection = 0;
GhostDirection = 0;
Congrats.gotoAndStop(1);
PopTimer.gotoAndStop(1);
FTimer.gotoAndStop(1);
Starter.gotoAndStop(1);
GPop.gotoAndStop(1);
Joueur.gotoAndStop(1);
Ghost.gotoAndStop(1);
GhostX = 1000;
GhostY = 1000;
JoueurX = 182;
JoueurY = 358;
TheGrid.push({xcoord:1, ycoord:1, contenu:1, intersection:true, droite:true, gauche:false, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:2, ycoord:1, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:3, ycoord:1, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:4, ycoord:1, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:1, contenu:1, intersection:true, droite:true, gauche:true, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:6, ycoord:1, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:1, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:8, ycoord:1, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:1, contenu:1, intersection:true, droite:false, gauche:true, haut:false, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:1, contenu:1, intersection:true, droite:true, gauche:false, haut:false, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:12, ycoord:1, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:1, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:14, ycoord:1, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:1, contenu:1, intersection:true, droite:true, gauche:true, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:16, ycoord:1, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:17, ycoord:1, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:18, ycoord:1, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:1, contenu:1, intersection:true, droite:false, gauche:true, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:2, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:3, contenu:2, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:4, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:2, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:3, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:4, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:2, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:3, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:4, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:2, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:3, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:4, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:2, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:3, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:4, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:2, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:3, contenu:2, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:4, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:5, contenu:1, intersection:true, droite:true, gauche:false, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:2, ycoord:5, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:3, ycoord:5, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:true});
TheGrid.push({xcoord:4, ycoord:5, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:5, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:6, ycoord:5, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:5, contenu:1, intersection:true, droite:true, gauche:true, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:8, ycoord:5, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:5, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:10, ycoord:5, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:5, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:12, ycoord:5, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:5, contenu:1, intersection:true, droite:true, gauche:true, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:14, ycoord:5, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:5, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:16, ycoord:5, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:17, ycoord:5, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:true});
TheGrid.push({xcoord:18, ycoord:5, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:5, contenu:1, intersection:true, droite:false, gauche:true, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:6, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:7, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:6, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:7, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:6, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:7, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:6, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:7, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:6, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:7, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:6, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:7, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:8, contenu:1, intersection:true, droite:true, gauche:false, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:2, ycoord:8, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:3, ycoord:8, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:4, ycoord:8, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:8, contenu:1, intersection:true, droite:false, gauche:true, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:8, contenu:1, intersection:true, droite:true, gauche:false, haut:true, bas:false, gdroite:false, ggauche:true, ghaut:false, gbas:true});
TheGrid.push({xcoord:8, ycoord:8, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:8, contenu:1, intersection:true, droite:false, gauche:true, haut:false, bas:true, gdroite:true, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:11, ycoord:8, contenu:1, intersection:true, droite:true, gauche:false, haut:false, bas:true, gdroite:false, ggauche:true, ghaut:true, gbas:false});
TheGrid.push({xcoord:12, ycoord:8, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:8, contenu:1, intersection:true, droite:false, gauche:true, haut:true, bas:false, gdroite:true, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:15, ycoord:8, contenu:1, intersection:true, droite:true, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:16, ycoord:8, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:17, ycoord:8, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:18, ycoord:8, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:8, contenu:1, intersection:true, droite:false, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:9, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:10, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:11, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:12, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:13, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:14, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:15, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:16, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:17, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:9, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:9, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:9, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:10, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:11, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:12, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:13, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:14, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:15, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:16, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:17, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:10, contenu:0, intersection:true, droite:true, gauche:false, haut:false, bas:true, gdroite:false, ggauche:true, ghaut:true, gbas:false});
TheGrid.push({xcoord:8, ycoord:10, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:10, contenu:0, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:10, ycoord:10, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:10, contenu:0, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:12, ycoord:10, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:10, contenu:0, intersection:true, droite:false, gauche:true, haut:false, bas:true, gdroite:true, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:7, ycoord:11, contenu:0, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:12, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:13, contenu:0, intersection:true, droite:false, gauche:true, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:14, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:15, contenu:0, intersection:true, droite:true, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:16, contenu:0, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:17, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:11, contenu:0, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:12, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:13, contenu:0, intersection:true, droite:true, gauche:false, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:14, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:15, contenu:0, intersection:true, droite:false, gauche:true, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:16, contenu:0, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:17, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:13, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:2, ycoord:13, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:3, ycoord:13, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:4, ycoord:13, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:6, ycoord:13, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:14, ycoord:13, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:16, ycoord:13, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:17, ycoord:13, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:18, ycoord:13, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:13, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:8, ycoord:15, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:15, contenu:0, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:10, ycoord:15, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:15, contenu:0, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:12, ycoord:15, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:18, contenu:1, intersection:true, droite:true, gauche:false, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:2, ycoord:18, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:3, ycoord:18, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:4, ycoord:18, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:18, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:6, ycoord:18, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:18, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:8, ycoord:18, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:18, contenu:1, intersection:true, droite:false, gauche:true, haut:false, bas:true, gdroite:true, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:11, ycoord:18, contenu:1, intersection:true, droite:true, gauche:false, haut:false, bas:true, gdroite:false, ggauche:true, ghaut:true, gbas:false});
TheGrid.push({xcoord:12, ycoord:18, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:18, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:14, ycoord:18, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:18, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:16, ycoord:18, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:17, ycoord:18, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:18, ycoord:18, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:18, contenu:1, intersection:true, droite:false, gauche:true, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:19, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:19, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:19, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:19, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:19, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:19, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:20, contenu:2, intersection:true, droite:true, gauche:false, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:2, ycoord:20, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:3, ycoord:20, contenu:1, intersection:true, droite:false, gauche:true, haut:false, bas:true, gdroite:true, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:5, ycoord:20, contenu:1, intersection:true, droite:true, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:6, ycoord:20, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:20, contenu:1, intersection:true, droite:true, gauche:true, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:8, ycoord:20, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:20, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:10, ycoord:20, contenu:0, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:20, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:12, ycoord:20, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:20, contenu:1, intersection:true, droite:true, gauche:true, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:14, ycoord:20, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:20, contenu:1, intersection:true, droite:false, gauche:true, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:17, ycoord:20, contenu:1, intersection:true, droite:true, gauche:false, haut:false, bas:true, gdroite:false, ggauche:true, ghaut:true, gbas:false});
TheGrid.push({xcoord:18, ycoord:20, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:20, contenu:2, intersection:true, droite:false, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:3, ycoord:21, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:3, ycoord:22, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:21, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:5, ycoord:22, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:21, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:22, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:21, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:22, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:21, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:true, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:22, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:17, ycoord:21, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:true, ghaut:false, gbas:false});
TheGrid.push({xcoord:17, ycoord:22, contenu:1, intersection:false, droite:false, gauche:false, haut:true, bas:true, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:23, contenu:1, intersection:true, droite:true, gauche:false, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:2, ycoord:23, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:3, ycoord:23, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:4, ycoord:23, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:5, ycoord:23, contenu:1, intersection:true, droite:false, gauche:true, haut:true, bas:false, gdroite:true, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:7, ycoord:23, contenu:1, intersection:true, droite:true, gauche:false, haut:true, bas:false, gdroite:false, ggauche:true, ghaut:false, gbas:true});
TheGrid.push({xcoord:8, ycoord:23, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:23, contenu:1, intersection:true, droite:false, gauche:true, haut:false, bas:true, gdroite:true, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:11, ycoord:23, contenu:1, intersection:true, droite:true, gauche:false, haut:false, bas:true, gdroite:false, ggauche:true, ghaut:true, gbas:false});
TheGrid.push({xcoord:12, ycoord:23, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:23, contenu:1, intersection:true, droite:false, gauche:true, haut:true, bas:false, gdroite:true, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:15, ycoord:23, contenu:1, intersection:true, droite:true, gauche:false, haut:true, bas:false, gdroite:false, ggauche:true, ghaut:false, gbas:true});
TheGrid.push({xcoord:16, ycoord:23, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:17, ycoord:23, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:true});
TheGrid.push({xcoord:18, ycoord:23, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:23, contenu:1, intersection:true, droite:false, gauche:true, haut:false, bas:true, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:1, ycoord:24, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:24, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:24, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:24, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:1, ycoord:25, contenu:1, intersection:true, droite:true, gauche:false, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:2, ycoord:25, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:3, ycoord:25, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:4, ycoord:25, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:5, ycoord:25, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:6, ycoord:25, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:7, ycoord:25, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:8, ycoord:25, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:9, ycoord:25, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:10, ycoord:25, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:11, ycoord:25, contenu:1, intersection:true, droite:true, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:12, ycoord:25, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:13, ycoord:25, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:14, ycoord:25, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:15, ycoord:25, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:16, ycoord:25, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:17, ycoord:25, contenu:1, intersection:false, droite:true, gauche:true, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:true, gbas:false});
TheGrid.push({xcoord:18, ycoord:25, contenu:1, intersection:false, droite:false, gauche:false, haut:false, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
TheGrid.push({xcoord:19, ycoord:25, contenu:1, intersection:true, droite:false, gauche:true, haut:true, bas:false, gdroite:false, ggauche:false, ghaut:false, gbas:false});
if (TheCartonStart.currentFrame == TheCartonStart.totalFrames){
Phase = 1;
};
};
switch (ActualDirection){
case 1:
JoueurX = (JoueurX + 4);
if (Joueur.currentFrame > 4){
Joueur.gotoAndStop(1);
};
Joueur.play();
break;
case 2:
JoueurX = (JoueurX - 4);
if ((((Joueur.currentFrame < 5)) || ((Joueur.currentFrame > 8)))){
Joueur.gotoAndStop(5);
};
Joueur.play();
break;
case 3:
JoueurY = (JoueurY - 4);
if ((((Joueur.currentFrame < 9)) || ((Joueur.currentFrame > 12)))){
Joueur.gotoAndStop(9);
};
Joueur.play();
break;
case 4:
JoueurY = (JoueurY + 4);
if ((((Joueur.currentFrame < 13)) || ((Joueur.currentFrame > 16)))){
Joueur.gotoAndStop(13);
};
Joueur.play();
break;
default:
switch (LastDirection){
case 1:
if (Joueur.currentFrame > 4){
Joueur.gotoAndStop(4);
} else {
Joueur.stop();
};
break;
case 2:
if (Joueur.currentFrame > 8){
Joueur.gotoAndStop(8);
} else {
Joueur.stop();
};
break;
case 3:
if (Joueur.currentFrame > 12){
Joueur.gotoAndStop(12);
} else {
Joueur.stop();
};
break;
case 4:
if (Joueur.currentFrame > 16){
Joueur.gotoAndStop(16);
} else {
Joueur.stop();
};
break;
};
break;
};
switch (GhostDirection){
case 1:
if (frenzy){
Ghost.gotoAndStop(5);
GhostX = (GhostX + 2);
} else {
if (Ghosting){
Ghost.gotoAndStop(7);
} else {
Ghost.gotoAndStop(1);
};
GhostX = (GhostX + 4);
};
break;
case 2:
if (frenzy){
Ghost.gotoAndStop(5);
GhostX = (GhostX - 2);
} else {
if (Ghosting){
Ghost.gotoAndStop(8);
} else {
Ghost.gotoAndStop(2);
};
GhostX = (GhostX - 4);
};
break;
case 3:
if (frenzy){
Ghost.gotoAndStop(5);
GhostY = (GhostY - 2);
} else {
if (Ghosting){
Ghost.gotoAndStop(9);
} else {
Ghost.gotoAndStop(3);
};
GhostY = (GhostY - 4);
};
break;
case 4:
if (frenzy){
Ghost.gotoAndStop(5);
GhostY = (GhostY + 2);
} else {
if (Ghosting){
Ghost.gotoAndStop(10);
} else {
Ghost.gotoAndStop(4);
};
GhostY = (GhostY + 4);
};
break;
default:
if (!GhostAlive){
Ghost.gotoAndStop(6);
};
break;
};
if (JoueurX == 330){
JoueurX = 38;
};
if (JoueurX == 34){
JoueurX = 326;
};
if (GhostX == 330){
GhostX = 38;
};
if (GhostX == 34){
GhostX = 326;
};
Joueur.x = JoueurX;
Joueur.y = JoueurY;
Ghost.x = GhostX;
Ghost.y = GhostY;
switch (WantedDirection){
case 1:
if (ActualDirection == 2){
ActualDirection = 1;
};
break;
case 2:
if (ActualDirection == 1){
ActualDirection = 2;
};
break;
case 3:
if (ActualDirection == 4){
ActualDirection = 3;
};
break;
case 4:
if (ActualDirection == 3){
ActualDirection = 4;
};
break;
};
switch (Phase){
case 1:
Ghosting = false;
Starter.play();
if (Starter.currentFrame == Starter.totalFrames){
Starter.gotoAndStop(1);
Phase++;
GPop.play();
JoueurAlive = true;
ActualDirection = 1;
};
break;
case 2:
if (PopTimer.currentFrame == PopTimer.totalFrames){
GPop.play();
PopTimer.gotoAndStop(1);
};
if (GPop.currentFrame == GPop.totalFrames){
GPop.gotoAndStop(1);
Ghost.gotoAndStop(3);
GhostX = 182;
GhostY = 198;
Ghost.x = GhostX;
Ghost.y = GhostY;
GhostAlive = true;
GhostDirection = (1 + Math.round(Math.random()));
};
if (DotsRestants == 0){
Phase = 5;
GhostDirection = 0;
ActualDirection = 0;
Joueur.stop();
JoueurAlive = false;
GhostAlive = false;
PopTimer.stop();
FTimer.stop();
GPop.stop();
Congrats.play();
};
if ((((((((6 > Math.abs((GhostX - JoueurX)))) && ((6 > Math.abs((GhostY - JoueurY)))))) && (GhostAlive))) && (JoueurAlive))){
if (frenzy){
GhostAlive = false;
Ghost.gotoAndStop(6);
GhostDirection = 0;
Joueur.stop();
PreFreezeDirection = ActualDirection;
ActualDirection = 0;
LastDirection = 0;
Phase = 3;
GhostK.play();
JoueurAlive = false;
} else {
Joueur.gotoAndPlay(17);
ActualDirection = 0;
LastDirection = 0;
JoueurAlive = false;
Phase = 4;
};
};
break;
case 3:
Ghosting = false;
PopTimer.play();
TimeCounter++;
if (TimeCounter == 10){
JoueurAlive = true;
GhostX = 1000;
GhostY = 1000;
TimeCounter = 0;
ActualDirection = PreFreezeDirection;
Phase = 2;
if ((((MetaPhase == 2)) && ((GhostCount > 3)))){
BadEnd.play();
MetaPhase = 3;
};
};
break;
case 4:
if (Joueur.currentFrame == Joueur.totalFrames){
Joueur.gotoAndStop(1);
Phase = 1;
GhostDirection = 0;
GhostX = 1000;
GhostY = 1000;
JoueurX = 182;
JoueurY = 358;
Joueur.x = JoueurX;
Joueur.y = JoueurY;
ActualDirection = 0;
WantedDirection = 0;
if ((((MetaPhase == 2)) && ((GhostCount > 3)))){
GoodEnd.play();
MetaPhase = 3;
};
};
break;
case 5:
if (Congrats.currentFrame == Congrats.totalFrames){
if ((((MetaPhase == 2)) && ((GhostCount > 3)))){
BadEnd.play();
MetaPhase = 3;
} else {
Congrats.gotoAndStop(1);
Phase = 0;
};
};
break;
};
while (Bah.numChildren > 0) {
Bah.removeChildAt((Bah.numChildren - 1));
if (Bah == null){
break;
};
};
DotsRestants = 0;
if (FTimer.currentFrame == FTimer.totalFrames){
frenzy = false;
FTimer.gotoAndStop(1);
if (((((GhostX - 22) % 4)) || (((GhostY - 38) % 4)))){
switch (GhostDirection){
case 1:
GhostX = (GhostX - 2);
break;
case 2:
GhostX = (GhostX + 2);
break;
case 3:
GhostY = (GhostY + 2);
break;
case 4:
GhostY = (GhostY - 2);
break;
};
};
};
TheGrid.forEach(GridDrawer);
ThePacgommeHolder.addChildAt(Bah, 0);
if (((((((((frenzy) && (GhostAlive))) && ((MetaPhase == 0)))) && ((PacCount > 1)))) && ((FTimer.currentFrame > 20)))){
MetaPhase = 1;
Joueur.stop();
};
break;
};
}
public function GridDrawer(_arg1, _arg2:int, _arg3:Array):void{
var _local4:Array;
var _local5:*;
var _local6:*;
if (GhostAlive){
if ((((GhostX == (22 + (_arg1.xcoord * 16)))) && ((GhostY == (38 + (_arg1.ycoord * 16)))))){
_local4 = new Array();
if (frenzy){
if (((_arg1.droite) && (!((GhostDirection == 2))))){
_local4.push(1);
if (JoueurX < GhostX){
_local4.push(1);
_local4.push(1);
};
};
if (((_arg1.gauche) && (!((GhostDirection == 1))))){
_local4.push(2);
if (JoueurX > GhostX){
_local4.push(2);
_local4.push(2);
};
};
if (((_arg1.haut) && (!((GhostDirection == 4))))){
_local4.push(3);
if (JoueurY > GhostY){
_local4.push(3);
_local4.push(3);
};
};
if (((_arg1.bas) && (!((GhostDirection == 3))))){
_local4.push(4);
if (JoueurY < GhostY){
_local4.push(4);
_local4.push(4);
};
};
if (GhostAble){
if (((_arg1.gdroite) && (!((GhostDirection == 2))))){
_local4.push(1);
if (JoueurX < GhostX){
_local4.push(1);
};
};
if (((_arg1.ggauche) && (!((GhostDirection == 1))))){
_local4.push(2);
if (JoueurX > GhostX){
_local4.push(2);
};
};
if (((_arg1.ghaut) && (!((GhostDirection == 4))))){
_local4.push(3);
if (JoueurY > GhostY){
_local4.push(3);
};
};
if (((_arg1.gbas) && (!((GhostDirection == 3))))){
_local4.push(4);
if (JoueurY < GhostY){
_local4.push(4);
};
};
};
} else {
if (((_arg1.droite) && (!((GhostDirection == 2))))){
_local4.push(1);
if (JoueurX > GhostX){
_local4.push(1);
};
};
if (((_arg1.gauche) && (!((GhostDirection == 1))))){
_local4.push(2);
if (JoueurX < GhostX){
_local4.push(2);
};
};
if (((_arg1.haut) && (!((GhostDirection == 4))))){
_local4.push(3);
if (JoueurY < GhostY){
_local4.push(3);
};
};
if (((_arg1.bas) && (!((GhostDirection == 3))))){
_local4.push(4);
if (JoueurY > GhostY){
_local4.push(4);
};
};
if (GhostAble){
if (((_arg1.gdroite) && (!((GhostDirection == 2))))){
_local4.push(1);
if (JoueurX > GhostX){
_local4.push(1);
};
};
if (((_arg1.ggauche) && (!((GhostDirection == 1))))){
_local4.push(2);
if (JoueurX < GhostX){
_local4.push(2);
};
};
if (((_arg1.ghaut) && (!((GhostDirection == 4))))){
_local4.push(3);
if (JoueurY < GhostY){
_local4.push(3);
};
};
if (((_arg1.gbas) && (!((GhostDirection == 3))))){
_local4.push(4);
if (JoueurY > GhostY){
_local4.push(4);
};
};
};
};
if (_local4.length > 0){
GhostDirection = _local4[Math.round(((_local4.length - 1) * Math.random()))];
switch (GhostDirection){
case 1:
if (_arg1.gdroite){
Ghosting = true;
GhostCount++;
} else {
Ghosting = false;
};
break;
case 2:
if (_arg1.ggauche){
Ghosting = true;
GhostCount++;
} else {
Ghosting = false;
};
break;
case 3:
if (_arg1.ghaut){
Ghosting = true;
GhostCount++;
} else {
Ghosting = false;
};
break;
case 4:
if (_arg1.gbas){
Ghosting = true;
GhostCount++;
} else {
Ghosting = false;
};
break;
};
};
};
};
if ((((JoueurX == (22 + (_arg1.xcoord * 16)))) && ((JoueurY == (38 + (_arg1.ycoord * 16)))))){
if (JoueurAlive){
switch (_arg1.contenu){
case 1:
_arg1.contenu = 0;
Glop.play();
break;
case 2:
frenzy = true;
FTimer.gotoAndPlay(2);
_arg1.contenu = 0;
Gloup.play();
PacCount++;
break;
};
};
if (_arg1.intersection){
if (JoueurAlive){
switch (WantedDirection){
case 1:
if (_arg1.droite){
ActualDirection = WantedDirection;
};
break;
case 2:
if (_arg1.gauche){
ActualDirection = WantedDirection;
};
break;
case 3:
if (_arg1.haut){
ActualDirection = WantedDirection;
};
break;
case 4:
if (_arg1.bas){
ActualDirection = WantedDirection;
};
break;
};
switch (ActualDirection){
case 1:
if (!_arg1.droite){
LastDirection = ActualDirection;
ActualDirection = 0;
};
break;
case 2:
if (!_arg1.gauche){
LastDirection = ActualDirection;
ActualDirection = 0;
};
break;
case 3:
if (!_arg1.haut){
LastDirection = ActualDirection;
ActualDirection = 0;
};
break;
case 4:
if (!_arg1.bas){
LastDirection = ActualDirection;
ActualDirection = 0;
};
break;
};
};
};
};
switch (_arg1.contenu){
case 1:
_local5 = new dot();
_local5.x = (22 + (_arg1.xcoord * 16));
_local5.y = (38 + (_arg1.ycoord * 16));
Bah.addChild(_local5);
DotsRestants++;
break;
case 2:
_local6 = new pacgomme();
_local6.x = (22 + (_arg1.xcoord * 16));
_local6.y = (38 + (_arg1.ycoord * 16));
Bah.addChild(_local6);
DotsRestants++;
break;
};
}
}
}//package Fixed_trueself_fla
Section 5
//Good_16 (Fixed_trueself_fla.Good_16)
package Fixed_trueself_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Good_16 extends MovieClip {
public var Leave_btn:SimpleButton;
public function Good_16(){
addFrameScript(55, frame56);
}
public function urlbuttonClickHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.retrosabotage.com"), "_self");
}
function frame56(){
Leave_btn.addEventListener(MouseEvent.CLICK, urlbuttonClickHandler);
stop();
}
}
}//package Fixed_trueself_fla
Section 6
//MainTimeline (Fixed_trueself_fla.MainTimeline)
package Fixed_trueself_fla {
import flash.display.*;
public dynamic class MainTimeline extends MovieClip {
public var TheGame:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
}
function frame2(){
stop();
}
}
}//package Fixed_trueself_fla
Section 7
//dot (dot)
package {
import flash.display.*;
public dynamic class dot extends MovieClip {
}
}//package
Section 8
//Eat (Eat)
package {
import flash.media.*;
public dynamic class Eat extends Sound {
}
}//package
Section 9
//eatplus (eatplus)
package {
import flash.media.*;
public dynamic class eatplus extends Sound {
}
}//package
Section 10
//GhostKill (GhostKill)
package {
import flash.media.*;
public dynamic class GhostKill extends Sound {
}
}//package
Section 11
//hop (hop)
package {
import flash.media.*;
public dynamic class hop extends Sound {
}
}//package
Section 12
//JoueurDie (JoueurDie)
package {
import flash.media.*;
public dynamic class JoueurDie extends Sound {
}
}//package
Section 13
//pacgomme (pacgomme)
package {
import flash.display.*;
public dynamic class pacgomme extends MovieClip {
}
}//package