A simple script to seperate spritesheets into individual images.
- Download or clone this repository and Node.js.
- Navigate to the directory and open a terminal.
- Run
npm install
.
- Move the textures that you want to split (and their
.plist
files) into the directory. - Run
npm start
. - Choose
Split a texture
. - Select the texture that you want to split
- Wait for the program to finish.
The split images will appear in a folder with the name of the texture that you split. Do not resize the images unless you want the entire sprite sheet to be messed up.
- Make sure that both a
.plist
file and folder full of images from the sprite sheet are in the directory. - Run
npm start
. - Choose
Merge a texture
. - Select the texture that you want to merge
- Wait for the program to finish.
The merged sprite sheet will appear in the merged
folder that will appear,
the exact same size as it started.
The textures and sprites for the Geometry Dash game are stored in very large
images, most containing over 1000 images. The splitting commands for these
images are stored in a .plist
document (An XML document used by Mac OS X
)
with the same name as the image.
What this script does is read the .plist
file associated with the image and
then uses the sharp module from npm to extract the images from
that data. Then, when you want to merge the texture back again, it takes each file in the folder
with the same name as the .plist
file and performs the necessary transformations
and composites it onto a blank image with the original size.