mirror of
https://github.com/smogon/sprites.git
synced 2026-03-22 01:45:27 -05:00
The Smogon / Pokémon Showdown! sprite repository
| src/models | ||
| tools | ||
| util | ||
| .gitignore | ||
| README.md | ||
| Tupfile.ini | ||
| Tupfile.lua | ||
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
--Femaleinstead of--F, so that you may distinguish it from Unown.