Updated joker palette swapping system to reuse palettes when jokers are removed
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user