mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Merge branch '4.0' into 4.1-beta
This commit is contained in:
commit
5a4f65b2ea
@ -6,7 +6,7 @@
|
|||||||
<script src="../dist/iife/spine-canvas.js"></script>
|
<script src="../dist/iife/spine-canvas.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style="margin: 0; padding: 0;">
|
<body style="margin: 0; padding: 0; background: #333">
|
||||||
<canvas id="canvas" style="width: 100%; height: 100vh;"></canvas>
|
<canvas id="canvas" style="width: 100%; height: 100vh;"></canvas>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
@ -45,6 +45,9 @@
|
|||||||
animationStateData.defaultMix = 0.2;
|
animationStateData.defaultMix = 0.2;
|
||||||
animationState = new spine.AnimationState(animationStateData);
|
animationState = new spine.AnimationState(animationStateData);
|
||||||
|
|
||||||
|
// Set the run animation, looping.
|
||||||
|
animationState.setAnimation(0, "run", true);
|
||||||
|
|
||||||
// Start rendering.
|
// Start rendering.
|
||||||
requestAnimationFrame(render);
|
requestAnimationFrame(render);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<script src="../dist/iife/spine-canvas.js"></script>
|
<script src="../dist/iife/spine-canvas.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style="margin: 0; padding: 0;">
|
<body style="margin: 0; padding: 0; background: #333">
|
||||||
<canvas id="canvas" style="width: 100%; height: 100vh;"></canvas>
|
<canvas id="canvas" style="width: 100%; height: 100vh;"></canvas>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user