Haxe Target-Specific Getting-Started Tutorials

Getting Started with Haxe targetting Python

You want to compile your Haxe project to Python 3, then run it like any other Python program.

Main.hx:

Compile it to a Python 3 file named “main.py”:

haxe -main Main -python main.py

and run it:

python3 main.py