remove ghost func fix
unknown
javascript
a year ago
252 B
1
Indexable
Never
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++; }