-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Team-1--Mobs-Enhancement' into Isaac-Mob-Animation
- Loading branch information
Showing
8 changed files
with
872 additions
and
53 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
source/core/src/main/com/csse3200/game/components/bosses/DemonAnimationController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.csse3200.game.components.bosses; | ||
|
||
import com.csse3200.game.components.Component; | ||
import com.csse3200.game.rendering.AnimationRenderComponent; | ||
|
||
public class DemonAnimationController extends Component { | ||
AnimationRenderComponent animator; | ||
|
||
/** | ||
* Creation call for a TowerAnimationController, fetches the animationRenderComponent that this controller will | ||
* be attached to and registers all the event listeners required to trigger the animations and sounds. | ||
*/ | ||
@Override | ||
public void create() { | ||
super.create(); | ||
animator = entity.getComponent(AnimationRenderComponent.class); | ||
registerAnimationListener("demon_walk"); | ||
registerAnimationListener("demon_cleave"); | ||
registerAnimationListener("demon_take_hit"); | ||
registerAnimationListener("demon_idle"); | ||
registerAnimationListener("demon_death"); | ||
registerAnimationListener("demon_cast_spell"); | ||
registerAnimationListener("demon_fire_breath"); | ||
registerAnimationListener("demon_smash"); | ||
registerAnimationListener("demon_take_hit"); | ||
registerAnimationListener("idle"); | ||
registerAnimationListener("move"); | ||
registerAnimationListener("projectile_explosion"); | ||
registerAnimationListener("projectile_idle"); | ||
registerAnimationListener("take_hit"); | ||
registerAnimationListener("transform"); | ||
} | ||
|
||
private void registerAnimationListener(String animationName) { | ||
entity.getEvents().addListener(animationName, () -> animator.startAnimation(animationName)); | ||
} | ||
|
||
|
||
} |
29 changes: 0 additions & 29 deletions
29
source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossMovementTask.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.