HaxeFlixel is an open-source 2D game framework built on top of the cross-platform toolkit Haxe + OpenFL, designed to allow developers to build games that can run on web, desktop, and mobile targets from a single codebase. Because it uses Haxe and OpenFL, HaxeFlixel games can compile to many targets: native desktop (Windows, macOS, Linux), mobile (Android, iOS), as well as web (HTML5), and even historically Flash. It is licensed under MIT and completely free for personal or commercial use. HaxeFlixel emphasizes ease of use and rapid development for 2D games — ideal for pixel-art platformers, card games, puzzles, or 2D action games. It includes common utilities and abstractions for sprites, animations, input handling, game loops, asset management, and state transitions, making it easier to build a complete game without reinventing core infrastructure. Because of this, it has been used for successful indie games and prototypes alike, and remains a popular choice among developers.
Features
- Cross-platform 2D game support: desktop, mobile, web (HTML5), native — via Haxe + OpenFL
- Lightweight and flexible 2D framework ideal for pixel-art, platformers, 2D action or indie games
- Built-in support for sprites, animations, asset loading, input handling, game loop, state transitions
- MIT licensing — free for personal and commercial use, with open source code available
- Single codebase that compiles to many targets, avoiding duplication or porting effort
- Friendly to indie development and rapid prototyping — minimal overhead, fast iteration