(inc)
| 1418 | } |
| 1419 | |
| 1420 | function 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 | |
| 1430 | function setCubeCount(count) { |
| 1431 | state.game.cubeCount = count; |
no test coverage detected