fixed finalboss following

This commit is contained in:
OfficialCHenry 2022-05-09 14:25:38 -04:00
parent 6062b15398
commit 59a21f9536
3 changed files with 7 additions and 5 deletions

View File

@ -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));
}

View File

@ -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")
})

View File

@ -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 {