Kongregate API - Monkey Module

Monkey Archive Forums/Monkey Projects/Kongregate API - Monkey Module

DPbrad(Posted 2012) [#1]
Kongregate API - Monkey Module

Hey there!
I created a Kongregate API Monkey module yesterday in around an hour, and decided to package it up and let you guys use it too. It's probably not foolproof (I am quite new to Monkey), but it works for me (I tested all the functions on Kongregate).

I hope you find it useful! I put together a small readme folder, which includes a basic "How-To" setup the module, another which includes the changelog, and another with all the current functions and how to use them.

Download Links:
(Version 3) http://dpbrad.com/wp-content/uploads/2012/03/kongregate-v3.zip

Just place the "kongregate" folder in that .Zip into your "MonkeyPro/modules" folder and that's it!


Jesse(Posted 2012) [#2]
Nice! Thank you.


siread(Posted 2012) [#3]
Nice one Brad, you beauty! :)


siread(Posted 2012) [#4]
Wow, that was so easy to implement it's unreal. The only issue I had was when using the MochiMedia wrapper. For some reason the stats weren't being sent to Kongregate. Uploading a clean swf with a custom preloader (thanks to therevills) solved that. Nice work.

You can check out the kong leaderboards in action here:
http://www.kongregate.com/games/siread/new-star-soccer

I'm hoping to add badges next. :)


DPbrad(Posted 2012) [#5]
That happens in actual Flash games as well, you have to embed a preloader.swf which sends the stats on the actual games "behalf".

Glad you found it easy to use!


MikeHart(Posted 2012) [#6]
Where can I read up how to do this "preloader.swf" stuff?


DPbrad(Posted 2012) [#7]
Its easy to do when creating a pure Flash project, as you can simply set the FactoryClass to the preloader class or preloader.swf, but in regards to how Monkey handles this stuff, I honestly have no idea.

EDIT: You only would need to use the preloader.swf work-around if you are using the MochiMedia wrapper, otherwise it works fine.


therevills(Posted 2012) [#8]
Where can I read up how to do this "preloader.swf" stuff?

http://www.monkeycoder.co.nz/Community/posts.php?topic=2406


MikeHart(Posted 2012) [#9]
Thanks