()
| 17 | |
| 18 | // Gameplay |
| 19 | const 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 | } |
| 25 | const doubleStrongEnableScore = 2000; |
| 26 | // Number of cubes that must be smashed before activating a feature. |
| 27 | const slowmoThreshold = 10; |