Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
yug-khandelwal authored Dec 31, 2024
2 parents 5f37a2c + 71e271c commit 1091501
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
26 changes: 13 additions & 13 deletions games/mailman.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
// }
// }
3 changes: 2 additions & 1 deletion games/offline_t-rex_game.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
@title: offline_t-rex_game
@author: zoya hussain */
@author: zoya hussain
@tags: ['endless']
@addedOn: 2022-12-31
*/

let vy = 0;

Expand Down

0 comments on commit 1091501

Please sign in to comment.