For a walkthrough of how to integrate Kongregate and Newgrounds into your game, read our article on Stencylpedia.
Starts up the Kongregate API. Must be used before doing anything with the API.
Submit a score to Kongregate. First field is the name of the statistic. Second field is the value of it (a number).
true if a guest is playing your game on Kongregate.
Returns the username of the player who is playing your game on Kongregate, if one is logged in. If it's a guest, the name will be
Returns the user ID of the player who is playing your game on Kongregate, if one is logged in. If it's a guest, this will come back as blank.
Immediately shows a Newgrounds ad in the center of the screen. Can be shown at any point in the game.
Submits a score to the specified Newgrounds leaderboard.
Shows the specified Newgrounds leaderboard.
Unlocks a medal (achievement) by name. Medals are set up on Newgrounds.
Sets the default location where the medals are shown. Call this at the beginning of the game - only has to be done once, but it has to be called before the medal shows. This cannot move medal windows that are already visible.