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;
|
this.parent.velocity.x = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do gravity
|
|
||||||
if (this.owner.onGround) {
|
|
||||||
this.parent.velocity.y = 0;
|
this.parent.velocity.y = 0;
|
||||||
}
|
|
||||||
this.owner.move(this.parent.velocity.scaled(deltaT));
|
this.owner.move(this.parent.velocity.scaled(deltaT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -983,8 +983,8 @@ export default class GameLevel extends Scene {
|
||||||
health: 1000,
|
health: 1000,
|
||||||
tilemap: "Main",
|
tilemap: "Main",
|
||||||
scale: 2,
|
scale: 2,
|
||||||
size: new Vec2(60,50),
|
size: new Vec2(60,31),
|
||||||
offset : new Vec2(0,30),
|
offset : new Vec2(0,50),
|
||||||
exp: 75,
|
exp: 75,
|
||||||
weapon: this.createWeapon("laserGun")
|
weapon: this.createWeapon("laserGun")
|
||||||
})
|
})
|
||||||
|
|
|
@ -12,6 +12,9 @@ export default class Start extends GameLevel {
|
||||||
this.load.tilemapFromObject("map", this.map);
|
this.load.tilemapFromObject("map", this.map);
|
||||||
|
|
||||||
//load enemies
|
//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 {
|
startScene(): void {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user