The Smogon / Pokémon Showdown! sprite repository
Go to file
2020-04-13 14:08:11 -04:00
src/models Remove executable permissions on some models 2020-04-13 03:07:08 -04:00
tools Silence, advpng 2020-04-13 03:36:04 -04:00
util Workaround weird // issue in paths 2020-04-13 14:08:11 -04:00
.gitignore Add models & skeleton build 2020-04-12 23:21:02 -04:00
README.md Add smogdex social builds 2020-04-13 03:24:52 -04:00
Tupfile.ini Add models & skeleton build 2020-04-12 23:21:02 -04:00
Tupfile.lua Add symlink function 2020-04-13 04:04:55 -04:00

The Smogon/Pokemon-Showdown sprite repository

Installation

  • Tup build system. Instructions for Windows/Mac/Linux can be found here.
  • GraphicsMagick
  • AdvPng

Building

Run tup.

Filename scheme

Pokemon sprite filenames are in a 1-to-1 correspondence with the Pokemon's name, for ease of processing. Filenames may be directly substituted in shell commands without escaping.

  • Characters outside [0-9a-zA-Z-.] will be escaped using _ and four hex characters, similar to JavaScript Unicode escapes. This conforms to the POSIX portable filename character set. (example: Flabébé -> Flabe_0301be_0301)

The following JS function may be useful:

function encode(s) {
    return s.replace(/[^0-9a-zA-Z-.]/g, c => '_' + c.charCodeAt(0).toString(16).padStart(4, '0'));
}
  • Formes are separated with two dashes from their base. (example: Necrozma--Dawn-Wings)

  • Cosmetic female formes are --Female instead of --F, so that you may distinguish it from Unown.