porytiles
porytiles copied to clipboard
Add some way to dump or insert animation C code
- generate a single
.hfile which is expected to be#include'd intileset_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.cfgfile that allows users to customize the frame animation times, etc
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 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.
Sorry if that spammed your email!
np! I like keeping up to date with what's going on in porytiles :)