angry-pixel 1.1.11 → 1.1.13
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/lib/component/Animator.d.ts +13 -2
- package/lib/component/collider/BallCollider.d.ts +2 -2
- package/lib/component/collider/BoxCollider.d.ts +2 -2
- package/lib/component/collider/Collider.d.ts +6 -1
- package/lib/component/collider/EdgeCollider.d.ts +2 -2
- package/lib/component/collider/PolygonCollider.d.ts +2 -2
- package/lib/component/collider/TilemapCollider.d.ts +3 -3
- package/lib/component/rendering/TiledTilemapRenderer.d.ts +1 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.d.ts +1 -2
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/input/GamepadController.d.ts +2 -0
- package/package.json +3 -3
|
@@ -27,6 +27,7 @@ export declare class GamepadData {
|
|
|
27
27
|
private readonly _dpadAxes;
|
|
28
28
|
private readonly _leftStickAxes;
|
|
29
29
|
private readonly _rightStickAxes;
|
|
30
|
+
private _vibrating;
|
|
30
31
|
updateFromGamepad(gamepad: GamepadWithVibratorActuator): void;
|
|
31
32
|
get id(): string;
|
|
32
33
|
get connected(): boolean;
|
|
@@ -56,6 +57,7 @@ export declare class GamepadData {
|
|
|
56
57
|
get rightStickHorizontal(): number;
|
|
57
58
|
get rightStickVertical(): number;
|
|
58
59
|
get anyButtonPressed(): boolean;
|
|
60
|
+
get vibrating(): boolean;
|
|
59
61
|
vibrate(duration?: number, weakMagnitude?: number, strongMagnitude?: number, startDelay?: number): void;
|
|
60
62
|
}
|
|
61
63
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angry-pixel",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.13",
|
|
4
4
|
"description": "Lightweight 2D game engine made with TypeScript.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
41
41
|
"@typescript-eslint/eslint-plugin": "^5.50.0",
|
|
42
42
|
"@typescript-eslint/parser": "^5.50.0",
|
|
43
|
-
"eslint": "^8.
|
|
43
|
+
"eslint": "^8.45.0",
|
|
44
44
|
"prettier": "^2.1.2",
|
|
45
45
|
"rollup": "^2.49.0",
|
|
46
46
|
"rollup-plugin-terser": "^7.0.2",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"angry-pixel-2d-physics": "^1.0.1",
|
|
53
|
-
"angry-pixel-2d-renderer": "^1.0.
|
|
53
|
+
"angry-pixel-2d-renderer": "^1.0.5",
|
|
54
54
|
"angry-pixel-math": "^1.0.2"
|
|
55
55
|
}
|
|
56
56
|
}
|