You know how the current HighScroe APIs work? You need about two lines of code, and is increadibly easy to use. I’m thinking we could do something simmilar for Multiplayer APIs.
Basically, what I am suggesting is an API that allows users to easily pass variables through the server. For instance, take a simple pong game. In each frame, player one will have the code for moving his own racket, for dying, for lives, and for the ball bouncing off of either racket. Now, player one would have this in his code:
_root.kongregateStats.givevar(“position”,1, root.racket.x);root.enemyracket.x = _root.kongregateStats.getvar(“position”,2);
and player 2 would have
_root.kongregateStats.givevar(“position”,2, root.racket.x);root.enemyracket.x = _root.kongregateStats.getvar(“position”,1);
Ok then. For somebody who knows, I have these questions.
1) Would it be hard to make an API like that?
2) Would the API work quickly, or make the game lag seriously?
3) Would there be a reasonable way to make a “lobby”?
4) Do any games on Kong do this, or did I come up with an original idea?