Skip to content

Commit

Permalink
Update heartgame.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Tech-with-anmol authored Dec 21, 2024
1 parent b512c7b commit d6fd603
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion games/heartgame.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ function opprm() {
function checkHit() {
let opps = getAll(opponent);
let p = getFirst(player);


if (!p) return;

for (let i = 0; i < opps.length; i++) {
if (opps[i].x == p.x && opps[i].y + 1 == p.y) {
setMap(levels[1]);
Expand Down

0 comments on commit d6fd603

Please sign in to comment.