Exemplo n.º 1
0
 public void scrollJumpers() {
   for (Jumper i : jumperList) {
     i.setY(i.getY() + (int) (player1.getVelocity() * 0.3));
   }
 }
Exemplo n.º 2
0
 public void drawJumper(Graphics g) {
   for (Jumper i : jumperList) {
     g.drawImage(i.getImage(), i.getX(), i.getY(), i.getWidth(), i.getHeight(), null);
   }
 }