summaryrefslogtreecommitdiff
path: root/src/entities/bigdump.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities/bigdump.js')
-rw-r--r--src/entities/bigdump.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/entities/bigdump.js b/src/entities/bigdump.js
index 90b4a57..d7a20ba 100644
--- a/src/entities/bigdump.js
+++ b/src/entities/bigdump.js
@@ -28,11 +28,8 @@ export class BigDump extends Entity {
if (this.bottom) this.position.x += this.speed
else this.position.y += this.speed
- console.log("dump", this.position)
-
- if (Engine.collision.collidingWithBoshy(this.position, this.hitbox)) {
- boshy.die()
- }
+ this.updateAsHazard()
+ this.checkBounds()
if (Engine.screen.isOffLimits(this.position, this.size)) {
this.remove()
}