New non-clipped 8x8 turret sprites

This commit is contained in:
Anuken
2018-08-04 20:19:04 -04:00
parent 47af2e83f7
commit f0f89f0894
9 changed files with 877 additions and 889 deletions

View File

@@ -29,11 +29,6 @@ public class Generators {
Color color = Color.ROYAL;
Image image = context.get(block.name);
if(image.width() != block.size*8 + 2){
Image resized = context.create(block.size*8 + 2, block.size*8 + 2);
resized.draw(image, (resized.width() - image.width())/2, (resized.height() - image.height())/2);
image = resized;
}
Image read = context.create(image.width(), image.height());
read.draw(image);
@@ -60,11 +55,9 @@ public class Generators {
}
}
Image padded = context.create(base.width() + 2, base.height() + 2);
padded.draw(base, 1, 1);
padded.draw(image, 0, 0);
base.draw(image);
padded.save("block-icon-" + block.name);
base.save("block-icon-" + block.name);
}else {
Image image = context.get(regions[0]);