diff --git a/spine-ts/spine-phaser/example/basic-example.html b/spine-ts/spine-phaser/example/basic-example.html index 84d85ddc0..06f0d17a1 100644 --- a/spine-ts/spine-phaser/example/basic-example.html +++ b/spine-ts/spine-phaser/example/basic-example.html @@ -22,13 +22,16 @@ create() { const spineboy = this.add.spine(400, 500, 'spineboy-data', "spineboy-atlas"); - spineboy.scale = 0.5; + spineboy.setInteractive(); + spineboy.displayWidth = 200; + spineboy.displayHeight = spineboy.height / spineboy.width * 200; + this.input.enableDebug(spineboy, 0xff00ff); spineboy.animationState.setAnimation(0, "walk", true); } } - + new Phaser.Game({ - type: Phaser.AUTO, + type: Phaser.AUTO, width: 800, height: 600, type: Phaser.WEBGL,