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:
parent
dd3261f204
commit
fa0e992831
@ -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];
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user