1.0.3 • Published 12 months ago

@majesticfudgie/txd-reader v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

README COMING SOOOON

Here's a quick demo of how to read all the textures from a TXD file and save a PNG to disk per texture:

const inputFile = "txd/bballcpark1.txd";

const filePath = path.join(__dirname, "..", inputFile);
const rawData = fs.readFileSync(filePath);

const reader = new TXDReader(rawData);

for (let textureName of reader.textureList) {
	const png = reader.getPNG(textureName);
	if (png) {
		fs.writeFileSync(`out/${textureName}.png`, png);
	}
}
1.0.2

12 months ago

1.0.1

12 months ago

1.0.3

12 months ago

1.0.0

2 years ago