53 Commits

Author SHA1 Message Date
Davide Tantillo
83c987e43d [ts][phaser] Add physics support and examples. 2024-04-16 17:41:19 +02:00
Mario Zechner
f68f5437d9 Merge branch '4.1' into 4.2-beta
# Conflicts:
#	spine-ts/package-lock.json
#	spine-ts/package.json
#	spine-ts/spine-canvas/package.json
#	spine-ts/spine-core/package.json
#	spine-ts/spine-phaser/package.json
#	spine-ts/spine-pixi/package.json
#	spine-ts/spine-player/package.json
#	spine-ts/spine-threejs/package.json
#	spine-ts/spine-webgl/package.json
2024-01-16 12:20:32 +01:00
Mario Zechner
2c69c2604f [phaser] Closes #2449, proper basePath resolution if assets are served from root 2024-01-16 11:03:46 +01:00
Mario Zechner
c90823f698 Merge branch '4.1' into 4.2-beta
# Conflicts:
#	spine-ts/package-lock.json
#	spine-ts/package.json
#	spine-ts/spine-canvas/package.json
#	spine-ts/spine-core/package.json
#	spine-ts/spine-phaser/package.json
#	spine-ts/spine-pixi/package.json
#	spine-ts/spine-player/package.json
#	spine-ts/spine-threejs/package.json
#	spine-ts/spine-webgl/example/drag-and-drop.js
#	spine-ts/spine-webgl/package.json
2023-11-28 12:19:02 +01:00
Mario Zechner
eae8468dc2 [phaser] Use GLTexture.DISABLE_UNPACK_PREMULTIPLIED_ALPHA_WEBGL 2023-11-28 12:13:13 +01:00
Mario Zechner
4598da9a21 [ts] Temporarily use Physics.update everywhere 2023-11-26 12:58:14 +01:00
Mario Zechner
b09e189c64 [ts] Add missing .js extensions. 2023-11-06 13:32:35 +01:00
Mario Zechner
8d832b3834 [ts] Add missing .js extensions. 2023-11-06 13:30:50 +01:00
Mario Zechner
9d4d86ced3 [ts] Attempt to fix incompatibility with Node's ESM implementation. See #2407 2023-11-06 12:42:00 +01:00
Vadim Goncharov
09bb49b5db
[pixi][phaser][threejs] Fixed "ReferenceError: window is not defined" in Node.js environment. See #2409 (#2410) 2023-11-06 11:41:47 +01:00
Mario Zechner
8d4ed3056a [phaser] Closes #2390, reset static gameWebGLRenderer to remounts in React/Vue work. 2023-10-24 19:13:43 +02:00
Mario Zechner
4f33a2aae6 [phaser] Closes #2348, fix visibility test 2023-09-07 13:37:40 +02:00
Mario Zechner
3acbc2ab7a Formatting 2023-09-05 22:36:04 +02:00
spayton
f80bc5e110
The new SpineGameObject should use the gameObject's scene ref, not the system scene (#2357) 2023-09-05 22:30:54 +02:00
Mario Zechner
2f33d326a8 [phaser] Closes #2356, only instantiate a single SceneRenderer for the whole game. 2023-09-05 15:22:33 +02:00
Mario Zechner
600e43de24 Formatting 2023-09-04 10:56:28 +02:00
Mario Zechner
99f6aa5ced [phaser] Backport of #2337 2023-09-04 10:47:27 +02:00
Mario Zechner
6ec9637ed6 [phaser] Closes #2333, users can set the name of the game object factory function via window.SPINE_GAME_OBJECT_TYPE, see custom-spine-object-type.html. 2023-09-04 10:35:24 +02:00
Mario Zechner
e404d0bede [phaser] Closes #2348, SpineGameObject.willRender() didn't reset state correctly in case an object is inside a container. 2023-09-04 10:23:38 +02:00
Mario Zechner
4c3e3178bc [phaser] Fix PMA parsing. 2023-08-06 03:00:37 +02:00
Mario Zechner
4047f1ba07 Updated license headers. 2023-07-31 13:29:16 +02:00
Mario Zechner
6fafd96eca [pixi] License headers, see #2305 2023-07-12 15:15:56 +02:00
Mario Zechner
cb0f78bed2 [phaser] Add Origin mixin, don't call updateSize() on changes to scale. 2023-07-12 14:41:48 +02:00
Mario Zechner
0672c6c862 [phaser] Bounds providers return zero bounds in case there are no attachments to calculate the bounds with. 2023-07-11 09:10:28 +02:00
Mario Zechner
42626d7ff7 [phaser] Clean-up and inline documentation. 2023-04-28 13:32:17 +02:00
Mario Zechner
b4969465a0 [phaser] Fix extracting atlas page file names. 2023-04-28 09:06:28 +02:00
Mario Zechner
9dbada6541 [phaser] Fix control bones example. 2023-04-27 17:32:36 +02:00
Mario Zechner
90e369fcfe [phaser] More example work, Stretchyman idle animation. 2023-04-27 17:25:23 +02:00
Mario Zechner
a996baa2b0 [phaser] Add before and after update world transforms callbacks. 2023-04-26 10:53:01 +02:00
Mario Zechner
5662c75db9 [phaser] Expose getters for preloaded skeleton data and atlases. 2023-04-25 15:13:12 +02:00
Mario Zechner
f8837604f5 [phaser] Rework skeleton data loading. Cache based on data + atlas key. 2023-04-25 14:33:22 +02:00
Mario Zechner
cf68a9fd07 Formatting. 2023-04-24 10:11:14 +02:00
Mario Zechner
ba2eb2cf9c [phaser] Fix GameObjectCreator.spine parameter types. 2023-04-21 14:05:32 +02:00
Mario Zechner
d24787b81e [phaser] Fix preDestroy in SpineGameObject. 2023-04-21 13:54:28 +02:00
Mario Zechner
2900605300 [phaser] Clean-up, TypeScript example README, non-null SpineGameObject fields. 2023-04-21 13:52:35 +02:00
Mario Zechner
2cc7667a18 [phaser] Add vanilla JS and NPM/TS examples, fix typings. 2023-04-21 11:33:35 +02:00
Mario Zechner
aa1064b83b [phaser] Update for 3.60.0 release. 2023-04-17 16:25:22 +02:00
Mario Zechner
14219fa609 [phaser] Fix pack file plugin loading, clipping, demos. 2023-04-12 15:13:25 +02:00
Mario Zechner
fb3ebb56eb [phaser] More tests, fix make factory, add Alpha mixin 2023-04-06 15:41:54 +02:00
Mario Zechner
83945e17dc Apply formatter. 2023-01-16 14:00:01 +01:00
Mario Zechner
97765425ec [phaser] coordine system transforms and example. 2022-12-27 11:44:20 +01:00
Mario Zechner
f725a80994 [phaser] Post pipeline support. 2022-12-27 11:44:20 +01:00
Mario Zechner
90cd61e505 [phaser] Bounds providers. 2022-12-27 11:44:20 +01:00
Mario Zechner
be6b19afa5 [phaser] Bounds calculation, hit area support, more examples.
# Conflicts:
#	spine-ts/package-lock.json
2022-12-27 11:44:17 +01:00
Mario Zechner
69cec06c23 [phaser] Clean-up rendering code. 2022-12-27 11:44:12 +01:00
Mario Zechner
2207b3e620 [phaser] Use Phaser transform matrix to transform vertices directly. 2022-12-27 11:44:12 +01:00
Mario Zechner
7ae9c490d5 [phaser] WebGL and Canvas rendering, fix mixins
# Conflicts:
#	spine-ts/package-lock.json
#	spine-ts/package.json
2022-12-27 11:44:11 +01:00
Mario Zechner
b12e06d791 [phaser] Copy example skeletons in runtimes.sh 2022-12-27 11:43:02 +01:00
Mario Zechner
9ece84dc85 [phaser] Loading and caching of skeleton data, atlas, textures, creation of skeletons, animation state in game object.
# Conflicts:
#	spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp
#	spine-flutter/src/spine_flutter.cpp
2022-12-27 11:42:56 +01:00
Mario Zechner
e805b6c8bc [phaser] Canvas stub. 2022-12-27 11:41:31 +01:00