<html>
<head>
</head>






<body>



int counter;
int x = 20;
int y = 20;
 
 
 
 
//SECTION 2
void setup() {  //setup function called initially, only once
  size(500, 400);
  }
 
 
//SECTION 3
void draw() {  //draw function loops 
 
    background(255);    // makes it black
 
    fill(255,0,0);
 
    ellipse(mouseX,mouseY,20,20);
 

 
    fill(0,255,0);
 
    ellipse(x,y,20,20);
 
 
 
    if (key == 'd'){
        x = x+8;
    }
 if (key == 'w'){
   y= y-8;
   }
 if (key == 's') {
 y= y+8;
 }
 
 if (key == 'a') {
 x = x -8;
 }
}


















































</body>
</html>