mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
convert indents to 4 spaces in gfx.py
indents were previously 8 spaces
This commit is contained in:
parent
a60bf16901
commit
0b5885e1a9
@ -57,6 +57,7 @@ def hex_dump(input, debug = True):
|
|||||||
# margin
|
# margin
|
||||||
for char in range(margin):
|
for char in range(margin):
|
||||||
output += ' '
|
output += ' '
|
||||||
|
|
||||||
#
|
#
|
||||||
for byte in range(bytes_per_line):
|
for byte in range(bytes_per_line):
|
||||||
output += hex(byte)[2:].zfill(2) + ' '
|
output += hex(byte)[2:].zfill(2) + ' '
|
||||||
@ -201,7 +202,6 @@ class Compressed:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, image = None, mode = 'horiz', size = None):
|
def __init__(self, image = None, mode = 'horiz', size = None):
|
||||||
|
|
||||||
assert image, 'need something to compress!'
|
assert image, 'need something to compress!'
|
||||||
image = list(image)
|
image = list(image)
|
||||||
self.image = image
|
self.image = image
|
||||||
@ -1558,8 +1558,7 @@ def dump_tileset_pngs():
|
|||||||
"""
|
"""
|
||||||
Convert .lz format tilesets into .png format tilesets.
|
Convert .lz format tilesets into .png format tilesets.
|
||||||
|
|
||||||
Also, leaves a bunch of wonderful .2bpp files everywhere for
|
Also, leaves a bunch of wonderful .2bpp files everywhere for your amusement.
|
||||||
your amusement.
|
|
||||||
"""
|
"""
|
||||||
for tileset_id in range(37):
|
for tileset_id in range(37):
|
||||||
tileset_filename = "../gfx/tilesets/" + str(tileset_id).zfill(2) + ".lz"
|
tileset_filename = "../gfx/tilesets/" + str(tileset_id).zfill(2) + ".lz"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user