Create 2D Games with HaxeFlixel
It is free and open source software, released under the MIT license. The compiler, written in OCaml, is released under the GNU General Public License (GPL) version 2.
To use HaxeFlixel you will first need the Haxe programming language installed on your system. The procedure for all operating systems can be found on the download page, for Windows for example there are already pre-compiled binaries, that is, just run a
.exe file and then add the path to the environment variable.
Some quick installation examples:
After properly installing the Haxe programming language, now just install HaxeFlixel as follows:
Use the Haxe package manager(haxelib) that will be available and install the following packages:
Creating a basic example
This will create a folder named HelloWorld with all the files needed for your project.
Inside the HelloWorld folder in your project there will be a subfolder called
source and in it a file:
PlayState.hx, open this file with your preferred code editor;
Insert this code to the file
Now in the terminal, run:
The likely result will be similar to the image below:
See demos running in the browser: https://haxeflixel.com/demos/.
For more information see the links below: