increased archer and boss range, made archer charge more visible, fixed playercontroller.reset

This commit is contained in:
OfficialCHenry 2022-05-09 14:52:26 -04:00
parent 4b8c7a0bf9
commit 394212ff22
4 changed files with 7 additions and 6 deletions

View File

@ -39,7 +39,7 @@
},
{
"index": 5,
"duration": 10
"duration": 30
},
{
"index": 6,

View File

@ -17,6 +17,6 @@ export default class ArcherAI extends EnemyAI {
}
canAttack(position: Vec2): boolean {
return this.attackTimer.isStopped() && this.owner.position.distanceTo(position)<=96;
return this.attackTimer.isStopped() && this.owner.position.distanceTo(position)<=128;
}
}

View File

@ -17,7 +17,7 @@ export default class BossAI extends EnemyAI {
}
canAttack(position: Vec2): boolean {
return this.attackTimer.isStopped() && this.owner.position.distanceTo(position)<=128;
return this.attackTimer.isStopped() && this.owner.position.distanceTo(position)<=225;
}
damage(damage: number): void {

View File

@ -191,9 +191,10 @@ export default class PlayerController extends StateMachineAI implements BattlerA
}
static reset(){
this.appliedBuffs = new Array();
this.buffPool = new Array();
this.enemiesKilled = 0;
PlayerController.appliedBuffs = new Array();
PlayerController.buffPool = new Array();
PlayerController.enemiesKilled = 0;
PlayerController.level = 1;
}
initializePlatformer(): void {