Kongregate API (kong.hx)

100 views
Skip to first unread message

Daniel Cassidy

unread,
Aug 14, 2012, 7:17:06 PM8/14/12
to haxe...@googlegroups.com
Hi chaps,

I threw together some typedefs and utility classes to expose the Kongregate API with strict type checking.

You can get it from haxelib as kong.hx, or from the project on GitHub.

At the moment it’s Flash only, but it would be trivial to extend to JavaScript since Kongregate exposes an identical JavaScript API. All it needs are a few lines of glue code.

As far as I can tell nobody else has done this, which I found a bit surprising, so hopefully someone finds it useful.

Regards,
Dan.

Benjamin Dubois

unread,
Aug 15, 2012, 2:21:32 AM8/15/12
to haxe...@googlegroups.com
There have been some kongregate api written for the flash target.
But I think they are now outdated.

About the JS api, few months ago I've written an extern class, you can find it on github too. I think everything is working, but most has not been tested.

Ben


Daniel Cassidy

unread,
Aug 15, 2012, 8:28:56 AM8/15/12
to haxe...@googlegroups.com
On Wednesday, 15 August 2012 07:21:32 UTC+1, benjamin Dubois wrote:
There have been some kongregate api written for the flash target.
But I think they are now outdated.

About the JS api, few months ago I've written an extern class, you can find it on github too. I think everything is working, but most has not been tested.

It seems a bit overcomplicated to me. Just wrapping the existing Kongregate API object in a typedef gives you everything you need.

Dan.

Benjamin Dubois

unread,
Aug 16, 2012, 2:12:00 AM8/16/12
to haxe...@googlegroups.com
What is overcomplicated ?
Using @overload ? cause I don't see the point of making an haxe extern if everything is not auto-completed.

Anyway. As long as it feed my needs I'm fine.

Ben


Dan.

--
Reply all
Reply to author
Forward
0 new messages