mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
32 lines
662 B
HTML
32 lines
662 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<script src="../../build/spine-widget.js"></script>
|
|
<link rel="stylesheet" href="../css/spine-player.css">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
</head>
|
|
|
|
<style>
|
|
body {
|
|
background: gray;
|
|
margin: 0px;
|
|
}
|
|
</style>
|
|
|
|
<body>
|
|
<div id="container" style="width: 100%; height: 90vh;"></div>
|
|
</body>
|
|
<script>
|
|
new spine.SpinePlayer(document.getElementById("container"), {
|
|
jsonUrl: "assets/spineboy-pro.json",
|
|
atlasUrl: "assets/spineboy-pma.atlas",
|
|
premultipliedAlpha: true,
|
|
backgroundColor: "#cccccc",
|
|
viewport: {
|
|
debugRender: true,
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |