fixed finalboss following
This commit is contained in:
parent
6062b15398
commit
59a21f9536
|
@ -66,10 +66,9 @@ export default class AssassinAttack extends Attack {
|
|||
this.parent.velocity.x = 0;
|
||||
}
|
||||
|
||||
// Do gravity
|
||||
if (this.owner.onGround) {
|
||||
|
||||
this.parent.velocity.y = 0;
|
||||
}
|
||||
|
||||
this.owner.move(this.parent.velocity.scaled(deltaT));
|
||||
}
|
||||
|
||||
|
|
|
@ -983,8 +983,8 @@ export default class GameLevel extends Scene {
|
|||
health: 1000,
|
||||
tilemap: "Main",
|
||||
scale: 2,
|
||||
size: new Vec2(60,50),
|
||||
offset : new Vec2(0,30),
|
||||
size: new Vec2(60,31),
|
||||
offset : new Vec2(0,50),
|
||||
exp: 75,
|
||||
weapon: this.createWeapon("laserGun")
|
||||
})
|
||||
|
|
|
@ -12,6 +12,9 @@ export default class Start extends GameLevel {
|
|||
this.load.tilemapFromObject("map", this.map);
|
||||
|
||||
//load enemies
|
||||
this.load.spritesheet("Snake","shattered_sword_assets/spritesheets/Snake.json");
|
||||
this.load.spritesheet("black_pudding","shattered_sword_assets/spritesheets/black_pudding.json");
|
||||
this.load.spritesheet("FinalBoss","shattered_sword_assets/spritesheets/FinalBoss.json");
|
||||
}
|
||||
|
||||
startScene(): void {
|
||||
|
|
Loading…
Reference in New Issue
Block a user