diff --git a/src/de/teamteamteam/spacescooter/entity/shot/Beam.java b/src/de/teamteamteam/spacescooter/entity/shot/Beam.java index 226bd1e..f7c3538 100644 --- a/src/de/teamteamteam/spacescooter/entity/shot/Beam.java +++ b/src/de/teamteamteam/spacescooter/entity/shot/Beam.java @@ -12,7 +12,7 @@ public class Beam extends Shot{ @Override public void update() { i++; - if(i>100){ + if(i>10){ this.remove(); } } diff --git a/src/de/teamteamteam/spacescooter/level/Level.java b/src/de/teamteamteam/spacescooter/level/Level.java index e99f5d4..f9496f3 100644 --- a/src/de/teamteamteam/spacescooter/level/Level.java +++ b/src/de/teamteamteam/spacescooter/level/Level.java @@ -8,6 +8,7 @@ import de.teamteamteam.spacescooter.entity.enemy.EnemyBoss; import de.teamteamteam.spacescooter.entity.enemy.EnemyOne; import de.teamteamteam.spacescooter.entity.enemy.EnemyThree; import de.teamteamteam.spacescooter.entity.enemy.EnemyTwo; +import de.teamteamteam.spacescooter.entity.item.ItemChance; import de.teamteamteam.spacescooter.entity.Entity; import de.teamteamteam.spacescooter.screen.GameScreen; import de.teamteamteam.spacescooter.utility.GameConfig; @@ -49,6 +50,7 @@ public final class Level { * Initialize the level based on the LevelConfig attributes. */ public void doBuildUp() { + new ItemChance(); new StarBackground(0, 50); GameScreen.setPlayer(new Player(200, 300)); }