Esempio n. 1
0
 // -------------------------------------------------------------------------------------------------------------------------------------------------------
 // Poofs
 public void removePoof() { // once the poof animation is the poof is removed from the list
   for (Poof p : poofList) {
     if (p.isDone()) {
       pRemove.add(p);
     }
   }
   for (Poof p : pRemove) {
     poofList.remove(p);
   }
   pRemove = new ArrayList<Poof>();
 }
Esempio n. 2
0
 public void scrollPoofs() {
   for (Poof i : poofList) {
     i.setY(i.getY() + (int) (player1.getVelocity() * 0.3));
   }
 }
Esempio n. 3
0
 public void drawPoof(Graphics g) {
   for (Poof i : poofList) {
     g.drawImage(i.getImage(), i.getX(), i.getY(), i.getWidth(), i.getHeight(), null);
     i.count();
   }
 }