00:00
00:00
MSGhero
Free time is nice time.

Nick @MSGhero

Age 31, Male

Somewhere in the North

Joined on 12/15/10

Level:
17
Exp Points:
2,862 / 3,210
Exp Rank:
20,800
Vote Power:
5.86 votes
Rank:
Police Sergeant
Global Rank:
6,554
Blams:
456
Saves:
938
B/P Bonus:
12%
Whistle:
Normal
Trophies:
10
Medals:
663
Supporter:
12y 29d
Gear:
3

Haxe NG API and stuff

Posted by MSGhero - November 5th, 2014


Haxe API

I started a Haxe version of Newgrounds' API on github: NG.hx

There are issues (of course), but it definitely works when targeting flash at the very least. Eventually, it'll be able to work with both flash and html5 content and MAYBE desktop and mobile which Tom suggested for the future of the API. It's written in pure haxe, so it should be able to work with OpenFL, Flambe, and the rest. I don't know how Construct 2 plugins work, but it could be one of those at some point. Maybe you could play a flash demo of a Steam game here then log into NG in the full version of the game and pick up where you left off?


Not Po4 game

Po4 deadline didn't work, probably because Jordan and I suck at small, simple game concepts. No surprises there, though. In the meantime, I did upgrade my beautiful green square to his art.

3611941_141520311333_grapplewdawn.png 3611941_141520402752_grapple.png

I prefer my green square.

The level design is being handled by Stencyl, which is really good when it's not crap, so like 80% of the time. The good news is that I don't even have to look at levels in order to add them and their content in. The bad news is that real physics engines (nape) are too realistic, and I have to hack physics to make it seem like a video game. I don't think it'll ever be perfect, so it's just a matter of how the game feels when I don't feel like changing things anymore. I'm told that's how good artists do it.


Comments

Green square as an unlockable character? Hell yes.

I'll point out that Haxe can run .swc files on the flash platform, so you can still use the NewgroundsAPI file, as long as you only target Flash. That said, a Haxe-native solution would be nice.

I believe that's what stencyl does now, externing to the swc. I'll have to rewrite a couple of haxe's classes to be more useful before it'll work in non-flash.

You'll probably hate me after all the work you've done, but there are plans for a v3 gateway with less complicated encryption options and an overall more consistent network API (not to mention some new features).

Hate you.