10 Commits

Author SHA1 Message Date
Davide Tantillo
82e54c3b4c Removed unused assets from ts and haxe. 2025-11-10 17:32:58 +01:00
Davide Tantillo
0e42469d36 [haxe][flixel] Add bounds property and removed boundsX and boundsY. 2025-10-09 10:06:02 +02:00
Davide Tantillo
d29eb5fa99 [haxe][starling] SkeletonSprite scale is connected to skeleton scale. 2025-10-08 17:49:59 +02:00
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
9fcc5a8b8c [haxe] Formatting 2025-07-16 01:35:13 +02:00
Davide Tantillo
522785b8fb [haxe] Fixed sack example export. 2025-06-23 10:55:52 +02:00
Davide Tantillo
d7212370f6 [haxe] Port to 4.3 (WIP) - Fixing examples. 2025-06-10 17:26:33 +02:00
Davide Tantillo
47c687c870 [haxe] Port to 4.3 (WIP) 2025-06-05 17:58:50 +02:00
Nathan Sweet
f08d58dc98 License header update. 2025-04-05 13:42:13 -04:00
Davide
7f2e4c1df7
[haxe] Support for HaxeFlixel (#2764)
* [haxe] Flixel support

* [haxe][flixel] WIP fix alpha and color tinting not working on meshes.

* [haxe][flixel] Added most of examples - Color/alpha is broken on flixel for meshes.

* [haxe][flixel] Flixel color bug example

* [haxe][flixel] Add same example of starling to Flixel.

* [haxe][flixel] Fix rotation for clipped attachments.

* [haxe][flixel] Minor modifications to avoid warning on flixel 6.0.0.

* [haxe] Updated readme.

* [haxe][flixel] Remove unused assets.

* [haxe] Removed useless flipX/flipY on core Skeleton.hx.
2025-02-24 10:44:05 +01:00