{"schemaVersion":"1.0","record":{"label":"HaxeFlixel","description":"Haxe and OpenFL framework for code-driven 2D games.","aliases":[],"kind":"software","website":"https://haxeflixel.com/","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.","license":"MIT; dependencies, optional integrations and game assets have their own terms.","lifecycle":"active","example":false,"features":[{"name":"State-based 2D gameplay","status":"supported","detail":"FlxState separates levels and menus; create initializes objects and update handles recurring gameplay logic.","useCase":"Building code-driven 2D games with Haxe","platforms":["Windows","macOS","Linux","Android","iOS","Web"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://haxeflixel.com/documentation/flxstate/","locator":"State organization; create, add, remove and update","retrievedAt":"2026-10-07T19:38:18Z","kind":"vendor"}]},{"name":"Multiple deployment targets","status":"limited","detail":"Desktop, mobile and HTML5 targets are documented, but native SDK setup and target-specific verification remain necessary.","useCase":"Building code-driven 2D games with Haxe","platforms":["Windows","macOS","Linux","Android","iOS","Web"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://haxeflixel.com/documentation/haxeflixel-targets/","locator":"Desktop, mobile, HTML5 and SDK setup","retrievedAt":"2026-10-07T19:38:18Z","kind":"vendor"},{"url":"https://haxeflixel.com/documentation/install-haxeflixel/","locator":"Dependencies, target setup and flixel-tools","retrievedAt":"2026-10-07T19:38:30Z","kind":"vendor"}]},{"name":"External level-editor integrations","status":"limited","detail":"The optional flixel-addons library documents Tiled and Ogmo integration; these are additional dependencies rather than the core editing workflow.","useCase":"Building code-driven 2D games with Haxe","platforms":["Windows","macOS","Linux","Android","iOS","Web"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://haxeflixel.com/documentation/flixel-addons/","locator":"Optional classes and editor/physics integrations","retrievedAt":"2026-10-07T19:38:30Z","kind":"vendor"}]}],"alternatives":[],"slug":"haxeflixel","draftAlternatives":[{"targetSlug":"godot","status":"limited","detail":"Assessment: 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.","useCase":"Building code-driven 2D games with Haxe","platforms":["Windows","macOS","Linux","Android","iOS","Web"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://haxeflixel.com/documentation/about/","locator":"Framework foundations and features","retrievedAt":"2026-10-07T19:33:17Z","kind":"vendor"},{"url":"https://haxeflixel.com/documentation/flxstate/","locator":"State organization; create, add, remove and update","retrievedAt":"2026-10-07T19:38:18Z","kind":"vendor"},{"url":"https://godotengine.org/features/","locator":"Scene-driven design, integrated editor and dedicated 2D engine","retrievedAt":"2026-10-07T19:33:17Z","kind":"vendor"}]}],"evidence":[{"url":"https://haxeflixel.com/documentation/about/","locator":"Framework foundations and features","retrievedAt":"2026-10-07T19:33:17Z","kind":"vendor"},{"url":"https://haxeflixel.com/documentation/flxstate/","locator":"State organization; create, add, remove and update","retrievedAt":"2026-10-07T19:38:18Z","kind":"vendor"},{"url":"https://haxeflixel.com/documentation/haxeflixel-targets/","locator":"Desktop, mobile, HTML5 and SDK setup","retrievedAt":"2026-10-07T19:38:18Z","kind":"vendor"},{"url":"https://haxeflixel.com/documentation/install-haxeflixel/","locator":"Dependencies, target setup and flixel-tools","retrievedAt":"2026-10-07T19:38:30Z","kind":"vendor"},{"url":"https://haxeflixel.com/documentation/flixel-addons/","locator":"Optional classes and editor/physics integrations","retrievedAt":"2026-10-07T19:38:30Z","kind":"vendor"},{"url":"https://github.com/HaxeFlixel/flixel/blob/dev/LICENSE.md","locator":"Permission, notice and warranty provisions","retrievedAt":"2026-10-07T19:38:30Z","kind":"vendor"},{"url":"https://godotengine.org/features/","locator":"Scene-driven design, integrated editor and dedicated 2D engine","retrievedAt":"2026-10-07T19:33:17Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://haxeflixel.com/documentation/about/","locator":"Framework foundations and features","retrievedAt":"2026-10-07T19:33:17Z","id":"about","title":"HaxeFlixel overview","kind":"vendor"},{"url":"https://haxeflixel.com/documentation/flxstate/","locator":"State organization; create, add, remove and update","retrievedAt":"2026-10-07T19:38:18Z","id":"state","title":"FlxState","kind":"vendor"},{"url":"https://haxeflixel.com/documentation/haxeflixel-targets/","locator":"Desktop, mobile, HTML5 and SDK setup","retrievedAt":"2026-10-07T19:38:18Z","id":"targets","title":"HaxeFlixel targets","kind":"vendor"},{"url":"https://haxeflixel.com/documentation/install-haxeflixel/","locator":"Dependencies, target setup and flixel-tools","retrievedAt":"2026-10-07T19:38:30Z","id":"install","title":"Install HaxeFlixel","kind":"vendor"},{"url":"https://haxeflixel.com/documentation/flixel-addons/","locator":"Optional classes and editor/physics integrations","retrievedAt":"2026-10-07T19:38:30Z","id":"addons","title":"Flixel Addons","kind":"vendor"},{"url":"https://github.com/HaxeFlixel/flixel/blob/dev/LICENSE.md","locator":"Permission, notice and warranty provisions","retrievedAt":"2026-10-07T19:38:30Z","id":"license","title":"HaxeFlixel MIT license","kind":"vendor"},{"url":"https://godotengine.org/features/","locator":"Scene-driven design, integrated editor and dedicated 2D engine","retrievedAt":"2026-10-07T19:33:17Z","id":"godot","title":"Godot features","kind":"vendor"}],"overviewCitations":["about","state","targets"],"licenseCitations":["license"],"sections":[{"id":"workflow","heading":"Game structure","paragraphs":[{"id":"workflow-detail","content":[{"text":"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."}],"citations":["state"]}]},{"id":"toolchain","heading":"Development toolchain","paragraphs":[{"id":"toolchain-detail","content":[{"text":"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."}],"citations":["install"]}]},{"id":"gameplay","heading":"2D building blocks","paragraphs":[{"id":"gameplay-detail","content":[{"text":"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."}],"citations":["about"]}]},{"id":"extensions","heading":"Optional integrations","paragraphs":[{"id":"extensions-detail","content":[{"text":"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."}],"citations":["addons"]}]},{"id":"deployment","heading":"Deployment and documentation limits","paragraphs":[{"id":"deployment-detail","content":[{"text":"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."}],"citations":["targets"]}]},{"id":"licensing","heading":"Licensing","paragraphs":[{"id":"licensing-detail","content":[{"text":"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."}],"citations":["license"]}]},{"id":"substitution","heading":"Substitution considerations","paragraphs":[{"id":"substitution-detail","content":[{"text":"HaxeFlixel can replace part of a "},{"text":"Godot","targetSlug":"godot"},{"text":" 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."}],"citations":["state","install","godot"]}]}]},"id":"Q732","revision":780,"updatedAt":"2026-10-13T05:51:35Z","sourceUrl":"https://substitutefor.net/entities/Q732?revision=780"}}