Skip to content
SabeDoesThings edited this page Aug 3, 2026 · 4 revisions

HXML flags

Common -D flags that can be used with Heaps:

# flag to define the size of the window and default scene size:
-D windowSize=800x600

# define the window/process name
-D windowTitle=My game made with Heaps.io

# define the path to the game assets/resources
# if unset, the default path is "res"
-D resourcesPath=res

# whether or not the window/process is resizable
# 0 is false | 1 is true
-D windowFixed=1

# other known flags (deprecated/legacy code)
-D heaps_emit_tile_buffering

Common flags coming from Haxe

# dead code elimination (code that cannot be reached will be ditched):
-D dce=full

# Static analyzer, see: https://haxe.org/manual/cr-static-analyzer.html
-D analyzer-optimize

Clone this wiki locally