remove ghost func fix

Anonymous
javascript
09/20/2022 1:39 PM
336 B
16
Indexable
function killGhost(nextLocation) {
  var ghostIdx = getGhostIdxByLocation(nextLocation); // in case this is giving the current ghost id
  // Removing ghost from array
  gGhosts.pop(ghostIdx)
  // increasing dead ghost counter. 
  gGame.deadGhosts++;
}
Editor is loading...