From fa0e992831be1826b84421ff5ea23da94a7db329 Mon Sep 17 00:00:00 2001 From: theisen1337 Date: Fri, 12 Jun 2020 00:11:37 -0400 Subject: [PATCH] workflow for packing textures This allows an alterinative texture packing workflow, that is free and open source. Which will greatly improve the ability to create content for the game. --- gulp/convert_atlas.js | 1 + res_pipeline/Pack_images.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gulp/convert_atlas.js b/gulp/convert_atlas.js index 8e0ba990..16eea19b 100644 --- a/gulp/convert_atlas.js +++ b/gulp/convert_atlas.js @@ -73,6 +73,7 @@ files.forEach(filename => { let offset = [0, 0]; + // TODO do something with this for textures not generated with GDX // GDX Atlas packer uses 1 - y coordinates. This sucks, and we have to convert it offset[0] = entry_offset[0]; offset[1] = entry_orig[1] - entry_offset[1] - entry_size[1]; diff --git a/res_pipeline/Pack_images.py b/res_pipeline/Pack_images.py index b2d3fffc..04695cc7 100644 --- a/res_pipeline/Pack_images.py +++ b/res_pipeline/Pack_images.py @@ -61,4 +61,4 @@ update_file("../res_built/atlas/atlas0_100.json", "image", ' "image": "atlas0 update_file("../res_built/atlas/atlas0_75.json", "image", ' "image": "atlas0_75.png",\n') update_file("../res_built/atlas/atlas0_50.json", "image", ' "image": "atlas0_50.png",\n') update_file("../res_built/atlas/atlas0_25.json", "image", ' "image": "atlas0_25.png",\n') -update_file("../res_built/atlas/atlas0_10.json", "image", ' "image": "atlas0_10.png",\n') \ No newline at end of file +update_file("../res_built/atlas/atlas0_10.json", "image", ' "image": "atlas0_10.png",\n')