From 0696b94962a0571fad54844f137dca025df4563b Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Fri, 27 Dec 2024 18:30:10 +0100 Subject: game finished, only assets left --- src/entities/bigdump.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/entities/bigdump.js') 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() } -- cgit v1.2.3