commit
3c54ab03c8
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>skinview3d</title>
|
||||
<link href="https://fonts.googleapis.com/css?family=Archivo+Black" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="skin_container"></div>
|
||||
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/89/three.min.js"></script>
|
||||
<script type="text/javascript" src="../build/skinview3d.js"></script>
|
||||
|
||||
<script>
|
||||
let skinViewer = new skinview3d.SkinViewer({
|
||||
domElement: document.getElementById("skin_container"),
|
||||
slim: true,
|
||||
width: 400,
|
||||
height: 400,
|
||||
skinUrl: "./1_8_texturemap_redux.png"
|
||||
});
|
||||
|
||||
let control = new skinview3d.SkinControl(skinViewer);
|
||||
skinViewer.animation = new skinview3d.CompositeAnimation();
|
||||
|
||||
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
||||
walk.speed = 1.5;
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -8,7 +8,10 @@
|
|||
"scripts": {
|
||||
"build": "rollup -c tools/rollup.module.js && rollup -c tools/rollup.browser.js && rollup -c tools/rollup.browser.min.js",
|
||||
"prepare": "npm test && rm -rf build && npm run build",
|
||||
"test": "eslint src/** tools/** && tslint -c tslint.json types/**.ts"
|
||||
"test": "eslint src/** tools/** && tslint -c tslint.json types/**.ts",
|
||||
"dev": "npm-run-all --parallel watch serve",
|
||||
"watch": "rollup -w -c tools/rollup.browser.js",
|
||||
"serve": "ws"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
@ -34,6 +37,8 @@
|
|||
"babel-plugin-external-helpers": "^6.22.0",
|
||||
"babel-preset-env": "^1.6.1",
|
||||
"eslint": "^4.16.0",
|
||||
"local-web-server": "^2.4.0",
|
||||
"npm-run-all": "^4.1.2",
|
||||
"rollup": "^0.55.3",
|
||||
"rollup-plugin-babel": "^3.0.3",
|
||||
"rollup-plugin-license": "^0.5.0",
|
||||
|
|
|
|||
Loading…
Reference in New Issue