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(); } }