segunda-feira, 14 de junho de 2010

Programação do Jogo

Aqui está disponível a programação de até onde conseguimos chegar com nosso jogo.

stop();


/////////////////////////////////////////////////////

//BACKG GAME!!!

////////////////////////////////

var backgroundblk:Backgroundblk = new Backgroundblk;

addChild(backgroundblk);

backgroundblk.visible=true;

/*backgroundblk.width=stage.stageWidth;

backgroundblk.height=stage.stageHeight;

*/

backgroundblk.x=stage.stageWidth/2;

backgroundblk.y=stage.stageHeight/2;



////////////////////////////////////////////

//MAP SIZE!!!!!!!

///////////////////////////////



//55W x 31H



////////////////////////////////////////////////////

//MAPS MATRIX!!!

////////////////////////////////



var tileMap1:Array = new Array(

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,16,17,17,17,17,18, 6, 6,28,29,29,29,30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,10,11,11,11,20,21, 0, 0,22,23,31,23,24, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,30, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

);

///////

var tileMap3:Array = new Array(

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,28,29,29,29,29,29,30, 0, 0,38,39,39,39,40,38,39,39,39,40, 6, 6,38,39,39,39,40,38,40,38,39,40,38,40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,22,31,31,23,31,31,24, 0, 0,32,33,41,41,34,32,41,41,41,34, 0, 0,32,41,41,41,34,32,34,35,36,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,28,29,29,30, 0,38,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40, 0,32,33,34,32,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,25,26,26,27, 0,32,33,41,39,40, 0, 0,28,29,29,29,29,29,30, 0, 0,38,39,39,39,39,40, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,25,26,26,27, 0, 0, 0, 0,38,40, 0, 0,28,29,29,29,29,29,30, 0, 0,35,36,36,36,36,37,16,17,17,18, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,25,26,26,27,29,30, 0, 0,32,34, 0, 0,25,26,26,26,26,26,27, 0, 0,35,36,36,36,36,37,13,14,14,15, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,25,26,26,26,26,27, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,27, 0, 0,32,41,33,41,41,34,10,11,11,12, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,22,31,31,31,31,24, 6, 6, 0, 0, 0, 0,22,31,31,31,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

);

var tileMap303:Array = new Array(

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,28,29,29,29,29,29,30, 0, 0,38,39,39,39,40,38,39,39,39,40,52,52,38,39,39,39,40,38,40,38,39,40,38,40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,22,31,31,23,31,31,24, 0, 0,32,33,41,41,34,32,41,41,41,34, 0, 0,32,41,41,41,34,32,34,35,36,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,28,29,29,30, 0,38,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40, 0,32,33,34,32,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,25,26,26,27, 0,32,33,41,39,40, 0, 0,28,29,29,29,29,29,30, 0, 0,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

);

///////

var tileMap5:Array = new Array(

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,49,49,49,49,49,50,38,39,39,39,39,40,28,29,29,29,29,29,29,30,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30,28,29,30,28,29,30,28,29,29,29,30, 1],

[1,42,43,43,43,43,43,44,32,33,33,33,33,34,22,23,23,23,23,23,23,24,45,46,46,46,47, 0, 0,38,39,39,39,39,39,40, 0, 0,25,26,26,26,27,25,26,27,25,26,27,25,26,26,26,27, 1],

[1,45,46,46,46,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,42,43,43,43,44, 0, 0,35,36,36,36,36,36,37, 0, 0,22,23,23,23,24,22,23,24,22,23,24,22,23,23,23,24, 1],

[1,38,39,39,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30, 0, 0,32,41,41,33,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1],

[1,35,36,36,36,36,36,37, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0,25,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1],

[1,35,36,36,36,36,36,37, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0,22,23,23,23,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,48,49,50,48,49,50,16,17,17,18, 0, 0,28,29,29,30, 1],

[1,32,41,41,41,41,41,34, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,45,46,47,45,46,47,13,14,14,15, 0, 0,22,23,31,24, 1],

[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40,13,14,14,15, 0, 0, 0, 0, 0, 0, 1],

[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,38,39,39,39,39,40, 0, 0,28,29,29,29,29,30, 0, 0,38,39,39,39,39,40,13,14,14,15,17,17,17,18, 0, 0, 1],

[1,28,29,29,29,29,29,30, 0, 0,22,31,31,31,31,31,31,31,31,24, 0, 0,35,36,36,36,36,37, 0, 0,25,26,26,26,26,27, 0, 0,35,36,36,36,36,37,13,14,14,14,14,14,14,15, 0, 0, 1],

[1,25,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,36,37, 0, 0,22,31,31,31,31,24, 0, 0,32,41,41,41,41,34,10,11,11,12,20,20,20,21, 0, 0, 1],

[1,22,31,31,31,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,41,41,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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,29,29,30,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30,28,29,30,28,29,30,28,29,29,29,30, 1],

[1,42,43,43,43,43,43,44,32,33,33,33,33,34,22,23,23,23,23,23,23,24,45,46,46,46,47, 0, 0,38,39,39,39,39,39,40, 0, 0,25,26,26,26,27,25,26,27,25,26,27,25,26,26,26,27, 1],

[1,45,46,46,46,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,42,43,43,43,44, 0, 0,35,36,36,36,36,36,37, 0, 0,22,23,23,23,24,22,23,24,22,23,24,22,23,23,23,24, 1],

[1,38,39,39,39,39,39,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,30, 0, 0,32,41,41,33,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,52, 1],

[1,35,36,36,36,36,36,37, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0,25,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,52, 1],

[1,35,36,36,36,36,36,37, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0,22,23,23,23,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,48,49,50,48,49,50,16,17,17,18, 0, 0,28,29,29,30, 1],

[1,32,41,41,41,41,41,34, 0, 0,48,49,49,49,49,49,50,48,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,45,46,47,45,46,47,13,14,14,15, 0, 0,22,23,31,24, 1],

[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,46,46,46,47,45,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,40,13,14,14,15, 0, 0, 0, 0, 0, 0, 1],

[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,38,39,39,39,39,40, 0, 0,28,29,29,29,29,30, 0, 0,38,39,39,39,39,40,13,14,14,15,17,17,17,18, 0, 0, 1],

[1,28,29,29,29,29,29,30, 0, 0,22,31,31,31,31,31,31,31,31,24, 0, 0,35,36,36,36,36,37, 0, 0,25,26,26,26,26,27, 0, 0,35,36,36,36,36,37,13,14,14,14,14,14,14,15, 0, 0, 1],

[1,25,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,36,37, 0, 0,22,31,31,31,31,24, 0, 0,32,41,41,41,41,34, 7, 8, 8, 9,20,20,20,21, 0, 0, 1],

[1,22,31,31,31,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,41,41,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,46,46,46,47,25,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,38,39,39,39,40,25,27, 0, 0,48,49,49,50, 0, 0,48,49,49,50, 0, 0,38,39,39,40, 0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,35,36,36,36,37,25,27, 0, 0,48,49,49,50, 0, 0,45,46,46,47, 0, 0,32,33,33,34, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,32,41,41,33,34,22,24, 0, 0,48,49,49,50, 0, 0,48,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,16,17,17,18, 0, 0,48,49,50,48,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,45,46,47,45,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,45,46,47, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,22,23,24,32,33,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,10,11,11,12, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,48,49,50, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,45,46,47, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,45,46,46,47, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,38,39,40, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,42,43,43,44, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,35,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,32,33,34, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,22,23,23,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,38,39,39,39,39,39,40, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,29,29,30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,35,36,36,36,36,36,37, 0, 0,22,23,23,31,31,23,23,31,31,24, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,35,36,36,36,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,32,33,41,33,41,33,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,22,23,31,31,23,24, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

);

var tileMap707:Array = new Array(

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,49,49,49,50,48,50,28,29,29,29,29,29,29,29,29,30,38,39,39,39,39,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,46,46,46,47,45,47,23,23,23,31,23,31,31,31,31,24,32,33,33,41,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,49,49,49,50,28,30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,46,46,46,47,25,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0,52, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,38,39,39,39,40,25,27, 0, 0,48,49,49,50, 0, 0,48,49,49,50, 0, 0,38,39,39,40, 0,52, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,35,36,36,36,37,25,27, 0, 0,48,49,49,50, 0, 0,45,46,46,47, 0, 0,32,33,33,34, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,32,41,41,33,34,22,24, 0, 0,48,49,49,50, 0, 0,48,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,16,17,17,18, 0, 0,48,49,50,48,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,45,46,47,45,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,45,46,47, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,35,36,37,35,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,13,14,14,15, 0, 0,22,23,24,32,33,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0, 7, 8, 8, 9, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,48,49,50, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,45,46,47, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,45,46,46,47, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,38,39,40, 0, 0,28,29,29,29,29,29,29,29,29,30, 0, 0,42,43,43,44, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,35,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,32,33,34, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,22,23,23,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,38,39,39,39,39,39,40, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,28,29,29,29,29,30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,35,36,36,36,36,36,37, 0, 0,25,26,26,26,26,26,26,26,26,27, 0, 0,25,26,26,26,26,26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 6, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,47, 0, 0,42,43,43,44, 0, 0,48,49,49,50, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0,28,29,29,30, 0, 0,42,43,43,44, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,28,29,29,30, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0,28,29,29,30, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0,25,26,26,27, 0, 0,22,31,31,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,48,49,50, 0, 0,16,17,17,18, 0, 0,22,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,45,46,47, 0, 0,13,14,14,15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,28,29,30, 0, 0,13,14,14,15, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,28,29,30, 0, 0,13,14,14,15, 0, 0,48,49,49,50, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,25,26,27, 0, 0,13,14,14,15, 0, 0,48,49,49,50, 0, 0,35,36,36,37, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,25,26,27, 0, 0,10,11,11,12, 0, 0,45,46,46,47, 0, 0,35,36,36,37, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,25,26,27, 0, 0, 0, 0, 0, 0, 0, 0,48,49,49,50, 0, 0,35,36,36,37, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,22,31,24, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,47, 0, 0,35,36,36,37, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0, 0, 0, 0, 0, 0,48,49,50,27, 0, 0,48,49,49,50, 0, 0,32,33,33,34, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0, 0, 0, 0, 0, 0,45,46,47,27, 0, 0,45,46,46,47, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,38,39,40, 0, 0,42,43,44,27, 0, 0,42,43,43,44, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,38,40,37, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0,38,39,40,34, 0,25,26,26,27,24, 0,35,36,36,36,34, 0,28,25,26,26,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0,32,41,34, 0, 0,22,23,23,24, 0, 0,32,41,41,34, 0, 0,22,23,23,24, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,48,49,50, 0, 0,48,49,49,50, 0, 0,28,29,29,30, 0, 0,28,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,45,46,47, 0, 0,45,46,46,47, 0, 0,28,29,29,30, 0, 0,25,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,48,49,50, 0, 0,42,43,43,44, 0, 0,25,26,26,27, 0, 0,22,31,31,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,45,47, 0, 0,48,49,50, 0, 0,16,17,17,18, 0, 0,22,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,42,44, 0, 0,45,46,47, 0, 0,13,14,14,15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,28,29,30, 0, 0,13,14,14,15, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,40, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,48,50, 0, 0,28,29,30, 0, 0,13,14,14,15, 0, 0,48,49,49,50, 0, 0,38,39,39,40, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

);

///////

var tileMap11:Array = new Array(

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,39,39,39,39,39,39,39,39,39,39,38,39,39,39,40, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,33,41,33,41,33,41,33,41,33,41,33,38,39,39,39,40, 0, 0,28,29,29,29,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 0, 0,25,26,26,26,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0,48,49,49,49,50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,36,36,36,37, 0, 0,22,31,31,23,31,31,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0,45,46,46,46,47, 0, 0,38,40,48,50, 0, 0, 5, 5, 5, 5, 0, 0,35,36,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0,42,43,43,43,44, 0, 0,38,40,42,44, 0, 0, 5, 5, 5, 5, 0, 0,32,33,33,33,34, 0, 0,38,39,40, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0,28,29,29,29,30, 0, 0,38,40,38,40, 0, 0, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,40, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0,25,26,26,26,27, 0, 0,35,37,41,34, 0, 0, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39,40, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0,25,26,26,26,27, 0, 0,35,37, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0,48,49,49,49,50, 0, 0,38,39,40, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0,22,23,23,23,24, 0, 0,35,37, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0,45,46,46,46,47, 0, 0,35,36,37, 0, 0,45,46,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,35,37, 0, 0,28,30, 0, 0, 5, 5, 0, 0,42,43,43,43,44, 0, 0,35,36,37, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,32,34, 0, 0,28,30, 0, 0, 5, 5, 0, 0,48,49,49,49,50, 0, 0,35,36,37, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,16,17,16, 0, 0,38,40, 0, 0, 0, 0, 0, 0,25,27, 0, 0, 5, 5, 0, 0,45,46,46,46,47, 0, 0,35,36,37, 0, 0,45,46,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,16,17,16, 0, 0,32,34, 0, 0, 0, 0, 0, 0,25,27, 0, 0, 5, 5, 0, 0,42,43,43,43,44, 0, 0,35,36,37, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,16,17,16, 0, 0, 0, 0, 0, 0,28,29,29,30,22,24, 0, 0, 5, 5, 0, 0,48,49,49,49,50, 0, 0,35,36,37, 0, 0,48,49,49,50, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,16,17,16, 0, 0, 0, 0, 0, 0,28,29,29,30, 0, 0, 0, 0, 0, 0, 0, 0,45,46,46,46,47, 0, 0,35,36,37, 0, 0,45,46,46,47, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,16,17,17,17,17,17,18, 0, 0,28,29,29,30, 0, 0, 0, 0, 0, 0, 0, 0,42,43,43,43,44, 0, 0,35,36,37, 0, 0,42,43,43,44, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,13,14,14,14,14,14,15, 0, 0,25,26,26,27, 0, 0,38,39,39,40, 0, 0,28,29,29,29,30, 0, 0,35,36,37, 0, 0,38,39,39,40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,13,14,14,14,14,14,15, 0, 0,25,26,26,27, 0, 0,38,39,39,40, 0, 0,25,26,26,26,27, 0, 0,35,36,37, 0, 0,35,36,36,37, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,13,14,14,14,14,14,15, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0,22,31,31,31,24, 0, 0,32,33,34, 0, 0,32,33,33,34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,10,11,11,12,20,20,21, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,26,27, 0, 0,35,36,36,37, 0, 0,28,29,29,29,29,30, 0, 0,28,29,29,29,29,30, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,38,39,39,39,39,39,40, 0, 0,22,31,31,24, 0, 0,32,33,33,34, 0, 0,28,29,29,29,29,30, 0, 0,25,26,26,26,26,27, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,35,36,36,36,36,36,37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,26,26,26,27, 0, 0,22,23,31,31,31,24, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1,32,41,41,41,41,41,34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,22,31,31,31,31,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],

[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

);



/////////////////////////////////////////////////////////

//old maps

/*//city 1

var tileMap1:Array = new Array(

[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2],

[1,0,0,0,0,1,2,3,4,5,6,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0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],

[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],

[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

);

//path 2

var tileMap4:Array = new Array(

[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,1],

[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

);

//city 3

var tileMap5:Array = new Array(

[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1],

[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

);

//path 3

var tileMap6:Array = new Array(

[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,1],

[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

);

//city 4

var tileMap7:Array = new Array(

[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,0,1],

[1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,1,0,1],

[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

);

//path 4

var tileMap8:Array = new Array(

[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0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,0,0,0,0,0,0,0,1,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1],

[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

);

//city 6

var tileMap11:Array = new Array(

[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,1],

[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1],

[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],

[1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

);*/



///////////////////////////////////////////////////////////////////////////////////////////////////////////////



//SPEEDS!!!

var playerspeed:int=5;

var boosterspeed:int=10;

var detectivespeed:int=0;



///////////////////////////////////////////////////////////////////////////////////////////////////////////////



////////////////////////////////////////////////



var collisionMap:Array; //array que guarda as paredes do mapa

var doorMap:Array; //array que guarda as portas do mapa

var allMap:Array; //array que guarda todas as peças do mapa

var allMapOldX:Array; //array que guarda as posicoes antigas X do mapa

var allMapOldY:Array; //array que guarda as posicoes antigas Y do mapa

var actualMap:int; //guarda o mapa em que o usuário est[a jogando









initializeMap(1,stage.stageWidth/2,stage.stageHeight/2,100,100);



//looping para criar o cenario

function createMap(m:Array)

{

collisionMap = new Array(); //array que guarda as paredes do mapa

doorMap = new Array(); //array que guarda as portas do mapa

allMap = new Array(); //array que guarda todas as peças do mapa

allMapOldX = new Array(); //array que guarda as posicoes antigas X do mapa

allMapOldY = new Array(); //array que guarda as posicoes antigas Y do mapa





///////////////////////////////////////////////////////////////////////////////////////////////////////////////

//create map

for(var j:int = 0; j<55;j++){

for(var i:int = 0; i<31;i++){

var tile:Tile = new Tile();

tile.x = tile.width/2 + tile.width*j;

tile.y = tile.height/2 + tile.height*i;

addChild(tile);

tile.gotoAndStop(m[i][j]+1);

allMap.push(tile); //guarda o objeto dentro da array allMap



///////////////////////////////////////////////////////////////////////////////////////////////////////////////





///////////////////////////////////////////////////////////////////////////////////////////////////////////////

//TILE FUNCTIONS!!!!

/////////////////////////////////////////////////////////////////////

//chão cidade

if(m[i][j]==0)

{

velX=velX;

velY=velY;

}

//obstáculo(offscreen)

if(m[i][j]==1)

{

collisionMap.push(tile); //guarda a parede dentro da array allMap

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//porta cenario

if(m[i][j]==2)

{

//doorMap.push(tile);

}

//milho

if(m[i][j]==3)

{



}

//grama

if(m[i][j]==4)

{



}

//bloqueio campo(concreto)

if(m[i][j]==5)

{

/*collisionMap.push(tile); //guarda a parede dentro da array allMap

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);*/

}

//bloqueio cidade(grama)

if(m[i][j]==6)

{



}

//////////////////////////////////////////

//banco

/////////////////////////////////////////////

//portas nulas banco

if(m[i][j]==7)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==8)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==9)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//portas uteis banco

if(m[i][j]==10)

{

doorMap.push(tile);

}

if(m[i][j]==11)

{

doorMap.push(tile);

}

if(m[i][j]==12)

{

doorMap.push(tile);

}

//banco cima

if(m[i][j]==13)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==14)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==15)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//banco teto

if(m[i][j]==16)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==17)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==18)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//parede sem porta

if(m[i][j]==19)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==20)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==21)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

///////////////////////////////////////////

//predio verde

/////////////////////////////////////////////

//portas predio

if(m[i][j]==22)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==23)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==24)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//janela predio

if(m[i][j]==25)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==26)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==27)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//predio teto

if(m[i][j]==28)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==29)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==30)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//parede predio

if(m[i][j]==31)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

///////////////////////////////////////////

//predio amarelo

/////////////////////////////////////////////

//portas predio

if(m[i][j]==32)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==33)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==34)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//janela predio

if(m[i][j]==35)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==36)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==37)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//predio teto

if(m[i][j]==38)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==39)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==40)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//parede predio

if(m[i][j]==41)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

///////////////////////////////////////////

//predio topo

/////////////////////////////////////////////

//parede predio

if(m[i][j]==42)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==43)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==44)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//janela predio

if(m[i][j]==45)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==46)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==47)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//predio teto

if(m[i][j]==48)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==49)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

if(m[i][j]==50)

{

collisionMap.push(tile);

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

///////////////////////////////////////////

//PORTAS!!!!!!

//////////////////////////////////////

//porta cenario(cimento)

if(m[i][j]==51)

{

doorMap.push(tile);

}

//porta cenario(terra)

if(m[i][j]==52)

{

doorMap.push(tile);

}

}

}

}





































/////////////////////////////////////////////////////////////////////////////////////////////////////////

//CHARS!!!

///////////////////////////////////////////



//cria o personagem

var player:Player;



function createPlayer(posx:Number,posy:Number)

{

player = new Player();

player.x = posx;

player.y = posy;

addChild(player);

}





//cria o detetive

/*var detective:Detective;



function createDetective(posdx:Number,posdy:Number)

{

detective = new Detective();

detective.x=posdx;

detective.y=posdy;

addChild(detective);

}*/



//stage,addEventListener(Event.ENTER_FRAME,playdetective);

















/////////////////////////////////////

//NEW MAP!!!

////////////////////////////////////

function initializeMap(n:int,posx:int,posy:int,posdx:int,posdy:int)

{

if(n==1)

{

//gotoAndStop(2);

createMap(tileMap1);

createPlayer(posx,posy);

//createDetective(posdx,posdy);

actualMap = 1;

for(var a=0;a

{

allMap[a].x += 140;

allMap[a].y += -110;

}

}

if(n==2)

{

////////////////////////////////////////////////////////////////////////////

//PUZZLE 1 !!!

////////////////////////////////////////////////////////////////////



/*var fundopuzzle1:Fundopuzzle1 = new Fundopuzzle1;

addChild(fundopuzzle1);

//fundopuzzle1.visible=true;

fundopuzzle1.x=stage.stageWidth/2;

fundopuzzle1.y=stage.stageHeight/2;



var lHit:Boolean;

var rHit:Boolean;

var barra:Barra = new Barra();

var hit1:Hit1 = new Hit1();

var hit2:Hit2 = new Hit2();

var hit3:Hit3 = new Hit3();

var arco1:Arco1 = new Arco1();

var arco2:Arco2 = new Arco2();

var arco3:Arco3 = new Arco3();

var vermelho:Vermelho = new Vermelho();

var ticks:int = 0;

var cont:int = 30;



/*var textpuzzle1:Textpuzzle1=new Textpuzzle1;

addChild(textpuzzle1);

textpuzzle1.x=300;

textpuzzle1.y=50;*/



/*addChild(barra);

addChild(hit1);

addChild(hit2);

addChild(hit3);

addChild(arco1);

addChild(arco2);

addChild(arco3);

addChild(vermelho);



barra.x = 400;

barra.y = 300;



arco1.x = 222;

arco1.y = 153;



arco2.x = 185;

arco2.y = 115;



arco3.x = 150;

arco3.y = 80;



vermelho.x = 255;

vermelho.y = 202;



hit1.x = 260;

hit1.y = 240;

hit1.alpha = 0;



hit2.x = 260;

hit2.y = 280;

hit2.alpha = 0;



hit3.x = 260;

hit3.y = 315;

hit3.alpha = 0;



stage.addEventListener(Event.ENTER_FRAME, goTime);

stage.addEventListener(MouseEvent.MOUSE_DOWN, inicioDrag);

stage.addEventListener(MouseEvent.MOUSE_UP, fimDrag);

barra.addEventListener(Event.ENTER_FRAME, puzzlePlay);



function inicioDrag(e:MouseEvent)

{

barra.startDrag();

}



function fimDrag(e:MouseEvent)

{

barra.stopDrag();

}



function puzzlePlay(e:Event)

{

lHit = arco1.hitTestPoint(barra.x, barra.y, true)

arco2.hitTestPoint(barra.x, barra.y, true)

arco3.hitTestPoint(barra.x, barra.y, true);

rHit = arco1.hitTestPoint((barra.x + barra.width), barra.y, true)

arco2.hitTestPoint((barra.x + barra.width), barra.y, true)

arco3.hitTestPoint((barra.x + barra.width), barra.y, true);

if(lHit

rHit)

{

barra.x = 400;

barra.y = 300;

barra.stopDrag();

//trace(hitTestPoint);

}



if(barra.hitTestObject(hit1))

{

arco1.stop();

}



if(barra.hitTestObject(hit2))

{

arco2.stop();

}



if(barra.hitTestObject(hit3))

{

arco3.stop();

}



//VITORIA

if(barra.hitTestObject(vermelho))

{

//gotoAndStop(3);

stage.removeEventListener(Event.ENTER_FRAME, goTime);

stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag);

stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag);

barra.removeEventListener(Event.ENTER_FRAME, puzzlePlay);

removeChild(barra);

removeChild(hit1);

removeChild(hit2);

removeChild(hit3);

removeChild(arco1);

removeChild(arco2);

removeChild(arco3);

removeChild(vermelho);

removeChild(fundopuzzle1);*/

//actualMap=2;

//n=3;*/



/////////////////////

//GENERATE MAP AGAIN!!!!

//////////////////////

createMap(tileMap101);

createPlayer(posx,posy);

//createDetective(posdx,posdy);

actualMap = 2;

for(var aa=0;aa

{

allMap[aa].x += 140;

allMap[aa].y += 50;

}

/*}

}

////////////////////////////////////

//TIME!!!

////////////////////////////

function goTime(e:Event)

{

var textpuzzle1:Textpuzzle1=new Textpuzzle1;

addChild(textpuzzle1);

textpuzzle1.x=300;

textpuzzle1.y=50;



timeBox.text = String(cont);

ticks++;



if(ticks>=24)

{

ticks = 0;

cont--;

}

}

//DERROTA

if(cont <= 0)

{

gotoAndStop(2);

stage.removeEventListener(Event.ENTER_FRAME, goTime);

stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag);

stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag);

barra.removeEventListener(Event.ENTER_FRAME, puzzlePlay);

removeChild(barra);

removeChild(hit1);

removeChild(hit2);

removeChild(hit3);

removeChild(arco1);

removeChild(arco2);

removeChild(arco3);

removeChild(vermelho);

removeChild(fundopuzzle1);

//trace(cont);

//}

}*/

//////////////////////////////////////////////////////////////////////////////

}

if(n==3)

{

createMap(tileMap2);

createPlayer(posx,posy);

//removeChild(detective);

//detective=null;

actualMap = 3;

for(var b=0;b

{

allMap[b].x += -70;

allMap[b].y += -80;

}

}

if(n==4)

{

createMap(tileMap3);

createPlayer(posx,posy);

actualMap = 4;

for(var c=0;c

{

allMap[c].x += -60;

allMap[c].y += -160;

}

}

if(n==5)

{

//////////////////////////////////////////

//PUZZLE 2!!!!!

///////////////////////////////////////////

createMap(tileMap303);

createPlayer(posx,posy);

actualMap = 5;

for(var ca=0;ca

{

allMap[ca].x += -900;

allMap[ca].y += -180;

}

}

if(n==6)

{

createMap(tileMap4);

createPlayer(posx,posy);

actualMap = 6;

for(var d=0;d

{

allMap[d].x += 60;

allMap[d].y += -40;

}

}

if(n==7)

{

createMap(tileMap5);

createPlayer(posx,posy);

actualMap = 7;

for(var e=0;e

{

allMap[e].x += 160;

allMap[e].y += -160;

}

}

if(n==8)

{

////////////////////////////////

//PUZZLE 3!!!!!!!!!!!

////////////////////////////////

/*var signal1:Signal1 = new Signal1();

var signal2:Signal2 = new Signal2();

var signal3:Signal3 = new Signal3();

var signal4:Signal4 = new Signal4();

var box1:Box1 = new Box1();

var box2:Box2 = new Box2();

var box3:Box3 = new Box3();

var box4:Box4 = new Box4();

var num1:Num1 = new Num1();

var num2:Num2 = new Num2();

var num3:Num3 = new Num3();

var num4:Num4 = new Num4();

var num5:Num5 = new Num5();

var num6:Num6 = new Num6();

var num7:Num7 = new Num7();

var num8:Num8 = new Num8();

var num9:Num9 = new Num9();

var num0:Num0 = new Num0();

var ok1:Boolean = false;

var ok2:Boolean = false;

var ok3:Boolean = false;

var ok4:Boolean = false;

var ticks:int = 0;

var cont:int = 30;





addChild(signal1);

addChild(signal2);

addChild(signal3);

addChild(signal4);

addChild(box1);

addChild(box2);

addChild(box3);

addChild(box4);

addChild(num1);

addChild(num2);

addChild(num3);

addChild(num4);

addChild(num5);

addChild(num6);

addChild(num7);

addChild(num8);

addChild(num9);

addChild(num0);



box1.x = 100;

box1.y = 67;



box2.x = 100;

box2.y = 135;



box3.x = 100;

box3.y = 203;



box4.x = 100;

box4.y = 270;



signal1.x = 50;

signal1.y = 67;



signal2.x = 50;

signal2.y = 135;



signal3.x = 50;

signal3.y = 203;



signal4.x = 50;

signal4.y = 270;





num1.x = 420;

num1.y = 20;



num2.x = 420;

num2.y = 70;



num3.x = 420;

num3.y = 120;



num4.x = 420;

num4.y = 170;



num5.x = 420;

num5.y = 220;



num6.x = 480;

num6.y = 20;



num7.x = 480;

num7.y = 70;



num8.x = 480;

num8.y = 120;



num9.x = 480;

num9.y = 170;



num0.x = 480;

num0.y = 220;



num1.addEventListener(MouseEvent.MOUSE_DOWN, goDrag1);

num1.addEventListener(MouseEvent.MOUSE_UP, dontDrag1);

num2.addEventListener(MouseEvent.MOUSE_DOWN, goDrag2);

num2.addEventListener(MouseEvent.MOUSE_UP, dontDrag2);

num3.addEventListener(MouseEvent.MOUSE_DOWN, goDrag3);

num3.addEventListener(MouseEvent.MOUSE_UP, dontDrag3);

num4.addEventListener(MouseEvent.MOUSE_DOWN, goDrag4);

num4.addEventListener(MouseEvent.MOUSE_UP, dontDrag4);

num5.addEventListener(MouseEvent.MOUSE_DOWN, goDrag5);

num5.addEventListener(MouseEvent.MOUSE_UP, dontDrag5);

num6.addEventListener(MouseEvent.MOUSE_DOWN, goDrag6);

num6.addEventListener(MouseEvent.MOUSE_UP, dontDrag6);

num7.addEventListener(MouseEvent.MOUSE_DOWN, goDrag7);

num7.addEventListener(MouseEvent.MOUSE_UP, dontDrag7);

num8.addEventListener(MouseEvent.MOUSE_DOWN, goDrag8);

num8.addEventListener(MouseEvent.MOUSE_UP, dontDrag8);

num9.addEventListener(MouseEvent.MOUSE_DOWN, goDrag9);

num9.addEventListener(MouseEvent.MOUSE_UP, dontDrag9);

num0.addEventListener(MouseEvent.MOUSE_DOWN, goDrag0);

num0.addEventListener(MouseEvent.MOUSE_UP, dontDrag0);

stage.addEventListener(Event.ENTER_FRAME, puzzlePlay);

stage.addEventListener(Event.ENTER_FRAME, goTime);



function goDrag1(e:MouseEvent)

{

num1.startDrag();

}



function goDrag2(e:MouseEvent)

{

num2.startDrag();

}



function goDrag3(e:MouseEvent)

{

num3.startDrag();

}



function goDrag4(e:MouseEvent)

{

num4.startDrag();

}



function goDrag5(e:MouseEvent)

{

num5.startDrag();

}



function goDrag6(e:MouseEvent)

{

num6.startDrag();

}



function goDrag7(e:MouseEvent)

{

num7.startDrag();

}



function goDrag8(e:MouseEvent)

{

num8.startDrag();

}



function goDrag9(e:MouseEvent)

{

num9.startDrag();

}



function goDrag0(e:MouseEvent)

{

num0.startDrag();

}







function dontDrag1(e:MouseEvent)

{

num1.stopDrag();

}



function dontDrag2(e:MouseEvent)

{

num2.stopDrag();

}



function dontDrag3(e:MouseEvent)

{

num3.stopDrag();

}



function dontDrag4(e:MouseEvent)

{

num4.stopDrag();

}



function dontDrag5(e:MouseEvent)

{

num5.stopDrag();

}



function dontDrag6(e:MouseEvent)

{

num6.stopDrag();

}



function dontDrag7(e:MouseEvent)

{

num7.stopDrag();

}



function dontDrag8(e:MouseEvent)

{

num8.stopDrag();

}



function dontDrag9(e:MouseEvent)

{

num9.stopDrag();

}



function dontDrag0(e:MouseEvent)

{

num0.stopDrag();

}



function puzzlePlay(e:Event)

{

if(num1.hitTestObject(box1))

{

signal1.gotoAndStop(2);

ok1 = true;

}

else

{

signal1.gotoAndStop(1);

ok1 = false;

}



if(num8.hitTestObject(box2))

{

signal2.gotoAndStop(2);

ok2 = true;

}

else

{

signal2.gotoAndStop(1);

ok2 = false;

}



if(num6.hitTestObject(box3))

{

signal3.gotoAndStop(2);

ok3 = true;

}

else{signal3.gotoAndStop(1);

ok3 = false;

}



if(num2.hitTestObject(box4))

{

signal4.gotoAndStop(2);

ok4 = true;

}

else

{

signal4.gotoAndStop(1);

ok4 = false;

}

//VITORIA

if(ok1 && ok2 && ok3 && ok4)

{

//gotoAndStop(2);



num1.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag1);

num1.removeEventListener(MouseEvent.MOUSE_UP, dontDrag1);

num2.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag2);

num2.removeEventListener(MouseEvent.MOUSE_UP, dontDrag2);

num3.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag3);

num3.removeEventListener(MouseEvent.MOUSE_UP, dontDrag3);

num4.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag4);

num4.removeEventListener(MouseEvent.MOUSE_UP, dontDrag4);

num5.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag5);

num5.removeEventListener(MouseEvent.MOUSE_UP, dontDrag5);

num6.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag6);

num6.removeEventListener(MouseEvent.MOUSE_UP, dontDrag6);

num7.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag7);

num7.removeEventListener(MouseEvent.MOUSE_UP, dontDrag7);

num8.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag8);

num8.removeEventListener(MouseEvent.MOUSE_UP, dontDrag8);

num9.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag9);

num9.removeEventListener(MouseEvent.MOUSE_UP, dontDrag9);

num0.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag0);

num0.removeEventListener(MouseEvent.MOUSE_UP, dontDrag0);

stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay);

stage.removeEventListener(Event.ENTER_FRAME, goTime);



removeChild(signal1);

removeChild(signal2);

removeChild(signal3);

removeChild(signal4);

removeChild(box1);

removeChild(box2);

removeChild(box3);

removeChild(box4);

removeChild(num1);

removeChild(num2);

removeChild(num3);

removeChild(num4);

removeChild(num5);

removeChild(num6);

removeChild(num7);

removeChild(num8);

removeChild(num9);

removeChild(num0);



*/

createMap(tileMap505);

createPlayer(posx,posy);

actualMap = 8;

for(var ea=0;ea

{

allMap[ea].x += -1560;

allMap[ea].y += -300;

}

/*}

}



function goTime(e:Event)

{



timeBox.text = String(cont);

ticks++;



if(ticks >= 24)

{

ticks = 0;

cont--;

}

//DERROTA

if(cont <= 0)

{

//gotoAndStop(3)

num1.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag1);

num1.removeEventListener(MouseEvent.MOUSE_UP, dontDrag1);

num2.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag2);

num2.removeEventListener(MouseEvent.MOUSE_UP, dontDrag2);

num3.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag3);

num3.removeEventListener(MouseEvent.MOUSE_UP, dontDrag3);

num4.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag4);

num4.removeEventListener(MouseEvent.MOUSE_UP, dontDrag4);

num5.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag5);

num5.removeEventListener(MouseEvent.MOUSE_UP, dontDrag5);

num6.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag6);

num6.removeEventListener(MouseEvent.MOUSE_UP, dontDrag6);

num7.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag7);

num7.removeEventListener(MouseEvent.MOUSE_UP, dontDrag7);

num8.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag8);

num8.removeEventListener(MouseEvent.MOUSE_UP, dontDrag8);

num9.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag9);

num9.removeEventListener(MouseEvent.MOUSE_UP, dontDrag9);

num0.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag0);

num0.removeEventListener(MouseEvent.MOUSE_UP, dontDrag0);

stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay);

stage.removeEventListener(Event.ENTER_FRAME, goTime);



removeChild(signal1);

removeChild(signal2);

removeChild(signal3);

removeChild(signal4);

removeChild(box1);

removeChild(box2);

removeChild(box3);

removeChild(box4);

removeChild(num1);

removeChild(num2);

removeChild(num3);

removeChild(num4);

removeChild(num5);

removeChild(num6);

removeChild(num7);

removeChild(num8);

removeChild(num9);

removeChild(num0);

}

}*/



}

if(n==9)

{

createMap(tileMap6);

createPlayer(posx,posy);

actualMap = 9;

for(var f=0;f

{

allMap[f].x += 120;

allMap[f].y += -40;

}

}

if(n==10)

{

createMap(tileMap7);

createPlayer(posx,posy);

actualMap = 10;

for(var g=0;g

{

allMap[g].x += 120;

allMap[g].y += -160;

}

}

if(n==11)

{

////////////////////////////////

//PUZZLE 4!!!!!!!!!!!

////////////////////////////////

var lHit33:Boolean;

var rHit33:Boolean;

var barra3:Barra3 = new Barra3();

var hit13:Hit13 = new Hit13();

var hit23:Hit23 = new Hit23();

var hit33:Hit33 = new Hit33();

var hit43:Hit43 = new Hit43();

var hit53:Hit53 = new Hit53();

var arco13:Arco13 = new Arco13();

var arco23:Arco23 = new Arco23();

var arco33:Arco33 = new Arco33();

var arco44:Arco43 = new Arco43();

var arco53:Arco53 = new Arco53();

var vermelho3:Vermelho3 = new Vermelho3();

var ticks3:int = 0;

var cont3:int = 60;



addChild(barra3);

addChild(hit13);

addChild(hit23);

addChild(hit33);

addChild(hit43);

addChild(hit53);

addChild(arco13);

addChild(arco23);

addChild(arco33);

addChild(arco44);

addChild(arco53);

addChild(vermelho3);



barra3.x = 400;

barra3.y = 300;



arco13.x = 171;// 222;

arco13.y = 58;// 153;



arco23.x = 136;// 185;

arco23.y = 20;// 115;



arco33.x = 101;// 150;

arco33.y = -13;// 80;



arco44.x = 57;// 150;

arco44.y = -55;// 80;



arco53.x = 19;// 150;

arco53.y = -95;// 80;



vermelho3.x = 205;

vermelho3.y = 109;



hit13.x = 209;

hit13.y = 145;

hit13.alpha = 0;



hit23.x = 209;

hit23.y = 185;

hit23.alpha = 0;



hit33.x = 209;

hit33.y = 220;

hit33.alpha = 0;



hit43.x = 209;

hit43.y = 260;

hit43.alpha = 0;



hit53.x = 209;

hit53.y = 300;

hit53.alpha = 0;



stage.addEventListener(Event.ENTER_FRAME, goTime3);

stage.addEventListener(MouseEvent.MOUSE_DOWN, inicioDrag3);

stage.addEventListener(MouseEvent.MOUSE_UP, fimDrag3);

barra3.addEventListener(Event.ENTER_FRAME, puzzlePlay3);



function inicioDrag3(e:MouseEvent)

{barra3.startDrag();}



function fimDrag3(e:MouseEvent)

{barra3.stopDrag();}



function puzzlePlay3(e:Event){

lHit33 = arco13.hitTestPoint(barra3.x, barra3.y, true)

arco23.hitTestPoint(barra3.x, barra3.y, true)

arco33.hitTestPoint(barra3.x, barra3.y, true)

arco44.hitTestPoint(barra3.x, barra3.y, true)

arco53.hitTestPoint(barra3.x, barra3.y, true);

rHit33 = arco13.hitTestPoint((barra3.x + barra3.width), barra3.y, true)

arco23.hitTestPoint((barra3.x + barra3.width), barra3.y, true)

arco33.hitTestPoint((barra3.x + barra3.width), barra3.y, true)

arco44.hitTestPoint((barra3.x + barra3.width), barra3.y, true)

arco53.hitTestPoint((barra3.x + barra3.width), barra3.y, true);

if(lHit33

rHit33){

barra3.x = 400;

barra3.y = 300;

barra3.stopDrag();

//trace(hitTestPoint);

}



if(barra3.hitTestObject(hit13)){

arco13.stop();}



if(barra3.hitTestObject(hit23)){

arco23.stop();}



if(barra3.hitTestObject(hit33)){

arco33.stop();}



if(barra3.hitTestObject(hit43)){

arco44.stop();}



if(barra3.hitTestObject(hit53)){

arco53.stop();}



//VITORIA

if(barra3.hitTestObject(vermelho3)){

gotoAndStop(3);

createMap(tileMap707);

createPlayer(posx,posy);

actualMap = 11;

for(var ga=0;ga

{

allMap[ga].x += -480;

allMap[ga].y += -440;

}

stage.removeEventListener(Event.ENTER_FRAME, goTime3);

stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag3);

stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag3);

barra3.removeEventListener(Event.ENTER_FRAME, puzzlePlay3);

removeChild(barra3);

removeChild(hit13);

removeChild(hit23);

removeChild(hit33);

removeChild(hit43);

removeChild(hit53);

removeChild(arco13);

removeChild(arco23);

removeChild(arco33);

removeChild(arco44);

removeChild(arco53);

removeChild(vermelho3);}

}



function goTime3(e:Event){



timeBox3.text = String(cont3);

ticks3++;



if(ticks3 >= 24){

ticks3 = 0;

cont3--;

}

//DERROTA

if(cont3 <= 0){

gotoAndStop(2);

stage.removeEventListener(Event.ENTER_FRAME, goTime3);

stage.removeEventListener(MouseEvent.MOUSE_DOWN, inicioDrag3);

stage.removeEventListener(MouseEvent.MOUSE_UP, fimDrag3);

barra3.removeEventListener(Event.ENTER_FRAME, puzzlePlay3);

removeChild(barra3);

removeChild(hit13);

removeChild(hit23);

removeChild(hit33);

removeChild(hit43);

removeChild(hit53);

removeChild(arco13);

removeChild(arco23);

removeChild(arco33);

removeChild(arco44);

removeChild(arco53);

removeChild(vermelho3);



//trace(cont3);

}

}

}

if(n==12)

{

createMap(tileMap8);

createPlayer(posx,posy);

actualMap = 12;

for(var h=0;h

{

allMap[h].x += 120;

allMap[h].y += 0;

}

}

if(n==13)

{

createMap(tileMap9);

createPlayer(posx,posy);

actualMap = 13;

for(var i=0;i

{

allMap[i].x += 120;

allMap[i].y += -160;

}

}

if(n==14)

{

////////////////////////////////

//PUZZLE 5!!!!!!!!!!!

////////////////////////////////

createMap(tileMap909);

createPlayer(posx,posy);

actualMap = 14;

for(var ia=0;ia

{

allMap[ia].x += -320;

allMap[ia].y += -640;

}

}

if(n==15)

{

createMap(tileMap10);

createPlayer(posx,posy);

actualMap = 15;

for(var j=0;j

{

allMap[j].x += -240;

allMap[j].y += 120;

}

}

if(n==16)

{

createMap(tileMap11);

createPlayer(posx,posy);

actualMap = 16;

for(var ja=0;ja

{

allMap[ja].x += -240;

allMap[ja].y += 120;

}

}

if(n==17)

{

////////////////////////////////

//PUZZLE 6!!!!!!!!!!!

////////////////////////////////

var signal122:Signal122 = new Signal122();

var signal222:Signal222 = new Signal222();

var signal322:Signal322 = new Signal322();

var signal422:Signal422 = new Signal422();

var box122:Box122 = new Box122();

var box222:Box222 = new Box222();

var box322:Box322 = new Box322();

var box422:Box422 = new Box422();

var num122:Num122 = new Num122();

var num222:Num222 = new Num222();

var num322:Num322 = new Num322();

var num422:Num422 = new Num422();

var num522:Num522 = new Num522();

var num622:Num622 = new Num622();

var num722:Num722 = new Num722();

var num822:Num822 = new Num822();

var num922:Num922 = new Num922();

var num022:Num022 = new Num022();

var ok122:Boolean = false;

var ok222:Boolean = false;

var ok322:Boolean = false;

var ok422:Boolean = false;

var ticks22:int = 0;

var cont22:int = 20;





addChild(signal122);

addChild(signal222);

addChild(signal322);

addChild(signal422);

addChild(box122);

addChild(box222);

addChild(box322);

addChild(box422);

addChild(num122);

addChild(num222);

addChild(num322);

addChild(num422);

addChild(num522);

addChild(num622);

addChild(num722);

addChild(num822);

addChild(num922);

addChild(num022);



box122.x = 100;

box122.y = 67;



box222.x = 100;

box222.y = 135;



box322.x = 100;

box322.y = 203;



box422.x = 100;

box422.y = 270;



signal122.x = 50;

signal122.y = 67;



signal222.x = 50;

signal222.y = 135;



signal322.x = 50;

signal322.y = 203;



signal422.x = 50;

signal422.y = 270;





num122.x = 420;

num122.y = 20;



num222.x = 420;

num222.y = 70;



num322.x = 420;

num322.y = 120;



num422.x = 420;

num422.y = 170;



num522.x = 420;

num522.y = 220;



num622.x = 480;

num622.y = 20;



num722.x = 480;

num722.y = 70;



num822.x = 480;

num822.y = 120;



num922.x = 480;

num922.y = 170;



num022.x = 480;

num022.y = 220;



num122.addEventListener(MouseEvent.MOUSE_DOWN, goDrag122);

num122.addEventListener(MouseEvent.MOUSE_UP, dontDrag122);

num222.addEventListener(MouseEvent.MOUSE_DOWN, goDrag222);

num222.addEventListener(MouseEvent.MOUSE_UP, dontDrag222);

num322.addEventListener(MouseEvent.MOUSE_DOWN, goDrag322);

num322.addEventListener(MouseEvent.MOUSE_UP, dontDrag322);

num422.addEventListener(MouseEvent.MOUSE_DOWN, goDrag422);

num422.addEventListener(MouseEvent.MOUSE_UP, dontDrag422);

num522.addEventListener(MouseEvent.MOUSE_DOWN, goDrag522);

num522.addEventListener(MouseEvent.MOUSE_UP, dontDrag522);

num622.addEventListener(MouseEvent.MOUSE_DOWN, goDrag622);

num622.addEventListener(MouseEvent.MOUSE_UP, dontDrag622);

num722.addEventListener(MouseEvent.MOUSE_DOWN, goDrag722);

num722.addEventListener(MouseEvent.MOUSE_UP, dontDrag722);

num822.addEventListener(MouseEvent.MOUSE_DOWN, goDrag822);

num822.addEventListener(MouseEvent.MOUSE_UP, dontDrag822);

num922.addEventListener(MouseEvent.MOUSE_DOWN, goDrag922);

num922.addEventListener(MouseEvent.MOUSE_UP, dontDrag922);

num022.addEventListener(MouseEvent.MOUSE_DOWN, goDrag022);

num022.addEventListener(MouseEvent.MOUSE_UP, dontDrag022);

stage.addEventListener(Event.ENTER_FRAME, puzzlePlay22);

stage.addEventListener(Event.ENTER_FRAME, goTime22);



function goDrag122(e:MouseEvent){

num122.startDrag();}



function goDrag222(e:MouseEvent){

num222.startDrag();}



function goDrag322(e:MouseEvent){

num322.startDrag();}



function goDrag422(e:MouseEvent){

num422.startDrag();}



function goDrag522(e:MouseEvent){

num522.startDrag();}



function goDrag622(e:MouseEvent){

num622.startDrag();}



function goDrag722(e:MouseEvent){

num722.startDrag();}



function goDrag822(e:MouseEvent){

num822.startDrag();}



function goDrag922(e:MouseEvent){

num922.startDrag();}



function goDrag022(e:MouseEvent){

num022.startDrag();}







function dontDrag122(e:MouseEvent){

num122.stopDrag();}



function dontDrag222(e:MouseEvent){

num222.stopDrag();}



function dontDrag322(e:MouseEvent){

num322.stopDrag();}



function dontDrag422(e:MouseEvent){

num422.stopDrag();}



function dontDrag522(e:MouseEvent){

num522.stopDrag();}



function dontDrag622(e:MouseEvent){

num622.stopDrag();}



function dontDrag722(e:MouseEvent){

num722.stopDrag();}



function dontDrag822(e:MouseEvent){

num822.stopDrag();}



function dontDrag922(e:MouseEvent){

num922.stopDrag();}



function dontDrag022(e:MouseEvent){

num022.stopDrag();}



function puzzlePlay22(e:Event){

if(num922.hitTestObject(box122)){

signal122.gotoAndStop(2);

ok122 = true;}

else{signal122.gotoAndStop(1);

ok122 = false;}



if(num722.hitTestObject(box222)){

signal222.gotoAndStop(2);

ok222 = true;}

else{signal222.gotoAndStop(1);

ok222 = false;}



if(num622.hitTestObject(box322)){

signal322.gotoAndStop(2);

ok322 = true;}

else{signal322.gotoAndStop(1);

ok322 = false;}



if(num222.hitTestObject(box422)){

signal422.gotoAndStop(2);

ok422 = true;}

else{signal422.gotoAndStop(1);

ok422 = false;}

//VITORIA

if(ok122 && ok222 && ok322 && ok422){



/*createMap(tileMap11);

createPlayer(posx,posy);

actualMap = 16;

for(var k=0;k

{

allMap[k].x += -920;

allMap[k].y += 120;

}*/

//gotoAndStop(2);



num122.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag122);

num122.removeEventListener(MouseEvent.MOUSE_UP, dontDrag122);

num222.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag222);

num222.removeEventListener(MouseEvent.MOUSE_UP, dontDrag222);

num322.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag322);

num322.removeEventListener(MouseEvent.MOUSE_UP, dontDrag322);

num422.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag422);

num422.removeEventListener(MouseEvent.MOUSE_UP, dontDrag422);

num522.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag522);

num522.removeEventListener(MouseEvent.MOUSE_UP, dontDrag522);

num622.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag622);

num622.removeEventListener(MouseEvent.MOUSE_UP, dontDrag622);

num722.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag722);

num722.removeEventListener(MouseEvent.MOUSE_UP, dontDrag722);

num822.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag822);

num822.removeEventListener(MouseEvent.MOUSE_UP, dontDrag822);

num922.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag922);

num922.removeEventListener(MouseEvent.MOUSE_UP, dontDrag922);

num022.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag022);

num022.removeEventListener(MouseEvent.MOUSE_UP, dontDrag022);

stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay22);

stage.removeEventListener(Event.ENTER_FRAME, goTime22);



removeChild(signal122);

removeChild(signal222);

removeChild(signal322);

removeChild(signal422);

removeChild(box122);

removeChild(box222);

removeChild(box322);

removeChild(box422);

removeChild(num122);

removeChild(num222);

removeChild(num322);

removeChild(num422);

removeChild(num522);

removeChild(num622);

removeChild(num722);

removeChild(num822);

removeChild(num922);

removeChild(num022);

credits.x=40;

credits.y=0;

stage.addEventListener(Event.ENTER_FRAME,goCredits);

function goCredits(e:Event)

{

credits.y-=3;

}

}

}



function goTime22(e:Event){



timeBox22.text = String(cont22);

ticks22++;



if(ticks22 >= 24){

ticks22 = 0;

cont22--;

}

//DERROTA

if(cont22 <= 0){

gotoAndStop(3)

num122.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag122);

num122.removeEventListener(MouseEvent.MOUSE_UP, dontDrag122);

num222.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag222);

num222.removeEventListener(MouseEvent.MOUSE_UP, dontDrag222);

num322.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag322);

num322.removeEventListener(MouseEvent.MOUSE_UP, dontDrag322);

num422.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag422);

num422.removeEventListener(MouseEvent.MOUSE_UP, dontDrag422);

num522.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag522);

num522.removeEventListener(MouseEvent.MOUSE_UP, dontDrag522);

num622.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag622);

num622.removeEventListener(MouseEvent.MOUSE_UP, dontDrag622);

num722.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag722);

num722.removeEventListener(MouseEvent.MOUSE_UP, dontDrag722);

num822.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag822);

num822.removeEventListener(MouseEvent.MOUSE_UP, dontDrag822);

num922.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag922);

num922.removeEventListener(MouseEvent.MOUSE_UP, dontDrag922);

num022.removeEventListener(MouseEvent.MOUSE_DOWN, goDrag022);

num022.removeEventListener(MouseEvent.MOUSE_UP, dontDrag022);

stage.removeEventListener(Event.ENTER_FRAME, puzzlePlay22);

stage.removeEventListener(Event.ENTER_FRAME, goTime22);



removeChild(signal122);

removeChild(signal222);

removeChild(signal322);

removeChild(signal422);

removeChild(box122);

removeChild(box222);

removeChild(box322);

removeChild(box422);

removeChild(num122);

removeChild(num222);

removeChild(num322);

removeChild(num422);

removeChild(num522);

removeChild(num622);

removeChild(num722);

removeChild(num822);

removeChild(num922);

removeChild(num022);}

}

}

}



/////////////////////////////////////

//MAP DELETION!!!

///////////////////////////////////

function deleteObj()

{

for(var i:int=0;i

{

removeChild(allMap[i]);

}

removeChild(player);

//removeChild(detective);

allMap = null;

doorMap=null;

player=null;

//detective=null;

}



///////////////////////////////////////

//definicao das variaveis

var isLeft:Boolean = false;

var isRight:Boolean = false;

var isUp:Boolean = false;

var isDown:Boolean = false;

var isSpace:Boolean = false;



var walkTo:String;

var velX:Number;

var velY:Number;



stage.addEventListener(Event.ENTER_FRAME,gamePlay);

stage.addEventListener(KeyboardEvent.KEY_DOWN,cDown);

stage.addEventListener(KeyboardEvent.KEY_UP,cUp);



////////////////////////////////////////////

/*detective.addEventListener(Event.ENTER_FRAME,chase);

function chase(e:Event)

{

//detective moving

if(detective.x

{

detective.x+=detectivespeed;

}

if(detective.y

{

detective.y+=detectivespeed;

}

if(detective.x>player.x)

{

detective.x-=detectivespeed;

}

if(detective.y>player.y)

{

detective.y-=detectivespeed;

}

}

*/

////////////////////////////////////////////////

//G PLAY!!!

////////////////////////////////////////////////

function gamePlay(e:Event)//looping do game

{



//player moving

if(isLeft)

{

walkTo = "left";

}

if(isRight)

{

walkTo = "right";

}

if(isUp)

{

walkTo = "up";

}

if(isDown)

{

walkTo = "down";

}



if(walkTo == "left")

{

velY = 0;

if(isSpace)

{

velX=boosterspeed;

}

if(!isSpace)

{

velX=playerspeed;

}

}

if(walkTo == "right")

{

velY = 0;

if(isSpace)

{

velX=-boosterspeed;

}

if(!isSpace)

{

velX=-playerspeed;

}

}

if(walkTo == "up")

{

velX = 0;

if(isSpace)

{

velY=boosterspeed;

}

if(!isSpace)

{

velY=playerspeed;

}

}

if(walkTo == "down")

{

velX = 0;

if(isSpace)

{

velY=-boosterspeed;

}

if(!isSpace)

{

velY=-playerspeed;

}

}

if(!isLeft && !isRight && !isUp &&!isDown)

{

velX = 0;

velY = 0;

}

for(var j=0;j

{

allMap[j].x += velX;

allMap[j].y += velY;

}









///////////////////////////////////////////////////

//Collision Map!!!;

for(var i=0; i

{



var box = collisionMap[i];



var playerRight:Number = player.x + player.width/2; //grava as posicoes de cada lado do personagem

var playerLeft:Number = player.x - player.width/2;

var playerUp:Number = player.y - player.height;

var playerDown:Number = player.y;



/*var detectiveRight:Number = detective.x + detective.width/2; //grava as posicoes de cada lado do personagem

var detectiveLeft:Number = detective.x - detective.width/2;

var detectiveUp:Number = detective.y - detective.height;

var detectiveDown:Number = detective.y;*/



var oldBoxRight:Number = allMapOldX[i] + box.width/2; //grava as posicoes de cada lado de cada parede

var oldBoxLeft:Number = allMapOldX[i] - box.width/2;

var oldBoxUp:Number = allMapOldY[i] - box.height/2;

var oldBoxDown:Number = allMapOldY[i] + box.height/2;



//player

if(box.hitTestObject(player))//quando há colisão com alguma parede

{

var diffXp:Number;

var diffYp:Number;

var kp:int;

if(walkTo == "right" && (player.x - player.width/2) != oldBoxRight && (player.y - player.height) != oldBoxDown && (player.y) != oldBoxUp)

//verifica para que lado o usuário esta clicando e verifica a posicao anterior do personagem

{

diffXp = - box.x + playerRight+box.width/2; //calcula a diferença entre a posicao do personagem e a da tela

for(kp=0;kp

allMap[kp].x += diffXp;

}

}

if(walkTo == "left" && (player.x + player.width/2) != oldBoxLeft && (player.y - player.height) != oldBoxDown && (player.y) != oldBoxUp){

diffXp = -box.x + playerLeft-box.width/2;

for(kp=0;kp

{

allMap[kp].x += diffXp;

}

}

if(walkTo == "up" && (player.y + player.height) != oldBoxDown && (player.x - player.width/2) != oldBoxRight && (player.x + player.width/2) != oldBoxLeft)

{

diffYp = -box.y + playerUp-box.height/2;

for(kp=0;kp

{

allMap[kp].y += diffYp;

}

}

if(walkTo == "down" && (player.x - player.width/2) != oldBoxRight && (player.x + player.width/2) != oldBoxLeft)

{

diffYp = -box.y + playerDown+box.height/2;

for(kp=0;kp

{

allMap[kp].y += diffYp;

}

}

}

//detective

/*if(box.hitTestObject(detective))//quando há colisão com alguma parede

{

var diffXd:Number;

var diffYd:Number;

var kd:int;

if(walkTo == "right" && (detective.x - detective.width/2) != oldBoxRight && (detective.y - detective.height) != oldBoxDown && (detective.y) != oldBoxUp)

//verifica para que lado o usuário esta clicando e verifica a posicao anterior do personagem

{

diffXd = - box.x + detectiveRight+box.width/2; //calcula a diferença entre a posicao do personagem e a da tela

for(kd=0;kd

allMap[kd].x += diffXd;

}

}

if(walkTo == "left" && (detective.x + detective.width/2) != oldBoxLeft && (detective.y - detective.height) != oldBoxDown && (detective.y) != oldBoxUp){

diffXd = -box.x + detectiveLeft-box.width/2;

for(kd=0;kd

{

allMap[kd].x += diffXd;

}

}

if(walkTo == "up" && (detective.y + detective.height) != oldBoxDown && (detective.x - detective.width/2) != oldBoxRight && (detective.x + detective.width/2) != oldBoxLeft)

{

diffYd = -box.y + detectiveUp-box.height/2;

for(kd=0;kd

{

allMap[kd].y += diffYd;

}

}

if(walkTo == "down" && (detective.x - detective.width/2) != oldBoxRight && (detective.x + detective.width/2) != oldBoxLeft)

{

diffYd = -box.y + detectiveDown+box.height/2;

for(kd=0;kd

{

allMap[kd].y += diffYd;

}

}

}*/



allMapOldX[i] = box.x; //grava a posicao anterior de cada parede

allMapOldY[i] = box.y;

}

/////////////////////////////////////////////////////

//Verificação com Door!!!:

for(var l=0; l

{



var door = doorMap[l];



if(door.hitTestObject(player))//quando há colisão com alguma parede

{



deleteObj();

if(actualMap==1)

{

initializeMap(2,stage.stageWidth/2,stage.stageHeight/2,100,100);

playerspeed=5;

boosterspeed=10;

//collisionMap=null;

//doorMap=null;

//allMap=null;

//allMapOldX=null;

//allMapOldY=null;

//actualMap=null;

//tile.visible=false;

//gotoAndStop(2);

return;

}

if(actualMap==2)

{

initializeMap(3,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=2;

boosterspeed=8;

return;

}

if(actualMap==3)

{

initializeMap(4,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

if(actualMap==4)

{

initializeMap(5,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

if(actualMap==5)

{

initializeMap(6,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=2;

boosterspeed=8;

return;

}

if(actualMap==6)

{

initializeMap(7,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

if(actualMap==7)

{

initializeMap(8,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

if(actualMap==8)

{

initializeMap(9,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=2;

boosterspeed=8;

return;

}

if(actualMap==9)

{

initializeMap(10,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

if(actualMap==10)

{

initializeMap(11,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

if(actualMap==11)

{

initializeMap(12,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=2;

boosterspeed=8;

return;

}

if(actualMap==12)

{

initializeMap(13,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

if(actualMap==13)

{

initializeMap(14,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

if(actualMap==14)

{

initializeMap(15,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=2;

boosterspeed=8;

return;

}

if(actualMap==15)

{

initializeMap(16,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

if(actualMap==16)

{

initializeMap(17,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

if(actualMap==17)

{

initializeMap(1,stage.stageWidth/2,stage.stageHeight/2,0,0);

playerspeed=5;

boosterspeed=10;

return;

}

}



}

//tile type?

/*var tileSize:int=40;

var col:int=Math.ceil(player.x/tileSize);

var line:int=Math.ceil(player.y/tileSize);

var type:int=tileMap1[line][col];



if(m[i][j]==0)

{

velX=velX;

velY=velY;

}

//obstáculo(offscreen)

if(m[i][j]==1)

{

collisionMap.push(tile); //guarda a parede dentro da array allMap

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//porta

if(m[i][j]==2)

{

doorMap.push(tile);

}

//milho

if(m[i][j]==3)

{

velX=2;

velY=2;

}

//grama

if(m[i][j]==4)

{



}

//prédios

if(m[i][j]==5)

{

collisionMap.push(tile); //guarda a parede dentro da array allMap

allMapOldX.push(tile.x);

allMapOldY.push(tile.y);

}

//banco(porta(?)

if(m[i][j]==6)

{

doorMap.push(tile);

}*/

}



///////////////////////////////////////////

//BUTTONS!!!

/////////////////

//ON!!!

////////////////

function cDown(e:KeyboardEvent)

{

var key:int = e.keyCode;

if(key==Keyboard.LEFT)

{

isLeft = true;

}

if(key==Keyboard.RIGHT)

{

isRight = true;

}

if(key==Keyboard.UP)

{

isUp = true;

}

if(key==Keyboard.DOWN)

{

isDown = true;

}

if(key==Keyboard.SPACE)

{

isSpace = true;

}

}

///////////////////////////////////////////////

/////////////////

//OFF!!!

/////////////////

function cUp(e:KeyboardEvent)

{

var key:int = e.keyCode;

if(key==Keyboard.LEFT)

{

isLeft = false;

}

if(key==Keyboard.RIGHT)

{

isRight = false;

}

if(key==Keyboard.UP)

{

isUp = false;

}

if(key==Keyboard.DOWN)

{

isDown = false;

}

if(key==Keyboard.SPACE)

{

isSpace = false;

}

}

///////////////////////////////////////

Nenhum comentário:

Postar um comentário