CLOSES #1090, CLOSES #1093, CLOSES #1094, CLOSES #1095, CLOSES #1098, CLOSES #1102, CLOSES #1105, CLOSES #1106, CLOSES #1108, CLOSES #1109, CLOSES #1110, CLOSES #1111, CLOSES #1113, CLOSES #1114, CLOSES #1117, CLOSES #1118, CLOSES #1121, CLOSES #1122, CLOSES #1123, CLOSES #1124, CLOSES #1126, CLOSES #1127, CLOSES #1128, CLOSES #1131, CLOSES #1132, CLOSES #1134, CLOSES #1137, CLOSES #1141

This commit is contained in:
bryanthaboi
2026-08-11 21:19:36 -04:00
parent 01aab1d763
commit 0136429d3e
24 changed files with 694 additions and 167 deletions
+4 -1
View File
@@ -241,7 +241,10 @@ function RomExtractorGen2:writeCompressedPic(label, tiles, relative)
while #pixels < byteLength do pixels[#pixels + 1] = 0 end
while #pixels > byteLength do table.remove(pixels) end
pixels = ImageWriter.columnsToRows(pixels, tiles, tiles)
self:write2bpp(pixels, size, size, relative)
-- pokegold engine/battle/core.asm GetTrainerBackpic: no hardware masking,
-- so matte the white backdrop like Gen 1's writeCompressedPic does.
self:save(ImageWriter.matteColor0(
ImageWriter.decode2bpp(pixels, size, size)), relative)
end
function RomExtractorGen2:extractConstants()