summaryrefslogtreecommitdiff
path: root/src/entities/bigdump.js
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2024-12-27 18:30:10 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2024-12-27 18:30:10 +0100
commit0696b94962a0571fad54844f137dca025df4563b (patch)
tree8aeff72e8fc46a7dab2b2f556febd962e3f67e4b /src/entities/bigdump.js
parent474a7253b6b67e2ed33936f6b633587d5d304b66 (diff)
game finished, only assets left
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()
}