-
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.
Fixed merge conflicts from Team-1 branch
- Loading branch information
Showing
11 changed files
with
228 additions
and
46 deletions.
There are no files selected for viewing
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,41 @@ | ||
|
||
mobProjectile.png | ||
size: 128, 32 | ||
format: RGBA8888 | ||
filter: Nearest, Nearest | ||
repeat: none | ||
rotate | ||
rotate: false | ||
xy: 54, 2 | ||
size: 24, 23 | ||
orig: 24, 23 | ||
offset: 0, 0 | ||
index: -1 | ||
rotate | ||
rotate: false | ||
xy: 2, 2 | ||
size: 24, 23 | ||
orig: 24, 23 | ||
offset: 0, 0 | ||
index: -1 | ||
default | ||
rotate: false | ||
xy: 54, 2 | ||
size: 24, 23 | ||
orig: 24, 23 | ||
offset: 0, 0 | ||
index: -1 | ||
rotate | ||
rotate: false | ||
xy: 28, 2 | ||
size: 24, 23 | ||
orig: 24, 23 | ||
offset: 0, 0 | ||
index: -1 | ||
rotate | ||
rotate: false | ||
xy: 80, 2 | ||
size: 24, 23 | ||
orig: 24, 23 | ||
offset: 0, 0 | ||
index: -1 |
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
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
23 changes: 23 additions & 0 deletions
23
source/core/src/main/com/csse3200/game/components/MobProjectileAnimationController.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,23 @@ | ||
package com.csse3200.game.components; | ||
|
||
import com.csse3200.game.rendering.AnimationRenderComponent; | ||
|
||
|
||
public class MobProjectileAnimationController 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 = this.entity.getComponent(AnimationRenderComponent.class); | ||
entity.getEvents().addListener("rotate", this::animateStartRotate); | ||
} | ||
|
||
void animateStartRotate() { | ||
animator.startAnimation("rotate"); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
source/core/src/main/com/csse3200/game/components/ProjectileEffects.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,8 @@ | ||
package com.csse3200.game.components; | ||
|
||
public enum ProjectileEffects { | ||
FIREBALL, //fireball projectile - deals damage based on baseAttack | ||
BURN, //burn projectile - does 5 extra ticks of damage over 5 seconds | ||
SLOW, //slow projectile - slows entity by half for 5 seconds | ||
STUN //stun projectile - stuns entity for 5 seconds | ||
} |
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
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
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
Oops, something went wrong.