When comparing HaxeFlixel vs Unity 2D, the Slant community recommends Unity 2D for most people. In the question“What are the best 2D game engines?” Unity 2D is ranked 7th while HaxeFlixel is ranked 24th. The most important reason people chose Unity 2D is:
2D game creation was a major feature request from the Unity community and was added with version 4.3. 2D is provided in both the Pro and Free distribution of Unity.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Powerful language
Haxe is a powerful, cross-platform and open source language.
Pro 75+ demos
All demos have included GitHub link, so you can learn from the examples
Pro Getting started guide
Has a starting guide for people who are completely new to HaxeFlixel; from installing Haxe to a beginner-friendly HaxeFlixel tutorial.
Pro Uses Haxe
(excerpt from source): To help you do this, the (Haxe) toolkit contains three main components:
the Haxe Language - a modern high-level, strictly typed programming language
the Haxe Standard Library - a complete cross-platform standard library
the Haxe Compiler - an incredibly fast cross-compiler
Pro Fully free
HaxeFlixel is fully free and open source.
Pro Hardware accelerated rendering on native platforms
Pro Active development community
(excerpt from source):
There is a multitude of channels to interact with the community:
Our google groups forums
#haxeflixel on IRC (freenode.net)
@HaxeFlixel on Twitter
The HaxeFlixel organization on GitHub
The HaxeFlixel page on IndieDB
Join our development chat on Slack[1]
HaxeFlixel group on Steam
Pro Powerful debugger overlay
You can watch variables, log (trace) messages, and check for memory/frame rate performance.
Pro Modelled after Flixel
But with considerable improvements -- the HaxeFlixel team are constantly working improving and fixing the HaxeFlixel API, as compared to the original Flixel which is no longer updated.
Pro Easy 2D game development
(Haxe)Flixel does a lot of things for you like tilemaps and collision detection, which makes it super easy to create 2D games.
Pro Outstanding community
The HaxeFlixel team and contributors are very active on Github and other community places (like Slack), and are usually able to respond to your questions within a day or two.
Pro Similar syntax to Actionscript 3
Haxe's syntax is similar to AS3, so Flash developers can transition to HaxeFlixel if they are familiar with AS3/Flixel.
Pro Excellent, robust API
The API has all of the features that you'd expect from a powerful engine without sacrificing organization and flexibility
Pro Cross Platform
The open source Flash API is powered by OpenFL, which allows you to compile to Windows, Mac, Linux, iOS, Android, and even major consoles (coming soon).
Pro Cross-platform IDE environment
On Windows, the IDE of choice is FlashDevelop, but if you're looking for cross-platform IDE (Windows/Mac/Linux), there's Sublime Text which includes a package for Haxe syntax highlighting, as well as auto-completion.
Pro Built into Unity 4.3+
2D game creation was a major feature request from the Unity community and was added with version 4.3. 2D is provided in both the Pro and Free distribution of Unity.
Pro Integrates with Mecanim
Mecanim brings state machines and blending to 2D bone animation. The state machine editor allows for designers and programmers to visually create a Finite State Machine (FSM) to control when animations should play. Mecanim also allows for blending so an animation can transition smoothly between two states without the need of in between frames made by an animator.
Pro Sprite Sheet and Bone based animation supported
Both types of 2D animation for game development are supported in Unity’s system and can be used interchangeably in the timeline.
Pro Easily change sprites dynamically
Usually used for character customization, programmers can change any sprite in a bone animation at runtime easily by referencing the bone and loading the new sprite from the resources folder.
Cons
Con Small community
HaxeFlixel devs are not as large as (example) Unity devs, so the amount of support and exposure is limited.
Con Lacks critical features
- Vertices can't be animated, so you can't have ANY organic feel (like... lungs breathing).
- Parent bone can't be animated without affecting the children. This is especially impeding for organic feel, again.
- No option to show & unshow assets (or it is hidden), like for switching weapon on your character for exemple.
Con Poor script interface for texture atlases
Accessing individual sprites within an atlas texture is possible at runtime, but requires use of the Resources folder subsystem.