From 6ec9637ed6d05fb113dcf0fb79c4cea818557be2 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 4 Sep 2023 10:35:24 +0200 Subject: [PATCH] [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. --- spine-ts/index.html | 3 ++ .../example/custom-spine-object-type.html | 49 +++++++++++++++++++ spine-ts/spine-phaser/src/SpineGameObject.ts | 2 +- spine-ts/spine-phaser/src/SpinePlugin.ts | 7 ++- spine-ts/spine-phaser/src/keys.ts | 1 - 5 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 spine-ts/spine-phaser/example/custom-spine-object-type.html diff --git a/spine-ts/index.html b/spine-ts/index.html index cbee081a6..99bd0ec89 100644 --- a/spine-ts/index.html +++ b/spine-ts/index.html @@ -83,6 +83,9 @@ >Render to texture test +
  • + Custom object type +
  • Player