1.1.3 • Published 6 years ago

vue-steve v1.1.3

Weekly downloads
48
License
-
Repository
-
Last release
6 years ago

vue-steve

A Vue.js project, Minecraft's Steve-Model

Usage

npm install three --save
npm install vue-steve --save
<steve :skinUrl="skin" :followScope="scope"></steve>
import Steve from 'vue-steve'

export default {
    ...
    data() {
      return {
        skin: './xxx.png',
        scope: 'window'
      }
    }
    components: {
      Steve
    }
    ...
}

Demo

Vue-steve

Dependencies

three.js

Props

propvaluedefault
width画布宽度480
height画布高度640
pace步伐距离 1 ~ 106
speed速度 Number -20 ~ 202
rotationX水平旋转 Number(deg)10
rotationY垂直旋转 Number(deg)10
skinUrl自定义皮肤base64 or URL (32px*64px)steve-skin by base64
scale模型缩放 ≥ 01
followMouse视线是否跟随鼠标 Booleantrue
followScope视野跟随鼠标区域 "window"|"box""window"
walkable行走动作 Booleantrue
throttle节流时间(毫秒)8
1.1.3

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago