increased archer and boss range, made archer charge more visible, fixed playercontroller.reset
This commit is contained in:
parent
4b8c7a0bf9
commit
394212ff22
|
@ -39,7 +39,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"index": 5,
|
"index": 5,
|
||||||
"duration": 10
|
"duration": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"index": 6,
|
"index": 6,
|
||||||
|
|
|
@ -17,6 +17,6 @@ export default class ArcherAI extends EnemyAI {
|
||||||
}
|
}
|
||||||
|
|
||||||
canAttack(position: Vec2): boolean {
|
canAttack(position: Vec2): boolean {
|
||||||
return this.attackTimer.isStopped() && this.owner.position.distanceTo(position)<=96;
|
return this.attackTimer.isStopped() && this.owner.position.distanceTo(position)<=128;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -17,7 +17,7 @@ export default class BossAI extends EnemyAI {
|
||||||
}
|
}
|
||||||
|
|
||||||
canAttack(position: Vec2): boolean {
|
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 {
|
damage(damage: number): void {
|
||||||
|
|
|
@ -191,9 +191,10 @@ export default class PlayerController extends StateMachineAI implements BattlerA
|
||||||
}
|
}
|
||||||
|
|
||||||
static reset(){
|
static reset(){
|
||||||
this.appliedBuffs = new Array();
|
PlayerController.appliedBuffs = new Array();
|
||||||
this.buffPool = new Array();
|
PlayerController.buffPool = new Array();
|
||||||
this.enemiesKilled = 0;
|
PlayerController.enemiesKilled = 0;
|
||||||
|
PlayerController.level = 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
initializePlatformer(): void {
|
initializePlatformer(): void {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user