Skip to content

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

Notifications You must be signed in to change notification settings

pixools/tile-bleed-margin-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages