Skip to content

Commit

Permalink
Changing proportion and spawning of mob balls
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniSoda17 committed Sep 9, 2023
1 parent 83b340a commit 714b446
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ public void updateMobState() {
} else {
owner.getEntity().getEvents().trigger(FIRING);
Entity newProjectile = ProjectileFactory.createMobBall(PhysicsLayer.HUMANS, new Vector2(0, owner.getEntity().getPosition().y), new Vector2(2f,2f));
newProjectile.setPosition((float) (owner.getEntity().getPosition().x), (float) (owner.getEntity().getPosition().y));
newProjectile.setScale(-1f, 0.5f);
newProjectile.setPosition((float) (owner.getEntity().getPosition().x), (float) (owner.getEntity().getPosition().y + 0.1));
newProjectile.setScale(-0.7f, 0.7f);
ServiceLocator.getEntityService().register(newProjectile);
mobState = STATE.STOW;
owner.getEntity().getEvents().trigger("shootStart");
Expand Down

0 comments on commit 714b446

Please sign in to comment.