Skip to content

Commit

Permalink
Fixed spawn position of projectile to match the sprite change
Browse files Browse the repository at this point in the history
  • Loading branch information
ThivanW committed Sep 11, 2023
1 parent b511d47 commit f9790d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ public void update() {
if (currentTask.getStatus() != Status.ACTIVE) {
if (currentTask == movementTask) {
Entity newProjectile = ProjectileFactory.createBossBall(
PhysicsLayer.HUMANS, new Vector2(0, currentPos.y + 0.75f), new Vector2(2f,2f));
PhysicsLayer.HUMANS, new Vector2(0, currentPos.y), new Vector2(2f,2f));
owner.getEntity().getEvents().trigger(START);
switchMobKingBallState();
// newProjectile.scaleHeight(-1f);
newProjectile.setScale(2f, 2f);
newProjectile.setPosition((float) (currentPos.x), (float) (currentPos.y + 0.55f));
newProjectile.setPosition((currentPos.x), (currentPos.y));
ServiceLocator.getEntityService().register(newProjectile);
startWaiting();
} else {
Expand Down

0 comments on commit f9790d1

Please sign in to comment.