1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-16 11:41:50 +00:00

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.
This commit is contained in:
theisen1337 2020-06-12 00:11:37 -04:00
parent dd3261f204
commit fa0e992831
2 changed files with 2 additions and 1 deletions

View File

@ -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];

View File

@ -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')
update_file("../res_built/atlas/atlas0_10.json", "image", ' "image": "atlas0_10.png",\n')