Skip to content

AxolStudio/SpookyJam25

Repository files navigation

game-jam-template

CI

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!

Packing sprites at build time

You can pack raw sprite PNGs into a spritesheet automatically during the Haxe compile using the supplied macro and batch helper.

  1. Put raw enemy frames in RAW/sprites/*.png.
  2. Configure a packer by setting one of these environment variables:
    • TP_PATH -> path to TexturePacker executable
    • SHOEBOX_PATH -> path to Shoebox executable
  3. Run the batch script locally to produce assets/images/enemies.png and assets/images/enemies.json:
tools\pack_enemies.bat
  1. To run the packer automatically at compile time, add the following line to your .hxml before 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 -final flag, which means Dead Code Elimination and Minification are active to create smaller .js files. However, your code needs to be DCE-safe (avoid reflection or use @:keep).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages