Does anyone use Kongregate games to host their games for their ad revenue? If anyone does, can you answer some questions I have please.
Is their a tutorial or explanation on how to use the API’s in the client?
Can you update the game if you use Unity (New versions that apply bug fixes)?
Is there an age limit?
You can update your game really easy just by uploading a newer version similar to the app store or google play. I’ve got about 60k plays and have made $40 on ads. Not a lot at all.
I think you would have better luck trying to have some creds (there IAP) altough you would need to get alot of downloads to get that, and people will have to rate it highly – which gets it on the front page – once its off the front page - or doesnt get there its pretty much dead.
I made Match Cubed and this is how I implemented the API.
I made this script and applied it to a GameObject named Kongregate. Note where it says “initAPI(‘Kongregate’…”
the name inbetween the single quotes is the name of the GameObject. So if you called the object KongregateGameObject then you would change the name on that line to ‘KongregateGameObject’.
KongregateAPI.cs
using UnityEngine;
using System.Collections;
public class KongregateAPI : MonoBehaviour {
public bool isKongregate;
public int userID;
public string username = "Guest";
public string gameAuthToken = "";
void Awake() {
Application.ExternalEval(
"if(typeof(kongregateUnitySupport) != 'undefined'){" +
" kongregateUnitySupport.initAPI('Kongregate', 'OnKongregateAPILoaded');" +
"};"
);
}
public void OnKongregateAPILoaded(string userInfo) {
isKongregate = true;
string[] par = userInfo.Split("|"[0]);
userID = int.Parse(par[0]);
username = par[1];
gameAuthToken = par[2];
}
void OnKongregateUserSignedIn(string userInfo) {
string[] par = userInfo.Split("|"[0]);
userID = int.Parse(par[0]);
username = par[1];
gameAuthToken = par[2];
}
public static void SubmitHighscore(int difficulty, uint score) {
Application.ExternalCall("kongregate.stats.submit", "Highscore" + (difficulty + 1), score);
}
public static void SubmitWin(int difficulty) {
Application.ExternalCall("kongregate.stats.submit", "Wins" + (difficulty + 1), 1);
}
}
The SubmitHighscore and SubmitWin functions are what I use to submit the scores to Kongregate. It’s very simple, just call the function, that’s really all there is to it. You’ll want to set up your own functions if you want different types of scores besides what I have though.
As for achievements and badges, I read that you have to have a rating of at least 3.85 to implement them. I haven’t gotten that high of a rating yet so I’m not sure how to actually implement them when the time comes.
You can update your game whenever you want, even make a game breaking bug if you’d like (I recommend testing your game BEFORE you upload though).
As for age, I’m sure you have to be at least 18 to actually receive the money that you made from Kongregate.
Congrats! I’ve only got about 488 plays on mine.
Edit: Tried it out, gave it a rating of 5
All of the Infectonator games (if I found all of them that is…) add up to 11,075,255 plays. That amounts to $11075.26! They’re great games so that’s awesome that they got so many plays.