The game may have been updated since Jason posted his answer, since the score isn't hardcoded in the message anymore:
name: 'I just waited ' + hours + ':' + minutes + ':' + seconds + ' and scored ' +
( score || 0 ) + ' points!',
However, it still seems rigged not to allow you to score any points. The only place score
is assigned a value is here:
// Increase score!
score += ~~( Math.atan2( delta, Math.pow( delta, 2 ) ) );
The expression ~~( Math.atan2( delta, Math.pow( delta, 2 ) ) )
will always be 0 since delta
is an integer, and score
is never initialized to a numerical value so it always has the value NaN
.
To top it all off, if you do fiddle with the code to give score
an actual value, the game will crash here because images.hud_fill
is undefined:
if ( score > 0 ) {
ctx.drawImage( images.hud_fill, 902, 678, 122, 396 );
drawFont( score, 678, 902 );
}