MCPcopy
hub / github.com/arcxingye/EatKano / getCPS

Function getCPS

static/index.js:221–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219 }
220
221 function getCPS() {
222 let cps = _gameScore / ((new Date().getTime() - _gameStartDatetime) / 1000);
223 if (isNaN(cps) || cps === Infinity || _gameStartTime < 2) {
224 cps = 0;
225 }
226 return cps;
227 }
228
229 function timer() {
230 _gameTimeNum--;

Callers 2

updatePanelFunction · 0.85
gameOverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected