Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 664 Bytes

README.md

File metadata and controls

14 lines (8 loc) · 664 Bytes

tile-bleed-margin-generator

Automatically stretch out the 1px edge of each tile in a sprite sheet to compensate for tile bleed in 2D game development.

This script uses ImageMagick.

bleed.sh

Make sure your script is in the same directory as the file, open Terminal and cd to this folder and run (as an example):

sh bleed.sh environment_grass png _bleed 128 128 16 (sh bleed.sh FILE_NAME FILE_TYPE NEW_SUFFIX WIDTH HEIGHT TILE_SIZE)

TODO: Improvements

Create a script to run this on all files called *_working.png (for example) - Loop files, get each image dimensions, run bleed.sh with that info.