please format code with </> button * homework policy * asking questions
int y=290;
int z=2;
PImage pista1;
PImage chico2;
int contador=0;
int x=0;
int y=0;
boolean clic=false
void setup(){
size(600,400);
pista1=loadImage(“pista1.jpg”);
chico2=loadImage(“chico2.jpg”);
}
void draw(){
pista1.resize(600,400);
background(pista1);
fill(255);
text(“Julen Pérez Arbe”,250,15);
fill(255,140,0);
ellipse(mouseX+115,y,30,30);
chico2.resize(150,235);
image(chico2,mouseX,165);
y=y+z;
if(y>380){
z=-2;
}
if(y<290){
z=+2;
}
fill(255);
text(contador,15,20);
if(clic){
contador=contador+2;
}
for(x=0;x<=600;x=x+10){
fill(255);
line(x,380,x,400);
}
}
void mousePressed(){
if(mouseX>450 && mouseX<550){
clic=!clic;
}
}
Sintax error - Error in “void”