Implement a global SpriteObject update loop (#553)
* Implement `sprite_object_update_all` * clang format * Change update order * tmp * make it crash * Fix bad address crash * Address @MeirGavish's comments * Tweaked card draw position further * Tweaked card draw position further, again --------- Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com>
This commit is contained in:
@@ -118,13 +118,6 @@ void card_object_destroy(CardObject** card_object)
|
||||
*card_object = NULL;
|
||||
}
|
||||
|
||||
void card_object_update(CardObject* card_object)
|
||||
{
|
||||
if (card_object == NULL)
|
||||
return;
|
||||
sprite_object_update(card_object->sprite_object);
|
||||
}
|
||||
|
||||
void card_object_set_sprite(CardObject* card_object, int layer)
|
||||
{
|
||||
int tile_index = CARD_TID + (layer * CARD_SPRITE_OFFSET);
|
||||
|
||||
Reference in New Issue
Block a user