Jump to content

Galaco

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Galaco

  1. Hi, I just made this parser for SCML files, it's one of my first ever pure C programs and i learnt a lot from it. I made this because i was unhappy with the current spriter C++ implementation requiring inheritance to use. It probably isn't perfect but it should just about work with some edits. You will have to manually navigate the spriter_data structures, please make pull requests!

    Example:

    #include "scml.h"
    
    int main() {
    	struct tag_list tag_list = parse_file("test.scml");
    	struct spriter_data spriter_data = parse_tags(tag_list);
    	
    	// navigate the spriter_data structures
      
      	tag_list_destroy(&tag_list);
      	spriter_data_destroy(&spriter_data);
    	
    	return 0;
    }

    https://github.com/Bambofy/libspriter

×
×
  • Create New...