summaryrefslogtreecommitdiff
path: root/src/entities/hello_kitty/laser.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities/hello_kitty/laser.js')
-rw-r--r--src/entities/hello_kitty/laser.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/entities/hello_kitty/laser.js b/src/entities/hello_kitty/laser.js
index b8e480d..8cf576a 100644
--- a/src/entities/hello_kitty/laser.js
+++ b/src/entities/hello_kitty/laser.js
@@ -2,7 +2,6 @@ import { WHITE, HELLO_KITTY } from "../../assets.js"
import { Vector } from "../../engine/vector.js"
import { Engine } from "../../engine.js"
import { Entity } from "../entity.js"
-import { boshy } from "../../main.js"
import { Bullet } from "./bullet.js"
export class Laser extends Entity {
@@ -34,7 +33,7 @@ export class Laser extends Entity {
if (!this.loadingTimeLeft) {
this.attacking = true
this.size.x = 100
- Engine.radio.playSound(HELLO_KITTY.LASER_SOUND)
+ Engine.radio.playSound(HELLO_KITTY.SOUNDS.LASER)
Engine.screen.shake()
this.spawnBullets()
}
@@ -45,9 +44,7 @@ export class Laser extends Entity {
if (this.size.x == this.attackSize) this.size.x += 10
else this.size.x = this.attackSize
this.attackTimeLeft--
- if (Engine.collision.collidingWithBoshy(this.position, this.hitbox)) {
- boshy.die()
- }
+ this.updateAsHazard()
return
}