mirror of
https://github.com/Sheldan/canvas.git
synced 2026-01-28 13:24:00 +00:00
survivors: fixing enemies not being able to spawn projectiles due to missing speed
This commit is contained in:
@@ -123,7 +123,7 @@ export class ShootingEnemy extends BasicEnemy implements Shooting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
createProjectile() {
|
createProjectile() {
|
||||||
let stats = new ProjectileStats(0, 1, 5)
|
let stats = new ProjectileStats(0, 1, 5, 2)
|
||||||
let projectile = StraightProjectile.createStraightProjectile(this.world, this._position, this.world.player.position, this, stats)
|
let projectile = StraightProjectile.createStraightProjectile(this.world, this._position, this.world.player.position, this, stats)
|
||||||
this.projectiles.push(projectile)
|
this.projectiles.push(projectile)
|
||||||
return projectile
|
return projectile
|
||||||
|
|||||||
Reference in New Issue
Block a user