Well... the game takes various variables from your game and plug them in kongregate's API. Example: For max minutes played, I set a variable called "Time". Time is executed at the beginning of every frame. The game runs at 32 fps, so I assume that Time has to run 32 times for a second to pass. Time has to run 32*60 times for a minute to pass. If Time/(32*60) has a remainder of 0, then I assume one minute has passed in your game, and another variable "Minute" gets a +1 and Time is reset to 0. Minute then gets plugged into kongregate's website.
Well... the game takes various variables from your game and plug them in kongregate's API. Example: For max minutes played, I set a variable called "Time". Time is executed at the beginning of every frame. The game runs at 32 fps, so I assume that Time has to run 32 times for a second to pass. Time has to run 32*60 times for a minute to pass. If Time/(32*60) has a remainder of 0, then I assume one minute has passed in your game, and another variable "Minute" gets a +1 and Time is reset to 0. Minute then gets plugged into kongregate's website.