Workflow to import extra data into the project
Posted: Mon Apr 27, 2020 1:42 am
Hi all
A while ago I made a python script that takes as input Tiled json files and outputs a sequence of C lines of code I can paste in a header of my project, for example:
Today, while snooping around other projects' codes I noticed rescomp has a BIN option, apparently so I can import other stuff that aren't images or sounds.
What do I gain by using this system? I can see it has compression options, which is already very attractive, but anything else? also, how exactly do I make use of this? are there any caveats to keep in mind?
A while ago I made a python script that takes as input Tiled json files and outputs a sequence of C lines of code I can paste in a header of my project, for example:
Code: Select all
const ROMEntity ALLENTITIES [2] ={
{3, 0, 0, 0, 0, TRUE, 2, 1, 4, 1},
{5, 2, 1, 0, 0, TRUE, 2, 1, 15, 1}
};
const Room ALLROOMS[8]={
... etc
What do I gain by using this system? I can see it has compression options, which is already very attractive, but anything else? also, how exactly do I make use of this? are there any caveats to keep in mind?