Skip to content

Instantly share code, notes, and snippets.

View dschrubba's full-sized avatar
🍵
Tea & Code

Daniel Schrubba dschrubba

🍵
Tea & Code
View GitHub Profile
@dschrubba
dschrubba / dd2_extract_textures.py
Created December 11, 2025 22:48
Texture Extraction Script for Destruction Derby 2 (1996) | Experimental Python script, created when I was trying to make sense of the game's file formats
#!/usr/bin/env python3
import struct, os
from pathlib import Path
from PIL import Image
def read_u32_le(b, off): return struct.unpack_from("<I", b, off)[0]
def read_i16_le(b, off): return struct.unpack_from("<h", b, off)[0]
def read_u16_le(b, off): return struct.unpack_from("<H", b, off)[0]
def psx_bgr555_to_rgb888(word):