Пример #1
0
 public void scrollPoofs() {
   for (Poof i : poofList) {
     i.setY(i.getY() + (int) (player1.getVelocity() * 0.3));
   }
 }
Пример #2
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();
   }
 }