最近金山毒霸整了个青春版,然后衍生出了一个二刺螈形象,并且还有一个Live2d

于是乎,我将其搬到了博客上

只需要进行一个简简单单的引入即可

<!-- Copyrighted cubism SDK -->
<script src="https://xiamo.oss-cn-shenzhen.aliyuncs.com/live2d/live2dcubismcore.min.js"></script>
<!-- Load Pixi (dependency for cubism 2/4 integrated loader) -->
<script src="https://alioss.xiamoqwq.com/blog/npm/pixi.js@5.3.6/dist/pixi.min.js"></script>
<!-- Load cubism 4 integrated loader -->
<script src="https://alioss.xiamoqwq.com/blog/npm/pixi-live2d-display@0.3.1/dist/cubism4.min.js"></script>

<!-- Load pio and alternative loader -->
<link href="https://alioss.xiamoqwq.com/blog/gh/journey-ad/blog-img@76ba2b3/live2d/lib/pio.css" rel="stylesheet"
      type="text/css"/>
<script src="https://alioss.xiamoqwq.com/blog/gh/journey-ad/blog-img@76ba2b3/live2d/lib/pio.js"></script>
<script src="https://alioss.xiamoqwq.com/blog/gh/journey-ad/blog-img@76ba2b3/live2d/lib/pio_sdk4.js"></script>
<!-- 毒霸姬 -->
<script src="https://alioss.xiamoqwq.com//live2d/model/Duba/load_db.js"></script>

model.json中的动作还挺多的,我暂时则只加上了几个我觉得合适的动作来作为点击反馈

具体的js代码在这里捏

https://alioss.xiamoqwq.com//live2d/model/Duba/load_db.js


Ex - ploooosion!