cocos-creator-joystick demo
Online Address: https://yunyoujun.github.io/cocos-creator-joystick/
Joystick Demo
与 Player 解耦
Output:
Argument | Type | Default | Description |
---|---|---|---|
moveDir | Vec2 | cc.v2(0, 1) // 竖直向上 | 移动方向 |
speedType | String (normal/fast) | normal | 移动速度 |
Type
- Touch Place
- Full Screen
- Half Screen
- Only Joystick
- Player
- rotation
- move