-
Notifications
You must be signed in to change notification settings - Fork 1
Push
TTevita edited this page Oct 3, 2022
·
1 revision
The push skill is a utility skill which allows the player to push all surrounding enemies away from them and create space. It is functionally identical to the projectile implementation, just with more knockback, a larger hitbox, and no movement.
When the skill is used the skill handler calls the below function to spawn the push hitbox over the player. The hitbox is then immediately removed so enemies won't keep running into it.
public void aoeAttack() {
if (ServiceLocator.getGameArea().getClass() == ForestGameArea.class) {
Entity projectile = ((ForestGameArea) ServiceLocator.getGameArea()).spawnPlayerAOE();
ForestGameArea.removeProjectileOnMap(projectile);
}
}