GithubHelp home page GithubHelp logo

koenigderluegner / pokesprite-gen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from msikma/pokesprite-gen

1.0 0.0 1.0 194 KB

Spritesheet generator for efficiently including PokéSprite images in websites

License: MIT License

JavaScript 96.33% HTML 3.67%

pokesprite-gen's Introduction

pokesprite-gen

Script for generating a spritesheet from the PokéSprite image assets.

This script is used to generate pokesprite-spritesheet. See that repo for more information.

Usage

See pokesprites-gen.js --help for usage information:

usage: pokesprite-gen.js [-h] [-v] [--add-pokemon] [--pokemon-gen {7x,8}]
                         [--no-pokemon-regular] [--no-pokemon-shiny]
                         [--no-pokemon-forms] [--no-pokemon-gender]
                         [--no-pokemon-etc] [--add-inventory] [--add-outline]
                         [--inventory-groups GROUP [GROUP ...]] [--add-misc]
                         [--misc-groups GROUP [GROUP ...]] [--cls-lang LANG]
                         [--cls-basename NAME] [--no-css] [--no-image]
                         [--out-dir DIR] [--out-suffix STR] [--standard-build]

Spritesheet generator for efficiently including PokéSprite images in websites.

At least one of --add-{pokemon,inventory,misc} must be passed to generate a
sprite. It's recommended to make a separate spritesheet for each of those
three types, as needed. The 'misc' sprites can not be combined with the
Pokémon and inventory sprite in the same file.

In most cases, you'll want to generate a standard build which makes separate
files for Pokémon, inventory items and misc items, and generates an overview
file with instructions for making these items appear.

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.

Pokémon options:
  --add-pokemon         Includes Pokémon sprites in the output.
  --pokemon-gen {7x,8}  The sprite generation to use (defaults to latest).
  --no-pokemon-regular  Omits non-shiny Pokémon sprites.
  --no-pokemon-shiny    Omits shiny Pokémon sprites.
  --no-pokemon-forms    Omits all non-default Pokémon forms.
  --no-pokemon-gender   Omits Pokémon alternate gender sprites.
  --no-pokemon-etc      Omits misc. sprites (egg, unknown, etc.).

Inventory options:
  --add-inventory       Includes inventory sprites in the output.
  --add-outline         Adds a Gen 8 style white outline around the sprites.
  --inventory-groups GROUP [GROUP ...]
                        List of inventory groups to include (defaults to all).

Miscellaneous sprite options:
  --add-misc            Includes misc. sprite groups (ribbons, marks, etc.) 
                        in the output.
  --misc-groups GROUP [GROUP ...]
                        List of misc. groups to include (defaults to all).

Output options:
  --cls-lang LANG       Language to use for class names (defaults to 'eng').
  --cls-basename NAME   Base class name for icons ('pokesprite').
  --no-css              Skips CSS file generation.
  --no-image            Skips image file generation.
  --out-dir DIR         Output directory (defaults to the current directory).
  --out-suffix STR      Output filename suffix (defaults to 'sprite').

Preset builds:
  --standard-build      Builds Pokémon, inventory and misc as separate files.

For more information: <https://github.com/msikma/pokesprite>

Generating the pokesprite-spritesheet package is done through the --standard-build option.

License

© MIT license

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.