43 Commits

Author SHA1 Message Date
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
Davide Tantillo
196df9c386 [haxe][starling] Replace bounds calculation with BoundsProvider system. Close #2915.
Replace direct bounds calculation with BoundsProvider interface for better
performance and correctness. This enables filters to work properly and makes it easier to get the correct bounds (SkeletonSprite.bounds).

BREAKING CHANGES:
- Removed getAnimationBounds() method. Replace it with the appropriate BoundsProvider implementation based on your use case, or create your own.
- 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:
- Add BoundsProvider abstract class and AABBRectangleBoundsProvider, CurrentPoseBoundsProvider, SetupPoseBoundsProvider, SkinsAndAnimationBoundsProvider implementations
- SkeletonSprite constructor now accepts a third optional parameter for BoundsProvider. SetupPoseBoundsProvider is used by default.
- Added calculateBounds() to recalculate bounds on demand (useful with CurrentPoseBoundsProvider)
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
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
Nathan Sweet
f4f1ea1fd9 Ran: examples/export/runtimes.sh 2025-06-20 15:56:02 -04:00
Davide Tantillo
09bf8a52cf [haxe] 4.3 porting WIP. 2025-06-12 15:17:06 +02:00
Davide Tantillo
d7212370f6 [haxe] Port to 4.3 (WIP) - Fixing examples. 2025-06-10 17:26:33 +02:00
Davide Tantillo
b06a485ad8 [haxe] Port to 4.3 - fix clipping. 2025-06-06 17:41:23 +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
Davide Tantillo
538c4ed58e [haxe] Use physicsTranslate in the example 2024-07-25 09:19:34 +02:00
Davide Tantillo
73c401c2e5 [haxe] Renamed example ControlBones 2024-06-04 09:13:52 +02:00
Davide Tantillo
455e2cbd6f [haxe] Add events example 2024-06-03 11:59:19 +02:00
Davide Tantillo
acd4b1eb98 [haxe] Add coordinates transform and before/after UWT methods. Add stretchyman example. 2024-05-29 11:23:05 +02:00
Mario Zechner
a911384e67 Re-export examples and copy to runtimes 2024-05-16 16:08:40 +02:00
Davide Tantillo
d860c3dbb4 [haxe] Add SkeletonSprite.getAnimationBounds() to get the animation bound. Add AnimationBoundExample. 2024-05-04 12:15:41 +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
fa4310b4d3 [haxe] Closes #2403, deform vertices arrays need to be initialized with default values. 2023-10-30 15:10:19 +01:00
Mario Zechner
a7bb103ec9 [haxe] Fix Scene touch handling, fix PathConstraint 2023-10-24 18:52:55 +02:00
Mario Zechner
eed1a3e30a [haxe] AssetsTextureLoader is now StarlingTextureLoader, remove TextureAtlas.from, change SkeletonData.from to not use OpenFL Assets. 2023-09-14 15:05:02 +02:00
Mario Zechner
bb3bd3ad40 [haxe] Rewrite core to not use OpenFL classes. Needed for compatibility with Heaps engine. 2023-09-14 14:53:30 +02:00
Mario Zechner
f2f1a8ce46 [haxe] Fix SkeletonSprite.advanceTime to use the actual delta time. 2023-09-14 12:26:34 +02:00
Mario Zechner
8f8bf06610 [haxe] License headers. 2023-09-14 11:33:15 +02:00
Mario Zechner
02220279bb [haxe] Remove superfluous OpenFL imports. 2023-09-14 11:23:09 +02:00
Mario Zechner
fd62fee92a [haxe] Make SequenceExample compile. 2023-09-14 00:11:27 +02:00
Mario Zechner
9eab06f3ba [haxe] Fix texture atlas loading, sequence example. 2023-09-13 19:35:30 +02:00
Mario Zechner
806ec03e0d [haxe] Fix binary asset loading, make Skeleton.getBounds() easier to use. 2023-09-13 17:36:52 +02:00
Mario Zechner
fdfc4642ad [haxe] minimal scene framework, fixes for Haxe C++, clean-up of API 2023-09-13 15:36:03 +02:00
Mario Zechner
4cc4f15f47 [haxe] Fix json parsing, rendering. 2023-09-12 17:44:06 +02:00
Mario Zechner
30311f2cd8 [haxe] More porting from 4.0 -> 4.1, WIP 2023-09-11 14:06:13 +02:00
Mario Zechner
ec0ff67084 [haxe] Initial commit 2023-09-08 14:06:49 +02:00