void drawHouse()
{
  fill( 191, 179, 117 );
  rect( -100, -150, 200, 150 );
  fill( 62, 54, 47 );
  triangle( -130, -150, 0, -250, 130, -150 );
}

void setup()
{
  size( 600, 600 );
}

void draw()
{
  background( 255 );

  // globally translates all four houses.
  translate( mouseX, mouseY );
  
  pushMatrix();
  translate( 150, 280 );
  drawHouse();
  popMatrix();
  
  pushMatrix();
  translate( 450, 280 );
  drawHouse();
  popMatrix();
  
  pushMatrix();
  translate( 150, 580 );
  drawHouse();
  popMatrix();
  
  pushMatrix();
  translate( 450, 580 );
  drawHouse();
  popMatrix();
}