Code Monkey home page Code Monkey logo

imagemagick-textureatlas-to-sprites-converter's Introduction

ImageMagick-TextureAtlas-to-Sprites-Converter

Installation

  1. Install ImageMagick
  2. Clone and install this repo,
git clone [email protected]:vickylance/ImageMagick-TextureAtlas-to-Sprites-Converter.git
cd ImageMagick-TextureAtlas-to-Sprites-Converter
yarn

Usage

  1. Go to Leshy Spritesheet Tool
  2. Upload a Texture Atlas.
  3. Hit the Remap button.
  4. (Optional) Combine any sprites that u want in the editor (Hold Shift + LMB). (Hint: Click the Checkered BG checkbox)
  5. (Optional) Delete any unwanted or redundant sprites.
  6. Hit Optimize button.
  7. Hit Repack button.
  8. (Optional) Change any names of of the sprites you want. (Hint: Click the show labels checkbox)
  9. Give a name to the spritesheet and hit the Save button.
  10. Select JSON from the dropdown below and give a name to the json file and hit Save.
 $ node converter.js
? Path to your input spritesheet? ./flappy.png
? Path to your JSON file? ./flappy.json
? Path to your output folder? out/
Your input is:
        Input Spritesheet:      /Users/sds-s.vignesh/Projects/personal-projects/Phaser/flappy-bird/flappy.png
        Input JSON File:        /Users/sds-s.vignesh/Projects/personal-projects/Phaser/flappy-bird/flappy.json
        Output folder:          /Users/sds-s.vignesh/Projects/personal-projects/Phaser/flappy-bird/out

imagemagick-textureatlas-to-sprites-converter's People

Contributors

vickylance 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.