mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-17 12:31:41 +08:00
27 lines
487 B
HTML
27 lines
487 B
HTML
<html>
|
|
<script src="../../build/spine-canvas.js"></script>
|
|
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
|
|
<body>
|
|
<center>
|
|
<canvas id="canvas" style="width: 640; height: 480"></canvas>
|
|
</center>
|
|
</body>
|
|
<script>
|
|
|
|
var lastFrameTime = Date.now() / 1000;
|
|
var canvas;
|
|
var assetManager;
|
|
var skeletonRenderer;
|
|
|
|
function init () {
|
|
assetManager = new spine.AssetManager(function(image) {
|
|
return CanvasTexture(image);
|
|
});
|
|
}
|
|
|
|
(function() {
|
|
init();
|
|
}());
|
|
|
|
</script>
|
|
</html> |