From 8aefcbc0e2632d76bb406948dd3f5706566e3e68 Mon Sep 17 00:00:00 2001 From: Sofia Egan <108308587+EerierGosling@users.noreply.github.com> Date: Wed, 25 Dec 2024 17:46:21 -0300 Subject: [PATCH] fixing the game --- games/mailman.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/games/mailman.js b/games/mailman.js index d428f93142..df56e22ff1 100644 --- a/games/mailman.js +++ b/games/mailman.js @@ -347,19 +347,19 @@ function checkHit() { -function checkHit() { - const badBoxHitbox = tilesWith(BADBOX).length; - const evilBoxHitbox = tilesWith(EVILBOX).length; +// function checkHit() { +// const badBoxHitbox = tilesWith(BADBOX).length; +// const evilBoxHitbox = tilesWith(EVILBOX).length; - const badBoxDamage = tilesWith(BADBOX, player).length; - const evilBoxDamage = tilesWith(EVILBOX, player).length; +// const badBoxDamage = tilesWith(BADBOX, player).length; +// const evilBoxDamage = tilesWith(EVILBOX, player).length; - // Get the current level's map - const currentLevelMap = levels[level]; +// // Get the current level's map +// const currentLevelMap = levels[level]; - if (badBoxDamage > 0 || evilBoxDamage > 0) { - // You're being hit by either BADBOX or EVILBOX - setMap(currentLevelMap); // Reset the current level - // console.log("HIT!"); - } -} +// if (badBoxDamage > 0 || evilBoxDamage > 0) { +// // You're being hit by either BADBOX or EVILBOX +// setMap(currentLevelMap); // Reset the current level +// // console.log("HIT!"); +// } +// }