MCPcopy
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / resetGame

Function resetGame

assets/js/block_ninja.js:1451–1458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1449}
1450
1451function resetGame() {
1452 resetAllTargets();
1453 state.game.time = 0;
1454 resetAllCooldowns();
1455 setScore(0);
1456 setCubeCount(0);
1457 spawnTime = getSpawnDelay();
1458}
1459
1460function pauseGame() {
1461 isInGame() && setActiveMenu(MENU_PAUSE);

Callers 1

block_ninja.jsFile · 0.70

Calls 5

resetAllTargetsFunction · 0.85
resetAllCooldownsFunction · 0.85
setScoreFunction · 0.85
setCubeCountFunction · 0.85
getSpawnDelayFunction · 0.85

Tested by

no test coverage detected