When comparing HaxePunk vs Defold, the Slant community recommends Defold for most people. In the question“What are the best 2D game engines?” Defold is ranked 21st while HaxePunk is ranked 22nd. The most important reason people chose Defold is:
Defold uses Lua, which is regarded as an easy to learn language by most.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Joystick and multi-touch support
Useful for mobile games and soon consoles (OpenFL has a console port in the works).
Pro Crossplatform testing/releasing
HaxePunk uses OpenFL which means you can compile to just about every device. A lot of the rendering code has been optimized so if you use HaxePunk’s graphic classes you are pretty much ready to deploy on any target.
Pro Generic entity system
A generic Entity system that only uses what you “attach” to it. If you need collision masks they are available but if an entity doesn’t need to collide with anything then simply don’t add a mask. Same goes for graphics.
Pro Written in Haxe instead of AS3
This comes with blazing fast compile times, proper static typing, multiple output targets, and a powerful macro system.
Pro Multiple collision masks
HaxePunk has added several collision masks beyond what FlashPunk had including a grid with slope values, circles, and polygons. This is in addition to FlashPunk’s tile grid and hitbox.
Pro Tweens
Tweens are available just like they are in FlashPunk. If you need to interpolate values for sounds, movement, etc… it’s probably already available as a tween. There is also a VarTween that lets you interpolate any value you want.
Pro Easy to learn
Defold uses Lua, which is regarded as an easy to learn language by most.
Pro Completely free of charge
Software and online dashboard are free of charge.
Pro Good combination of visual editing + code (Lua)
You can do a lot with drag and drop, but you're not limited -- the code (Lua, which is easy to learn) allows you more power than just visual editing usually gives you.
Pro Fast results
Going from idea to result is very important for the creative process.
Pro Visual editor
Pro Very performant
Being crossplatform it is important to work on low end devices.
Pro Easy and fast export for various platforms
Pro Great community
A very active and friendly community in forums.
Pro Source code available
You can download and modify the source code of the Editor and the engine for free.
Pro Collaborative
You can invite friends from the dashboard and create games together.
Pro Hot reload
It allows you to change scripts in a game while it is running live. Common use-cases is to tweak gameplay parameters or to perform debugging on a running game.
Cons
Con Messy / fragmented documentation
Not a lot of documentation is available.
Con Small comunity
It’s a small but growing community.