public void pu_Spawn(int indi) { powerup powerup = new powerup(); ind_pu += indi; powers.Add(powerup); }
public void draw(powerup powerup, BufferedGraphics buffer) { buffer.Graphics.DrawImage(Ibala, new Rectangle(powerup.getX() * 20, (powerup.getY()) * 20, 20, 20)); }