Skip to content

Commit

Permalink
Fix moblings boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
freshc0w committed Oct 15, 2023
1 parent 1c3a72a commit 264c5d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public void create() {
// spawnRicochetTower();
// spawnBombship();
}

private void displayUI() {
Entity ui = new Entity();
ui.addComponent(new GameAreaDisplay("Box Forest"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class SplitMoblings extends Component {
public static final float MIN_X_BOUNDS = 1;
public static final float MAX_X_BOUNDS = (float) 18.5;
public static final float MIN_Y_BOUNDS = 0;
public static final float MAX_Y_BOUNDS = 6;
public static final float MAX_Y_BOUNDS = 5;
public static final String DIE_START_EVENT = "splitDeath";

/**
Expand Down Expand Up @@ -150,6 +150,8 @@ public void spawnAdditionalMob(float positionX, float positionY,
entityType.setScale(initialScaleX * scaleX, initialScaleY * scaleY);

ServiceLocator.getEntityService().register(entityType);

// ServiceLocator.getWaveService().setEnemyCount(ServiceLocator.getWaveService().getEnemyCount() + 1);
}

/**
Expand Down

0 comments on commit 264c5d6

Please sign in to comment.