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

Function incrementScore

assets/js/block_ninja.js:1420–1428  ·  view source on GitHub ↗
(inc)

Source from the content-addressed store, hash-verified

1418}
1419
1420function incrementScore(inc) {
1421 if (isInGame()) {
1422 state.game.score += inc;
1423 if (state.game.score < 0) {
1424 state.game.score = 0;
1425 }
1426 renderScoreHud();
1427 }
1428}
1429
1430function setCubeCount(count) {
1431 state.game.cubeCount = count;

Callers 1

tickFunction · 0.85

Calls 2

isInGameFunction · 0.85
renderScoreHudFunction · 0.85

Tested by

no test coverage detected