@geoblocks/cesium-walk 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -24,8 +24,10 @@ import CesiumWalk, {WALK_BINDINGS} from '@geoblocks/cesium-walk';
|
|
|
24
24
|
|
|
25
25
|
// J jumps instead of Space
|
|
26
26
|
walkMode.input = new Controls({...WALK_BINDINGS, jump: {type: 'button', keys: ['KeyJ'], buttons: [2]}});
|
|
27
|
-
// touch controls
|
|
28
|
-
walkMode.input = {read: () => ({move: touchStick.vector
|
|
27
|
+
// touch controls besides the keyboard and the gamepad: a source, added up with them
|
|
28
|
+
walkMode.input = new Controls(WALK_BINDINGS, {sources: [{read: () => ({move: touchStick.vector})}]});
|
|
29
|
+
// instead of them, an AI, a replay: `move` no longer than 1, x right and y forward
|
|
30
|
+
walkMode.input = {read: () => ({move: aiMove, sprint: false, jump: false})};
|
|
29
31
|
```
|
|
30
32
|
|
|
31
33
|
## Installation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geoblocks/cesium-walk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@geoblocks/cesium-input": "^0.
|
|
24
|
+
"@geoblocks/cesium-input": "^0.2.0",
|
|
25
25
|
"@geoblocks/cesium-obstacles": "^0.4.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@cesium/core": ">=0.1.0",
|
|
29
29
|
"@cesium/engine": ">=10"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "df5df0b067cb2c8646428eec912f7157ad8cbd28"
|
|
32
32
|
}
|