software · Q732
HaxeFlixel
Haxe and OpenFL framework for code-driven 2D games.
Overview
HaxeFlixel is an open-source 2D game framework built on Haxe and OpenFL. Developers organize gameplay in code using states, sprites and related engine classes, then build for supported desktop, mobile or browser targets. It is a candidate for teams that prefer a programming-led 2D workflow rather than assembling a project primarily in a visual scene editor.[1][2][3]
Game structure
A typical project uses separate FlxState classes for levels or menus. Each state creates its initial objects, adds sprites and tilemaps to the active display structure, and updates gameplay on each frame. This makes the organization of a game explicit in its Haxe code. Removing an object from a state is not the same as destroying it, so object lifetime and reuse remain design decisions rather than automatic consequences of hiding something.[2]
Development toolchain
The installation guide uses Haxelib to obtain Flixel and its OpenFL and Lime dependencies. It separately identifies flixel-tools for project templates and other conveniences. Desktop and mobile builds need the appropriate Lime setup and platform tools. Consequently, choosing HaxeFlixel also means maintaining a compiler-and-library toolchain; a working browser prototype alone does not establish that every native build has been configured.[4]
2D building blocks
The framework supplies sprites, groups, tilemaps, particles, collision-related facilities and tweening for common 2D game tasks. These building blocks can support a deliberately code-oriented workflow without requiring a team to begin with a general rendering library. Their presence does not establish that a particular game's physics, rendering load or device requirements have been tested.[1]
Optional integrations
Flixel Addons is a separate collection of classes for needs outside the core framework. Its documentation lists integrations with Tiled and Ogmo level editors and Nape physics, among other extensions. A project adopting one of these routes should account for the additional library and content pipeline. An integration listing is not evidence that arbitrary files from every version of an external tool will import unchanged.[5]
Deployment and documentation limits
Official target documentation lists Windows, macOS, Linux, Android, iOS and HTML5 through OpenFL. The same page retains older Flash-era material and specific browser caveats. This article therefore uses it to establish the documented target families, not to promise modern codec compatibility, performance or identical behavior across browsers. A prospective migration should verify its actual fonts, audio, input and deployment tools on the intended targets.[3]
Licensing
The core repository uses the MIT license, permitting modification and commercial distribution while requiring preservation of its copyright and permission notice. That license applies to the covered framework code; developers still need to check the terms for added libraries, external integrations and their game's assets. No engine royalty or paid framework subscription is introduced by the core license.[6]
Substitution considerations
HaxeFlixel can replace part of a Godot workflow when the requirement is a 2D game and the team is willing to build around Haxe classes and the OpenFL toolchain. Godot instead combines its scene system with an integrated editor and also provides 3D tools. The supported comparison is therefore task-specific: gameplay and content organization would need to be recreated, and source-level or project-format interchangeability has not been established.[2][4][7]
Capabilities & limitations
State-based 2D gameplay
supportedFlxState separates levels and menus; create initializes objects and update handles recurring gameplay logic.[2]
Building code-driven 2D games with Haxe · Windows, macOS, Linux, Android, iOS, Web · Version, build and integration requirements apply
1 source · check evidence
State organization; create, add, remove and update
vendor · checked 2026-10-07Multiple deployment targets
limitedDesktop, mobile and HTML5 targets are documented, but native SDK setup and target-specific verification remain necessary.[3][4]
Building code-driven 2D games with Haxe · Windows, macOS, Linux, Android, iOS, Web · Version, build and integration requirements apply
2 sources · check evidence
Desktop, mobile, HTML5 and SDK setup
vendor · checked 2026-10-07Dependencies, target setup and flixel-tools
vendor · checked 2026-10-07External level-editor integrations
limitedThe optional flixel-addons library documents Tiled and Ogmo integration; these are additional dependencies rather than the core editing workflow.[5]
Building code-driven 2D games with Haxe · Windows, macOS, Linux, Android, iOS, Web · Version, build and integration requirements apply
1 source · check evidence
Optional classes and editor/physics integrations
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
Godot for Building code-driven 2D games with Haxe
limitedAssessment: substitutes for the code-driven 2D game-development portion of Godot when a Haxe/OpenFL workflow is acceptable. Godot scenes, scripts and editor workflows require redesign rather than assumed direct project conversion; this does not establish a replacement for Godot's 3D tooling.[1][2][7]
Windows, macOS, Linux, Android, iOS, Web · Version, build and integration requirements apply
References
- HaxeFlixel overview
Framework foundations and features
vendor · retrieved 2026-10-07 - FlxState
State organization; create, add, remove and update
vendor · retrieved 2026-10-07 - HaxeFlixel targets
Desktop, mobile, HTML5 and SDK setup
vendor · retrieved 2026-10-07 - Install HaxeFlixel
Dependencies, target setup and flixel-tools
vendor · retrieved 2026-10-07 - Flixel Addons
Optional classes and editor/physics integrations
vendor · retrieved 2026-10-07 - HaxeFlixel MIT license
Permission, notice and warranty provisions
vendor · retrieved 2026-10-07 - Godot features
Scene-driven design, integrated editor and dedicated 2D engine
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 780 | 2026-10-13 05:51:35 | /* wbeditentity-create-item:0| */ sf:d24e5542-a941-4362-8963-e882e8d73725:v1 | Adds a cited HaxeFlixel article distinguishing its state-based programming workflow, optional integrations and target-specific toolchains from Godot's editor wo | attribution: /proposals/d24e5542-a941-4362-8963-e882e8d73725 |