class Assets {

    void init() {
//    vaquita = createSprite(200, 300);
//      vaquita.scale = .4;
//      vaquita.addAnimation('stand', vaquitaStandSeq);
//      vaquita.addAnimation('walk', vaquitaWalkSeq);
//      vaquita.position.x = 160;
//      vaquita.position.y = 385;

//      vaquita.animation.frameDelay = 12;

        String[] perroStandSeq = {"img/PerroStand1.png", "img/PerroStand2.png", "img/PerroStand3.png"};
        String[] perroWalkSeq = {"img/PerroWalk1.png", "img/PerroWalk2.png", "img/PerroWalk3.png"};
        String[] perroBarkSeq = {"img/PerroLadraArriba1.png", "img/PerroLadraArriba2.png", "img/PerroLadraArriba3.png"};
        String[] PerroBarkUpSeq = {"img/PerroLadraAbajo1.png", "img/PerroLadraAbajo2.png", "img/PerroLadraAbajo3.png"};

        PImage[] perroStandImgs = new PImage[3];
        PImage[] perroWalkImgs = new PImage[3];
        PImage[] perroBarkImgs = new PImage[3];
        PImage[] perroBarkUpImgs = new PImage[3];
        
        loadAnimation(perroStandSeq, perroStandImgs);
        loadAnimation(perroWalkSeq, perroWalkImgs);
        loadAnimation(perroBarkSeq, perroBarkImgs);
        loadAnimation(PerroBarkUpSeq, perroBarkUpImgs);
        
        perroStand = new AnimatedSprite(perroStandImgs, 8, width/2-16, height-60, 115, 115 );  /////// + width/4 Center of screen
        perroStand.setFPS(4);
        perroStand.loop();
        
        perroWalk = new AnimatedSprite(perroWalkImgs, 8, width/2-16, height-60, 115, 115 );  /////// + width/4 Center of screen
        perroWalk.setFPS(12);
        perroWalk.loop();
        
        perroBark = new AnimatedSprite(perroBarkImgs, 8, width/2-16, height-60, 115, 115 );  /////// + width/4 Center of screen
        perroBark.setFPS(12);
        perroBark.loop();
      
        perroBarkUp = new AnimatedSprite(perroBarkUpImgs, 8, width/2-16, height-60, 115, 115 );  /////// + width/4 Center of screen
        perroBarkUp.setFPS(12);
        perroBarkUp.loop();
        
        dogSprite = perroStand;
        
//    abejasGrp = new Group();

//    for (let j = 0; j < abejasAmount; j++) {
//      var newAbeja = createSprite(200, 300);
//          newAbeja.scale = random(0.0, 0.2);
//          newAbeja.addAnimation('quiet', abejaFlySeq);
//          newAbeja.animation.frameDelay = 6;
//          abejasGrp.add(newAbeja);
//      }
  }

    void update() {
        dogSprite.x = granjeroSprite.x + 100;
        dogSprite.y = granjeroSprite.y;
        dogSprite.update(); 
        dogSprite.draw();
        
      
    }       
}

AnimatedSprite perroStand;
AnimatedSprite perroWalk;
AnimatedSprite perroBark;
AnimatedSprite perroBarkUp;
AnimatedSprite dogSprite;
