I am currently working on game where I have a .xml and sprite.json file. i want to use these files and separate the assets for the game to function properly. However, I am unsure about the process of using these files and extracting all the images and assets in Cocos Creator. Could any one please assist me with this?
xml can be treated as plain text file in Cocos Assets, then at runtime, you can try to use npm module to parse the text read from the file.
Like this one
I personally haven’t tested the whole process, but it’s a general idea for your reference
Hi, girl, are you?
There are thousands and thousands of tools that export their files in XML and JSON formats. It’s hard to list them out.
The better way, I think, is to ask the one who gave the files to you.
1 Like