Skip to content

Instantly share code, notes, and snippets.

View GamingasCZ's full-sized avatar
🔃
i am lit

GamingasCZ

🔃
i am lit
View GitHub Profile
@GamingasCZ
GamingasCZ / GDIconSplitter.py
Created January 6, 2024 18:52
Splits all Geometry Dash icon spritesheets, standing in its way!
import os, plistlib, json
from PIL import Image
plists = list(filter(lambda x: x.endswith(".plist"), os.listdir()))
for icon in plists:
with open(icon, "rb") as f:
xml = plistlib.load(f, fmt=plistlib.FMT_XML)
filename = xml["metadata"]["textureFileName"].split("/")[1]
for key, value in xml["frames"].items():
@GamingasCZ
GamingasCZ / GDIconOffsetGenerator.py
Created January 6, 2024 18:49
This code generates a file with offsets and sizes of Geometry Dash cubes :D.
import os, plistlib, json
plists = list(filter(lambda x: x.endswith(".plist"), os.listdir()))
icons = {}
for icon in plists:
with open(icon, "rb") as f:
xml = plistlib.load(f, fmt=plistlib.FMT_XML)["frames"]
for key, value in xml.items():
icons[key] = {