diff --git a/src/main/java/pl/venixpll/app/DodgeAPP.java b/src/main/java/pl/venixpll/app/DodgeAPP.java index 083ff8d..bf808f8 100644 --- a/src/main/java/pl/venixpll/app/DodgeAPP.java +++ b/src/main/java/pl/venixpll/app/DodgeAPP.java @@ -95,7 +95,7 @@ public void render(GameContainer gameContainer, Graphics graphics) throws SlickE System.out.println("Added segment"); final int amount = random.nextInt(8) + 3; IntStream.range(0,amount).forEach(i -> { - asteroids.add(new RenderAsteroid(random.nextInt(gameContainer.getWidth() - 50) - 100, -((random.nextInt(500) + 300)- 300),this)); + asteroids.add(new RenderAsteroid(random.nextInt(gameContainer.getWidth() - 15) - 30, -((random.nextInt(500) + 300)- 300),this)); }); backgroundSegments.add(0); }