Recent posts by FreebordMAD on Kongregate

Flag Post

Topic: Game Programming / Unity - Android

hi,

i’m trying to test my unity game (LINK) on an android to see the FPS on a mobile.

I have uploaded two (mobile) versions of it (LINK1 , LINK1)

However I cannot find it in the Kongregate Arcade App? Any ideas what I’m doing wrong?

 
Flag Post

Topic: Game Programming / Unity API issues

I just want to say it works also for c# perfectly fine… here is some source code I’ve put together (great thanks to Mushizo and SophieHoulden)

using UnityEngine;
using System.Collections;

public class KongregateAPI : MonoBehaviour
{
public bool IsKongregate = false;
public int UserId = 0;
public string UserName = “Guest”;
public string GameAuthToken = "";

// DEBUG VARIABLES (COMMENT IT OUT IF NOT NEEDED)
private string m_debugStatistic = “stat”;
private int m_debugStatistictValue = 0;

private void OnKongregateAPILoaded(string pUserInfoString)
{
IsKongregate = true;
string[] paramArray = pUserInfoString.Split(‘|’);
UserId = int.Parse(paramArray0);
UserName = paramArray1;
GameAuthToken = paramArray2;
}

// DEBUG GUI (COMMENT IT OUT IF NOT NEEDED) every OnGUI call costs performance
private void OnGUI()
{
if (IsKongregate)
{
GUILayout.Label(“Connected!”);
GUILayout.Label("UserID: " + UserId);
GUILayout.Label("UserName: " + UserName);
GUILayout.Label("gameAuthToken: " + GameAuthToken);

}
else
{
GUILayout.Label(“Not Connected”);
}

GUILayout.BeginHorizontal();
{
m_debugStatistic = GUILayout.TextField(m_debugStatistic, GUILayout.Width(100));
if (GUILayout.Button(“-”))
{
m_debugStatistictValue = Mathf.Max(0, m_debugStatistictValue – 1);
}
GUILayout.Label(m_debugStatistictValue.ToString());
if (GUILayout.Button(“+”))
{
m_debugStatistictValue++;
}

if (GUILayout.Button(“Sumbit Statistic”))
{
Application.ExternalCall(“kongregate.stats.submit”,m_debugStatistic,m_debugStatistictValue);
}
}
GUILayout.EndHorizontal();
}

// Use this for initialization
private void Awake()
{
// This game object needs to survive multiple levels
DontDestroyOnLoad(gameObject);
}

private void Start()
{
// Begin the API loading process if it is available
Application.ExternalEval(
“if(typeof(kongregateUnitySupport) != ‘undefined’){” +
" kongregateUnitySupport.initAPI(‘KongregateAPI’, ‘OnKongregateAPILoaded’);" +
“}”
);
}
}

 
Flag Post

Topic: Kongregate Labs / Unity Contest Rules

I’m totally new to Kongregate and I have the same question about the upcoming unity contest.

How strict is Kongregate about:

“…your Submission must be your original work…”

Does this forbid to use any content licensed under Creative Commons or similar “free” license?

And what’s about:

“…not including in your Submission any reference to any third party trademarks, names or third party logos or any copyrighted works, including music “samples;”…".

Does that also apply to trademarks which have nothing to do with IT, for example a sport label that has explicitly allowed me to use their logos?