porytiles icon indicating copy to clipboard operation
porytiles copied to clipboard

Add some way to dump or insert animation C code

Open grunt-lucas opened this issue 1 year ago • 3 comments

  • generate a single .h file which is expected to be #include'd in tileset_anims.c
  • users would still need to manually add the callback to src/data/tilesets/headers.h?
  • each source anim folder could have an anim.cfg file that allows users to customize the frame animation times, etc

grunt-lucas avatar Apr 06 '24 15:04 grunt-lucas

is it possible to generate the code and insert it automatically? This would be even better. Would need some kind of syntax tree parsing

A halfway house would be to generate a single .h file which is expected to be #included in tileset_anims.c. That way the user only has to insert that #include once when adding porymap to their repo, and it'll "automatically" track any porytiles rebuilds.

mrgriffin avatar Apr 06 '24 15:04 mrgriffin

@mrgriffin Hah! I just went on an issue-creation spree (I moved my Todo.md items over to GitHub issues). Sorry if that spammed your email! Also, your idea above is very clever. That would be the way to go, I think. Would avoid thorny C-parsing issues.

grunt-lucas avatar Apr 06 '24 15:04 grunt-lucas

Sorry if that spammed your email!

np! I like keeping up to date with what's going on in porytiles :)

mrgriffin avatar Apr 06 '24 15:04 mrgriffin