remove ghost func fix
unknown
javascript
3 years ago
252 B
10
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...