|
@@ -2,7 +2,7 @@
|
|
|
<head>
|
|
|
<meta charset="UTF-8" />
|
|
|
<title>spine-pixi-v8</title>
|
|
|
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/pixi.min.js"></script>
|
|
|
+ <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/pixi.js"></script>
|
|
|
<script src="../dist/iife/spine-pixi-v8.js"></script>
|
|
|
<link rel="stylesheet" href="../../index.css">
|
|
|
</head>
|
|
@@ -20,7 +20,7 @@
|
|
|
backgroundColor: 0x2c3e50,
|
|
|
hello: true,
|
|
|
})
|
|
|
- document.body.appendChild(app.view);
|
|
|
+ document.body.appendChild(app.canvas);
|
|
|
|
|
|
// Pre-load the skeleton data and atlas. You can also load .json skeleton data.
|
|
|
PIXI.Assets.add({alias: "girlData", src: "./assets/celestial-circus-pro.skel"});
|
|
@@ -88,17 +88,17 @@
|
|
|
};
|
|
|
|
|
|
// Create the text label for the heading
|
|
|
- const textHeading = new PIXI.Text("Drag anywhere", fontStyle); // Button text and color
|
|
|
+ const textHeading = new PIXI.Text({ text: "Drag anywhere", style: fontStyle }); // Button text and color
|
|
|
textHeading.position.set(15, 15); // Set the position of the text within the button
|
|
|
buttonContainer.addChild(textHeading);
|
|
|
|
|
|
// Create the text label for the FPS counter
|
|
|
- const textFps = new PIXI.Text("0 fps", fontStyle);
|
|
|
+ const textFps = new PIXI.Text({ text: "0 fps", style: fontStyle });
|
|
|
textFps.position.set(15, 40);
|
|
|
buttonContainer.addChild(textFps);
|
|
|
|
|
|
// Create the text label for the button toggle fullscreen
|
|
|
- const textButton = new PIXI.Text("Fullscreen", fontStyle); // Button text and color
|
|
|
+ const textButton = new PIXI.Text({ text: "Fullscreen", style: fontStyle }); // Button text and color
|
|
|
textButton.position.set(15, 65); // Set the position of the text within the button
|
|
|
buttonContainer.addChild(textButton);
|
|
|
|