diff --git a/src/FrameAirBomber.java b/src/FrameAirBomber.java index bfe2a19..0eb3cb8 100644 --- a/src/FrameAirBomber.java +++ b/src/FrameAirBomber.java @@ -74,8 +74,11 @@ public class FrameAirBomber extends JFrame { Random random = new Random(); drawingAirBomber = new DrawingAirBomber(); pictureBox.setBounds(0,0,getContentPane().getWidth(),getContentPane().getHeight()); - drawingAirBomber.init(random.nextInt(200) + 100, random.nextInt(2000) + 1000, new Color(random.nextInt(256), random.nextInt(256), random.nextInt(256)), - new Color(random.nextInt(256), random.nextInt(256), random.nextInt(256)), random.nextBoolean(), random.nextBoolean(), pictureBox.getWidth(), pictureBox.getHeight(), (random.nextInt(3)+1)*2); + drawingAirBomber.init(random.nextInt(200) + 100, random.nextInt(2000) + 1000, + new Color(random.nextInt(256), random.nextInt(256), random.nextInt(256)), + new Color(random.nextInt(256), random.nextInt(256), random.nextInt(256)), + random.nextBoolean(), random.nextBoolean(), pictureBox.getWidth(), pictureBox.getHeight(), + (random.nextInt(3)+1)*2); drawingAirBomber.setPosition(random.nextInt(90) + 10, random.nextInt(90) + 10); draw(); }