Coder Social home page Coder Social logo

gd-texture-pack-splitter's Introduction

Geometry Dash Texture Pack Splitter

    A simple script to seperate spritesheets into individual images.

How to use

Instalation

  1. Download or clone this repository and Node.js.
  2. Navigate to the directory and open a terminal.
  3. Run npm install.

Splitting a Texture

  1. Move the textures that you want to split (and their .plist files) into the directory.
  2. Run npm start.
  3. Choose Split a texture.
  4. Select the texture that you want to split
  5. 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.

Merging a Texture

  1. Make sure that both a .plist file and folder full of images from the sprite sheet are in the directory.
  2. Run npm start.
  3. Choose Merge a texture.
  4. Select the texture that you want to merge
  5. 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.

How it works

    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.

gd-texture-pack-splitter's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.