From 7d863dff92c2cf553a79c3ce049439cd9f977153 Mon Sep 17 00:00:00 2001 From: gregchan550 <86044792+gregchan550@users.noreply.github.com> Date: Wed, 20 Sep 2023 09:53:46 +1000 Subject: [PATCH] Jump animation and speed adjustments --- .../csse3200/game/components/tasks/bosstask/DemonBossTask.java | 2 +- .../com/csse3200/game/entities/factories/MobBossFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java b/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java index 3152d4a33..9b6e41f7b 100644 --- a/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java +++ b/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java @@ -26,7 +26,7 @@ public class DemonBossTask extends DefaultTask implements PriorityTask { // Constants private static final int PRIORITY = 3; - private static final Vector2 DEMON_JUMP_SPEED = new Vector2(2f, 2f); + private static final Vector2 DEMON_JUMP_SPEED = new Vector2(1f, 1f); private static final float STOP_DISTANCE = 0.1f; private static final int BURN_BALLS = 5; private static final int X_LENGTH = 20; // for projectile destination calculations diff --git a/source/core/src/main/com/csse3200/game/entities/factories/MobBossFactory.java b/source/core/src/main/com/csse3200/game/entities/factories/MobBossFactory.java index 855b28196..f0ce906b4 100644 --- a/source/core/src/main/com/csse3200/game/entities/factories/MobBossFactory.java +++ b/source/core/src/main/com/csse3200/game/entities/factories/MobBossFactory.java @@ -42,7 +42,7 @@ public static Entity createDemonBoss() { animator.addAnimation("demon_death", 0.2f, Animation.PlayMode.LOOP); animator.addAnimation("demon_fire_breath", 0.2f, Animation.PlayMode.LOOP); animator.addAnimation("demon_idle", 0.2f, Animation.PlayMode.LOOP); - animator.addAnimation("demon_smash", 0.10f, Animation.PlayMode.LOOP); + animator.addAnimation("demon_smash", 0.2f, Animation.PlayMode.LOOP); animator.addAnimation("demon_take_hit", 0.2f, Animation.PlayMode.LOOP); animator.addAnimation("demon_walk", 0.2f, Animation.PlayMode.LOOP); animator.addAnimation("idle", 0.2f, Animation.PlayMode.LOOP);