Skip to content

Commit 4f06079

Browse files
committed
demo/blocky: generate 128-tall textures & patches
Avoid tutti frutti on Vanilla.
1 parent 228254f commit 4f06079

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

demo/blocky.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515

1616
# generate raw patch data for palette index i
1717
topdelta = 0
18-
length = 64
18+
length = 128
1919
unused = 0
2020
data = i
21-
post = struct.pack('<BBB64sB', topdelta, length, unused, bytes([data])*64, unused)
22-
width = height = 64
21+
post = struct.pack('<BBB{}sB'.format(length), topdelta, length, unused, bytes([data])*length, unused)
22+
width = 64
23+
height = 128
2324
leftoffs = topoffs = 0
2425
postoffs = 264
2526
patch = struct.pack('<HHhh', width, height, leftoffs, topoffs) \

0 commit comments

Comments
 (0)