Files
planar-EL512.256-H/tools/yourname_sprites.py
T

73 lines
1.8 KiB
Python
Raw Normal View History

2026-10-19 18:59:00 +02:00
#!/usr/bin/env python3
"""Pixel art for the Your Name pages (components/el512/yourname.cpp).
Original 1-bit fan art: '#' is a lit pixel. Writes
components/el512/yourname_sprites.h and, with --preview, a magnified PNG.
python tools/yourname_sprites.py
python tools/yourname_sprites.py --preview sprites.png
"""
from konosuba_sprites import main, padded
SPRITES = {
# Shrine gate on the hill above the lake.
"TORII": [
"####################",
".##################.",
"...##..........##...",
"..################..",
"...##..........##...",
"...##..........##...",
"...##..........##...",
"...##..........##...",
"...##..........##...",
"..####........####..",
],
# Two silhouettes on the crater rim at twilight: him facing right...
"TAKI": [
"...####...",
"..######..",
"..######..",
"..#####...",
"...###....",
"..#####...",
".#######..",
".#######..",
".##.###...",
".##.###...",
"....###...",
"...####...",
"...#..#...",
"...#..#...",
"...#..#...",
"...#..#...",
"..##..##..",
],
# ... and her facing left, the cord tied in her hair, a skirt.
"MITSUHA": [
"...####...",
"..######..",
"..######..",
"...#####..",
"....###.##",
"...#####.#",
"..#######.",
"..#######.",
"...###.##.",
"..#####...",
".#######..",
".#######..",
"...#..#...",
"...#..#...",
"...#..#...",
"...#..#...",
"..##..##..",
],
}
for _name in SPRITES:
SPRITES[_name] = padded(SPRITES[_name])
if __name__ == "__main__":
main(SPRITES, "Your Name", "yourname_sprites.py", "yourname", __doc__)