Commit Graph

12 Commits

Author SHA1 Message Date
n00b
207868cd5d Fixed Sprite Transform functions
* Stored base offsets and vertices in sprite structure
* Calculated the average of vertices in polygon and chain shapes and used that as center
* Applied offsets to drawSprites()
2025-05-26 14:07:18 -04:00
n00b
e7da6b745c Fixed Memory Leak in Collision Callback 2025-05-21 19:45:56 -04:00
n00b
14f87ecbf1 Added sprite shape functions 2025-03-20 17:29:11 -04:00
n00b
0ef552910a Fixed sprite allocation bugs
* Fixed bug that would cause the renderer for sprites to be corrupted on when the sprite vector is resized
* Changed deleted_sprites variable to deleted_animation in sprite object
* Changed sprite pointer vector to sprite id vector in canvas object
* Changed the value stored in Fixture UserData pointer to sprite id rather than sprite pointer because pointer would change on resize anyway
2024-12-22 13:05:23 -05:00
n00b
2a580f9686 Finished documentation
Finished documentation on sprite physics and joints
Fixed some bugs in sprite physics
Added safety checks for joint types
Added code to free up joints when a canvas is destroyed
2024-10-28 22:22:33 -04:00
n00b
8f1b72a8e2 Added Sprite Physics and Joints 2024-10-27 23:24:37 -04:00
n00b
1033701d1d Finished rewrite of actor animation system
* Rewrote the actor animation system to work like sprites
* Renamed a few functions
* Added DeleteSpriteAnimation() and the delete queue to sprites
* Removed transitions for the time being (they don't seem to work in irrlicht right now
* Added PreUpdate() function
* Added documentation for name changes and new functions
2024-10-20 20:06:20 -04:00
n00b
8f372bdf19 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
2024-10-18 00:10:12 -04:00
n00b
9b517acae1 Sprite Animation Complete
* Animation subsystem complete
* Sprite Z Sorting complete
* Solid and Non Solid Sprites complete
* Frame looping complete
2024-10-16 21:24:58 -04:00
n00b
f9a8e828f2 Sprite Engine WIP 2024-10-15 22:57:34 -04:00
n00b
4d2e050dcf Added Sprite Transform functions 2024-10-14 21:52:48 -04:00
n00b
f013e6ba71 Updated Source Generation Tools 2024-09-15 10:55:15 -04:00