15 Commits

Author SHA1 Message Date
Davide Tantillo
5990697d6e [haxe][flixel] SkeletonSprite extends FlxTypedGroup<FlxObject> rather than FlxObject.
Replace direct bounds calculation with BoundsProvider interface for better
performance and correctness. This makes it easier to get the correct bounds.

BREAKING CHANGES:
- SkeletonSprite extends FlxTypedGroup<FlxObject> rather than FlxObject. This was necessary because the FlxObject bounding/hitbox is always connected to its position and size and cannot be offset.
- Removed getAnimationBounds() method. Replace it with the appropriate BoundsProvider implementation based on your use case, or create your own.
- Removed setBoundingBox(). Use BoundsProvider features.
- hitTest() now uses the assigned BoundsProvider instead of direct calculation. For accurate hit testing, use CurrentPoseBoundsProvider and call calculateBounds() each frame or on click.

New features:
- Uses BoundsProvider as starling.
- SkeletonSprite constructor now accepts a third optional parameter for BoundsProvider. SetupPoseBoundsProvider is used by default.
- Added calculateBounds() to recalculate bounds on demand.
2025-10-08 17:49:59 +02:00
Mario Zechner
b96e7c2461 [assets] Re-exported and distributed to runtimes 2025-09-11 01:09:23 +02:00
Davide Tantillo
522785b8fb [haxe] Fixed sack example export. 2025-06-23 10:55:52 +02:00
Nathan Sweet
f4f1ea1fd9 Ran: examples/export/runtimes.sh 2025-06-20 15:56:02 -04:00
Mario Zechner
a911384e67 Re-export examples and copy to runtimes 2024-05-16 16:08:40 +02:00
Davide Tantillo
b3435430b8 [examples] Updated mix-and-match not inheriting rotation on feet 2024-05-03 09:24:01 +02:00
Davide Tantillo
9b5dcdac1f [haxe] Physics porting completed - Added 4 physics examples 2024-04-16 13:01:37 +02:00
Davide Tantillo
bb9d23c4d0 [haxe] Physics porting - Missing Skeleton loaders, examples and TODO 2024-04-13 18:31:10 +02:00
Mario Zechner
ff9a6cde8b [godot] Fix runtime.sh and export.sh scripts. Reexport all assets with latest editor version. 2024-04-09 11:03:10 +02:00
Mario Zechner
32952de12d [cpp] Fixed parsing, physics, re-exported all assets and copied to runtime examples. 2024-04-02 17:51:14 +02:00
Mario Zechner
dcb73ec24e Updated example exports 2024-03-19 10:04:06 +01:00
Nathan Sweet
ecbc6329a9 Updated example exports to 4.2.32-beta. 2024-03-07 22:41:09 -04:00
Mario Zechner
02773518b1 [ts] Fix physics! 2023-12-05 15:10:38 +01:00
Mario Zechner
2eb1033b65 Update example exports to 4.2.09-beta 2023-12-01 17:04:11 +01:00
Mario Zechner
ec0ff67084 [haxe] Initial commit 2023-09-08 14:06:49 +02:00