HaxeFlixel is a 2D game framework built with OpenFL and Haxe that delivers cross platform games, completely free for personal or commercial use. It is an evolution and extension of the opensource work shared by Adam Atomic's AS3 Flixel and Richard Davey's Power Tools.
Switch branches/tags
Clone or download
Pull request Compare This branch is 4100 commits behind HaxeFlixel:dev.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


###Related: flixel-addons | flixel-demos | flixel-tools | flixel-ui

###Getting Started

You can read our getting started docs here.

It is recomended to use Haxeflixel via Haxelib. Just run haxelib install flixel once you have it installed.

###Changes for HaxeFlixel 3.0

This is the third big update to HaxeFlixel. Here are the biggest changes:

  • New Front End classes to better encapsulate FlxG functionality.
  • Refactored the animation system.
  • Better support for nested sprites via FlxSpriteGroup. FlxSpriteGroups can be contained within other groups, and behave like FlxSprites. They are expensive though, use them sparringly.
  • Moved lots of stuff into utility classes to reduce clutter in core classes.
  • Continued optimizations for cpp targets.

###Upgrading from previous versions

You can find upgrade instructions here.

If you wish to contribute to our documentation, you can edit the upgrade docs on github.

###For Developers

Make sure you're using latest version of Haxe, HaxeLib and OpenFl. You should also read the haxelib guide.

Clone this repository by running haxelib git flixel https://github.com/HaxeFlixel/flixel dev.

We recommended that you use a GUI application to manage your changes (SourceTree).

###Current Build Status Build Status


In case you're looking for ressources, help, or just want to interact with the community:

HaxeFlixel was created by Alexander Hohlov, also known as Beeblerox who continues to be the project lead. The codebase started largely from a Haxe port of the AS3 version of Flixel written by Adam “Atomic” Saltsman and Richard Davey's Power Tools

Special thanks go to the community contributors Werdn, crazysam, impaler, ProG4mr, Gama11, sergey-miryanov and more.

HaxeFlixel presents substantial enhancements from the original Flixel AS3 code:

  • Use of a robust and powerful, opensource language
  • Flexible Asset Management System
  • Cross-platform development for Linux, Mac and Windows
  • Texture Atlas and Layer enhancement for cpp targets
  • Integrated and robust Tween System
  • Access to OpenFL native extensions
  • Compile to Mobile and Desktop targets with native code through OpenFL
  • Impressive Native Performance using GPU accelerated drawTiles implimentation in cpp targets
  • A powerful debugger with a console as well as an advanced logging system
  • A vibrant community that keeps updating the engine and adding new features to it

###Runtime Targets The current possible targets are:

Mobile Desktop Web
Blackberry Linux Flash
iOS Mac
Android Windows
WebOS Neko

There's also experimental support for HTML5.

###Basic Features

  • Display thousands of moving objects
  • Basic collisions between objects
  • Group objects together for simplicity
  • Easily generate and emit particles
  • Create game levels using tilemaps
  • Text display, save games, scrolling
  • Mouse, keyboard, controller, and touch inputs
  • Math & color utilities
  • Record and play back replays
  • Powerful interactive debugger
  • Camera system for split screen
  • Pathfinding and following
  • Easy object recycling