mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-25 11:11:24 +08:00
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
This commit is contained in:
commit
168edf2aa0
@ -22,7 +22,10 @@
|
|||||||
|
|
||||||
create() {
|
create() {
|
||||||
const spineboy = this.add.spine(400, 500, 'spineboy-data', "spineboy-atlas");
|
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);
|
spineboy.animationState.setAnimation(0, "walk", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user