// ------------------------------------------------------------------------------------------------------------------------------------------------------- // 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>(); }
public void scrollPoofs() { for (Poof i : poofList) { i.setY(i.getY() + (int) (player1.getVelocity() * 0.3)); } }
public void drawPoof(Graphics g) { for (Poof i : poofList) { g.drawImage(i.getImage(), i.getX(), i.getY(), i.getWidth(), i.getHeight(), null); i.count(); } }