live2d

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script src="https://l2dwidget.js.org/lib/L2Dwidget.min.js"></script>

	<script>
		L2Dwidget.on('*', name => {
			console.log(name);
		}).init({
			dialog: {
				enable: true, 							// 是否對話
				script: {
					'every idle 10s': '$hitokoto$', 	// 自動對話
					'tap body': '摸身體',
					'tap face': '摸頭'
				}
			}
		});
	</script>
</body>
</html>

 

  • 文獻

https://github.com/EYHN/hexo-helper-live2d/blob/master/README.zh-CN.md

https://www.jsdelivr.com/package/npm/live2d-widget-model-wanko

發佈了52 篇原創文章 · 獲贊 3 · 訪問量 6179
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章