# How do you score points in this game?

I have played this game a few times, and it's not clear what you need to do to score points. So, far all I've managed to do is to stay awake for 2 minutes or so, and then punch myself into oblivion.

I assume based upon the controls, that there will be some movement in the line at some point?

Or is this just a big sociological experiment to see if people will play a game without knowing why?

Given that the string "scored 0 points" is hard-coded in the game, I'm going to go out on a limb and say that you cannot score any points in this game.

name: 'I just waited ' + hours + ':' + minutes + ':' + seconds + ' and scored 0 points!',

• Commented Nov 28, 2013 at 19:19

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 );
}
``````
• `delta = now - last_render_time` and `last_render_time = Date.now()`. delta is the number of miliseconds between when `now` is defined and when last_render_time is defined. So i don't think it's 0. Commented Dec 4, 2013 at 23:05
• @char1es Plug any number into `~~( Math.atan2( delta, Math.pow( delta, 2 ) ) )` and the result you will get is zero. jsfiddle.net/Nq4Hb/6 Commented Dec 5, 2013 at 17:28
• `~~(Math.atan2( 0.5, Math.pow( 0.5, 2 ) ) ) == 1` :) Commented Dec 5, 2013 at 18:05
• Ahh yes thanks for clarifying, i didn't see the floor operator. However, if we were to remove the floor and replace it with `100*` this would give us a number of some kind Commented Dec 5, 2013 at 18:12
• @BlueRaja-DannyPflughoeft Good point. :) But in this case, `delta` is an integer and so the result will always be 0. Commented Dec 5, 2013 at 19:54