This is a HaxeFlixel template that is particularly helpful for game jams. It consists of:
This is a template repository, simply click "Use this template" to create a copy of it on your own GitHub account!
You can pack raw sprite PNGs into a spritesheet automatically during the Haxe compile using the supplied macro and batch helper.
- Put raw enemy frames in
RAW/sprites/*.png. - Configure a packer by setting one of these environment variables:
TP_PATH-> path to TexturePacker executableSHOEBOX_PATH-> path to Shoebox executable
- Run the batch script locally to produce
assets/images/enemies.pngandassets/images/enemies.json:
tools\pack_enemies.bat
- To run the packer automatically at compile time, add the following line to your
.hxmlbefore compilation steps:
--macro "macros.ShoeboxMacro.run('tools/pack_enemies.bat')"
This will call the batch script during macro execution; if it fails, the macro will abort compilation with an error. Notes:
- For the first GitHub pages deployment, it can take around 10 minutes for the page to show up. Also, the repository needs to be public.
- The HTML5 builds are made with the
-finalflag, which means Dead Code Elimination and Minification are active to create smaller.jsfiles. However, your code needs to be DCE-safe (avoid reflection or use@:keep).