Hacker News new | ask | show | jobs
by noduerme 1528 days ago
Pixi.js has been a lifesaver for generating interactive art/data pieces since the death of AS3, which used to be my main bag. I remember messing around with HaXe ten years ago or so, the main problem being most of the fl. graphics APIs were not ported at that time and the idea of rewriting my own GUIs and game engines built on those didn't make much sense. I'm not sure it does now, either. If this had a 1:1 naming system, e.g. Sprite and Graphics and Stage, I'd be all in. But so much of my 2D game code was based on extending Starling atlases, etc. and now that's all dead. I'd be afraid to invest the time needed to port it to a relatively exotic and not so well known framework... which still requires a well maintained VM to run.
1 comments

Heaps has it's own API, but other Haxe frameworks[1][2] reimplement the flash API. Some tools[3][4] help to convert AS3 source code to Haxe, and the typing and compiler are helpful to identify issues. So depending on the size and dependencies, conversion can be easy once you get past the main language differences.

[1] https://www.openfl.org/ [2] https://github.com/haxenme/NME [3] https://github.com/HaxeFoundation/as3hx [4] https://github.com/innogames/ax3