Skip to content

Bazai/leshy_labs_spritesheet_cropper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpriteSheet Unpacker/Cropper script

  1. Read Leshy SpriteSheet Tool Instructions for the hotkeys
  2. Drag your packed spritesheet into editor window
  3. Use automatic chunks recognition by Remap button
  4. Process your packed or optimized spritesheet on Leshy SpriteSheet Tool
  • Navigate spritesheet with the right mouse button
  • Use Shift to merge several slices into bigger one
  • Edit name parameter for each individual sprite slice in the Sprite Settings block or leave it for later steps, after the crop script had finished processing.
  1. Run sprite repacking on Leshy SpriteSheet Tool by pressing Repack button
  2. Download final repacked spritesheet and put it to crop script folder. Rename it to spritesheet.png
  3. Select JSON config format for the sprite map. Press Save button and download final sprites.json config. Put it to crop script folder and rename to sprites.json if needed.
  4. Inside to crop script folder run npm install to get Jimp npm package dependency.
  5. Run crop script: node ./crop.js
  6. Open /out folder and check ton of smaller unpacked images
  7. Open /out folder with default MacOS Preview.app application to rotate and save incorrectly rotated images with Cmd+L(rotate left) or Cmd+R(rotate right).
  8. Rename smaller images to something meaningful, not the default sprite*.png pattern

About

Leshy Labs SpriteSheet Tool Unpacker/Cropper script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published