浏览代码

[ts][phaser-v3][phaser-v4] New runtime for phaser-v4. Moved phaser to phaser-v3 (#2815)

Davide 3 月之前
父节点
当前提交
b2c12b9d06
共有 100 个文件被更改,包括 30762 次插入205 次删除
  1. 2 1
      .gitignore
  2. 81 40
      examples/export/runtimes.sh
  3. 7 4
      spine-ts/README.md
  4. 38 75
      spine-ts/index.html
  5. 563 55
      spine-ts/package-lock.json
  6. 6 4
      spine-ts/package.json
  7. 0 0
      spine-ts/spine-phaser-v3/LICENSE
  8. 1 1
      spine-ts/spine-phaser-v3/README.md
  9. 137 0
      spine-ts/spine-phaser-v3/dist/SpineGameObject.d.ts
  10. 299 0
      spine-ts/spine-phaser-v3/dist/SpineGameObject.js
  11. 95 0
      spine-ts/spine-phaser-v3/dist/SpinePlugin.d.ts
  12. 349 0
      spine-ts/spine-phaser-v3/dist/SpinePlugin.js
  13. 14312 0
      spine-ts/spine-phaser-v3/dist/esm/spine-phaser-v3.mjs
  14. 2 0
      spine-ts/spine-phaser-v3/dist/esm/spine-phaser-v3.mjs.map
  15. 14532 0
      spine-ts/spine-phaser-v3/dist/iife/spine-phaser-v3.js
  16. 2 0
      spine-ts/spine-phaser-v3/dist/iife/spine-phaser-v3.js.map
  17. 58 0
      spine-ts/spine-phaser-v3/dist/index.d.ts
  18. 37 0
      spine-ts/spine-phaser-v3/dist/index.js
  19. 34 0
      spine-ts/spine-phaser-v3/dist/keys.d.ts
  20. 34 0
      spine-ts/spine-phaser-v3/dist/keys.js
  21. 30 0
      spine-ts/spine-phaser-v3/dist/mixins.d.ts
  22. 47 0
      spine-ts/spine-phaser-v3/dist/mixins.js
  23. 32 0
      spine-ts/spine-phaser-v3/dist/require-shim.d.ts
  24. 38 0
      spine-ts/spine-phaser-v3/dist/require-shim.js
  25. 1 1
      spine-ts/spine-phaser-v3/example/add-existing.html
  26. 1 1
      spine-ts/spine-phaser-v3/example/arcade-physics-example.html
  27. 0 0
      spine-ts/spine-phaser-v3/example/assets/celestial-circus-pma.atlas
  28. 0 0
      spine-ts/spine-phaser-v3/example/assets/celestial-circus-pma.png
  29. 0 0
      spine-ts/spine-phaser-v3/example/assets/celestial-circus-pro.json
  30. 0 0
      spine-ts/spine-phaser-v3/example/assets/celestial-circus-pro.skel
  31. 0 0
      spine-ts/spine-phaser-v3/example/assets/celestial-circus.atlas
  32. 0 0
      spine-ts/spine-phaser-v3/example/assets/celestial-circus.png
  33. 0 0
      spine-ts/spine-phaser-v3/example/assets/cloud-pot.atlas
  34. 0 0
      spine-ts/spine-phaser-v3/example/assets/cloud-pot.json
  35. 0 0
      spine-ts/spine-phaser-v3/example/assets/cloud-pot.png
  36. 0 0
      spine-ts/spine-phaser-v3/example/assets/cloud-pot.skel
  37. 0 0
      spine-ts/spine-phaser-v3/example/assets/coin-pma.atlas
  38. 0 0
      spine-ts/spine-phaser-v3/example/assets/coin-pma.png
  39. 0 0
      spine-ts/spine-phaser-v3/example/assets/coin-pro.skel
  40. 0 0
      spine-ts/spine-phaser-v3/example/assets/mix-and-match-pma.atlas
  41. 0 0
      spine-ts/spine-phaser-v3/example/assets/mix-and-match-pma.png
  42. 0 0
      spine-ts/spine-phaser-v3/example/assets/mix-and-match-pro.skel
  43. 0 0
      spine-ts/spine-phaser-v3/example/assets/raptor-pma.atlas
  44. 0 0
      spine-ts/spine-phaser-v3/example/assets/raptor-pma.png
  45. 0 0
      spine-ts/spine-phaser-v3/example/assets/raptor-pro.json
  46. 0 0
      spine-ts/spine-phaser-v3/example/assets/sack-pro.json
  47. 0 0
      spine-ts/spine-phaser-v3/example/assets/sack-pro.skel
  48. 0 0
      spine-ts/spine-phaser-v3/example/assets/sack.atlas
  49. 0 0
      spine-ts/spine-phaser-v3/example/assets/sack.png
  50. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe-pma.atlas
  51. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe-pma.png
  52. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe-pma_2.png
  53. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe-pma_3.png
  54. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe-pma_4.png
  55. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe-pma_5.png
  56. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe-pro.json
  57. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe-pro.skel
  58. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe.atlas
  59. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe.png
  60. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe_2.png
  61. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe_3.png
  62. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe_4.png
  63. 0 0
      spine-ts/spine-phaser-v3/example/assets/snowglobe_5.png
  64. 0 0
      spine-ts/spine-phaser-v3/example/assets/spineboy-pma.atlas
  65. 0 0
      spine-ts/spine-phaser-v3/example/assets/spineboy-pma.png
  66. 0 0
      spine-ts/spine-phaser-v3/example/assets/spineboy-pro.skel
  67. 0 0
      spine-ts/spine-phaser-v3/example/assets/stretchyman-pma.atlas
  68. 0 0
      spine-ts/spine-phaser-v3/example/assets/stretchyman-pma.png
  69. 0 0
      spine-ts/spine-phaser-v3/example/assets/stretchyman-pro.skel
  70. 1 1
      spine-ts/spine-phaser-v3/example/basic-example.html
  71. 0 0
      spine-ts/spine-phaser-v3/example/basic-vanilla-js-example.html
  72. 1 1
      spine-ts/spine-phaser-v3/example/batching-test.html
  73. 1 1
      spine-ts/spine-phaser-v3/example/blend-test.html
  74. 1 1
      spine-ts/spine-phaser-v3/example/bounds-test.html
  75. 1 1
      spine-ts/spine-phaser-v3/example/camera-pipeline-test.html
  76. 1 1
      spine-ts/spine-phaser-v3/example/canvas-test.html
  77. 1 1
      spine-ts/spine-phaser-v3/example/control-bones-example.html
  78. 1 1
      spine-ts/spine-phaser-v3/example/custom-spine-object-type.html
  79. 1 1
      spine-ts/spine-phaser-v3/example/depth-test.html
  80. 1 1
      spine-ts/spine-phaser-v3/example/events-example.html
  81. 1 1
      spine-ts/spine-phaser-v3/example/extended-class-test.html
  82. 1 1
      spine-ts/spine-phaser-v3/example/inline-loading.html
  83. 1 1
      spine-ts/spine-phaser-v3/example/mix-and-match-example.html
  84. 1 1
      spine-ts/spine-phaser-v3/example/multi-scene-test.html
  85. 0 0
      spine-ts/spine-phaser-v3/example/phaser.png
  86. 1 1
      spine-ts/spine-phaser-v3/example/physics.html
  87. 1 1
      spine-ts/spine-phaser-v3/example/physics2.html
  88. 1 1
      spine-ts/spine-phaser-v3/example/physics3.html
  89. 1 1
      spine-ts/spine-phaser-v3/example/physics4.html
  90. 2 1
      spine-ts/spine-phaser-v3/example/render-to-texture-test.html
  91. 0 0
      spine-ts/spine-phaser-v3/example/typescript/README.md
  92. 0 0
      spine-ts/spine-phaser-v3/example/typescript/assets/spineboy-pma.atlas
  93. 0 0
      spine-ts/spine-phaser-v3/example/typescript/assets/spineboy-pma.png
  94. 0 0
      spine-ts/spine-phaser-v3/example/typescript/assets/spineboy-pro.skel
  95. 0 0
      spine-ts/spine-phaser-v3/example/typescript/index.html
  96. 0 0
      spine-ts/spine-phaser-v3/example/typescript/index.ts
  97. 0 0
      spine-ts/spine-phaser-v3/example/typescript/package-lock.json
  98. 0 0
      spine-ts/spine-phaser-v3/example/typescript/package.json
  99. 2 2
      spine-ts/spine-phaser-v3/example/visibility-test-container.html
  100. 2 2
      spine-ts/spine-phaser-v3/example/visibility-test.html

+ 2 - 1
.gitignore

@@ -145,6 +145,8 @@ spine-ts/spine-canvas/dist
 spine-ts/spine-webgl/dist
 spine-ts/spine-player/dist
 spine-ts/spine-threejs/dist
+spine-ts/spine-phaser-v3/dist
+spine-ts/spine-phaser-v4/dist
 spine-ts/spine-pixi-v7/dist
 spine-ts/spine-pixi-v8/dist
 spine-libgdx/gradle
@@ -189,7 +191,6 @@ spine-flutter/src/spine-cpp
 
 spine-godot/.clang-format
 
-spine-ts/spine-phaser/dist
 spine-godot/.cache
 spine-godot/build/compile_commands.json
 

+ 81 - 40
examples/export/runtimes.sh

@@ -518,46 +518,87 @@ cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-ts/spine-player/example/a
 
 cp -f ../celestial-circus/export/* "$ROOT/spine-ts/spine-player/example/assets/"
 
-rm "$ROOT/spine-ts/spine-phaser/example/assets/"*
-cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../raptor/export/raptor-pma.atlas "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../raptor/export/raptor-pma.png "$ROOT/spine-ts/spine-phaser/example/assets/"
-
-cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../spineboy/export/spineboy-pma.atlas "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-ts/spine-phaser/example/assets/"
-
-cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-ts/spine-phaser/example/typescript/assets/"
-cp -f ../spineboy/export/spineboy-pma.atlas "$ROOT/spine-ts/spine-phaser/example/typescript/assets/"
-cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-ts/spine-phaser/example/typescript/assets/"
-
-cp -f ../coin/export/coin-pro.skel "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../coin/export/coin-pma.atlas "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../coin/export/coin-pma.png "$ROOT/spine-ts/spine-phaser/example/assets/"
-
-cp -f ../stretchyman/export/stretchyman-pro.skel "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../stretchyman/export/stretchyman-pma.atlas "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../stretchyman/export/stretchyman-pma.png "$ROOT/spine-ts/spine-phaser/example/assets/"
-
-cp -f ../mix-and-match/export/mix-and-match-pro.skel "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../mix-and-match/export/mix-and-match-pma.atlas "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../mix-and-match/export/mix-and-match-pma.png "$ROOT/spine-ts/spine-phaser/example/assets/"
-
-cp -f ../celestial-circus/export/* "$ROOT/spine-ts/spine-phaser/example/assets/"
-
-cp -f ../cloud-pot/export/cloud-pot.json "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../cloud-pot/export/cloud-pot.skel "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../cloud-pot/export/cloud-pot.atlas "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../cloud-pot/export/cloud-pot.png "$ROOT/spine-ts/spine-phaser/example/assets/"
-
-cp -f ../sack/export/sack-pro.json "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../sack/export/sack-pro.skel "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../sack/export/sack.atlas "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../sack/export/sack.png "$ROOT/spine-ts/spine-phaser/example/assets/"
-
-cp -f ../snowglobe/export/snowglobe-pro.json "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../snowglobe/export/snowglobe-pro.skel "$ROOT/spine-ts/spine-phaser/example/assets/"
-cp -f ../snowglobe/export/snowglobe* "$ROOT/spine-ts/spine-phaser/example/assets/"
+rm "$ROOT/spine-ts/spine-phaser-v3/example/assets/"*
+cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../raptor/export/raptor-pma.atlas "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../raptor/export/raptor-pma.png "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+
+cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../spineboy/export/spineboy-pma.atlas "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+
+cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-ts/spine-phaser-v3/example/typescript/assets/"
+cp -f ../spineboy/export/spineboy-pma.atlas "$ROOT/spine-ts/spine-phaser-v3/example/typescript/assets/"
+cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-ts/spine-phaser-v3/example/typescript/assets/"
+
+cp -f ../coin/export/coin-pro.skel "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../coin/export/coin-pma.atlas "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../coin/export/coin-pma.png "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+
+cp -f ../stretchyman/export/stretchyman-pro.skel "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../stretchyman/export/stretchyman-pma.atlas "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../stretchyman/export/stretchyman-pma.png "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+
+cp -f ../mix-and-match/export/mix-and-match-pro.skel "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../mix-and-match/export/mix-and-match-pma.atlas "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../mix-and-match/export/mix-and-match-pma.png "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+
+cp -f ../celestial-circus/export/* "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+
+cp -f ../cloud-pot/export/cloud-pot.json "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../cloud-pot/export/cloud-pot.skel "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../cloud-pot/export/cloud-pot.atlas "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../cloud-pot/export/cloud-pot.png "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+
+cp -f ../sack/export/sack-pro.json "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../sack/export/sack-pro.skel "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../sack/export/sack.atlas "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../sack/export/sack.png "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+
+cp -f ../snowglobe/export/snowglobe-pro.json "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../snowglobe/export/snowglobe-pro.skel "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+cp -f ../snowglobe/export/snowglobe* "$ROOT/spine-ts/spine-phaser-v3/example/assets/"
+
+rm "$ROOT/spine-ts/spine-phaser-v4/example/assets/"*
+cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../raptor/export/raptor-pma.atlas "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../raptor/export/raptor-pma.png "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+
+cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../spineboy/export/spineboy-pma.atlas "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+
+cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-ts/spine-phaser-v4/example/typescript/assets/"
+cp -f ../spineboy/export/spineboy-pma.atlas "$ROOT/spine-ts/spine-phaser-v4/example/typescript/assets/"
+cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-ts/spine-phaser-v4/example/typescript/assets/"
+
+cp -f ../coin/export/coin-pro.skel "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../coin/export/coin-pma.atlas "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../coin/export/coin-pma.png "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+
+cp -f ../stretchyman/export/stretchyman-pro.skel "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../stretchyman/export/stretchyman-pma.atlas "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../stretchyman/export/stretchyman-pma.png "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+
+cp -f ../mix-and-match/export/mix-and-match-pro.skel "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../mix-and-match/export/mix-and-match-pma.atlas "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../mix-and-match/export/mix-and-match-pma.png "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+
+cp -f ../celestial-circus/export/* "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+
+cp -f ../cloud-pot/export/cloud-pot.json "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../cloud-pot/export/cloud-pot.skel "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../cloud-pot/export/cloud-pot.atlas "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../cloud-pot/export/cloud-pot.png "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+
+cp -f ../sack/export/sack-pro.json "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../sack/export/sack-pro.skel "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../sack/export/sack.atlas "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../sack/export/sack.png "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+
+cp -f ../snowglobe/export/snowglobe-pro.json "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../snowglobe/export/snowglobe-pro.skel "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
+cp -f ../snowglobe/export/snowglobe* "$ROOT/spine-ts/spine-phaser-v4/example/assets/"
 
 rm "$ROOT/spine-ts/spine-pixi-v7/example/assets/"*
 cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ts/spine-pixi-v7/example/assets/"

+ 7 - 4
spine-ts/README.md

@@ -17,7 +17,7 @@ In most cases, the `spine-player` module is best suited for your needs. Please r
 
 For documentation of the core API in `spine-core`, please refer to our [Spine Runtimes Guide](http://esotericsoftware.com/spine-runtimes-guide).
 
-For documentation of `spine-phaser`, please refer to our [spine-phaser Guide](https://esotericsoftware.com/spine-phaser).
+For documentation of `spine-phaser-v3` and `spine-phaser-v4`, please refer to our [spine-phaser Guide](https://esotericsoftware.com/spine-phaser).
 
 For documentation of `spine-pixi-v7` and `spine-pixi-v8`, please refer to our [spine-pixi Guide](https://esotericsoftware.com/spine-pixi).
 
@@ -75,10 +75,13 @@ You can include a module in your project via a `<script>` tag from the [unpkg](h
 // spine-threejs
 <script src="https://unpkg.com/@esotericsoftware/[email protected].*/dist/iife/spine-threejs.js"></script>
 
-// spine-phaser
-<script src="https://unpkg.com/@esotericsoftware/[email protected].*/dist/iife/spine-phaser.js"></script>
+// spine-phaser-v3
+<script src="https://unpkg.com/@esotericsoftware/spine-phaser-v3@4.2.*/dist/iife/spine-phaser-v3.js"></script>
 
-// spine-pixi
+// spine-phaser-v4
+<script src="https://unpkg.com/@esotericsoftware/[email protected].*/dist/iife/spine-phaser-v4.js"></script>
+
+// spine-pixi-v7
 <script src="https://unpkg.com/@esotericsoftware/[email protected].*/dist/iife/spine-pixi-v7.js"></script>
 
 // spine-pixi-v8

+ 38 - 75
spine-ts/index.html

@@ -29,130 +29,93 @@
         <li><a href="/spine-canvaskit/example/physics.html">Physics</a></li>
         <li><a href="/spine-canvaskit/example/micro-benchmark.html">Micro Benchmark</a></li>
       </ul>
-      <li>PixiJS v7</li>
+      <li>PixiJS</li>
       <ul>
-        <li><a href="/spine-pixi-v7/example/index.html">Basic example</a></li>
-        <li><a href="/spine-pixi-v7/example/manual-loading.html">Manual Loading</a></li>
-        <li>
-          <a href="/spine-pixi-v7/example/events-example.html">Events example</a>
-        </li>
-        <li>
-          <a href="/spine-pixi-v7/example/mix-and-match-example.html">Mix and match example</a>
-        </li>
-        <li>
-          <a href="/spine-pixi-v7/example/simple-input.html">Simple input</a>
-        </li>
-        <li>
-          <a href="/spine-pixi-v7/example/mouse-following.html">Mouse following</a>
-        </li>
-        <li>
-          <a href="/spine-pixi-v7/example/control-bones-example.html">Control bones example</a>
-        </li>
-        <li><a href="/spine-pixi-v7/example/physics.html">Physics</a></li>
-        <li><a href="/spine-pixi-v7/example/physics2.html">Physics II</a></li>
-        <li><a href="/spine-pixi-v7/example/physics3.html">Physics III</a></li>
-        <li><a href="/spine-pixi-v7/example/physics4.html">Physics IV</a></li>
-        <li><a href="/spine-pixi-v7/example/slot-objects.html">Slot Objects</a></li>
-        <li><a href="/spine-pixi-v7/example/bounds.html">Bounds</a></li>
-        <li><a href="/spine-pixi-v7/example/bunnymark.html?count=500">Bunny Mark</a></li>
-      </ul>
-      <li>PixiJS v8</li>
-      <ul>
-        <li><a href="/spine-pixi-v8/example/index.html">Basic example</a></li>
-        <li><a href="/spine-pixi-v8/example/manual-loading.html">Manual Loading</a></li>
-        <li>
-          <a href="/spine-pixi-v8/example/events-example.html">Events example</a>
-        </li>
-        <li>
-          <a href="/spine-pixi-v8/example/mix-and-match-example.html">Mix and match example</a>
-        </li>
-        <li>
-          <a href="/spine-pixi-v8/example/simple-input.html">Simple input</a>
-        </li>
-        <li>
-          <a href="/spine-pixi-v8/example/mouse-following.html">Mouse following</a>
-        </li>
-        <li>
-          <a href="/spine-pixi-v8/example/control-bones-example.html">Control bones example</a>
-        </li>
-        <li><a href="/spine-pixi-v8/example/physics.html">Physics</a></li>
-        <li><a href="/spine-pixi-v8/example/physics2.html">Physics II</a></li>
-        <li><a href="/spine-pixi-v8/example/physics3.html">Physics III</a></li>
-        <li><a href="/spine-pixi-v8/example/physics4.html">Physics IV</a></li>
-        <li><a href="/spine-pixi-v8/example/slot-objects.html">Slot Objects</a></li>
-        <li><a href="/spine-pixi-v8/example/bounds.html">Bounds</a></li>
-        <li><a href="/spine-pixi-v8/example/bunnymark.html?count=500&renderer=webgpu">Bunny Mark</a></li>
+        <li><a href="/spine-pixi-v8/example/index.html">Basic example</a> - (<a href="/spine-pixi-v7/example/index.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/manual-loading.html">Manual Loading</a> - (<a href="/spine-pixi-v7/example/manual-loading.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/events-example.html">Events example</a> - (<a href="/spine-pixi-v7/example/events-example.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/mix-and-match-example.html">Mix and match example</a> - (<a href="/spine-pixi-v7/example/mix-and-match-example.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/simple-input.html">Simple input</a> - (<a href="/spine-pixi-v7/example/simple-input.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/mouse-following.html">Mouse following</a> - (<a href="/spine-pixi-v7/example/mouse-following.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/control-bones-example.html">Control bones example</a> - (<a href="/spine-pixi-v7/example/control-bones-example.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/physics.html">Physics</a> - (<a href="/spine-pixi-v7/example/physics.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/physics2.html">Physics II</a> - (<a href="/spine-pixi-v7/example/physics2.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/physics3.html">Physics III</a> - (<a href="/spine-pixi-v7/example/physics3.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/physics4.html">Physics IV</a> - (<a href="/spine-pixi-v7/example/physics4.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/slot-objects.html">Slot Objects</a> - (<a href="/spine-pixi-v7/example/slot-objects.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/bounds.html">Bounds</a> - (<a href="/spine-pixi-v7/example/bounds.html">v7</a>)</li>
+        <li><a href="/spine-pixi-v8/example/bunnymark.html?count=500&renderer=webgpu">Bunny Mark</a> - (<a href="/spine-pixi-v7/example/bunnymark.html?count=500">v7</a>)</li>
       </ul>
       <li>Phaser</li>
       <ul>
         <li>
-          <a href="/spine-phaser/example/basic-example.html">Basic example</a>
+          <a href="/spine-phaser-v4/example/basic-example.html">Basic example</a> - (<a href="/spine-phaser-v3/example/basic-example.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/events-example.html">Events example</a>
+          <a href="/spine-phaser-v4/example/events-example.html">Events example</a> - (<a href="/spine-phaser-v3/example/events-example.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/mix-and-match-example.html">Mix and match example</a>
+          <a href="/spine-phaser-v4/example/mix-and-match-example.html">Mix and match example</a> - (<a href="/spine-phaser-v3/example/mix-and-match-example.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/arcade-physics-example.html">Arcade physics example</a>
+          <a href="/spine-phaser-v4/example/arcade-physics-example.html">Arcade physics example</a> - (<a href="/spine-phaser-v3/example/arcade-physics-example.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/control-bones-example.html">Control bones example</a>
+          <a href="/spine-phaser-v4/example/control-bones-example.html">Control bones example</a> - (<a href="/spine-phaser-v3/example/control-bones-example.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/batching-test.html">Batching test</a>
+          <a href="/spine-phaser-v4/example/batching-test.html">Batching test</a> - (<a href="/spine-phaser-v3/example/batching-test.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/multi-scene-test.html">Multi-scene test</a>
+          <a href="/spine-phaser-v4/example/multi-scene-test.html">Multi-scene test</a> - (<a href="/spine-phaser-v3/example/multi-scene-test.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/bounds-test.html">Bounds test</a>
+          <a href="/spine-phaser-v4/example/bounds-test.html">Bounds test</a> - (<a href="/spine-phaser-v3/example/bounds-test.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/visibility-test.html">Visibility test</a>
+          <a href="/spine-phaser-v4/example/visibility-test.html">Visibility test</a> - (<a href="/spine-phaser-v3/example/visibility-test.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/visibility-test-container.html">Visibility test (container)</a>
+          <a href="/spine-phaser-v4/example/visibility-test-container.html">Visibility test (container)</a> - (<a href="/spine-phaser-v3/example/visibility-test-container.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/blend-test.html">Blend test</a>
+          <a href="/spine-phaser-v4/example/blend-test.html">Blend test</a> - (<a href="/spine-phaser-v3/example/blend-test.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/camera-pipeline-test.html">Camera pipeline test</a>
+          <a href="/spine-phaser-v4/example/camera-pipeline-test.html">Camera pipeline test</a> - (<a href="/spine-phaser-v3/example/camera-pipeline-test.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/extended-class-test.html">Extended class</a>
+          <a href="/spine-phaser-v4/example/extended-class-test.html">Extended class</a> - (<a href="/spine-phaser-v3/example/extended-class-test.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/canvas-test.html">Canvas test</a>
+          <a href="/spine-phaser-v4/example/canvas-test.html">Canvas test</a> - (<a href="/spine-phaser-v3/example/canvas-test.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/depth-test.html">Depth test</a>
+          <a href="/spine-phaser-v4/example/depth-test.html">Depth test</a> - (<a href="/spine-phaser-v3/example/depth-test.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/render-to-texture-test.html">Render to texture test</a>
+          <a href="/spine-phaser-v4/example/render-to-texture-test.html">Render to texture test</a> - (<a href="/spine-phaser-v3/example/render-to-texture-test.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/custom-spine-object-type.html">Custom object factory name</a>
+          <a href="/spine-phaser-v4/example/custom-spine-object-type.html">Custom object factory name</a> - (<a href="/spine-phaser-v3/example/custom-spine-object-type.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/add-existing.html">Add existing object</a>
+          <a href="/spine-phaser-v4/example/add-existing.html">Add existing object</a> - (<a href="/spine-phaser-v3/example/add-existing.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/physics.html">Physics</a>
+          <a href="/spine-phaser-v4/example/physics.html">Physics</a> - (<a href="/spine-phaser-v3/example/physics.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/physics2.html">Physics II</a>
+          <a href="/spine-phaser-v4/example/physics2.html">Physics II</a> - (<a href="/spine-phaser-v3/example/physics2.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/physics3.html">Physics III</a>
+          <a href="/spine-phaser-v4/example/physics3.html">Physics III</a> - (<a href="/spine-phaser-v3/example/physics3.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/physics4.html">Physics IV</a>
+          <a href="/spine-phaser-v4/example/physics4.html">Physics IV</a> - (<a href="/spine-phaser-v3/example/physics4.html">v3</a>)
         </li>
         <li>
-          <a href="/spine-phaser/example/inline-loading.html">Inline loading</a>
+          <a href="/spine-phaser-v4/example/inline-loading.html">Inline loading</a> - (<a href="/spine-phaser-v3/example/inline-loading.html">Inline </a>)
         </li>
       </ul>
       <li>Player</li>

文件差异内容过多而无法显示
+ 563 - 55
spine-ts/package-lock.json


文件差异内容过多而无法显示
+ 6 - 4
spine-ts/package.json


+ 0 - 0
spine-ts/spine-phaser/LICENSE → spine-ts/spine-phaser-v3/LICENSE


+ 1 - 1
spine-ts/spine-phaser/README.md → spine-ts/spine-phaser-v3/README.md

@@ -1,3 +1,3 @@
-# spine-ts Phaser
+# spine-ts Phaser v3
 
 Please see the top-level [README.md](../README.md) for more information.

+ 137 - 0
spine-ts/spine-phaser-v3/dist/SpineGameObject.d.ts

@@ -0,0 +1,137 @@
+/******************************************************************************
+ * Spine Runtimes License Agreement
+ * Last updated July 28, 2023. Replaces all prior versions.
+ *
+ * Copyright (c) 2013-2023, Esoteric Software LLC
+ *
+ * Integration of the Spine Runtimes into software or otherwise creating
+ * derivative works of the Spine Runtimes is permitted under the terms and
+ * conditions of Section 2 of the Spine Editor License Agreement:
+ * http://esotericsoftware.com/spine-editor-license
+ *
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
+ * otherwise create derivative works of the Spine Runtimes (collectively,
+ * "Products"), provided that each user of the Products must obtain their own
+ * Spine Editor license and redistribution of the Products in any form must
+ * include this license and copyright notice.
+ *
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *****************************************************************************/
+import { SpinePlugin } from "./SpinePlugin.js";
+import { AnimationState, AnimationStateData, Bone, Skeleton } from "@esotericsoftware/spine-core";
+declare class BaseSpineGameObject extends Phaser.GameObjects.GameObject {
+    constructor(scene: Phaser.Scene, type: string);
+}
+/** A bounds provider calculates the bounding box for a skeleton, which is then assigned as the size of the SpineGameObject. */
+export interface SpineGameObjectBoundsProvider {
+    calculateBounds(gameObject: SpineGameObject): {
+        x: number;
+        y: number;
+        width: number;
+        height: number;
+    };
+}
+/** A bounds provider that calculates the bounding box from the setup pose. */
+export declare class SetupPoseBoundsProvider implements SpineGameObjectBoundsProvider {
+    private clipping;
+    /**
+     * @param clipping If true, clipping attachments are used to compute the bounds. False, by default.
+     */
+    constructor(clipping?: boolean);
+    calculateBounds(gameObject: SpineGameObject): {
+        x: number;
+        y: number;
+        width: number;
+        height: number;
+    };
+}
+/** A bounds provider that calculates the bounding box by taking the maximumg bounding box for a combination of skins and specific animation. */
+export declare class SkinsAndAnimationBoundsProvider implements SpineGameObjectBoundsProvider {
+    private animation;
+    private skins;
+    private timeStep;
+    private clipping;
+    /**
+     * @param animation The animation to use for calculating the bounds. If null, the setup pose is used.
+     * @param skins The skins to use for calculating the bounds. If empty, the default skin is used.
+     * @param timeStep The time step to use for calculating the bounds. A smaller time step means more precision, but slower calculation.
+     * @param clipping If true, clipping attachments are used to compute the bounds. False, by default.
+     */
+    constructor(animation: string | null, skins?: string[], timeStep?: number, clipping?: boolean);
+    calculateBounds(gameObject: SpineGameObject): {
+        x: number;
+        y: number;
+        width: number;
+        height: number;
+    };
+}
+declare const SpineGameObject_base: typeof BaseSpineGameObject & import("./mixins.js").Type<Phaser.GameObjects.Components.Alpha, any[]> & import("./mixins.js").Type<Phaser.GameObjects.Components.Visible, any[]> & import("./mixins.js").Type<Phaser.GameObjects.Components.Transform, any[]> & import("./mixins.js").Type<Phaser.GameObjects.Components.ScrollFactor, any[]> & import("./mixins.js").Type<Phaser.GameObjects.Components.Flip, any[]> & import("./mixins.js").Type<Phaser.GameObjects.Components.ComputedSize, any[]> & import("./mixins.js").Type<Phaser.GameObjects.Components.Origin, any[]> & import("./mixins.js").Type<Phaser.GameObjects.Components.Depth, any[]>;
+/**
+ * A SpineGameObject is a Phaser {@link GameObject} that can be added to a Phaser Scene and render a Spine skeleton.
+ *
+ * The Spine GameObject is a thin wrapper around a Spine {@link Skeleton}, {@link AnimationState} and {@link AnimationStateData}. It is responsible for:
+ * - updating the animation state
+ * - applying the animation state to the skeleton's bones, slots, attachments, and draw order.
+ * - updating the skeleton's bone world transforms
+ * - rendering the skeleton
+ *
+ * See the {@link SpinePlugin} class for more information on how to create a `SpineGameObject`.
+ *
+ * The skeleton, animation state, and animation state data can be accessed via the repsective fields. They can be manually updated via {@link updatePose}.
+ *
+ * To modify the bone hierarchy before the world transforms are computed, a callback can be set via the {@link beforeUpdateWorldTransforms} field.
+ *
+ * To modify the bone hierarchy after the world transforms are computed, a callback can be set via the {@link afterUpdateWorldTransforms} field.
+ *
+ * The class also features methods to convert between the skeleton coordinate system and the Phaser coordinate system.
+ *
+ * See {@link skeletonToPhaserWorldCoordinates}, {@link phaserWorldCoordinatesToSkeleton}, and {@link phaserWorldCoordinatesToBoneLocal.}
+ */
+export declare class SpineGameObject extends SpineGameObject_base {
+    private plugin;
+    boundsProvider: SpineGameObjectBoundsProvider;
+    blendMode: number;
+    skeleton: Skeleton;
+    animationStateData: AnimationStateData;
+    animationState: AnimationState;
+    beforeUpdateWorldTransforms: (object: SpineGameObject) => void;
+    afterUpdateWorldTransforms: (object: SpineGameObject) => void;
+    private premultipliedAlpha;
+    constructor(scene: Phaser.Scene, plugin: SpinePlugin, x: number, y: number, dataKey: string, atlasKey: string, boundsProvider?: SpineGameObjectBoundsProvider);
+    updateSize(): void;
+    /** Converts a point from the skeleton coordinate system to the Phaser world coordinate system. */
+    skeletonToPhaserWorldCoordinates(point: {
+        x: number;
+        y: number;
+    }): void;
+    /** Converts a point from the Phaser world coordinate system to the skeleton coordinate system. */
+    phaserWorldCoordinatesToSkeleton(point: {
+        x: number;
+        y: number;
+    }): void;
+    /** Converts a point from the Phaser world coordinate system to the bone's local coordinate system. */
+    phaserWorldCoordinatesToBone(point: {
+        x: number;
+        y: number;
+    }, bone: Bone): void;
+    /**
+     * Updates the {@link AnimationState}, applies it to the {@link Skeleton}, then updates the world transforms of all bones.
+     * @param delta The time delta in milliseconds
+     */
+    updatePose(delta: number): void;
+    preUpdate(time: number, delta: number): void;
+    preDestroy(): void;
+    willRender(camera: Phaser.Cameras.Scene2D.Camera): boolean;
+    renderWebGL(renderer: Phaser.Renderer.WebGL.WebGLRenderer, src: SpineGameObject, camera: Phaser.Cameras.Scene2D.Camera, parentMatrix: Phaser.GameObjects.Components.TransformMatrix): void;
+    renderCanvas(renderer: Phaser.Renderer.Canvas.CanvasRenderer, src: SpineGameObject, camera: Phaser.Cameras.Scene2D.Camera, parentMatrix: Phaser.GameObjects.Components.TransformMatrix): void;
+}
+export {};

文件差异内容过多而无法显示
+ 299 - 0
spine-ts/spine-phaser-v3/dist/SpineGameObject.js


+ 95 - 0
spine-ts/spine-phaser-v3/dist/SpinePlugin.d.ts

@@ -0,0 +1,95 @@
+/******************************************************************************
+ * Spine Runtimes License Agreement
+ * Last updated July 28, 2023. Replaces all prior versions.
+ *
+ * Copyright (c) 2013-2023, Esoteric Software LLC
+ *
+ * Integration of the Spine Runtimes into software or otherwise creating
+ * derivative works of the Spine Runtimes is permitted under the terms and
+ * conditions of Section 2 of the Spine Editor License Agreement:
+ * http://esotericsoftware.com/spine-editor-license
+ *
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
+ * otherwise create derivative works of the Spine Runtimes (collectively,
+ * "Products"), provided that each user of the Products must obtain their own
+ * Spine Editor license and redistribution of the Products in any form must
+ * include this license and copyright notice.
+ *
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *****************************************************************************/
+import * as Phaser from "phaser";
+import { SceneRenderer, Skeleton, SkeletonData, TextureAtlas } from "@esotericsoftware/spine-webgl";
+import { SpineGameObjectBoundsProvider } from "./SpineGameObject.js";
+import { SkeletonRenderer } from "@esotericsoftware/spine-canvas";
+/**
+ * Configuration object used when creating {@link SpineGameObject} instances via a scene's
+ * {@link GameObjectCreator} (`Scene.make`).
+ */
+export interface SpineGameObjectConfig extends Phaser.Types.GameObjects.GameObjectConfig {
+    /** The x-position of the object, optional, default: 0 */
+    x?: number;
+    /** The y-position of the object, optional, default: 0 */
+    y?: number;
+    /** The skeleton data key */
+    dataKey: string;
+    /** The atlas key */
+    atlasKey: string;
+    /** The bounds provider, optional, default: `SetupPoseBoundsProvider` */
+    boundsProvider?: SpineGameObjectBoundsProvider;
+}
+/**
+ * {@link ScenePlugin} implementation adding Spine Runtime capabilities to a scene.
+ *
+ * The scene's {@link LoaderPlugin} (`Scene.load`) gets these additional functions:
+ * * `spineBinary(key: string, url: string, xhrSettings?: XHRSettingsObject)`: loads a skeleton binary `.skel` file from the `url`.
+ * * `spineJson(key: string, url: string, xhrSettings?: XHRSettingsObject)`: loads a skeleton binary `.skel` file from the `url`.
+ * * `spineAtlas(key: string, url: string, premultipliedAlpha: boolean = true, xhrSettings?: XHRSettingsObject)`: loads a texture atlas `.atlas` file from the `url` as well as its correponding texture atlas page images.
+ *
+ * The scene's {@link GameObjectFactory} (`Scene.add`) gets these additional functions:
+ * * `spine(x: number, y: number, dataKey: string, atlasKey: string, boundsProvider: SpineGameObjectBoundsProvider = SetupPoseBoundsProvider())`:
+ *    creates a new {@link SpineGameObject} from the data and atlas at position `(x, y)`, using the {@link BoundsProvider} to calculate its bounding box. The object is automatically added to the scene.
+ *
+ * The scene's {@link GameObjectCreator} (`Scene.make`) gets these additional functions:
+ * * `spine(config: SpineGameObjectConfig)`: creates a new {@link SpineGameObject} from the given configuration object.
+ *
+ * The plugin has additional public methods to work with Spine Runtime core API objects:
+ * * `getAtlas(atlasKey: string)`: returns the {@link TextureAtlas} instance for the given atlas key.
+ * * `getSkeletonData(skeletonDataKey: string)`: returns the {@link SkeletonData} instance for the given skeleton data key.
+ * * `createSkeleton(skeletonDataKey: string, atlasKey: string, premultipliedAlpha: boolean = true)`: creates a new {@link Skeleton} instance from the given skeleton data and atlas key.
+ * * `isPremultipliedAlpha(atlasKey: string)`: returns `true` if the atlas with the given key has premultiplied alpha.
+ */
+export declare class SpinePlugin extends Phaser.Plugins.ScenePlugin {
+    game: Phaser.Game;
+    private isWebGL;
+    gl: WebGLRenderingContext | null;
+    static gameWebGLRenderer: SceneRenderer | null;
+    get webGLRenderer(): SceneRenderer | null;
+    canvasRenderer: SkeletonRenderer | null;
+    phaserRenderer: Phaser.Renderer.Canvas.CanvasRenderer | Phaser.Renderer.WebGL.WebGLRenderer;
+    private skeletonDataCache;
+    private atlasCache;
+    constructor(scene: Phaser.Scene, pluginManager: Phaser.Plugins.PluginManager, pluginKey: string);
+    static rendererId: number;
+    boot(): void;
+    onResize(): void;
+    shutdown(): void;
+    destroy(): void;
+    gameDestroy(): void;
+    /** Returns the TextureAtlas instance for the given key */
+    getAtlas(atlasKey: string): TextureAtlas;
+    /** Returns whether the TextureAtlas uses premultiplied alpha */
+    isAtlasPremultiplied(atlasKey: string): any;
+    /** Returns the SkeletonData instance for the given data and atlas key */
+    getSkeletonData(dataKey: string, atlasKey: string): SkeletonData;
+    /** Creates a new Skeleton instance from the data and atlas. */
+    createSkeleton(dataKey: string, atlasKey: string): Skeleton;
+}

文件差异内容过多而无法显示
+ 349 - 0
spine-ts/spine-phaser-v3/dist/SpinePlugin.js


文件差异内容过多而无法显示
+ 14312 - 0
spine-ts/spine-phaser-v3/dist/esm/spine-phaser-v3.mjs


文件差异内容过多而无法显示
+ 2 - 0
spine-ts/spine-phaser-v3/dist/esm/spine-phaser-v3.mjs.map


文件差异内容过多而无法显示
+ 14532 - 0
spine-ts/spine-phaser-v3/dist/iife/spine-phaser-v3.js


文件差异内容过多而无法显示
+ 2 - 0
spine-ts/spine-phaser-v3/dist/iife/spine-phaser-v3.js.map


+ 58 - 0
spine-ts/spine-phaser-v3/dist/index.d.ts

@@ -0,0 +1,58 @@
+/******************************************************************************
+ * Spine Runtimes License Agreement
+ * Last updated July 28, 2023. Replaces all prior versions.
+ *
+ * Copyright (c) 2013-2023, Esoteric Software LLC
+ *
+ * Integration of the Spine Runtimes into software or otherwise creating
+ * derivative works of the Spine Runtimes is permitted under the terms and
+ * conditions of Section 2 of the Spine Editor License Agreement:
+ * http://esotericsoftware.com/spine-editor-license
+ *
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
+ * otherwise create derivative works of the Spine Runtimes (collectively,
+ * "Products"), provided that each user of the Products must obtain their own
+ * Spine Editor license and redistribution of the Products in any form must
+ * include this license and copyright notice.
+ *
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *****************************************************************************/
+export * from "./require-shim.js";
+export * from "./SpinePlugin.js";
+export * from "./SpineGameObject.js";
+export * from "./mixins.js";
+export * from "@esotericsoftware/spine-core";
+export * from "@esotericsoftware/spine-webgl";
+import { SpineGameObjectConfig, SpinePlugin } from "./SpinePlugin.js";
+import { SpineGameObject, SpineGameObjectBoundsProvider } from "./SpineGameObject.js";
+declare global {
+    namespace Phaser.Loader {
+        interface LoaderPlugin {
+            spineJson(key: string, url: string, xhrSettings?: Phaser.Types.Loader.XHRSettingsObject): LoaderPlugin;
+            spineBinary(key: string, url: string, xhrSettings?: Phaser.Types.Loader.XHRSettingsObject): LoaderPlugin;
+            spineAtlas(key: string, url: string, premultipliedAlpha?: boolean, xhrSettings?: Phaser.Types.Loader.XHRSettingsObject): LoaderPlugin;
+        }
+    }
+    namespace Phaser.GameObjects {
+        interface GameObjectFactory {
+            spine(x: number, y: number, dataKey: string, atlasKey: string, boundsProvider?: SpineGameObjectBoundsProvider): SpineGameObject;
+        }
+        interface GameObjectCreator {
+            spine(config: SpineGameObjectConfig, addToScene?: boolean): SpineGameObject;
+        }
+    }
+    namespace Phaser {
+        interface Scene {
+            spine: SpinePlugin;
+        }
+    }
+}

文件差异内容过多而无法显示
+ 37 - 0
spine-ts/spine-phaser-v3/dist/index.js


+ 34 - 0
spine-ts/spine-phaser-v3/dist/keys.d.ts

@@ -0,0 +1,34 @@
+/******************************************************************************
+ * Spine Runtimes License Agreement
+ * Last updated July 28, 2023. Replaces all prior versions.
+ *
+ * Copyright (c) 2013-2023, Esoteric Software LLC
+ *
+ * Integration of the Spine Runtimes into software or otherwise creating
+ * derivative works of the Spine Runtimes is permitted under the terms and
+ * conditions of Section 2 of the Spine Editor License Agreement:
+ * http://esotericsoftware.com/spine-editor-license
+ *
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
+ * otherwise create derivative works of the Spine Runtimes (collectively,
+ * "Products"), provided that each user of the Products must obtain their own
+ * Spine Editor license and redistribution of the Products in any form must
+ * include this license and copyright notice.
+ *
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *****************************************************************************/
+export declare const SPINE_SKELETON_FILE_CACHE_KEY = "esotericsoftware.spine.skeletonFile.cache";
+export declare const SPINE_ATLAS_CACHE_KEY = "esotericsoftware.spine.atlas.cache";
+export declare const SPINE_LOADER_TYPE = "spine";
+export declare const SPINE_SKELETON_DATA_FILE_TYPE = "spineSkeletonData";
+export declare const SPINE_ATLAS_FILE_TYPE = "spineAtlasData";
+export declare const SPINE_GAME_OBJECT_TYPE = "spine";

文件差异内容过多而无法显示
+ 34 - 0
spine-ts/spine-phaser-v3/dist/keys.js


+ 30 - 0
spine-ts/spine-phaser-v3/dist/mixins.d.ts

@@ -0,0 +1,30 @@
+export declare const ComputedSize: any;
+export declare const Depth: any;
+export declare const Flip: any;
+export declare const ScrollFactor: any;
+export declare const Transform: any;
+export declare const Visible: any;
+export declare const Origin: any;
+export declare const Alpha: any;
+export interface Type<T, P extends any[] = any[]> extends Function {
+    new (...args: P): T;
+}
+export type Mixin<GameObjectComponent, GameObjectConstraint extends Phaser.GameObjects.GameObject> = <GameObjectType extends Type<GameObjectConstraint>>(BaseGameObject: GameObjectType) => GameObjectType & Type<GameObjectComponent>;
+export declare function createMixin<GameObjectComponent, GameObjectConstraint extends Phaser.GameObjects.GameObject = Phaser.GameObjects.GameObject>(...component: GameObjectComponent[]): Mixin<GameObjectComponent, GameObjectConstraint>;
+type ComputedSizeMixin = Mixin<Phaser.GameObjects.Components.ComputedSize, Phaser.GameObjects.GameObject>;
+export declare const ComputedSizeMixin: ComputedSizeMixin;
+type DepthMixin = Mixin<Phaser.GameObjects.Components.Depth, Phaser.GameObjects.GameObject>;
+export declare const DepthMixin: DepthMixin;
+type FlipMixin = Mixin<Phaser.GameObjects.Components.Flip, Phaser.GameObjects.GameObject>;
+export declare const FlipMixin: FlipMixin;
+type ScrollFactorMixin = Mixin<Phaser.GameObjects.Components.ScrollFactor, Phaser.GameObjects.GameObject>;
+export declare const ScrollFactorMixin: ScrollFactorMixin;
+type TransformMixin = Mixin<Phaser.GameObjects.Components.Transform, Phaser.GameObjects.GameObject>;
+export declare const TransformMixin: TransformMixin;
+type VisibleMixin = Mixin<Phaser.GameObjects.Components.Visible, Phaser.GameObjects.GameObject>;
+export declare const VisibleMixin: VisibleMixin;
+type OriginMixin = Mixin<Phaser.GameObjects.Components.Origin, Phaser.GameObjects.GameObject>;
+export declare const OriginMixin: OriginMixin;
+type AlphaMixin = Mixin<Phaser.GameObjects.Components.Alpha, Phaser.GameObjects.GameObject>;
+export declare const AlphaMixin: AlphaMixin;
+export {};

文件差异内容过多而无法显示
+ 47 - 0
spine-ts/spine-phaser-v3/dist/mixins.js


+ 32 - 0
spine-ts/spine-phaser-v3/dist/require-shim.d.ts

@@ -0,0 +1,32 @@
+/******************************************************************************
+ * Spine Runtimes License Agreement
+ * Last updated July 28, 2023. Replaces all prior versions.
+ *
+ * Copyright (c) 2013-2023, Esoteric Software LLC
+ *
+ * Integration of the Spine Runtimes into software or otherwise creating
+ * derivative works of the Spine Runtimes is permitted under the terms and
+ * conditions of Section 2 of the Spine Editor License Agreement:
+ * http://esotericsoftware.com/spine-editor-license
+ *
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
+ * otherwise create derivative works of the Spine Runtimes (collectively,
+ * "Products"), provided that each user of the Products must obtain their own
+ * Spine Editor license and redistribution of the Products in any form must
+ * include this license and copyright notice.
+ *
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *****************************************************************************/
+declare global {
+    var require: any;
+}
+export {};

文件差异内容过多而无法显示
+ 38 - 0
spine-ts/spine-phaser-v3/dist/require-shim.js


+ 1 - 1
spine-ts/spine-phaser/example/add-existing.html → spine-ts/spine-phaser-v3/example/add-existing.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 1 - 1
spine-ts/spine-phaser/example/arcade-physics-example.html → spine-ts/spine-phaser-v3/example/arcade-physics-example.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 0 - 0
spine-ts/spine-phaser/example/assets/celestial-circus-pma.atlas → spine-ts/spine-phaser-v3/example/assets/celestial-circus-pma.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/celestial-circus-pma.png → spine-ts/spine-phaser-v3/example/assets/celestial-circus-pma.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/celestial-circus-pro.json → spine-ts/spine-phaser-v3/example/assets/celestial-circus-pro.json


+ 0 - 0
spine-ts/spine-phaser/example/assets/celestial-circus-pro.skel → spine-ts/spine-phaser-v3/example/assets/celestial-circus-pro.skel


+ 0 - 0
spine-ts/spine-phaser/example/assets/celestial-circus.atlas → spine-ts/spine-phaser-v3/example/assets/celestial-circus.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/celestial-circus.png → spine-ts/spine-phaser-v3/example/assets/celestial-circus.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/cloud-pot.atlas → spine-ts/spine-phaser-v3/example/assets/cloud-pot.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/cloud-pot.json → spine-ts/spine-phaser-v3/example/assets/cloud-pot.json


+ 0 - 0
spine-ts/spine-phaser/example/assets/cloud-pot.png → spine-ts/spine-phaser-v3/example/assets/cloud-pot.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/cloud-pot.skel → spine-ts/spine-phaser-v3/example/assets/cloud-pot.skel


+ 0 - 0
spine-ts/spine-phaser/example/assets/coin-pma.atlas → spine-ts/spine-phaser-v3/example/assets/coin-pma.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/coin-pma.png → spine-ts/spine-phaser-v3/example/assets/coin-pma.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/coin-pro.skel → spine-ts/spine-phaser-v3/example/assets/coin-pro.skel


+ 0 - 0
spine-ts/spine-phaser/example/assets/mix-and-match-pma.atlas → spine-ts/spine-phaser-v3/example/assets/mix-and-match-pma.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/mix-and-match-pma.png → spine-ts/spine-phaser-v3/example/assets/mix-and-match-pma.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/mix-and-match-pro.skel → spine-ts/spine-phaser-v3/example/assets/mix-and-match-pro.skel


+ 0 - 0
spine-ts/spine-phaser/example/assets/raptor-pma.atlas → spine-ts/spine-phaser-v3/example/assets/raptor-pma.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/raptor-pma.png → spine-ts/spine-phaser-v3/example/assets/raptor-pma.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/raptor-pro.json → spine-ts/spine-phaser-v3/example/assets/raptor-pro.json


+ 0 - 0
spine-ts/spine-phaser/example/assets/sack-pro.json → spine-ts/spine-phaser-v3/example/assets/sack-pro.json


+ 0 - 0
spine-ts/spine-phaser/example/assets/sack-pro.skel → spine-ts/spine-phaser-v3/example/assets/sack-pro.skel


+ 0 - 0
spine-ts/spine-phaser/example/assets/sack.atlas → spine-ts/spine-phaser-v3/example/assets/sack.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/sack.png → spine-ts/spine-phaser-v3/example/assets/sack.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe-pma.atlas → spine-ts/spine-phaser-v3/example/assets/snowglobe-pma.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe-pma.png → spine-ts/spine-phaser-v3/example/assets/snowglobe-pma.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe-pma_2.png → spine-ts/spine-phaser-v3/example/assets/snowglobe-pma_2.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe-pma_3.png → spine-ts/spine-phaser-v3/example/assets/snowglobe-pma_3.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe-pma_4.png → spine-ts/spine-phaser-v3/example/assets/snowglobe-pma_4.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe-pma_5.png → spine-ts/spine-phaser-v3/example/assets/snowglobe-pma_5.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe-pro.json → spine-ts/spine-phaser-v3/example/assets/snowglobe-pro.json


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe-pro.skel → spine-ts/spine-phaser-v3/example/assets/snowglobe-pro.skel


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe.atlas → spine-ts/spine-phaser-v3/example/assets/snowglobe.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe.png → spine-ts/spine-phaser-v3/example/assets/snowglobe.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe_2.png → spine-ts/spine-phaser-v3/example/assets/snowglobe_2.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe_3.png → spine-ts/spine-phaser-v3/example/assets/snowglobe_3.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe_4.png → spine-ts/spine-phaser-v3/example/assets/snowglobe_4.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/snowglobe_5.png → spine-ts/spine-phaser-v3/example/assets/snowglobe_5.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/spineboy-pma.atlas → spine-ts/spine-phaser-v3/example/assets/spineboy-pma.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/spineboy-pma.png → spine-ts/spine-phaser-v3/example/assets/spineboy-pma.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/spineboy-pro.skel → spine-ts/spine-phaser-v3/example/assets/spineboy-pro.skel


+ 0 - 0
spine-ts/spine-phaser/example/assets/stretchyman-pma.atlas → spine-ts/spine-phaser-v3/example/assets/stretchyman-pma.atlas


+ 0 - 0
spine-ts/spine-phaser/example/assets/stretchyman-pma.png → spine-ts/spine-phaser-v3/example/assets/stretchyman-pma.png


+ 0 - 0
spine-ts/spine-phaser/example/assets/stretchyman-pro.skel → spine-ts/spine-phaser-v3/example/assets/stretchyman-pro.skel


+ 1 - 1
spine-ts/spine-phaser/example/basic-example.html → spine-ts/spine-phaser-v3/example/basic-example.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 0 - 0
spine-ts/spine-phaser/example/basic-vanilla-js-example.html → spine-ts/spine-phaser-v3/example/basic-vanilla-js-example.html


+ 1 - 1
spine-ts/spine-phaser/example/batching-test.html → spine-ts/spine-phaser-v3/example/batching-test.html

@@ -28,7 +28,7 @@
           {
             type: "scenePlugin",
             key: "spine.SpinePlugin",
-            url: "../dist/iife/spine-phaser.js",
+            url: "../dist/iife/spine-phaser-v3.js",
             sceneKey: "spine",
           },
         ],

+ 1 - 1
spine-ts/spine-phaser/example/blend-test.html → spine-ts/spine-phaser-v3/example/blend-test.html

@@ -28,7 +28,7 @@
             {
               type: "scenePlugin",
               key: "spine.SpinePlugin",
-              url: "../dist/iife/spine-phaser.js",
+              url: "../dist/iife/spine-phaser-v3.js",
               sceneKey: "spine",
             },
           ],

+ 1 - 1
spine-ts/spine-phaser/example/bounds-test.html → spine-ts/spine-phaser-v3/example/bounds-test.html

@@ -27,7 +27,7 @@
             {
               type: "scenePlugin",
               key: "spine.SpinePlugin",
-              url: "../dist/iife/spine-phaser.js",
+              url: "../dist/iife/spine-phaser-v3.js",
               sceneKey: "spine",
             },
           ],

+ 1 - 1
spine-ts/spine-phaser/example/camera-pipeline-test.html → spine-ts/spine-phaser-v3/example/camera-pipeline-test.html

@@ -26,7 +26,7 @@
               {
                 type: "scenePlugin",
                 key: "spine.SpinePlugin",
-                url: "../dist/iife/spine-phaser.js",
+                url: "../dist/iife/spine-phaser-v3.js",
                 sceneKey: "spine",
               },
             ],

+ 1 - 1
spine-ts/spine-phaser/example/canvas-test.html → spine-ts/spine-phaser-v3/example/canvas-test.html

@@ -26,7 +26,7 @@
             {
               type: "scenePlugin",
               key: "spine.SpinePlugin",
-              url: "../dist/iife/spine-phaser.js",
+              url: "../dist/iife/spine-phaser-v3.js",
               sceneKey: "spine",
             },
           ],

+ 1 - 1
spine-ts/spine-phaser/example/control-bones-example.html → spine-ts/spine-phaser-v3/example/control-bones-example.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 1 - 1
spine-ts/spine-phaser/example/custom-spine-object-type.html → spine-ts/spine-phaser-v3/example/custom-spine-object-type.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 1 - 1
spine-ts/spine-phaser/example/depth-test.html → spine-ts/spine-phaser-v3/example/depth-test.html

@@ -26,7 +26,7 @@
             {
               type: "scenePlugin",
               key: "spine.SpinePlugin",
-              url: "../dist/iife/spine-phaser.js",
+              url: "../dist/iife/spine-phaser-v3.js",
               sceneKey: "spine",
             },
           ],

+ 1 - 1
spine-ts/spine-phaser/example/events-example.html → spine-ts/spine-phaser-v3/example/events-example.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 1 - 1
spine-ts/spine-phaser/example/extended-class-test.html → spine-ts/spine-phaser-v3/example/extended-class-test.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 1 - 1
spine-ts/spine-phaser/example/inline-loading.html → spine-ts/spine-phaser-v3/example/inline-loading.html

@@ -5,7 +5,7 @@
 		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
 		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
 		<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-		<script src="../dist/iife/spine-phaser.js"></script>
+		<script src="../dist/iife/spine-phaser-v3.js"></script>
 		<link rel="stylesheet" href="../../index.css" />
 		<title>Spine Phaser Example</title>
 	</head>

+ 1 - 1
spine-ts/spine-phaser/example/mix-and-match-example.html → spine-ts/spine-phaser-v3/example/mix-and-match-example.html

@@ -26,7 +26,7 @@
             {
               type: "scenePlugin",
               key: "spine.SpinePlugin",
-              url: "../dist/iife/spine-phaser.js",
+              url: "../dist/iife/spine-phaser-v3.js",
               sceneKey: "spine",
             },
           ],

+ 1 - 1
spine-ts/spine-phaser/example/multi-scene-test.html → spine-ts/spine-phaser-v3/example/multi-scene-test.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 0 - 0
spine-ts/spine-phaser/example/phaser.png → spine-ts/spine-phaser-v3/example/phaser.png


+ 1 - 1
spine-ts/spine-phaser/example/physics.html → spine-ts/spine-phaser-v3/example/physics.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 1 - 1
spine-ts/spine-phaser/example/physics2.html → spine-ts/spine-phaser-v3/example/physics2.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 1 - 1
spine-ts/spine-phaser/example/physics3.html → spine-ts/spine-phaser-v3/example/physics3.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 1 - 1
spine-ts/spine-phaser/example/physics4.html → spine-ts/spine-phaser-v3/example/physics4.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>

+ 2 - 1
spine-ts/spine-phaser/example/render-to-texture-test.html → spine-ts/spine-phaser-v3/example/render-to-texture-test.html

@@ -26,7 +26,7 @@
             {
               type: "scenePlugin",
               key: "spine.SpinePlugin",
-              url: "../dist/iife/spine-phaser.js",
+              url: "../dist/iife/spine-phaser-v3.js",
               sceneKey: "spine",
             },
           ],
@@ -43,6 +43,7 @@
 
     function create() {
       const renderTexture = this.add.renderTexture(400, 300, 800, 600);
+      console.log(renderTexture.renderMode);
       const spineboy = this.add.spine(
         400,
         300,

+ 0 - 0
spine-ts/spine-phaser/example/typescript/README.md → spine-ts/spine-phaser-v3/example/typescript/README.md


+ 0 - 0
spine-ts/spine-phaser/example/typescript/assets/spineboy-pma.atlas → spine-ts/spine-phaser-v3/example/typescript/assets/spineboy-pma.atlas


+ 0 - 0
spine-ts/spine-phaser/example/typescript/assets/spineboy-pma.png → spine-ts/spine-phaser-v3/example/typescript/assets/spineboy-pma.png


+ 0 - 0
spine-ts/spine-phaser/example/typescript/assets/spineboy-pro.skel → spine-ts/spine-phaser-v3/example/typescript/assets/spineboy-pro.skel


+ 0 - 0
spine-ts/spine-phaser/example/typescript/index.html → spine-ts/spine-phaser-v3/example/typescript/index.html


+ 0 - 0
spine-ts/spine-phaser/example/typescript/index.ts → spine-ts/spine-phaser-v3/example/typescript/index.ts


+ 0 - 0
spine-ts/spine-phaser/example/typescript/package-lock.json → spine-ts/spine-phaser-v3/example/typescript/package-lock.json


+ 0 - 0
spine-ts/spine-phaser/example/typescript/package.json → spine-ts/spine-phaser-v3/example/typescript/package.json


+ 2 - 2
spine-ts/spine-phaser/example/visibility-test-container.html → spine-ts/spine-phaser-v3/example/visibility-test-container.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>
@@ -27,7 +27,7 @@
             {
               type: "scenePlugin",
               key: "spine.SpinePlugin",
-              url: "../dist/iife/spine-phaser.js",
+              url: "../dist/iife/spine-phaser-v3.js",
               sceneKey: "spine",
             },
           ],

+ 2 - 2
spine-ts/spine-phaser/example/visibility-test.html → spine-ts/spine-phaser-v3/example/visibility-test.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
-    <script src="../dist/iife/spine-phaser.js"></script>
+    <script src="../dist/iife/spine-phaser-v3.js"></script>
     <link rel="stylesheet" href="../../index.css" />
     <title>Spine Phaser Example</title>
   </head>
@@ -27,7 +27,7 @@
             {
               type: "scenePlugin",
               key: "spine.SpinePlugin",
-              url: "../dist/iife/spine-phaser.js",
+              url: "../dist/iife/spine-phaser-v3.js",
               sceneKey: "spine",
             },
           ],

部分文件因为文件数量过多而无法显示