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

Function getSpawnDelay

assets/js/block_ninja.js:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18// Gameplay
19const getSpawnDelay = () => {
20 const spawnDelayMax = 1400;
21 const spawnDelayMin = 550;
22 const spawnDelay = spawnDelayMax - state.game.cubeCount * 3.1;
23 return Math.max(spawnDelay, spawnDelayMin);
24}
25const doubleStrongEnableScore = 2000;
26// Number of cubes that must be smashed before activating a feature.
27const slowmoThreshold = 10;

Callers 2

resetGameFunction · 0.85
tickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected