Tecnologia
Tablero tab1;
Tablero muelle;
Tablero muelle1;
Barco seleccionado= new Barco ('X',0,0,true);
int cont=0;
int conta=0;
int contar=0;
int contar1=0;
void setup(){size(1250,700);
background(124,120,204);
PFont font;
fill(255);
font = loadFont("CalistoMT-BoldItalic-48.vlw");
textFont(font,30);
text("SUPERMUELLE",20,390);text("MEGAMUELLE",580,390);
textFont(font,20);
text("1____BARCO____ 1",300,430);
text("2____BARCO____ 2",300,470);
text("3____BARCO____ 3",300,510);
text("4____BARCO____ 4",300,550);text("5____BARCO____ 5",300,590);
text ("(=..jekajar - luzmy..=)",950,680);
textFont (font,17);
fill(200,200,100);
text ("pulse click derecho para que el barco",940,200);
text("tome posicion vertical yclick izquierdo",940,220);
text ("para que el barco tome poscicion horizontal", 940, 240);
tab=new Tablero (30,10,10,10,35);
smooth();
noStroke();
tab1= new Tablero(580,10,10,10,35);
smooth ();
noStroke();
muelle=new Tablero (580,390,10,10,20);
muelle.display();
muelle1=new Tablero (30,390,10,10,20);
muelle1.display();
//tab1.turnos();
Barcoqito20=new Barco ('A',3,1,true);
Barco quito10=new Barco ('B',3,3,true);
Barco quito22=new Barco ('C',3,5,true);
Barco quito30=new Barco ('D',3,7,true);
Barco quito40=new Barco('E',3,9,true);
muelle.insertaBarco(qito20);
muelle.insertaBarco(quito10);
muelle.insertaBarco(quito22);
muelle.insertaBarco(quito30);
muelle.insertaBarco(quito40);
Barco qito200=newBarco ('A',3,1,true);
Barco quito100=new Barco ('B',3,3,true);
Barco quito220=new Barco ('C',3,5,true);
Barco quito300=new Barco ('D',3,7,true);
Barco quito400=new Barco ('E',3,9,true);muelle1.insertaBarco(qito200);
muelle1.insertaBarco(quito100);
muelle1.insertaBarco(quito220);
muelle1.insertaBarco(quito300);
muelle1.insertaBarco(quito400);
}
void draw() {...
Regístrate para leer el documento completo.