Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Celeste: Core's heart door mist at its strength

Mason Chen3a02ebfe4586
diff --git a/games/celeste/src/data.bin b/games/celeste/src/data.bin
index 301f547f..96442e99 100644
Binary files a/games/celeste/src/data.bin and b/games/celeste/src/data.bin differ
diff --git a/games/celeste/tools/pack.py b/games/celeste/tools/pack.py
index 3965ce94..01a87aad 100644
--- a/games/celeste/tools/pack.py
+++ b/games/celeste/tools/pack.py
@@ -230,6 +230,8 @@ def quantize(t):
# un-premultiply for the 565 color, keep alpha in 0..255 (quantized to 16 levels)
rgb = img[..., :3].astype(np.float32)
keyed = (a >> 4) # 0..15
+ if t.path == "objects/heartdoor/mist": # (faint all over: rounded, not cut, or a third of it goes)
+ keyed = np.minimum(15, (a + 8) >> 4)
c = to565(img).astype(np.uint32)
key = np.where(keyed == 0, 0xFFFFFFFF, c | (keyed << 16))
uniq = [int(k) for k in np.unique(key) if k != 0xFFFFFFFF]