Skip to content

Commit

Permalink
[spine-ts][player] Add webplayer with audio in player exmaple html
Browse files Browse the repository at this point in the history
  • Loading branch information
daaaaa committed Dec 11, 2022
1 parent d158b9e commit edec640
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 36 deletions.
36 changes: 0 additions & 36 deletions spine-ts/spine-player/example/example-audio.html

This file was deleted.

12 changes: 12 additions & 0 deletions spine-ts/spine-player/example/example.html
Expand Up @@ -25,6 +25,7 @@
<button id="screenshot">Screenshot</button>
</div>
<img id="screenshot-image" src="" style="width: 400px;">
<div id="container-raptor-audio" style="width:640px; height:380px"></div>
</body>
<script>
// Creates a new spine player. The debugRender option enables
Expand Down Expand Up @@ -74,6 +75,17 @@
});
}
});

// Creates a new spine player with audio enabled.
new spine.SpinePlayer("container-raptor-audio", {
jsonUrl: "assets/raptor-pro.json",
atlasUrl: "assets/raptor-pma.atlas",
audioFolderPath: "assets/audio",
animation: "roar",
premultipliedAlpha: true,
backgroundColor: "#cccccc",
showControls: true
});
</script>
</body>

Expand Down

0 comments on commit edec640

Please sign in to comment.