Finished changes on animation system

* Added collision callback
* Set sprite density to 1 by default
* Added default frame value of 0 on frame resize
* Changed defaults for sprite fixture
* Made changes to some of the animation functions parameters
This commit is contained in:
n00b
2024-10-18 00:10:12 -04:00
parent 9b517acae1
commit 8f372bdf19
7 changed files with 142 additions and 26 deletions

View File

@@ -29,6 +29,7 @@ struct rc_sprite2D_animation_obj
struct rc_sprite2D_obj
{
int id; //This is needed to reference this sprite in the contact listener
bool active = false;
int image_id;
int sheet_numFrames;