Esempio n. 1
0
 public void scrollSpikes() {
   for (Spikes i : spikeList) {
     i.setY(i.getY() + (int) (player1.getVelocity() * 0.3));
   }
 }
Esempio n. 2
0
 public void drawSpike(Graphics g) {
   for (Spikes i : spikeList) {
     g.drawImage(i.getImage(), i.getX(), i.getY(), i.getWidth(), i.getHeight(), null);
   }
 }