Closed steverichey closed 10 years ago
Well, I'll put it in "Other" for now, right now I'm working on "FlxPongApi" which will be a fairly simple game with a bunch of GameJolt API elements, and I'll submit a pull request when it's ready.
Okay an alpha/preview/whatever version is here:
http://gamejolt.com/games/arcade/flxpong/19975/
And you can look at the source code on my branch of flixel-demos if you'd like:
https://github.com/steverichey/flixel-demos/tree/master/Other/FlxPongApi
And this uses the dev version of FlxGameJolt, which has a number of bug fixes and improvements:
https://github.com/steverichey/flixel-addons/blob/master/flixel/addons/api/FlxGameJolt.hx
I'm still having some problems with spurious calls to FlxGameJolt after I run FlxG.switchState, which returns null errors as the callbacks refer to things that don't exist anymore, but I'll sort that out. Hopefully.
Really nice, FlxKongregate would be great too, thx! (separate demos for diferent API's maybe)
Nice work bring on the demos! I guess when you switch state override destroy and iterate through the callbacks and destroy them. This is where a signals library I think is brilliant as their api makes them easy to control, there are a many around for haxe I made my own simple lib but the most well tested is probably https://github.com/massiveinteractive/msignal
Really nice, FlxKongregate would be great too, thx! (separate demos for diferent API's maybe)
Actually, I think it would be nice to have the same demo for both APIs, so you can directly see the differences in implementation etc... Would also be less work, you wouldn't have to come up with an entirely different demo.
This issue can be closed; thanks @Gama11 !
Would there be any interest in an API demo? Since I wrote FlxGameJolt, I thought it might be helpful to have a demo of it's application. This could also include FlxKongregate and, if I get around to it, FlxNewgrounds.
If I were to do this, where should it be located within flixel-demos? Should it be one big demo for all APIs, or several small ones?
Either way I could upload the demo(s) to the respective sites so people can "test drive" them.