////////////////////////////////////////////////////// //////IxD Lab 2 - Venice////////////////////////////// //////Tree of Life - interactive tour///////////////// ////////////////////////////////////////////////////// ////////////////////////////////////////////////////// //////Benito Condemi de Felice/(mainly)/////////////// //////Pamela Moscarda///////////////////////////////// ////////////////////////////////////////////////////// //////with Durrell Bishop///////////////////////////// //////Davide Rocchesso//////////////////////////////// ////////////////////////////////////////////////////// import processing.serial.*; import pitaru.sonia_v2_9.*; int CurrentPosition = 1 ; //seriali by Durrell Serial port; int theDistance; int target= 0; float oldTime = 0; int mode = 1; int res = 0; int res1 = 0; int res2 = 0; int waitForReply = 70; int waitForReply2 = 70; int maxDist = 280; int biggerScreen = 3; int stepsize = 10;//get rid of the wobble int lastDistance = 0; int jumpsize = 0; int jumpTollerance = 100; int tempArea = 1; int futureTime = 0; //------------------- int casetimer= 0; int overAreaFlag = 0; //------------------- int linePos = 0; //----------------- //importare video, variabili necessarie import processing.video.*; //importare immagini, variabili necessarie PImage mappa; //carica font PFont font; int col1, col2, col3; //audio var Sample primo; Sample secondo; //var per lettura fotogrammi int numFrames=192; int frame=0; PImage [] images=new PImage [numFrames]; int numFramesA=192; int frame2=0; PImage [] imagesA=new PImage [numFramesA]; //tempo int stopTime=0; int reflecTime = 0; int maxLenght=4000; boolean FERMO=false; void setup() { size(800, 600); background(0); smooth(); //map image mappa=loadImage ("mappa.jpg"); frameRate(8); //legge i fotogrammi video anno 70 //animation code images[0] = loadImage("00_00000.png"); images[1] = loadImage("00_00001.png"); images[2] = loadImage("00_00002.png"); images[3] = loadImage("00_00003.png"); images[4] = loadImage("00_00004.png"); images[5] = loadImage("00_00005.png"); images[6] = loadImage("00_00006.png"); images[7] = loadImage("00_00007.png"); images[8] = loadImage("00_00008.png"); images[9] = loadImage("00_00009.png"); images[10] = loadImage("00_00010.png"); images[11] = loadImage("00_00011.png"); images[12] = loadImage("00_00012.png"); images[13] = loadImage("00_00013.png"); images[14] = loadImage("00_00014.png"); images[15] = loadImage("00_00015.png"); images[16] = loadImage("00_00016.png"); images[17] = loadImage("00_00017.png"); images[18] = loadImage("00_00018.png"); images[19] = loadImage("00_00019.png"); images[20] = loadImage("00_00020.png"); images[21] = loadImage("00_00021.png"); images[22] = loadImage("00_00022.png"); images[23] = loadImage("00_00023.png"); images[24] = loadImage("00_00024.png"); images[25] = loadImage("00_00025.png"); images[26] = loadImage("00_00026.png"); images[27] = loadImage("00_00027.png"); images[28] = loadImage("00_00028.png"); images[29] = loadImage("00_00029.png"); images[30] = loadImage("00_00030.png"); images[31] = loadImage("00_00031.png"); images[32] = loadImage("00_00032.png"); images[33] = loadImage("00_00033.png"); images[34] = loadImage("00_00034.png"); images[35] = loadImage("00_00035.png"); images[36] = loadImage("00_00036.png"); images[37] = loadImage("00_00037.png"); images[38] = loadImage("00_00038.png"); images[39] = loadImage("00_00039.png"); images[40] = loadImage("00_00040.png"); images[41] = loadImage("00_00041.png"); images[42] = loadImage("00_00042.png"); images[43] = loadImage("00_00043.png"); images[44] = loadImage("00_00044.png"); images[45] = loadImage("00_00045.png"); images[46] = loadImage("00_00046.png"); images[47] = loadImage("00_00047.png"); images[48] = loadImage("00_00048.png"); images[49] = loadImage("00_00049.png"); images[50] = loadImage("00_00050.png"); images[51] = loadImage("00_00051.png"); images[52] = loadImage("00_00052.png"); images[53] = loadImage("00_00053.png"); images[54] = loadImage("00_00054.png"); images[55] = loadImage("00_00055.png"); images[56] = loadImage("00_00056.png"); images[57] = loadImage("00_00057.png"); images[58] = loadImage("00_00058.png"); images[59] = loadImage("00_00059.png"); images[60] = loadImage("00_00060.png"); images[61] = loadImage("00_00061.png"); images[62] = loadImage("00_00062.png"); images[63] = loadImage("00_00063.png"); images[64] = loadImage("00_00064.png"); images[65] = loadImage("00_00065.png"); images[66] = loadImage("00_00066.png"); images[67] = loadImage("00_00067.png"); images[68] = loadImage("00_00068.png"); images[69] = loadImage("00_00069.png"); images[70] = loadImage("00_00070.png"); images[71] = loadImage("00_00071.png"); images[72] = loadImage("00_00072.png"); images[73] = loadImage("00_00073.png"); images[74] = loadImage("00_00074.png"); images[75] = loadImage("00_00075.png"); images[76] = loadImage("00_00076.png"); images[77] = loadImage("00_00077.png"); images[78] = loadImage("00_00078.png"); images[79] = loadImage("00_00079.png"); images[80] = loadImage("00_00080.png"); images[81] = loadImage("00_00081.png"); images[82] = loadImage("00_00082.png"); images[83] = loadImage("00_00083.png"); images[84] = loadImage("00_00084.png"); images[85] = loadImage("00_00085.png"); images[86] = loadImage("00_00086.png"); images[87] = loadImage("00_00087.png"); images[88] = loadImage("00_00088.png"); images[89] = loadImage("00_00089.png"); images[90] = loadImage("00_00090.png"); images[91] = loadImage("00_00091.png"); images[92] = loadImage("00_00092.png"); images[93] = loadImage("00_00093.png"); images[94] = loadImage("00_00094.png"); images[95] = loadImage("00_00095.png"); images[96] = loadImage("00_00096.png"); images[97] = loadImage("00_00097.png"); images[98] = loadImage("00_00098.png"); images[99] = loadImage("00_00099.png"); images[100] = loadImage("00_00100.png"); images[101] = loadImage("00_00101.png"); images[102] = loadImage("00_00102.png"); images[103] = loadImage("00_00103.png"); images[104] = loadImage("00_00104.png"); images[105] = loadImage("00_00105.png"); images[106] = loadImage("00_00106.png"); images[107] = loadImage("00_00107.png"); images[108] = loadImage("00_00108.png"); images[109] = loadImage("00_00109.png"); images[110] = loadImage("00_00110.png"); images[111] = loadImage("00_00111.png"); images[112] = loadImage("00_00112.png"); images[113] = loadImage("00_00113.png"); images[114] = loadImage("00_00114.png"); images[115] = loadImage("00_00115.png"); images[116] = loadImage("00_00116.png"); images[117] = loadImage("00_00117.png"); images[118] = loadImage("00_00118.png"); images[119] = loadImage("00_00119.png"); images[120] = loadImage("00_00120.png"); /*images[121] = loadImage("00_00121.png"); images[122] = loadImage("00_00122.png"); images[123] = loadImage("00_00123.png"); images[125] = loadImage("00_00125.png"); images[126] = loadImage("00_00126.png"); images[127] = loadImage("00_00127.png"); images[128] = loadImage("00_00128.png"); images[129] = loadImage("00_00129.png"); images[130] = loadImage("00_00130.png"); images[131] = loadImage("00_00131.png"); images[132] = loadImage("00_00132.png"); images[133] = loadImage("00_00133.png"); images[134] = loadImage("00_00134.png"); images[135] = loadImage("00_00135.png"); images[137] = loadImage("00_00137.png"); images[138] = loadImage("00_00138.png"); images[139] = loadImage("00_00139.png"); images[140] = loadImage("00_00140.png"); images[141] = loadImage("00_00141.png"); images[142] = loadImage("00_00142.png"); images[143] = loadImage("00_00143.png"); images[144] = loadImage("00_00144.png"); images[145] = loadImage("00_00145.png"); images[146] = loadImage("00_00146.png"); images[147] = loadImage("00_00147.png"); images[148] = loadImage("00_00148.png"); images[149] = loadImage("00_00149.png"); images[150] = loadImage("00_00150.png"); images[151] = loadImage("00_00151.png"); images[152] = loadImage("00_00152.png"); images[153] = loadImage("00_00153.png"); images[154] = loadImage("00_00154.png"); images[155] = loadImage("00_00155.png"); images[156] = loadImage("00_00156.png"); images[157] = loadImage("00_00157.png"); images[158] = loadImage("00_00158.png"); images[159] = loadImage("00_00159.png"); images[160] = loadImage("00_00160.png"); images[161] = loadImage("00_00161.png"); images[162] = loadImage("00_00162.png"); images[163] = loadImage("00_00163.png"); images[164] = loadImage("00_00164.png"); images[165] = loadImage("00_00165.png"); images[166] = loadImage("00_00166.png"); images[167] = loadImage("00_00167.png"); images[168] = loadImage("00_00168.png"); images[169] = loadImage("00_00169.png"); images[170] = loadImage("00_00170.png"); images[172] = loadImage("00_00172.png"); images[173] = loadImage("00_00173.png"); images[174] = loadImage("00_00174.png"); images[176] = loadImage("00_00176.png"); images[177] = loadImage("00_00177.png"); images[178] = loadImage("00_00178.png"); images[179] = loadImage("00_00179.png"); images[180] = loadImage("00_00180.png"); images[181] = loadImage("00_00181.png"); images[182] = loadImage("00_00182.png"); images[183] = loadImage("00_00183.png"); images[184] = loadImage("00_00184.png"); images[185] = loadImage("00_00185.png"); images[186] = loadImage("00_00186.png"); images[187] = loadImage("00_00187.png"); images[188] = loadImage("00_00188.png"); images[189] = loadImage("00_00189.png"); images[190] = loadImage("00_00190.png"); images[191] = loadImage("00_00191.png"); */ //animation video 1492 imagesA[0] = loadImage("01_00064.png"); imagesA[1] = loadImage("01_00065.png"); imagesA[2] = loadImage("01_00066.png"); imagesA[3] = loadImage("01_00067.png"); imagesA[4] = loadImage("01_00068.png"); imagesA[5] = loadImage("01_00069.png"); imagesA[6] = loadImage("01_00070.png"); imagesA[7] = loadImage("01_00071.png"); imagesA[8] = loadImage("01_00072.png"); imagesA[9] = loadImage("01_00073.png"); imagesA[10] = loadImage("01_00074.png"); imagesA[11] = loadImage("01_00075.png"); imagesA[12] = loadImage("01_00076.png"); imagesA[13] = loadImage("01_00077.png"); imagesA[14] = loadImage("01_00078.png"); imagesA[15] = loadImage("01_00079.png"); imagesA[16] = loadImage("01_00080.png"); imagesA[17] = loadImage("01_00081.png"); imagesA[18] = loadImage("01_00082.png"); imagesA[19] = loadImage("01_00083.png"); imagesA[20] = loadImage("01_00084.png"); imagesA[21] = loadImage("01_00085.png"); imagesA[22] = loadImage("01_00086.png"); imagesA[23] = loadImage("01_00087.png"); imagesA[24] = loadImage("01_00088.png"); imagesA[25] = loadImage("01_00089.png"); imagesA[26] = loadImage("01_00090.png"); imagesA[27] = loadImage("01_00091.png"); imagesA[28] = loadImage("01_00092.png"); imagesA[29] = loadImage("01_00093.png"); imagesA[30] = loadImage("01_00094.png"); imagesA[31] = loadImage("01_00095.png"); imagesA[32] = loadImage("01_00096.png"); imagesA[33] = loadImage("01_00097.png"); imagesA[34] = loadImage("01_00098.png"); imagesA[35] = loadImage("01_00099.png"); imagesA[36] = loadImage("01_00100.png"); imagesA[37] = loadImage("01_00101.png"); imagesA[38] = loadImage("01_00102.png"); imagesA[39] = loadImage("01_00103.png"); imagesA[40] = loadImage("01_00104.png"); imagesA[41] = loadImage("01_00105.png"); imagesA[42] = loadImage("01_00106.png"); imagesA[43] = loadImage("01_00107.png"); imagesA[44] = loadImage("01_00108.png"); imagesA[45] = loadImage("01_00109.png"); imagesA[46] = loadImage("01_00110.png"); imagesA[47] = loadImage("01_00111.png"); imagesA[48] = loadImage("01_00112.png"); imagesA[49] = loadImage("01_00113.png"); imagesA[50] = loadImage("01_00114.png"); imagesA[51] = loadImage("01_00115.png"); imagesA[52] = loadImage("01_00116.png"); imagesA[53] = loadImage("01_00117.png"); imagesA[54] = loadImage("01_00118.png"); imagesA[55] = loadImage("01_00119.png"); imagesA[56] = loadImage("01_00120.png"); imagesA[57] = loadImage("01_00121.png"); imagesA[58] = loadImage("01_00122.png"); imagesA[59] = loadImage("01_00123.png"); imagesA[60] = loadImage("01_00124.png"); imagesA[61] = loadImage("01_00125.png"); imagesA[62] = loadImage("01_00126.png"); imagesA[63] = loadImage("01_00127.png"); imagesA[64] = loadImage("01_00128.png"); imagesA[65] = loadImage("01_00129.png"); imagesA[66] = loadImage("01_00130.png"); imagesA[67] = loadImage("01_00131.png"); imagesA[68] = loadImage("01_00132.png"); imagesA[69] = loadImage("01_00133.png"); imagesA[70] = loadImage("01_00134.png"); imagesA[71] = loadImage("01_00135.png"); imagesA[72] = loadImage("01_00136.png"); imagesA[73] = loadImage("01_00137.png"); imagesA[74] = loadImage("01_00138.png"); imagesA[75] = loadImage("01_00139.png"); imagesA[76] = loadImage("01_00140.png"); imagesA[77] = loadImage("01_00141.png"); imagesA[78] = loadImage("01_00142.png"); imagesA[79] = loadImage("01_00143.png"); imagesA[80] = loadImage("01_00144.png"); imagesA[81] = loadImage("01_00145.png"); imagesA[82] = loadImage("01_00146.png"); imagesA[83] = loadImage("01_00147.png"); imagesA[84] = loadImage("01_00148.png"); imagesA[85] = loadImage("01_00149.png"); imagesA[86] = loadImage("01_00150.png"); imagesA[87] = loadImage("01_00151.png"); imagesA[88] = loadImage("01_00152.png"); imagesA[89] = loadImage("01_00153.png"); imagesA[90] = loadImage("01_00154.png"); imagesA[91] = loadImage("01_00155.png"); imagesA[92] = loadImage("01_00156.png"); imagesA[93] = loadImage("01_00157.png"); imagesA[94] = loadImage("01_00158.png"); imagesA[95] = loadImage("01_00159.png"); imagesA[96] = loadImage("01_00160.png"); imagesA[97] = loadImage("01_00161.png"); imagesA[98] = loadImage("01_00162.png"); imagesA[99] = loadImage("01_00163.png"); imagesA[100] = loadImage("01_00164.png"); imagesA[101] = loadImage("01_00165.png"); imagesA[102] = loadImage("01_00166.png"); imagesA[103] = loadImage("01_00167.png"); imagesA[104] = loadImage("01_00168.png"); imagesA[105] = loadImage("01_00169.png"); imagesA[106] = loadImage("01_00170.png"); imagesA[107] = loadImage("01_00171.png"); imagesA[108] = loadImage("01_00172.png"); imagesA[109] = loadImage("01_00173.png"); imagesA[110] = loadImage("01_00174.png"); imagesA[111] = loadImage("01_00175.png"); imagesA[112] = loadImage("01_00176.png"); imagesA[113] = loadImage("01_00177.png"); imagesA[114] = loadImage("01_00178.png"); imagesA[115] = loadImage("01_00179.png"); imagesA[116] = loadImage("01_00180.png"); imagesA[117] = loadImage("01_00181.png"); imagesA[118] = loadImage("01_00182.png"); imagesA[119] = loadImage("01_00183.png"); imagesA[120] = loadImage("01_00184.png"); imagesA[121] = loadImage("01_00185.png"); imagesA[122] = loadImage("01_00186.png"); imagesA[123] = loadImage("01_00187.png"); imagesA[125] = loadImage("01_00188.png"); imagesA[126] = loadImage("01_00189.png"); imagesA[127] = loadImage("01_00190.png"); imagesA[128] = loadImage("01_00191.png"); //audio Sonia.start(this); primo=new Sample("experience70.wav"); secondo=new Sample("experience1492.wav"); //by Durrell //size(maxDist * biggerScreen, 500); frameRate(30); println("Available serial ports:"); // println(Serial.list()); port = new Serial(this, Serial.list()[1], 19200, 'N', 8, 2.0); } //by Durrell void movePointer(int temp1, int anum){ // background(0); if( temp1 != 0){ target = temp1; // only update the actual target if it is new return; } // always do this ////movimento pallina al movimento dell'utente if(abs(linePos - target) < 6) { //nothing } else if (target > linePos) { linePos = linePos + anum; background(0); //stroke(0, 255, 0); fill(255); ellipse((linePos * biggerScreen)+ 40, 440, 30, 30); } else { linePos = linePos - anum; background(0); // stroke(0, 255, 0); fill(255); ellipse((linePos * biggerScreen)+ 20, 440, 30, 30); // } } int getDist(){ float newTime = millis(); if( oldTime > newTime){ //dont do anything, giving time to the sensor //println("wait"); return(0); } //println("step"); switch(mode) { case 1: theDistance = 0; //ask for a reading port.write(byte(85)); port.write(byte(224)); port.write(byte(0)); port.write(byte(1)); port.write(byte(81)); oldTime = millis()+ waitForReply; mode = 2; break; case 2: while (port.available() > 0) { res = port.read(); // println(res); } port.write(byte(85)); port.write(byte(225)); port.write(byte(2)); port.write(byte(1)); oldTime = millis()+ waitForReply2; mode = 3; break; case 3: while (port.available() > 0) { res1 = port.read(); //println(res1); } port.write(byte(85)); port.write(byte(225)); port.write(byte(3)); port.write(byte(1)); oldTime = millis()+ waitForReply2; mode = 4; break; case 4: while (port.available() > 0) { res2 = port.read(); } theDistance = (res1 * 255) + res2; if(theDistance > maxDist){ theDistance = 0;//no good } else { theDistance = theDistance / stepsize; theDistance = theDistance * stepsize; /// this stops them wobberling but it also makes them step } //* jumpsize = (theDistance - lastDistance ); if (jumpsize < jumpTollerance){// looks OK lastDistance = theDistance; // goood reading so reset last distance } else { lastDistance = theDistance; // theDistance = 0; //not good } //*/ mode = 1; break; default: } return(theDistance); } void draw() { //tint(255, 20); //by Durrell int temp1 = getDist(); movePointer(temp1, 6); println (CurrentPosition); switch (CurrentPosition){ case 1: //background(0); println(target); /* if (!FERMO) { println("in case 1 not staying"); reflecTime = millis(); FERMO = true; } */ ////////////////////////////////////////////////// //timeline if (target > 0 && target < 40){ col1=255; col2=255; col3=255; } else { col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("70", 90, 490); if (target>50 && target <70){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1215", 188, 490); if (target >80 && target < 110){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1492", 328, 490); if (target>120 && target<170){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1516", 472, 490); if (target>170 && target<210){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1796", 616, 490); image (mappa, 40,12); /////////////////////////////////////////////////// // background(0); primo.stop(); secondo.stop(); break; case 2: println(target); //audio if(!primo.isPlaying()){ if (secondo.isPlaying()) secondo.stop(); primo.play(); } //timeline if (target > 0 && target < 40){ col1=255; col2=255; col3=255; } else { col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("70", 90, 490); if (target>50 && target <70){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1215", 188, 490); if (target >80 && target < 110){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1492", 328, 490); if (target>120 && target<170){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1516", 472, 490); if (target>170 && target<210){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1796", 616, 490); if (target>170 && target<210){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1796", 616, 490); frame=constrain (frame+1,0,120);//%numFrames; image(images[frame],40,12); fill(0); rect(35,0, 5, 430); //titolo font = loadFont("LucidaSansBold32.vlw"); textFont(font, 25); fill(255, 0, 155); text("70", 60, 60); text("Distruzione ", 60, 90); text("del tempio", 60, 120); startvideo(); break; case 3: primo.stop(); println(target); //audio if(!secondo.isPlaying()){ if (primo.isPlaying()) primo.stop(); secondo.play(); } //timeline if (target > 0 && target < 40){ col1=255; col2=255; col3=255; } else { col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("70", 90, 490); if (target>50 && target <70){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1215", 188, 490); if (target >80 && target < 110){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1492", 328, 490); if (target>120 && target<170){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1516", 472, 490); if (target>170 && target<210){ col1=255; col2=255; col3=255; } else{ col1=165; col2=195; col3=130; } font = loadFont("LucidaSansBold32.vlw"); textFont(font, 32); fill (col1, col2, col3); text("1796", 616, 490); //carica il video dell'anno 1492 frame=constrain (frame2+1,0,128); image(imagesA[frame],40,12); //println("sono il video2"); fill(0); rect(0, 415, 800, 5); //titolo font = loadFont("LucidaSansBold32.vlw"); textFont(font, 25); fill(255, 0, 155); text("1492", 30, 60); text("Espulsione", 30, 90); text("dalla Spagna", 30, 120); startvideo(); break; } //legge il void che calcola la distanza e fa partire i video startvideo(); } //calcola la distanza e il tempo fa partire il video void startvideo(){ if(target>0 && target<40){// over area 2 // print("video70"); if(tempArea != 2){ tempArea = 2; futureTime = millis()+ 2000; } else if (millis()> futureTime){ CurrentPosition=2; } } else if(target>80 && target <110){ //over area 3 //println("VIDEO1492"); if(tempArea != 3){ tempArea = 3; futureTime = millis()+ 2000; } else if(millis()> futureTime){ CurrentPosition=3; } } else{ tempArea = 1; //println("MAPPA2"); CurrentPosition=1; } }