From f9790d1a61c485110b2c573f7434372ee5c1a526 Mon Sep 17 00:00:00 2001 From: Thivan W Date: Tue, 12 Sep 2023 09:59:51 +1000 Subject: [PATCH] Fixed spawn position of projectile to match the sprite change --- .../com/csse3200/game/components/tasks/RangeBossTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/src/main/com/csse3200/game/components/tasks/RangeBossTask.java b/source/core/src/main/com/csse3200/game/components/tasks/RangeBossTask.java index 3eb783e07..47d9a247c 100644 --- a/source/core/src/main/com/csse3200/game/components/tasks/RangeBossTask.java +++ b/source/core/src/main/com/csse3200/game/components/tasks/RangeBossTask.java @@ -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 {