You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
more gfx.py docstring changes
This commit is contained in:
@@ -76,7 +76,7 @@ def hex_dump(input, debug = True):
|
|||||||
|
|
||||||
|
|
||||||
def get_tiles(image):
|
def get_tiles(image):
|
||||||
"""
|
"""
|
||||||
Split a 2bpp image into 8x8 tiles.
|
Split a 2bpp image into 8x8 tiles.
|
||||||
"""
|
"""
|
||||||
tiles = []
|
tiles = []
|
||||||
@@ -725,12 +725,15 @@ class Decompressed:
|
|||||||
self.output.append(self.alts[byte&1])
|
self.output.append(self.alts[byte&1])
|
||||||
|
|
||||||
def doZeros(self):
|
def doZeros(self):
|
||||||
"""Write zeros."""
|
"""
|
||||||
|
Write zeros.
|
||||||
|
"""
|
||||||
for byte in range(self.length):
|
for byte in range(self.length):
|
||||||
self.output.append(0x00)
|
self.output.append(0x00)
|
||||||
|
|
||||||
def doFlip(self):
|
def doFlip(self):
|
||||||
"""Repeat flipped bytes from 2bpp output.
|
"""
|
||||||
|
Repeat flipped bytes from 2bpp output.
|
||||||
|
|
||||||
eg 11100100 -> 00100111
|
eg 11100100 -> 00100111
|
||||||
quat 3 2 1 0 -> 0 2 1 3
|
quat 3 2 1 0 -> 0 2 1 3
|
||||||
@@ -1549,8 +1552,10 @@ def lz_to_png_by_file(filename):
|
|||||||
|
|
||||||
def dump_tileset_pngs():
|
def dump_tileset_pngs():
|
||||||
"""
|
"""
|
||||||
Converts .lz format tilesets into .png format tilesets. Also, leaves a
|
Converts .lz format tilesets into .png format tilesets.
|
||||||
bunch of wonderful .2bpp files everywhere for your amusement.
|
|
||||||
|
Also, leaves a bunch of wonderful .2bpp files everywhere for
|
||||||
|
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"
|
||||||
|
Reference in New Issue
Block a user