Updated joker palette swapping system to reuse palettes when jokers are removed

This commit is contained in:
MeirGavish
2025-08-04 10:18:33 +03:00
parent 9f9b557143
commit de672572b1
5 changed files with 67 additions and 23 deletions
+9
View File
@@ -100,6 +100,15 @@ void sprite_draw()
oam_copy(oam_mem, obj_buffer, MAX_SPRITES);
}
int sprite_get_pb(const Sprite *sprite)
{
if (sprite == NULL)
{
return UNDEFINED;
}
return (sprite->obj->attr2 & ATTR2_PALBANK_MASK) >> ATTR2_PALBANK_SHIFT;
}
// SpriteObject methods
SpriteObject* sprite_object_new()
{