mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 06:44:56 +08:00
24 lines
504 B
HTML
24 lines
504 B
HTML
<html>
|
|
<script src="../../build/spine-widget.js"></script>
|
|
<link rel="stylesheet" href="../css/spine-player.css">
|
|
|
|
<style>
|
|
body {
|
|
background: gray;
|
|
}
|
|
</style>
|
|
|
|
<body>
|
|
<div id="container" style="width: 100%; height: 100%;"></div>
|
|
</body>
|
|
<script>
|
|
new spine.SpinePlayer(document.getElementById("container"), {
|
|
jsonUrl: "assets/spineboy-ess.json",
|
|
atlasUrl: "assets/spineboy.atlas",
|
|
animations: ["walk", "jump"],
|
|
controlBones: ["root"],
|
|
backgroundColor: "#cccccc"
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |