rdococ wrote:
I've never learned about arrays. What are they?
Arrays store more than one thing in an object... see http://www.w3schools.com/js/js_obj_array.asp
5th page.
Last edited by comp500 (2011-06-05 09:17:01)
Offline
TornFusion wrote:
Hmm... I just thought, this project would be shut down by nintendo (they sneak stuff like blockers in their updates sometimes) and the creator would be took into court, assuming nobody snitches or speads this. We need to keep this low profile.
I TOTALLY SUPPORT THIS! I KNOW UR 10 BUT U ROCK! It would be a lot easier on the NDS/DSI/3DS platforms than the wii. The 3DS will not be updated for a long time as they're now updating the wii. Probably the exact sequence the NDS evolved.
I LIVE IN UK!
Fail. The 3DS is updated in 2 days.
Offline
whizzer wrote:
TornFusion wrote:
Hmm... I just thought, this project would be shut down by nintendo (they sneak stuff like blockers in their updates sometimes) and the creator would be took into court, assuming nobody snitches or speads this. We need to keep this low profile.
I TOTALLY SUPPORT THIS! I KNOW UR 10 BUT U ROCK! It would be a lot easier on the NDS/DSI/3DS platforms than the wii. The 3DS will not be updated for a long time as they're now updating the wii. Probably the exact sequence the NDS evolved.
I LIVE IN UK!Fail. The 3DS is updated in 2 days.
Epic fail.
Offline
rdococ wrote:
I've never learned about arrays. What are they?
Lists e.g
var Array = new Array(); //Declares the array;
Array[0] = "hello"; //Sets the first item to hello
var Hello=Array[0]; //Sets 'hello' to item 0 of array
Array= new Array(); //Wipes an array
Array[0]= new Array("001","002"); //Sets the first item of array to a new array of predeclared functions
Array[1]= new Array("003","004");
If you now look at Array its looks like
Array[0] ("001","002")
Array[1] ("003","004")
So you made a 2D array, a list in a list!
Offline
johnnydean1 wrote:
rdococ wrote:
I've never learned about arrays. What are they?
Lists e.g
var Array = new Array(); //Declares the array;
Array[0] = "hello"; //Sets the first item to hello
var Hello=Array[0]; //Sets 'hello' to item 0 of array
Array= new Array(); //Wipes an array
Array[0]= new Array("001","002"); //Sets the first item of array to a new array of predeclared functions
Array[1]= new Array("003","004");
If you now look at Array its looks like
Array[0] ("001","002")
Array[1] ("003","004")
So you made a 2D array, a list in a list!
Array = BYOB reference. :3
Anyway, shall we do 3 arrays with 3 items?
Offline
johnnydean1 wrote:
rdococ wrote:
I've never learned about arrays. What are they?
Lists e.g
var Array = new Array(); //Declares the array;
Array[0] = "hello"; //Sets the first item to hello
var Hello=Array[0]; //Sets 'hello' to item 0 of array
Array= new Array(); //Wipes an array
Array[0]= new Array("001","002"); //Sets the first item of array to a new array of predeclared functions
Array[1]= new Array("003","004");
If you now look at Array its looks like
Array[0] ("001","002")
Array[1] ("003","004")
So you made a 2D array, a list in a list!
I use the:
var foo = ["01","02"];
method, because it uses less characters...
Offline
comp500 wrote:
johnnydean1 wrote:
rdococ wrote:
I've never learned about arrays. What are they?
Lists e.g
...
So you made a 2D array, a list in a list!I use the:
Code:
var foo = ["01","02"];method, because it uses less characters...
Different ways.. I just think differently to you...
Last edited by johnnydean1 (2011-06-05 13:03:15)
Offline
I would do:
Sprites = new Array();
Sprites[0]= new Array()";
Sprites[0][0]= "Stage"; //Sprite Name
Sprites[0][1]= new Array("STORE ALL SCRIPTS HERE");
Sprites[0][2]= new Array("STORE ALL COSTUMES HERE");
Sprites[1]= new Array()";
Sprites[1][0]= "Sprite1"; //Sprite Name
Sprites[1][1]= new Array("STORE ALL SCRIPTS HERE");
Sprites[1][2]= new Array("STORE ALL COSTUMES HERE");
Offline
johnnydean1 wrote:
I would do:
Sprites = new Array();
Sprites[0]= new Array()";
Sprites[0][0]= "Stage"; //Sprite Name
Sprites[0][1]= new Array("STORE ALL SCRIPTS HERE");
Sprites[0][2]= new Array("STORE ALL COSTUMES HERE");
Sprites[1]= new Array()";
Sprites[1][0]= "Sprite1"; //Sprite Name
Sprites[1][1]= new Array("STORE ALL SCRIPTS HERE");
Sprites[1][2]= new Array("STORE ALL COSTUMES HERE");
But how do they read the array? And items of the array. And, we need the repeat command. What is used for the "for array [array] do" command?
EDIT: Just a thought, how do we add an "item" in an array?
Last edited by rdococ (2011-06-05 13:19:45)
Offline
---Version 2.0 of my snippet---
Feature added: Scaling to device size in width.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta name="viewport" content="width=device-width"> <title>Scratch Everywhere</title> </head> <body> <br> <form name="data"> <canvas id="stage" width="200" height="100" style="border: 1px solid rgb(195, 195, 195);">Oops! Your browser does not support canvas. Please use a different browser. We recommend the standard DSi web browser. </canvas><br> <script type="text/javascript"> function updateStageInToFin() { var c=document.getElementById("stage"); var cxt=c.getContext("2d"); cxt.fillStyle="#FFFFFF"; cxt.fillRect(0,0,200,100); cxt.fillStyle="#FF0000"; cxt.beginPath(); cxt.arc(document.data.sprite1x.value,document.data.sprite1y.value,15,0,Math.PI*2,true); cxt.closePath(); cxt.fill(); if (document.data.sprite2.value=="true") { var c=document.getElementById("stage"); var cxt=c.getContext("2d"); cxt.fillStyle="#FFFF00"; cxt.beginPath(); cxt.arc(document.data.sprite2x.value,document.data.sprite2y.value,15,0,Math.PI*2,true); cxt.closePath(); cxt.fill(); } } </script> Use sprite2? <input name="sprite2" value="false" type="text"><br> Sprite1 X:<input name="sprite1x" value="15" type="text"><br> Sprite1 Y:<input name="sprite1y" value="15" type="text"><br> Sprite2 X:<input name="sprite2x" value="15" type="text"><br> Sprite2 Y:<input name="sprite2y" value="15" type="text"><br> <input name="update" onclick="updateStageInToFin()" value="Update Stage..." type="button"> </form> </body> </html>
Offline
rdococ wrote:
johnnydean1 wrote:
I would do:
Sprites = new Array();
Sprites[0]= new Array()";
Sprites[0][0]= "Stage"; //Sprite Name
Sprites[0][1]= new Array("STORE ALL SCRIPTS HERE");
Sprites[0][2]= new Array("STORE ALL COSTUMES HERE");
Sprites[1]= new Array()";
Sprites[1][0]= "Sprite1"; //Sprite Name
Sprites[1][1]= new Array("STORE ALL SCRIPTS HERE");
Sprites[1][2]= new Array("STORE ALL COSTUMES HERE");But how do they read the array? And items of the array. And, we need the repeat command. What is used for the "for array [array] do" command?
EDIT: Just a thought, how do we add an "item" in an array?
E.G
var Name = Sprites[0][0];
then name equals "Stage".
Just look here.
Last edited by johnnydean1 (2011-06-05 14:00:36)
Offline
johnnydean1 wrote:
comp500 wrote:
johnnydean1 wrote:
Lists e.g
...
So you made a 2D array, a list in a list!I use the:
Code:
var foo = ["01","02"];method, because it uses less characters...
Different ways.. I just think differently to you...
Offline
How do we return the "row" of a textarea (it's contents)?
Offline
I don't know if you're still looking for beta testers, but I can test on an iPad if need be. Also, I can help with the UI later on, when it's further developed.
Offline
timothymh wrote:
I don't know if you're still looking for beta testers, but I can test on an iPad if need be. Also, I can help with the UI later on, when it's further developed.
Ok!
Offline
rdococ wrote:
How do we return the "row" of a textarea (it's contents)?
What are you talking about?
Offline
My current Pokemon file
<html> <head> <meta name="viewport" content="width=device-width"/> <meta name="viewport" content="height=device-height"/> </head> <body bgcolor=#0000FF> <div id="JohnsPokemon"> <canvas id="myCanvas" width="device-width" height="device-height" tabindex="1"></canvas> </br> <code id="para1">JOHNS POKEMON HTML5</code> <code id="para2"></code></br> <!-- <input type="text" id="focusButton" value="This will be used later on for data exchange (Save data/DLC)"/> --> </div> <script type="text/javascript">//John's Pokemon if(1==1){// INFO //Johns Pokemon Code (Javascript) //Version ALPHA //OPEN SOURCE //CREDIT TO NINTENDO (TM) FOR ORIGNINAL TILES AND CONCEPT } //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\\ //>>>>>>VARIABLE DECLARATION>>>>>>>\\ //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\\ if (1==1){ //CANVAS VARIABLES var bkcanv = document.createElement("canvas");//HIDDEN CANVAS FOR FASTER TILES //document.getElementsByTagName("body").item(0).appendChild(bkcanv); //UNCOMMENT TO SHOW HIDDEN CANVAS var tileCan = document.createElement("canvas");//HIDDEN CANVAS FOR FASTER RENDER //document.getElementsByTagName("body").item(0).appendChild(tileCan); //UNCOMMENT TO SHOW HIDDEN CANVAS var canvasBlank = "#FF0000"; var can=document.getElementById("myCanvas"); var canvasX = can.width; //Adaptive var canvasY = can.height; var RealSizeX=canvasX; var RealSizeY=canvasY; //var canvasX = 176; //Fixed //var canvasY = 176; if (canvasX > 200){ canvasX=200; } if (canvasY > 200){ canvasY=200; } var XSize=canvasX/16; var YSize=canvasY/16; XSize=XSize-0.5; YSize=YSize-0.5; XSize=Math.round(XSize); YSize=Math.round(YSize); var Temp= (XSize+1) % 2; XSize=XSize-Temp; var Temp=(YSize+1) % 2; YSize=YSize-Temp; canvasX=XSize*16; canvasY=YSize*16; can.setAttribute('width', canvasX); can.setAttribute('height', canvasY); var can1=can.getContext("2d"); can1.clearRect(0,0,1000,1000); //Makes sure canvas is clear!! can1.rect(0, 0, canvasX, canvasY); can1.fillStyle=canvasBlank; can1.fill(); var canvas=can.getContext("2d"); } if (1==1){ //GLOBAL/Game Variables var Colours= new Array(); Colours[0]="#FFFFFF"; Colours[1]="#C0C0C0"; Colours[2]="#6666CC"//"#009900"//"#0000CC"//"#404040"; //Use this to change themes Colours[3]="#000000"; var Cam= new Array(); var MapDraw=0; var MapStd="001"; var Time=0; var Tiles= new Array(); var Map=new Array(); var CamX=3; var CamY=6; CamX=CamX-2; CamY=CamY-2; var Xin= ((XSize-1)/2)-1; var Yin= ((YSize-1)/2)-1; var PlrKey=0; var PlrMove=0; var Cos=0; var PlrObs=new Array("001","082","003","004","005","006","007","008","009","010","011","012","013","015","016","017","018","019","020","021","022","023","024","025","026","027","028","029","030","031","032","033","034"); } //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\\ //>>>>>>>>>>>>>>GAME>>>>>>>>>>>>>>>\\ //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\\ function beginGame(){ //Start Game iniTiles(); setMap("Test"); //Animation of player at start (face down) var XXXX=(Xin+1)*16; var YYYY=(Yin+1)*16; animate(85,86,XXXX,YYYY,true); //Controls window.addEventListener('keydown',keyDown,true); window.addEventListener('keyup',keyUp,true); Time=self.setInterval("controlTest()",50); //self.setInterval("window.focus()",50); } function updateMap(){ //Puts current map into array var Temp=0; Cam= new Array(); var x=Map[1].length-1+1; var y=Map.length-1+1; var i=0; for (i=0;i<=YSize;i++) { Cam[i]=new Array(); var n=0; for (n=0;n<=XSize;n++) { Cam[i][n]=Math.round(MapStd); var p = n-Xin; var q = i-Yin; if (CamX + p > -1 && CamX + p < x) { if (CamY + q > -1 && CamY + q < y) { Temp=Map[CamY+q][CamX+p]; Cam[i][n]=Math.round(Temp); } } } } drawMap(); } function drawMap(){ //Draws map from array (Called from updateMap) var canvas = can.getContext('2d'); tileCan.setAttribute('width', canvasX); tileCan.setAttribute('height', canvasY); tileCtx = tileCan.getContext('2d'); var i=0; for (i=0;i<=YSize;i++) { var n=0; for (n=0;n<=XSize;n++) { drawTile(Cam[i][n],n*16,i*16); } } //drawTile(92,(Xin+1)*16,(Yin+1)*16); canvas.drawImage(tileCan,0,0); } function setMap(MapName){ // Stores all maps if (MapName=="Test"){ Map=new Array(); Map[0]= new Array("082","082","082","082","082","082","082","082","082","082"); Map[1]= new Array("082","003","004","005","032","033","033","033","034","082"); Map[2]= new Array("082","010","011","006","029","030","030","030","031","082"); Map[3]= new Array("082","010","011","006","017","020","021","019","022","082"); Map[4]= new Array("082","009","008","007","012","013","014","013","016","082"); Map[5]= new Array("082","002","002","002","002","002","002","002","002","082"); Map[6]= new Array("082","081","081","081","002","002","002","002","002","082"); Map[7]= new Array("082","081","081","081","002","002","002","002","002","082"); Map[8]= new Array("082","081","081","081","002","002","002","002","002","082"); Map[9]= new Array("082","082","082","082","082","082","082","082","082","082"); } } function iniTiles(){ //Gets all tiles stored in an array format if(1==1){ //Tile000 (Transparent) var Temp= new Array(); Temp[0]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[1]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[2]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[3]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[4]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[5]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[6]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[7]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[8]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[9]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[10]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Tiles[0]=Temp; } if(1==1){ //Tile001 (Black) var Temp= new Array(); Temp[0]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[1]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[2]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[3]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[4]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[5]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[6]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[7]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[8]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[9]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[10]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[11]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[12]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[13]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[14]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[15]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Tiles[1]=Temp; } if(1==1){ //Tile002 (White) var Temp= new Array(); Temp[0]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[1]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[2]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[3]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[4]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[5]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[6]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[7]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[8]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[9]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[10]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[12]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[13]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[15]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Tiles[2]=Temp; } if(1==1){ //Tile003 var Temp= new Array(); Temp[0]= new Array("3","2","2","2","2","2","2","3","3","2","2","2","2","2","2","3"); Temp[1]= new Array("1","3","2","2","2","2","3","1","1","3","2","2","2","2","3","1"); Temp[2]= new Array("2","1","3","2","2","3","1","2","2","1","3","2","2","3","1","2"); Temp[3]= new Array("2","2","1","3","3","1","2","2","2","2","1","3","3","1","2","2"); Temp[4]= new Array("3","2","3","3","3","1","3","2","3","2","3","3","3","1","3","2"); Temp[5]= new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","3"); Temp[6]= new Array("3","3","1","3","2","3","3","2","3","3","1","3","2","3","3","2"); Temp[7]= new Array("3","1","3","2","3","2","2","3","3","1","3","2","3","2","2","3"); Temp[8]= new Array("3","1","2","2","3","2","3","3","2","2","2","2","0","0","2","2"); Temp[9]= new Array("2","3","1","2","2","3","3","1","2","2","2","0","0","2","2","2"); Temp[10]= new Array("2","2","3","1","3","3","1","3","2","2","2","0","0","2","2","2"); Temp[11]= new Array("2","2","2","3","3","1","3","2","2","2","2","2","0","0","2","2"); Temp[12]= new Array("2","2","2","3","3","1","2","3","2","2","2","2","2","0","0","0"); Temp[13]= new Array("2","2","3","1","1","3","3","2","0","0","2","2","2","2","2","2"); Temp[14]= new Array("2","3","1","2","3","2","3","2","2","2","0","0","2","2","2","2"); Temp[15]= new Array("3","1","2","2","2","3","2","3","2","2","2","0","0","2","2","2"); Tiles[3]=Temp; } if(1==1){ //Tile004 var Temp= new Array(); Temp[0]= new Array("3","2","2","2","2","2","2","3","3","2","2","2","2","2","2","3"); Temp[1]= new Array("1","3","2","2","2","2","3","1","1","3","2","2","2","2","3","1"); Temp[2]= new Array("2","1","3","2","2","3","1","2","2","1","3","2","2","3","1","2"); Temp[3]= new Array("2","2","1","3","3","1","2","2","2","2","1","3","3","1","2","2"); Temp[4]= new Array("3","2","3","3","3","1","3","2","3","2","3","3","3","1","3","2"); Temp[5]= new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","3"); Temp[6]= new Array("3","3","1","3","2","3","3","2","3","3","1","3","2","3","3","2"); Temp[7]= new Array("3","1","3","2","3","2","2","3","3","1","3","2","3","2","2","3"); Temp[8]= new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2"); Temp[9]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2"); Temp[10]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2"); Temp[11]= new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2"); Temp[12]= new Array("2","2","2","2","2","0","0","0","2","2","2","2","2","0","0","0"); Temp[13]= new Array("0","0","2","2","2","2","2","2","0","0","2","2","2","2","2","2"); Temp[14]= new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2"); Temp[15]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2"); Tiles[4]=Temp; } if(1==1){ //Tile005 var Temp= new Array(); Temp[0]= new Array("3","2","2","2","2","2","2","3","3","2","2","2","2","2","2","3"); Temp[1]= new Array("1","3","2","2","2","2","3","1","1","3","2","2","2","2","3","1"); Temp[2]= new Array("2","1","3","2","2","3","1","2","2","1","3","2","2","3","1","2"); Temp[3]= new Array("2","2","1","3","3","1","2","2","2","2","1","3","3","1","2","2"); Temp[4]= new Array("3","2","3","3","3","1","3","2","3","2","3","3","3","1","3","2"); Temp[5]= new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","3"); Temp[6]= new Array("3","3","1","3","2","3","3","2","3","3","1","3","2","3","3","2"); Temp[7]= new Array("3","1","3","2","3","2","2","3","3","1","3","2","3","2","2","3"); Temp[8]= new Array("2","2","2","2","0","0","2","2","3","3","2","3","2","2","1","3"); Temp[9]= new Array("2","2","2","0","0","2","2","2","1","3","3","2","2","1","3","2"); Temp[10]= new Array("2","2","2","0","0","2","2","2","3","1","3","3","1","3","2","2"); Temp[11]= new Array("2","2","2","2","0","0","2","2","2","3","1","3","3","2","2","2"); Temp[12]= new Array("2","2","2","2","2","0","0","0","3","2","1","3","3","2","2","2"); Temp[13]= new Array("0","0","2","2","2","2","2","2","2","3","3","1","1","3","2","2"); Temp[14]= new Array("2","2","0","0","2","2","2","2","2","3","2","3","2","1","3","2"); Temp[15]= new Array("2","2","2","0","0","2","2","2","3","2","3","2","2","2","1","3"); Tiles[5]=Temp; } if(1==1){ //Tile006 var Temp= new Array(); Temp[0]= new Array("2","2","2","0","0","2","2","2","3","2","2","2","2","2","2","3"); Temp[1]= new Array("2","2","2","2","0","0","2","2","1","3","2","2","2","2","3","1"); Temp[2]= new Array("2","2","2","2","0","0","2","2","2","1","3","2","2","3","1","2"); Temp[3]= new Array("2","2","2","2","2","0","0","0","2","2","1","3","3","1","2","2"); Temp[4]= new Array("0","0","2","2","2","2","2","2","3","2","3","3","3","1","3","2"); Temp[5]= new Array("2","2","0","0","2","2","2","2","2","3","3","1","1","3","2","3"); Temp[6]= new Array("2","2","0","0","2","2","2","2","3","3","1","3","2","3","3","2"); Temp[7]= new Array("2","2","2","0","0","2","2","2","3","1","3","2","3","2","2","3"); Temp[8]= new Array("2","2","2","0","0","2","2","2","3","3","2","3","2","2","1","3"); Temp[9]= new Array("2","2","2","2","0","0","2","2","1","3","3","2","2","1","3","2"); Temp[10]= new Array("2","2","2","2","0","0","2","2","3","1","3","3","1","3","2","2"); Temp[11]= new Array("2","2","2","2","2","0","0","0","2","3","1","3","3","2","2","2"); Temp[12]= new Array("0","0","2","2","2","2","2","2","3","2","1","3","3","2","2","2"); Temp[13]= new Array("2","2","0","0","2","2","2","2","2","3","3","1","1","3","2","2"); Temp[14]= new Array("2","2","0","0","2","2","2","2","2","3","2","3","2","1","3","2"); Temp[15]= new Array("2","2","2","0","0","2","2","2","3","2","3","2","2","2","1","3"); Tiles[6]=Temp; } if(1==1){ //Tile007 var Temp= new Array(); Temp[0]= new Array("2","2","2","0","0","2","2","2","3","2","2","2","2","2","2","3"); Temp[1]= new Array("2","2","2","2","0","0","2","2","1","3","2","2","2","2","3","1"); Temp[2]= new Array("2","2","2","2","0","0","2","2","2","1","3","2","2","3","1","2"); Temp[3]= new Array("2","2","2","2","2","0","0","0","2","2","1","3","3","1","2","2"); Temp[4]= new Array("0","0","2","2","2","2","2","2","3","2","3","3","3","1","3","2"); Temp[5]= new Array("2","2","0","0","2","2","2","2","2","3","3","1","1","3","2","3"); Temp[6]= new Array("2","2","0","0","2","2","2","2","3","3","1","3","2","3","3","2"); Temp[7]= new Array("2","2","2","0","0","2","2","2","3","1","3","2","3","2","2","3"); Temp[8]= new Array("3","2","2","2","2","2","2","3","3","3","2","3","2","2","1","3"); Temp[9]= new Array("1","3","2","2","2","2","3","1","1","3","3","2","2","1","3","2"); Temp[10]= new Array("2","1","3","2","2","3","1","2","3","1","3","3","1","3","2","2"); Temp[11]= new Array("2","3","3","1","1","3","2","3","2","3","1","3","3","2","2","2"); Temp[12]= new Array("3","2","3","3","3","1","3","2","3","2","1","3","3","2","2","2"); Temp[13]= new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","2"); Temp[14]= new Array("3","3","1","3","2","3","3","2","2","3","2","3","2","1","3","2"); Temp[15]= new Array("3","1","3","2","3","2","2","3","3","2","3","2","2","2","1","3"); Tiles[7]=Temp; } if(1==1){ //Tile008 var Temp= new Array(); Temp[0]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2"); Temp[1]= new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2"); Temp[2]= new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2"); Temp[3]= new Array("2","2","2","2","2","0","0","0","2","2","2","2","2","0","0","0"); Temp[4]= new Array("0","0","2","2","2","2","2","2","0","0","2","2","2","2","2","2"); Temp[5]= new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2"); Temp[6]= new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2"); Temp[7]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2"); Temp[8]= new Array("3","2","2","2","2","2","2","3","3","3","2","3","2","2","1","3"); Temp[9]= new Array("1","3","2","2","2","2","3","1","1","3","3","2","2","1","3","2"); Temp[10]= new Array("2","1","3","2","2","3","1","2","3","1","3","3","1","3","2","2"); Temp[11]= new Array("2","3","3","1","1","3","2","3","2","3","1","3","3","2","2","2"); Temp[12]= new Array("3","2","3","3","3","1","3","2","3","2","1","3","3","2","2","2"); Temp[13]= new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","2"); Temp[14]= new Array("3","3","1","3","2","3","3","2","2","3","2","3","2","1","3","2"); Temp[15]= new Array("3","1","3","2","3","2","2","3","3","2","3","2","2","2","1","3"); Tiles[8]=Temp; } if(1==1){ //Tile009 var Temp= new Array(); Temp[0]= new Array("3","2","2","2","2","2","2","3","2","2","2","0","0","2","2","2"); Temp[1]= new Array("1","3","2","2","2","2","3","1","2","2","2","2","0","0","2","2"); Temp[2]= new Array("2","1","3","2","2","3","1","2","2","2","2","2","0","0","2","2"); Temp[3]= new Array("2","3","3","1","1","3","2","3","2","2","2","2","2","0","0","0"); Temp[4]= new Array("3","2","3","3","3","1","3","2","0","0","2","2","2","2","2","2"); Temp[5]= new Array("2","3","3","1","1","3","2","3","2","2","0","0","2","2","2","2"); Temp[6]= new Array("3","3","1","3","2","3","3","2","2","2","0","0","2","2","2","2"); Temp[7]= new Array("3","1","3","2","3","2","2","3","2","2","2","0","0","2","2","2"); Temp[8]= new Array("3","2","2","2","2","2","2","3","3","3","2","3","2","2","1","3"); Temp[9]= new Array("1","3","2","2","2","2","3","1","1","3","3","2","2","1","3","2"); Temp[10]= new Array("2","1","3","2","2","3","1","2","3","1","3","3","1","3","2","2"); Temp[11]= new Array("2","3","3","1","1","3","2","3","2","3","1","3","3","2","2","2"); Temp[12]= new Array("3","2","3","3","3","1","3","2","3","2","1","3","3","2","2","2"); Temp[13]= new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","2"); Temp[14]= new Array("3","3","1","3","2","3","3","2","2","3","2","3","2","1","3","2"); Temp[15]= new Array("3","1","3","2","3","2","2","3","3","2","3","2","2","2","1","3"); Tiles[9]=Temp; } if(1==1){ //Tile010 var Temp= new Array(); Temp[0]= new Array("3","2","2","2","2","2","2","3","2","2","2","0","0","2","2","2"); Temp[1]= new Array("1","3","2","2","2","2","3","1","2","2","2","2","0","0","2","2"); Temp[2]= new Array("2","1","3","2","2","3","1","2","2","2","2","2","0","0","2","2"); Temp[3]= new Array("2","3","3","1","1","3","2","3","2","2","2","2","2","0","0","0"); Temp[4]= new Array("3","2","3","3","3","1","3","2","0","0","2","2","2","2","2","2"); Temp[5]= new Array("2","3","3","1","1","3","2","3","2","2","0","0","2","2","2","2"); Temp[6]= new Array("3","3","1","3","2","3","3","2","2","2","0","0","2","2","2","2"); Temp[7]= new Array("3","1","3","2","3","2","2","3","2","2","2","0","0","2","2","2"); Temp[8]= new Array("3","2","2","2","2","2","2","3","2","2","2","0","0","2","2","2"); Temp[9]= new Array("1","3","2","2","2","2","3","1","2","2","2","2","0","0","2","2"); Temp[10]= new Array("2","1","3","2","2","3","1","2","2","2","2","2","0","0","2","2"); Temp[11]= new Array("2","3","3","1","1","3","2","3","2","2","2","2","2","0","0","0"); Temp[12]= new Array("3","2","3","3","3","1","3","2","0","0","2","2","2","2","2","2"); Temp[13]= new Array("2","3","3","1","1","3","2","3","2","2","0","0","2","2","2","2"); Temp[14]= new Array("3","3","1","3","2","3","3","2","2","2","0","0","2","2","2","2"); Temp[15]= new Array("3","1","3","2","3","2","2","3","2","2","2","0","0","2","2","2"); Tiles[10]=Temp; } if(1==1){ //Tile011 var Temp= new Array(); Temp[0]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2"); Temp[1]= new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2"); Temp[2]= new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2"); Temp[3]= new Array("2","2","2","2","2","0","0","0","2","2","2","2","2","0","0","0"); Temp[4]= new Array("0","0","2","2","2","2","2","2","0","0","2","2","2","2","2","2"); Temp[5]= new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2"); Temp[6]= new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2"); Temp[7]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2"); Temp[8]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2"); Temp[9]= new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2"); Temp[10]= new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2"); Temp[11]= new Array("2","2","2","2","2","0","0","0","2","2","2","2","2","0","0","0"); Temp[12]= new Array("0","0","2","2","2","2","2","2","0","0","2","2","2","2","2","2"); Temp[13]= new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2"); Temp[14]= new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2"); Temp[15]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2"); Tiles[11]=Temp; } if(1==1){ //Tile012 var Temp= new Array(); Temp[0]= new Array("0","1","1","1","1","3","0","0","1","1","1","1","1","1","1","1"); Temp[1]= new Array("0","1","1","1","1","3","0","0","2","3","3","3","3","3","3","2"); Temp[2]= new Array("0","1","1","1","1","3","0","0","3","0","0","0","0","1","0","3"); Temp[3]= new Array("0","1","1","1","1","3","0","0","3","0","0","0","1","0","2","3"); Temp[4]= new Array("0","1","1","1","1","3","0","0","3","0","0","1","0","2","1","3"); Temp[5]= new Array("0","1","1","1","1","3","0","0","3","0","1","0","2","1","2","3"); Temp[6]= new Array("0","1","1","1","1","3","0","0","3","1","0","2","1","2","2","3"); Temp[7]= new Array("0","1","1","1","1","3","0","0","2","3","3","3","3","3","3","2"); Temp[8]= new Array("0","1","1","1","1","3","1","1","1","1","1","1","1","1","1","1"); Temp[9]= new Array("0","1","1","1","1","3","0","0","1","1","1","1","1","1","1","1"); Temp[10]= new Array("0","1","1","1","1","3","0","0","0","0","0","0","0","0","0","0"); Temp[11]= new Array("0","1","1","1","1","3","1","1","1","1","1","1","1","1","1","1"); Temp[12]= new Array("0","1","1","1","1","3","1","2","2","2","2","2","2","2","2","2"); Temp[13]= new Array("0","1","1","1","1","3","1","2","2","2","2","2","2","2","2","2"); Temp[14]= new Array("0","1","1","1","1","2","3","3","3","3","3","3","3","3","3","3"); Temp[15]= new Array("0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Tiles[12]=Temp; } if(1==1){ //Tile013 var Temp= new Array(); Temp[0]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[1]= new Array("2","3","3","3","3","3","3","2","2","3","3","3","3","3","3","2"); Temp[2]= new Array("3","0","0","0","0","1","0","3","3","0","0","0","0","1","0","3"); Temp[3]= new Array("3","0","0","0","1","0","2","3","3","0","0","0","1","0","2","3"); Temp[4]= new Array("3","0","0","1","0","2","1","3","3","0","0","1","0","2","1","3"); Temp[5]= new Array("3","0","1","0","2","1","2","3","3","0","1","0","2","1","2","3"); Temp[6]= new Array("3","1","0","2","1","2","2","3","3","1","0","2","1","2","2","3"); Temp[7]= new Array("2","3","3","3","3","3","3","2","2","3","3","3","3","3","3","2"); Temp[8]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[9]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[10]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[11]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[12]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"); Temp[13]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"); Temp[14]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[15]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Tiles[13]=Temp; } if(1==1){ //Tile014 var Temp= new Array(); Temp[0]= new Array("2","1","2","1","1","1","1","1","1","1","1","1","1","2","1","2"); Temp[1]= new Array("2","1","3","3","3","3","3","3","3","3","3","3","3","3","1","3"); Temp[2]= new Array("2","1","3","2","2","2","2","2","2","2","2","2","2","3","1","3"); Temp[3]= new Array("2","1","3","2","2","3","3","3","3","3","3","2","2","3","1","3"); Temp[4]= new Array("2","0","3","2","3","0","0","0","0","1","0","3","2","3","0","3"); Temp[5]= new Array("2","0","3","2","3","0","0","0","1","0","1","3","2","3","0","3"); Temp[6]= new Array("2","0","3","2","3","0","0","1","0","1","1","3","2","3","0","3"); Temp[7]= new Array("2","0","3","2","3","0","1","0","1","1","1","3","2","3","0","3"); Temp[8]= new Array("2","0","3","2","2","3","3","3","3","3","3","2","3","3","0","3"); Temp[9]= new Array("2","0","3","2","2","2","2","2","2","2","2","3","0","3","0","3"); Temp[10]= new Array("2","0","3","2","1","0","0","0","0","0","0","1","3","3","0","3"); Temp[11]= new Array("2","0","3","2","0","1","1","1","1","1","1","1","2","3","0","3"); Temp[12]= new Array("2","0","3","2","0","1","1","1","1","1","1","1","2","3","0","3"); Temp[13]= new Array("2","0","3","2","2","2","2","2","2","2","2","2","2","3","0","3"); Temp[14]= new Array("2","0","3","3","3","3","3","3","3","3","3","3","3","3","0","3"); Temp[15]= new Array("3","3","1","1","1","1","1","1","1","1","1","1","1","1","3","3"); Tiles[14]=Temp; } if(1==1){ //Tile015 var Temp= new Array(); Temp[0]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[1]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[2]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[3]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[4]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[5]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[6]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[7]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[8]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[9]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[10]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[11]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[12]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"); Temp[13]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"); Temp[14]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[15]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Tiles[15]=Temp; } if(1==1){ //Tile016 var Temp= new Array(); Temp[0]= new Array("1","1","1","1","1","1","1","1","0","0","3","1","1","1","1","0"); Temp[1]= new Array("2","3","3","3","3","3","3","2","0","0","3","1","1","1","1","0"); Temp[2]= new Array("3","0","0","0","0","1","0","3","0","0","3","1","1","1","1","0"); Temp[3]= new Array("3","0","0","0","1","0","2","3","0","0","3","1","1","1","1","0"); Temp[4]= new Array("3","0","0","1","0","2","1","3","0","0","3","1","1","1","1","0"); Temp[5]= new Array("3","0","1","0","2","1","2","3","0","0","3","1","1","1","1","0"); Temp[6]= new Array("3","1","0","2","1","2","2","3","0","0","3","1","1","1","1","0"); Temp[7]= new Array("2","3","3","3","3","3","3","2","0","0","3","1","1","1","1","0"); Temp[8]= new Array("1","1","1","1","1","1","1","1","1","1","3","1","1","1","1","0"); Temp[9]= new Array("1","1","1","1","1","1","1","1","0","0","3","1","1","1","1","0"); Temp[10]= new Array("0","0","0","0","0","0","0","0","0","0","3","1","1","1","1","0"); Temp[11]= new Array("1","1","1","1","1","1","1","1","1","1","3","1","1","1","1","0"); Temp[12]= new Array("2","2","2","2","2","2","2","2","2","1","3","1","1","1","1","0"); Temp[13]= new Array("2","2","2","2","2","2","2","2","2","1","3","1","1","1","1","0"); Temp[14]= new Array("3","3","3","3","3","3","3","3","3","3","1","1","1","1","1","0"); Temp[15]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","0"); Tiles[16]=Temp; } if(1==1){ //Tile017 var Temp= new Array(); Temp[0]= new Array("3","0","2","2","0","2","2","0","2","3","3","2","2","3","3","1"); Temp[1]= new Array("3","0","2","2","0","2","2","3","3","2","2","3","3","1","1","1"); Temp[2]= new Array("3","0","2","2","0","3","3","2","2","3","3","1","1","1","1","1"); Temp[3]= new Array("3","0","2","3","3","2","2","3","3","1","1","1","1","1","1","1"); Temp[4]= new Array("3","1","1","2","2","3","3","1","1","1","1","1","1","0","0","0"); Temp[5]= new Array("3","2","2","2","2","1","1","1","1","1","1","0","0","0","0","0"); Temp[6]= new Array("0","3","3","3","3","1","1","1","1","0","0","0","0","0","0","0"); Temp[7]= new Array("0","0","0","0","3","1","1","0","0","0","0","0","0","0","0","0"); Temp[8]= new Array("0","1","1","1","1","3","0","0","0","0","0","0","0","0","0","0"); Temp[9]= new Array("0","1","1","1","1","3","0","0","0","2","1","1","1","1","1","1"); Temp[10]= new Array("0","1","1","1","1","3","0","0","0","2","1","1","1","1","1","1"); Temp[11]= new Array("0","1","1","1","1","3","0","0","0","0","0","0","0","0","0","0"); Temp[12]= new Array("0","1","1","1","1","3","0","0","1","1","1","1","0","3","1","1"); Temp[13]= new Array("0","1","1","1","1","3","0","0","1","1","1","1","0","3","1","1"); Temp[14]= new Array("0","1","1","1","1","3","0","0","0","0","0","0","0","0","0","0"); Temp[15]= new Array("0","1","1","1","1","3","0","0","0","2","1","1","1","1","1","0"); Tiles[17]=Temp; } if(1==1){ //Tile018 var Temp= new Array(); Temp[0]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[1]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0"); Temp[2]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0"); Temp[3]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[4]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1"); Temp[5]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1"); Temp[6]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[7]= new Array("0","1","1","1","1","1","2","0","0","1","1","1","1","1","2","0"); Temp[8]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[9]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0"); Temp[10]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0"); Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[12]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1"); Temp[13]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1"); Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[15]= new Array("0","1","1","1","1","1","2","0","0","1","1","1","1","1","2","0"); Tiles[18]=Temp; } if(1==1){ //Tile019 var Temp= new Array(); Temp[0]= new Array("1","1","1","1","1","1","1","1","0","0","0","0","0","0","0","0"); Temp[1]= new Array("2","3","3","3","3","3","3","2","1","1","1","1","1","1","2","0"); Temp[2]= new Array("3","0","0","0","0","1","0","3","1","1","1","1","1","1","2","0"); Temp[3]= new Array("3","0","0","0","1","0","2","3","0","0","0","0","0","0","0","0"); Temp[4]= new Array("3","0","0","1","0","2","1","3","1","1","2","0","1","1","1","1"); Temp[5]= new Array("3","0","1","0","2","1","2","3","1","1","2","0","1","1","1","1"); Temp[6]= new Array("3","1","0","2","1","2","2","3","0","0","0","0","0","0","0","0"); Temp[7]= new Array("2","3","3","3","3","3","3","2","0","1","1","1","1","1","2","0"); Temp[8]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[9]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0"); Temp[10]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0"); Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[12]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1"); Temp[13]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1"); Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[15]= new Array("0","1","1","1","1","1","2","0","0","1","1","1","1","1","2","0"); Tiles[19]=Temp; } if(1==1){ //Tile020 var Temp= new Array(); Temp[0]= new Array("0","0","0","0","0","0","0","0","1","1","1","1","1","1","1","1"); Temp[1]= new Array("1","1","1","1","1","1","2","0","2","3","3","3","3","3","3","2"); Temp[2]= new Array("1","1","1","1","1","1","2","0","3","0","0","0","0","1","0","3"); Temp[3]= new Array("0","0","0","0","0","0","0","0","3","0","0","0","1","0","2","3"); Temp[4]= new Array("1","1","2","0","1","1","1","1","3","0","0","1","0","2","1","3"); Temp[5]= new Array("1","1","2","0","1","1","1","1","3","0","1","0","2","1","2","3"); Temp[6]= new Array("0","0","0","0","0","0","0","0","3","1","0","2","1","2","2","3"); Temp[7]= new Array("0","1","1","1","1","1","2","0","2","3","3","3","3","3","3","2"); Temp[8]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[9]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0"); Temp[10]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0"); Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[12]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1"); Temp[13]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1"); Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[15]= new Array("0","1","1","1","1","1","2","0","0","1","1","1","1","1","2","0"); Tiles[20]=Temp; } if(1==1){ //Tile021 var Temp= new Array(); Temp[0]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[1]= new Array("2","3","3","3","3","3","3","2","2","3","3","3","3","3","3","2"); Temp[2]= new Array("3","0","0","0","0","1","0","3","3","0","0","0","0","1","0","3"); Temp[3]= new Array("3","0","0","0","1","0","2","3","3","0","0","0","1","0","2","3"); Temp[4]= new Array("3","0","0","1","0","2","1","3","3","0","0","1","0","2","1","3"); Temp[5]= new Array("3","0","1","0","2","1","2","3","3","0","1","0","2","1","2","3"); Temp[6]= new Array("3","1","0","2","1","2","2","3","3","1","0","2","1","2","2","3"); Temp[7]= new Array("2","3","3","3","3","3","3","2","2","3","3","3","3","3","3","2"); Temp[8]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[9]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0"); Temp[10]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0"); Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[12]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1"); Temp[13]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1"); Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[15]= new Array("0","1","1","1","1","1","2","0","0","1","1","1","1","1","2","0"); Tiles[21]=Temp; } if(1==1){ //Tile022 var Temp= new Array(); Temp[0]= new Array("1","3","3","2","2","3","3","2","0","2","2","0","2","2","0","3"); Temp[1]= new Array("1","1","1","3","3","2","2","3","3","2","2","0","2","2","0","3"); Temp[2]= new Array("1","1","1","1","1","3","3","2","2","3","3","0","2","2","0","3"); Temp[3]= new Array("1","1","1","1","1","1","1","3","3","2","2","3","3","2","0","3"); Temp[4]= new Array("0","0","0","1","1","1","1","1","1","3","3","2","2","3","3","3"); Temp[5]= new Array("0","0","0","0","0","1","1","1","1","1","1","3","3","2","2","3"); Temp[6]= new Array("0","0","0","0","0","0","0","1","1","1","1","3","3","3","3","0"); Temp[7]= new Array("0","0","0","0","0","0","0","0","0","1","1","3","0","0","0","0"); Temp[8]= new Array("0","0","0","0","0","0","0","0","0","0","3","1","1","1","1","0"); Temp[9]= new Array("1","1","1","1","1","1","2","0","0","0","3","1","1","1","1","0"); Temp[10]= new Array("1","1","1","1","1","1","2","0","0","0","3","1","1","1","1","0"); Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","3","1","1","1","1","0"); Temp[12]= new Array("1","1","2","0","1","1","1","1","0","0","3","1","1","1","1","0"); Temp[13]= new Array("1","1","2","0","1","1","1","1","0","0","3","1","1","1","1","0"); Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","3","1","1","1","1","0"); Temp[15]= new Array("0","1","1","1","1","1","2","0","0","0","3","1","1","1","1","0"); Tiles[22]=Temp; } //Tiles Missing if(1==1){ //Tile029 var Temp= new Array(); Temp[0]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[1]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[2]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[3]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[4]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[5]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[6]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[7]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[8]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[9]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[10]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[11]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[12]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[13]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","3"); Temp[14]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","3","3","2"); Temp[15]= new Array("3","0","2","2","0","2","2","0","2","2","0","3","3","2","2","3"); Tiles[29]=Temp; } if(1==1){ //Tile030 var Temp= new Array(); Temp[0]= new Array("0","1","1","1","1","1","1","0","0","1","1","1","1","1","1","0"); Temp[1]= new Array("1","0","1","1","1","1","0","2","1","0","1","1","1","1","0","2"); Temp[2]= new Array("1","1","0","1","1","0","2","1","1","1","0","1","1","0","2","1"); Temp[3]= new Array("1","1","1","0","0","2","1","1","1","1","1","0","0","2","1","1"); Temp[4]= new Array("1","1","1","0","0","1","1","1","1","1","1","0","0","1","1","1"); Temp[5]= new Array("1","1","0","2","1","0","1","1","1","1","0","2","1","0","1","1"); Temp[6]= new Array("1","0","2","1","1","1","0","1","1","0","2","1","1","1","0","1"); Temp[7]= new Array("0","2","1","1","1","1","1","0","0","2","1","1","1","1","1","0"); Temp[8]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"); Temp[9]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[10]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[11]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[12]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[13]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[14]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"); Temp[15]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Tiles[30]=Temp; } if(1==1){ //Tile031 var Temp= new Array(); Temp[0]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[1]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[2]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[3]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[4]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[5]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[6]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[7]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[8]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[9]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[10]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[11]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[12]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[13]= new Array("3","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[14]= new Array("2","3","3","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[15]= new Array("3","2","2","3","3","0","2","2","0","2","2","0","2","2","0","3"); Tiles[31]=Temp; } if(1==1){ //Tile032 var Temp= new Array(); Temp[0]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","3"); Temp[1]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","3","3","2"); Temp[2]= new Array("0","0","0","0","0","0","0","0","0","0","0","3","3","0","2","2"); Temp[3]= new Array("0","0","0","0","0","0","0","0","0","3","3","2","2","0","2","2"); Temp[4]= new Array("0","0","0","0","0","0","0","3","3","2","0","2","2","0","2","2"); Temp[5]= new Array("0","0","0","0","0","3","3","0","2","2","0","2","2","0","2","2"); Temp[6]= new Array("0","0","0","3","3","2","2","0","2","2","0","2","2","0","2","2"); Temp[7]= new Array("0","3","3","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[8]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[9]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[10]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[11]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[12]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[13]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[14]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Temp[15]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2"); Tiles[32]=Temp; } if(1==1){ //Tile033 var Temp= new Array(); Temp[0]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3"); Temp[1]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[2]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[3]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"); Temp[4]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"); Temp[5]= new Array("1","1","0","2","1","0","1","1","1","1","0","2","1","0","1","1"); Temp[6]= new Array("1","0","2","1","1","1","0","1","1","0","2","1","1","1","0","1"); Temp[7]= new Array("0","2","1","1","1","1","1","0","0","2","1","1","1","1","1","0"); Temp[8]= new Array("0","1","1","1","1","1","1","0","0","1","1","1","1","1","1","0"); Temp[9]= new Array("1","0","1","1","1","1","0","2","1","0","1","1","1","1","0","2"); Temp[10]= new Array("1","1","0","1","1","0","2","1","1","1","0","1","1","0","2","1"); Temp[11]= new Array("1","1","1","0","0","2","1","1","1","1","1","0","0","2","1","1"); Temp[12]= new Array("1","1","1","0","0","1","1","1","1","1","1","0","0","1","1","1"); Temp[13]= new Array("1","1","0","2","1","0","1","1","1","1","0","2","1","0","1","1"); Temp[14]= new Array("1","0","2","1","1","1","0","1","1","0","2","1","1","1","0","1"); Temp[15]= new Array("0","2","1","1","1","1","1","0","0","2","1","1","1","1","1","0"); Tiles[33]=Temp; } if(1==1){ //Tile034 var Temp= new Array(); Temp[0]= new Array("3","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[1]= new Array("2","3","3","0","0","0","0","0","0","0","0","0","0","0","0","0"); Temp[2]= new Array("2","2","0","3","3","0","0","0","0","0","0","0","0","0","0","0"); Temp[3]= new Array("2","2","0","2","2","3","3","0","0","0","0","0","0","0","0","0"); Temp[4]= new Array("2","2","0","2","2","0","2","3","3","0","0","0","0","0","0","0"); Temp[5]= new Array("2","2","0","2","2","0","2","2","0","3","3","0","0","0","0","0"); Temp[6]= new Array("2","2","0","2","2","0","2","2","0","2","2","3","3","0","0","0"); Temp[7]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","3","3","0"); Temp[8]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[9]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[10]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[11]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[12]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[13]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[14]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Temp[15]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3"); Tiles[34]=Temp; } //Tiles Missing if(1==1){ //Tile081 (Grass) var Temp= new Array(); Temp[0]= new Array("0","0","0","0","0","0","2","1","0","0","0","0","0","0","2","1"); Temp[1]= new Array("0","0","0","0","0","2","0","2","0","0","0","0","0","2","0","2"); Temp[2]= new Array("2","2","0","0","2","1","1","2","2","2","0","0","2","1","1","2"); Temp[3]= new Array("2","0","2","0","2","1","2","1","2","0","2","0","2","1","2","1"); Temp[4]= new Array("2","0","1","2","2","2","2","0","2","0","1","2","2","2","2","0"); Temp[5]= new Array("0","2","0","1","2","2","1","0","0","2","0","1","2","2","1","0"); Temp[6]= new Array("1","1","2","1","2","2","0","0","1","1","2","1","2","2","0","0"); Temp[7]= new Array("0","1","1","2","2","1","0","0","0","1","1","2","2","1","0","0"); Temp[8]= new Array("0","0","0","0","0","0","2","1","0","0","0","0","0","0","2","1"); Temp[9]= new Array("0","0","0","0","0","2","0","2","0","0","0","0","0","2","0","2"); Temp[10]= new Array("2","2","0","0","2","1","1","2","2","2","0","0","2","1","1","2"); Temp[11]= new Array("2","0","2","0","2","1","2","1","2","0","2","0","2","1","2","1"); Temp[12]= new Array("2","0","1","2","2","2","2","0","2","0","1","2","2","2","2","0"); Temp[13]= new Array("0","2","0","1","2","2","1","0","0","2","0","1","2","2","1","0"); Temp[14]= new Array("1","1","2","1","2","2","0","0","1","1","2","1","2","2","0","0"); Temp[15]= new Array("0","1","1","2","2","1","0","0","0","1","1","2","2","1","0","0"); Tiles[81]=Temp; } if(1==1){ //Tile082 (Bollard) var Temp= new Array(); Temp[0]= new Array("0","0","0","0","0","0","3","3","3","3","3","0","0","0","0","0"); Temp[1]= new Array("0","0","0","0","3","3","2","1","1","1","2","3","3","0","0","0"); Temp[2]= new Array("0","0","0","3","2","1","0","0","0","0","0","1","2","3","0","0"); Temp[3]= new Array("0","0","3","2","0","0","0","0","0","0","0","0","0","2","3","0"); Temp[4]= new Array("0","0","3","1","0","0","0","0","0","0","0","0","0","1","3","0"); Temp[5]= new Array("0","0","3","2","1","1","0","0","0","0","0","1","1","2","3","0"); Temp[6]= new Array("0","0","3","2","1","2","1","1","1","1","1","2","1","2","3","0"); Temp[7]= new Array("0","1","3","2","1","2","2","0","0","0","2","2","1","2","3","0"); Temp[8]= new Array("1","1","3","1","1","2","2","0","0","0","2","2","1","1","3","0"); Temp[9]= new Array("1","2","3","1","1","1","1","0","0","0","1","1","1","1","3","0"); Temp[10]= new Array("1","2","3","2","1","1","1","0","0","0","1","1","1","2","3","0"); Temp[11]= new Array("1","2","3","2","1","2","2","0","0","0","2","2","1","2","3","0"); Temp[12]= new Array("0","2","2","3","1","2","2","0","0","0","2","2","1","3","2","0"); Temp[13]= new Array("0","1","2","2","3","3","2","0","0","0","2","3","3","2","0","0"); Temp[14]= new Array("0","0","1","2","2","2","3","3","3","3","3","2","2","0","0","0"); Temp[15]= new Array("0","0","0","1","1","1","2","2","2","2","2","0","0","0","0","0"); Tiles[82]=Temp; } //Tiles Missing if(1==1){ //Tile085 var Temp= new Array(); Temp[0]= new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4"); Temp[1]= new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4"); Temp[2]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[3]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[4]= new Array("4","4","3","3","3","2","1","1","1","1","2","3","3","3","4","4"); Temp[5]= new Array("4","4","3","3","1","3","3","3","3","3","3","1","3","3","4","4"); Temp[6]= new Array("4","3","1","3","1","1","1","1","1","1","1","1","3","1","3","4"); Temp[7]= new Array("4","3","1","1","1","1","3","1","1","3","1","1","1","1","3","4"); Temp[8]= new Array("4","4","3","3","1","1","3","1","1","3","1","1","3","3","4","4"); Temp[9]= new Array("4","4","3","3","3","1","1","2","2","1","1","3","3","3","4","4"); Temp[10]= new Array("4","3","1","1","3","3","3","3","3","3","3","3","1","1","3","4"); Temp[11]= new Array("4","3","1","1","3","3","3","3","3","3","3","3","1","1","3","4"); Temp[12]= new Array("4","4","3","3","3","2","2","3","3","2","2","3","3","3","4","4"); Temp[13]= new Array("4","4","4","3","2","3","3","2","2","3","3","2","3","4","4","4"); Temp[14]= new Array("4","4","4","3","2","2","2","3","3","2","2","2","3","4","4","4"); Temp[15]= new Array("4","4","4","4","3","3","3","4","4","3","3","3","4","4","4","4"); Tiles[85]=Temp; } if(1==1){ //Tile086 var Temp= new Array(); Temp[0]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[1]= new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4"); Temp[2]= new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4"); Temp[3]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[4]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[5]= new Array("4","4","3","3","3","2","1","1","1","1","2","3","3","3","4","4"); Temp[6]= new Array("4","4","3","3","3","3","3","3","3","3","3","3","3","3","4","4"); Temp[7]= new Array("4","3","1","3","1","1","1","1","1","1","1","1","3","1","3","4"); Temp[8]= new Array("4","3","1","1","1","1","3","1","1","3","1","1","1","1","3","4"); Temp[9]= new Array("4","3","3","3","1","1","3","1","1","3","1","1","3","3","4","4"); Temp[10]= new Array("4","3","1","3","3","1","1","2","2","1","1","3","2","3","4","4"); Temp[11]= new Array("4","4","3","3","3","3","3","3","3","3","3","3","1","3","4","4"); Temp[12]= new Array("4","4","4","3","3","2","3","3","3","3","1","1","3","3","4","4"); Temp[13]= new Array("4","4","4","4","3","3","3","2","2","3","1","1","3","4","4","4"); Temp[14]= new Array("4","4","4","4","3","2","2","3","3","4","3","3","4","4","4","4"); Temp[15]= new Array("4","4","4","4","4","3","3","3","4","4","4","4","4","4","4","4"); Tiles[86]=Temp; } if(1==1){ //Tile087 var Temp= new Array(); Temp[0]= new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4"); Temp[1]= new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4"); Temp[2]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[3]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[4]= new Array("4","4","3","3","2","2","2","2","2","2","2","2","3","3","4","4"); Temp[5]= new Array("4","4","3","3","3","2","2","2","2","2","2","3","3","3","4","4"); Temp[6]= new Array("4","3","1","3","3","3","3","3","3","3","3","3","3","1","3","4"); Temp[7]= new Array("4","3","1","1","3","3","3","3","3","3","3","3","1","1","3","4"); Temp[8]= new Array("4","4","3","3","1","1","3","3","3","3","1","1","3","3","4","4"); Temp[9]= new Array("4","4","3","3","3","3","2","2","2","2","3","3","3","3","4","4"); Temp[10]= new Array("4","3","1","3","3","2","3","3","3","3","2","3","3","1","3","4"); Temp[11]= new Array("4","3","1","3","3","2","2","1","1","2","2","3","3","1","3","4"); Temp[12]= new Array("4","4","3","3","3","3","2","2","2","2","3","3","3","3","4","4"); Temp[13]= new Array("4","4","4","3","2","3","3","3","3","3","3","2","3","4","4","4"); Temp[14]= new Array("4","4","4","3","2","2","2","3","3","2","2","2","3","4","4","4"); Temp[15]= new Array("4","4","4","4","3","3","3","4","4","3","3","3","4","4","4","4"); Tiles[87]=Temp; } if(1==1){ //Tile088 var Temp= new Array(); Temp[0]= new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4"); Temp[1]= new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4"); Temp[2]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[3]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[4]= new Array("4","4","3","3","2","2","2","2","2","2","2","2","3","3","4","4"); Temp[5]= new Array("4","4","3","3","3","2","2","2","2","2","2","3","3","3","4","4"); Temp[6]= new Array("4","3","1","3","3","3","3","3","3","3","3","3","3","1","3","4"); Temp[7]= new Array("4","3","1","1","3","3","3","3","3","3","3","3","1","1","3","4"); Temp[8]= new Array("4","3","3","3","1","1","3","3","3","3","1","1","3","3","4","4"); Temp[9]= new Array("4","3","1","3","3","3","2","2","2","2","3","3","3","3","4","4"); Temp[10]= new Array("4","4","3","3","3","2","3","3","3","3","2","3","1","1","3","4"); Temp[11]= new Array("4","4","4","3","3","2","2","1","1","2","2","3","1","1","3","4"); Temp[12]= new Array("4","4","4","4","3","3","2","2","2","2","3","3","3","3","4","4"); Temp[13]= new Array("4","4","4","4","3","2","3","3","3","3","4","4","4","4","4","4"); Temp[14]= new Array("4","4","4","4","4","3","3","3","4","4","4","4","4","4","4","4"); Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Tiles[88]=Temp; } if(1==1){ //Tile089 var Temp= new Array(); Temp[0]= new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4"); Temp[1]= new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4"); Temp[2]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[3]= new Array("4","4","3","3","1","2","2","2","2","2","2","2","3","4","4","4"); Temp[4]= new Array("4","3","1","1","1","1","2","2","2","2","2","3","3","3","4","4"); Temp[5]= new Array("4","4","3","3","2","2","2","3","3","3","3","3","3","3","4","4"); Temp[6]= new Array("4","4","4","3","1","3","1","1","3","3","3","3","3","3","4","4"); Temp[7]= new Array("4","4","4","3","1","3","1","1","3","1","1","3","3","4","4","4"); Temp[8]= new Array("4","4","4","3","1","1","1","1","1","1","1","3","4","4","4","4"); Temp[9]= new Array("4","4","4","4","3","2","1","1","1","3","3","2","3","4","4","4"); Temp[10]= new Array("4","4","4","4","4","3","3","3","3","3","2","2","3","4","4","4"); Temp[11]= new Array("4","4","4","4","4","4","3","3","1","1","3","2","3","4","4","4"); Temp[12]= new Array("4","4","4","4","4","4","3","3","1","1","3","2","3","4","4","4"); Temp[13]= new Array("4","4","4","4","4","3","2","2","3","3","3","3","4","4","4","4"); Temp[14]= new Array("4","4","4","4","4","3","2","2","2","2","3","4","4","4","4","4"); Temp[15]= new Array("4","4","4","4","4","4","3","3","3","3","4","4","4","4","4","4"); Tiles[89]=Temp; } if(1==1){ //Tile090 var Temp= new Array(); Temp[0]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[1]= new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4"); Temp[2]= new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4"); Temp[3]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[4]= new Array("4","4","3","3","1","2","2","2","2","2","2","2","3","4","4","4"); Temp[5]= new Array("4","3","1","1","1","1","2","2","2","2","2","3","3","3","4","4"); Temp[6]= new Array("4","4","3","3","2","2","2","3","3","3","3","3","3","3","4","4"); Temp[7]= new Array("4","4","4","3","1","3","1","1","3","3","3","3","3","3","4","4"); Temp[8]= new Array("4","4","4","3","1","3","1","1","3","1","1","3","3","4","4","4"); Temp[9]= new Array("4","4","4","3","1","1","1","1","1","1","1","3","4","4","4","4"); Temp[10]= new Array("4","4","4","4","3","2","1","1","1","3","3","2","3","4","4","4"); Temp[11]= new Array("4","4","4","4","4","3","3","3","3","3","3","2","3","4","4","4"); Temp[12]= new Array("4","4","4","3","3","3","3","3","3","1","1","3","3","4","4","4"); Temp[13]= new Array("4","4","3","2","2","3","2","2","3","1","1","3","2","3","4","4"); Temp[14]= new Array("4","4","4","3","2","2","3","3","3","3","3","2","2","3","4","4"); Temp[15]= new Array("4","4","4","4","3","3","3","4","4","4","4","3","3","4","4","4"); Tiles[90]=Temp; } if(1==1){ //Tile091 var Temp= new Array(); Temp[0]= new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4"); Temp[1]= new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4"); Temp[2]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[3]= new Array("4","4","4","3","2","2","2","2","2","2","2","1","3","3","4","4"); Temp[4]= new Array("4","4","3","3","3","2","2","2","2","2","1","1","1","1","3","4"); Temp[5]= new Array("4","4","3","3","3","3","3","3","3","2","2","2","3","3","4","4"); Temp[6]= new Array("4","4","3","3","3","3","3","3","1","1","3","1","3","4","4","4"); Temp[7]= new Array("4","4","4","3","3","1","1","3","1","1","3","1","3","4","4","4"); Temp[8]= new Array("4","4","4","4","3","1","1","1","1","1","1","1","3","4","4","4"); Temp[9]= new Array("4","4","4","3","2","3","3","1","1","1","2","3","4","4","4","4"); Temp[10]= new Array("4","4","4","3","2","2","3","3","3","3","3","4","4","4","4","4"); Temp[11]= new Array("4","4","4","3","2","3","1","1","3","3","4","4","4","4","4","4"); Temp[12]= new Array("4","4","4","3","2","3","1","1","3","3","4","4","4","4","4","4"); Temp[13]= new Array("4","4","4","4","3","3","3","3","2","2","3","4","4","4","4","4"); Temp[14]= new Array("4","4","4","4","4","3","2","2","2","2","3","4","4","4","4","4"); Temp[15]= new Array("4","4","4","4","4","4","3","3","3","3","4","4","4","4","4","4"); Tiles[91]=Temp; } if(1==1){ //Tile092 var Temp= new Array(); Temp[0]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4"); Temp[1]= new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4"); Temp[2]= new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4"); Temp[3]= new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4"); Temp[4]= new Array("4","4","4","3","2","2","2","2","2","2","2","1","3","3","4","4"); Temp[5]= new Array("4","4","3","3","3","2","2","2","2","2","1","1","1","1","3","4"); Temp[6]= new Array("4","4","3","3","3","3","3","3","3","2","2","2","3","3","4","4"); Temp[7]= new Array("4","4","3","3","3","3","3","3","1","1","3","1","3","4","4","4"); Temp[8]= new Array("4","4","4","3","3","1","1","3","1","1","3","1","3","4","4","4"); Temp[9]= new Array("4","4","4","4","3","1","1","1","1","1","1","1","3","4","4","4"); Temp[10]= new Array("4","4","4","3","2","3","3","1","1","1","2","3","4","4","4","4"); Temp[11]= new Array("4","4","4","3","2","3","3","3","3","3","3","4","4","4","4","4"); Temp[12]= new Array("4","4","4","3","3","1","1","3","3","3","3","3","3","4","4","4"); Temp[13]= new Array("4","4","3","2","3","1","1","3","2","2","3","2","2","3","4","4"); Temp[14]= new Array("4","4","3","2","2","3","3","3","3","3","2","2","3","4","4","4"); Temp[15]= new Array("4","4","4","3","3","4","4","4","4","3","3","3","4","4","4","4"); Tiles[92]=Temp; } } function drawTile(Nos,Xg,Yg){ //Draws a single tile at the location //var canvas = can.getContext('2d'); var can1 = can.getContext('2d'); bkcanv.setAttribute('width', canvasX); bkcanv.setAttribute('height', canvasY); bkctx = bkcanv.getContext('2d'); var Draw= new Array(); Draw=Tiles[Nos]; var Run= Tiles[Nos].length-1; if (Run>1) { var Colour=0; var i=0; for (i=0;i<=15;i++) { var n=0; for (n=0;n<=15;n++) { var T=0; var Colour=Draw[i][n]; if (Colour==3) { Colour=Colours[3]; T=1; } if (Colour==2) { Colour=Colours[2]; T=1; } if (Colour==1) { Colour=Colours[1]; T=1; } if (Colour==0) { Colour=Colours[0]; T=1; } if (T==1) { bkctx.fillStyle = Colour; bkctx.fillRect (Xg+n,Yg+i,1,1); } } } } can1.drawImage(bkcanv,0,0); //canvas.drawImage(bkcanv,0,0); } function controls(evt){ //Controls var OX=CamX; var OY=CamY; if(PlrMove==0){ PlrMove=1; var keyType=0; var Dir=-1; switch (evt.keyCode) { case 38: /* Up arrow was pressed */ keyType="Arrow"; Dir=0; break; case 40: /* Down arrow was pressed */ keyType="Arrow"; Dir=180; break; case 37: /* Left arrow was pressed */ keyType="Arrow"; Dir=270; break; case 39: /* Right arrow was pressed */ keyType="Arrow"; Dir=90; break; } Cos=0; if(keyType=="Arrow"){ if (Dir==0){ CamX=CamX+0; CamY=CamY-1; Cos=87; } if (Dir==90){ CamX=CamX+1; CamY=CamY+0; Cos=91; } if (Dir==180){ CamX=CamX+0; CamY=CamY+1; Cos=85; } if (Dir==270){ CamX=CamX-1; CamY=CamY+0; Cos=89; } var Cos2=Cos+1; var XXXX=(Xin+1)*16; var YYYY=(Yin+1)*16; var R=sense((CamX+1),(CamY+1)); if (R) { animate(Cos,Cos2,XXXX,YYYY,true); } else { CamX=OX; CamY=OY; updateMap(); drawTile(Cos,XXXX,YYYY); PlrMove=0; } } else { PlrMove=0; } } } function keyDown(evt){ //When a key is pressed (Allows for smoother controls) PlrKey=evt; } function keyUp(evt){ //When a key is released if(PlrKey==0) {} else{ if (evt.keyCode==PlrKey.keyCode) { PlrKey=0; } } } function controlTest(){ //Run every now and again to move player if(PlrKey==0) {} else{ controls(PlrKey); } } function animate(Tile1,Tile2,X,Y,Plr){ //First tile, second tile, X/Y location and if it is the player var Wait=20; aniP2(Tile1,X,Y,Plr); setTimeout(function(){aniP2(Tile2,X,Y,Plr)}, Wait); setTimeout(function(){aniP2(Tile1,X,Y,Plr)}, Wait*2); if (Plr) { setTimeout("PlrMove=0",Wait*2); } } function aniP2(Tile1,X,Y,Plr){ //Needed for animation sync. canvas.save(); updateMap(); if (Plr) {} else { var XXXX=(Xin+1)*16; var YYYY=(Yin+1)*16; drawTile(Cos,XXXX,YYYY); } drawTile(Tile1,X,Y); canvas.restore(); } function sense(tileX,tileY){ //Sensing var R=true; var x=Map[1].length-1+1; var y=Map.length-1+1; if (tileX> -1 && tileX< x) {} else{ R=false; } if (tileY > -1 && tileY < y) {}else{ R=false; } if (R){ var T=Map[tileY][tileX]; var Y=contains(PlrObs,T); if (Y) { R=false; } else { R=true; } } return R; } function contains(a, obj) { //Array Contains var i = a.length; while (i--) { if (a[i] === obj) { return true; } } return false; } function indexOf(a, obj) { //Index of array object var i = a.length; while (i--) { if (a[i] === obj) { return i; } } return 0; } //Start Game (NO SCRIPT AFTER THIS) //Start Game (NO SCRIPT AFTER THIS) beginGame(); </script> </body> </html>
Can anyone make it faster at moving?
I recommend Notepad++ for editing it as it can collapse things...
I also recommend Chrome to run it (for speed)
Last edited by johnnydean1 (2011-06-05 16:51:26)
Offline
pwiter wrote:
We need to add a pop up keyboard for touchscreens.BTW I was typing on this iPod touch when a fly went on it. I crushed it on the screen and now I have a stain on it
Wat? Arr yaa crazzy?
Lol, intentional spelling mistakes.
Offline
No, it won't work on S4DS.
S4 = SSSS
Offline