angry-pixel 1.2.6 → 1.2.7
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/index.cjs.js +2 -1
- package/lib/index.cjs.js.map +1 -0
- package/lib/index.d.ts +5 -41
- package/lib/index.esm.js +2 -1
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -0
- package/package.json +6 -30
- package/.github/workflows/analyzeCode.yml +0 -25
- package/.github/workflows/buildCode.yml +0 -23
- package/.github/workflows/main.yml +0 -15
- package/.github/workflows/setupNode.yml +0 -40
- package/api-docs/.nojekyll +0 -1
- package/api-docs/assets/highlight.css +0 -92
- package/api-docs/assets/main.js +0 -59
- package/api-docs/assets/navigation.js +0 -1
- package/api-docs/assets/search.js +0 -1
- package/api-docs/assets/style.css +0 -1383
- package/api-docs/classes/Animator.html +0 -128
- package/api-docs/classes/AudioPlayer.html +0 -131
- package/api-docs/classes/BallCollider.html +0 -132
- package/api-docs/classes/BoxCollider.html +0 -136
- package/api-docs/classes/Button.html +0 -125
- package/api-docs/classes/Camera.html +0 -114
- package/api-docs/classes/Component.html +0 -106
- package/api-docs/classes/EdgeCollider.html +0 -134
- package/api-docs/classes/Game.html +0 -24
- package/api-docs/classes/GameCamera.html +0 -163
- package/api-docs/classes/GameObject.html +0 -149
- package/api-docs/classes/GamepadController.html +0 -11
- package/api-docs/classes/GamepadData.html +0 -81
- package/api-docs/classes/KeyboardController.html +0 -43
- package/api-docs/classes/MaskRenderer.html +0 -119
- package/api-docs/classes/MouseController.html +0 -14
- package/api-docs/classes/PhysicsComponent.html +0 -107
- package/api-docs/classes/PolygonCollider.html +0 -134
- package/api-docs/classes/PreRenderComponent.html +0 -107
- package/api-docs/classes/Rectangle.html +0 -30
- package/api-docs/classes/RigidBody.html +0 -123
- package/api-docs/classes/Rotation.html +0 -5
- package/api-docs/classes/Scene.html +0 -73
- package/api-docs/classes/SpacePointer.html +0 -147
- package/api-docs/classes/Sprite.html +0 -20
- package/api-docs/classes/SpriteRenderer.html +0 -134
- package/api-docs/classes/TextRenderer.html +0 -138
- package/api-docs/classes/TiledTilemapRenderer.html +0 -127
- package/api-docs/classes/TilemapCollider.html +0 -124
- package/api-docs/classes/TilemapRenderer.html +0 -126
- package/api-docs/classes/TouchController.html +0 -8
- package/api-docs/classes/Transform.html +0 -124
- package/api-docs/classes/Vector2.html +0 -65
- package/api-docs/classes/VideoRenderer.html +0 -145
- package/api-docs/enums/BroadPhaseMethods.html +0 -3
- package/api-docs/enums/ButtonType.html +0 -3
- package/api-docs/enums/CollisionMethods.html +0 -3
- package/api-docs/enums/RigidBodyType.html +0 -4
- package/api-docs/enums/TextOrientation.html +0 -5
- package/api-docs/enums/TilemapOrientation.html +0 -5
- package/api-docs/functions/between.html +0 -5
- package/api-docs/functions/clamp.html +0 -5
- package/api-docs/functions/fixedRound.html +0 -4
- package/api-docs/functions/randomFloat.html +0 -4
- package/api-docs/functions/randomInt.html +0 -4
- package/api-docs/functions/range.html +0 -5
- package/api-docs/index.html +0 -37
- package/api-docs/interfaces/AnimationConfig.html +0 -10
- package/api-docs/interfaces/AnimatorOptions.html +0 -6
- package/api-docs/interfaces/AudioPlayerOptions.html +0 -8
- package/api-docs/interfaces/BallColliderOptions.html +0 -16
- package/api-docs/interfaces/BoxColliderOptions.html +0 -20
- package/api-docs/interfaces/ButtonOptions.html +0 -16
- package/api-docs/interfaces/ColliderComponent.html +0 -14
- package/api-docs/interfaces/CollisionData.html +0 -10
- package/api-docs/interfaces/EdgeColliderOptions.html +0 -18
- package/api-docs/interfaces/GameConfig.html +0 -28
- package/api-docs/interfaces/IAssetManager.html +0 -40
- package/api-docs/interfaces/ICollider.html +0 -11
- package/api-docs/interfaces/ICollision.html +0 -4
- package/api-docs/interfaces/ICollisionResolution.html +0 -4
- package/api-docs/interfaces/IDomManager.html +0 -6
- package/api-docs/interfaces/IGameObjectManager.html +0 -49
- package/api-docs/interfaces/IInputManager.html +0 -12
- package/api-docs/interfaces/IPhysicsManager.html +0 -8
- package/api-docs/interfaces/IRenderManager.html +0 -7
- package/api-docs/interfaces/ISceneManager.html +0 -18
- package/api-docs/interfaces/ITimeManager.html +0 -16
- package/api-docs/interfaces/MaskRendererOptions.html +0 -18
- package/api-docs/interfaces/PolygonColliderOptions.html +0 -18
- package/api-docs/interfaces/RigidBodyOptions.html +0 -17
- package/api-docs/interfaces/Slice.html +0 -5
- package/api-docs/interfaces/SpriteConfig.html +0 -10
- package/api-docs/interfaces/SpriteRendererOptions.html +0 -32
- package/api-docs/interfaces/TextRendererOptions.html +0 -38
- package/api-docs/interfaces/TiledChunk.html +0 -7
- package/api-docs/interfaces/TiledLayer.html +0 -17
- package/api-docs/interfaces/TiledTilemap.html +0 -9
- package/api-docs/interfaces/TiledTilemapRendererOptions.html +0 -18
- package/api-docs/interfaces/TilemapColliderOptions.html +0 -12
- package/api-docs/interfaces/TilemapRendererOptions.html +0 -22
- package/api-docs/interfaces/Tileset.html +0 -13
- package/api-docs/interfaces/TouchInteraction.html +0 -6
- package/api-docs/interfaces/VideoRendererOptions.html +0 -34
- package/api-docs/modules.html +0 -85
- package/api-docs/types/CollisionMatrix.html +0 -1
- package/lib/component/Animation.d.ts +0 -12
- package/lib/component/Animator.d.ts +0 -139
- package/lib/component/AudioPlayer.d.ts +0 -97
- package/lib/component/Button.d.ts +0 -117
- package/lib/component/Camera.d.ts +0 -47
- package/lib/component/RigidBody.d.ts +0 -97
- package/lib/component/Sprite.d.ts +0 -22
- package/lib/component/Transform.d.ts +0 -65
- package/lib/component/collider/BallCollider.d.ts +0 -73
- package/lib/component/collider/BoxCollider.d.ts +0 -90
- package/lib/component/collider/Collider.d.ts +0 -82
- package/lib/component/collider/EdgeCollider.d.ts +0 -81
- package/lib/component/collider/PolygonCollider.d.ts +0 -92
- package/lib/component/collider/TilemapCollider.d.ts +0 -71
- package/lib/component/rendering/MaskRenderer.d.ts +0 -83
- package/lib/component/rendering/Sprite.d.ts +0 -61
- package/lib/component/rendering/SpriteRenderer.d.ts +0 -133
- package/lib/component/rendering/TextRenderer.d.ts +0 -145
- package/lib/component/rendering/TiledTilemapRenderer.d.ts +0 -186
- package/lib/component/rendering/TilemapRenderer.d.ts +0 -170
- package/lib/component/rendering/VideoRenderer.d.ts +0 -158
- package/lib/core/Component.d.ts +0 -203
- package/lib/core/Game.d.ts +0 -112
- package/lib/core/GameActor.d.ts +0 -131
- package/lib/core/GameConfig.d.ts +0 -61
- package/lib/core/GameObject.d.ts +0 -196
- package/lib/core/Scene.d.ts +0 -45
- package/lib/core/facades/AssetManagerFacade.d.ts +0 -51
- package/lib/core/facades/DomManagerFacade.d.ts +0 -8
- package/lib/core/facades/GameObjectManagerFacade.d.ts +0 -70
- package/lib/core/facades/InputManagerFacade.d.ts +0 -13
- package/lib/core/facades/SceneManagerFacade.d.ts +0 -18
- package/lib/core/facades/TimeManagerFacade.d.ts +0 -11
- package/lib/core/ioc/Config.d.ts +0 -4
- package/lib/core/managers/AssetManager.d.ts +0 -95
- package/lib/core/managers/DomManager.d.ts +0 -23
- package/lib/core/managers/GameObjectManager.d.ts +0 -118
- package/lib/core/managers/HeadlessIterationManager.d.ts +0 -33
- package/lib/core/managers/IterationManager.d.ts +0 -63
- package/lib/core/managers/SceneManager.d.ts +0 -93
- package/lib/core/managers/TimeManager.d.ts +0 -73
- package/lib/gameObject/GameCamera.d.ts +0 -38
- package/lib/gameObject/SpacePointer.d.ts +0 -15
- package/lib/input/GamepadController.d.ts +0 -225
- package/lib/input/InputManager.d.ts +0 -37
- package/lib/input/KeyboardController.d.ts +0 -81
- package/lib/input/MouseController.d.ts +0 -56
- package/lib/input/TouchController.d.ts +0 -45
- package/lib/utils/Container.d.ts +0 -13
- package/lib/utils/Exception.d.ts +0 -5
- package/lib/utils/UUID.d.ts +0 -1
- package/typedoc.json +0 -13
package/api-docs/modules.html
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Angry Pixel Engine</title><meta name="description" content="Documentation for Angry Pixel Engine"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">Angry Pixel Engine</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h2>Angry Pixel Engine</h2></div><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><h3 class="tsd-index-heading uppercase">Index</h3><section class="tsd-index-section"><h3 class="tsd-index-heading">Core</h3><div class="tsd-index-list"><a href="enums/BroadPhaseMethods.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Broad<wbr/>Phase<wbr/>Methods</span></a>
|
|
2
|
-
<a href="enums/CollisionMethods.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Collision<wbr/>Methods</span></a>
|
|
3
|
-
<a href="enums/RigidBodyType.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Rigid<wbr/>Body<wbr/>Type</span></a>
|
|
4
|
-
<a href="enums/TextOrientation.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Text<wbr/>Orientation</span></a>
|
|
5
|
-
<a href="enums/TilemapOrientation.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Tilemap<wbr/>Orientation</span></a>
|
|
6
|
-
<a href="classes/Component.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Component</span></a>
|
|
7
|
-
<a href="classes/Game.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Game</span></a>
|
|
8
|
-
<a href="classes/GameObject.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Game<wbr/>Object</span></a>
|
|
9
|
-
<a href="classes/PhysicsComponent.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Physics<wbr/>Component</span></a>
|
|
10
|
-
<a href="classes/PreRenderComponent.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pre<wbr/>Render<wbr/>Component</span></a>
|
|
11
|
-
<a href="classes/Rectangle.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Rectangle</span></a>
|
|
12
|
-
<a href="classes/Rotation.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Rotation</span></a>
|
|
13
|
-
<a href="classes/Scene.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Scene</span></a>
|
|
14
|
-
<a href="classes/Vector2.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Vector2</span></a>
|
|
15
|
-
<a href="interfaces/GameConfig.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Game<wbr/>Config</span></a>
|
|
16
|
-
<a href="interfaces/ICollider.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>ICollider</span></a>
|
|
17
|
-
<a href="interfaces/ICollision.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>ICollision</span></a>
|
|
18
|
-
<a href="interfaces/ICollisionResolution.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>ICollision<wbr/>Resolution</span></a>
|
|
19
|
-
<a href="interfaces/IPhysicsManager.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IPhysics<wbr/>Manager</span></a>
|
|
20
|
-
<a href="interfaces/IRenderManager.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IRender<wbr/>Manager</span></a>
|
|
21
|
-
<a href="interfaces/Slice.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Slice</span></a>
|
|
22
|
-
<a href="types/CollisionMatrix.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2097152"></use></svg><span>Collision<wbr/>Matrix</span></a>
|
|
23
|
-
<a href="functions/between.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>between</span></a>
|
|
24
|
-
<a href="functions/clamp.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>clamp</span></a>
|
|
25
|
-
<a href="functions/fixedRound.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>fixed<wbr/>Round</span></a>
|
|
26
|
-
<a href="functions/randomFloat.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>random<wbr/>Float</span></a>
|
|
27
|
-
<a href="functions/randomInt.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>random<wbr/>Int</span></a>
|
|
28
|
-
<a href="functions/range.html" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>range</span></a>
|
|
29
|
-
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Components</h3><div class="tsd-index-list"><a href="enums/ButtonType.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Button<wbr/>Type</span></a>
|
|
30
|
-
<a href="classes/Animator.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Animator</span></a>
|
|
31
|
-
<a href="classes/AudioPlayer.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Audio<wbr/>Player</span></a>
|
|
32
|
-
<a href="classes/BallCollider.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Ball<wbr/>Collider</span></a>
|
|
33
|
-
<a href="classes/BoxCollider.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Box<wbr/>Collider</span></a>
|
|
34
|
-
<a href="classes/Button.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Button</span></a>
|
|
35
|
-
<a href="classes/Camera.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Camera</span></a>
|
|
36
|
-
<a href="classes/EdgeCollider.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Edge<wbr/>Collider</span></a>
|
|
37
|
-
<a href="classes/MaskRenderer.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mask<wbr/>Renderer</span></a>
|
|
38
|
-
<a href="classes/PolygonCollider.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Polygon<wbr/>Collider</span></a>
|
|
39
|
-
<a href="classes/RigidBody.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Rigid<wbr/>Body</span></a>
|
|
40
|
-
<a href="classes/Sprite.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Sprite</span></a>
|
|
41
|
-
<a href="classes/SpriteRenderer.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Sprite<wbr/>Renderer</span></a>
|
|
42
|
-
<a href="classes/TextRenderer.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Text<wbr/>Renderer</span></a>
|
|
43
|
-
<a href="classes/TiledTilemapRenderer.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Tiled<wbr/>Tilemap<wbr/>Renderer</span></a>
|
|
44
|
-
<a href="classes/TilemapCollider.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Tilemap<wbr/>Collider</span></a>
|
|
45
|
-
<a href="classes/TilemapRenderer.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Tilemap<wbr/>Renderer</span></a>
|
|
46
|
-
<a href="classes/Transform.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Transform</span></a>
|
|
47
|
-
<a href="classes/VideoRenderer.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Video<wbr/>Renderer</span></a>
|
|
48
|
-
<a href="interfaces/AnimationConfig.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Animation<wbr/>Config</span></a>
|
|
49
|
-
<a href="interfaces/AnimatorOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Animator<wbr/>Options</span></a>
|
|
50
|
-
<a href="interfaces/AudioPlayerOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Audio<wbr/>Player<wbr/>Options</span></a>
|
|
51
|
-
<a href="interfaces/BallColliderOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Ball<wbr/>Collider<wbr/>Options</span></a>
|
|
52
|
-
<a href="interfaces/BoxColliderOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Box<wbr/>Collider<wbr/>Options</span></a>
|
|
53
|
-
<a href="interfaces/ButtonOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Button<wbr/>Options</span></a>
|
|
54
|
-
<a href="interfaces/ColliderComponent.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Collider<wbr/>Component</span></a>
|
|
55
|
-
<a href="interfaces/CollisionData.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Collision<wbr/>Data</span></a>
|
|
56
|
-
<a href="interfaces/EdgeColliderOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Edge<wbr/>Collider<wbr/>Options</span></a>
|
|
57
|
-
<a href="interfaces/MaskRendererOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Mask<wbr/>Renderer<wbr/>Options</span></a>
|
|
58
|
-
<a href="interfaces/PolygonColliderOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Polygon<wbr/>Collider<wbr/>Options</span></a>
|
|
59
|
-
<a href="interfaces/RigidBodyOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Rigid<wbr/>Body<wbr/>Options</span></a>
|
|
60
|
-
<a href="interfaces/SpriteConfig.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Sprite<wbr/>Config</span></a>
|
|
61
|
-
<a href="interfaces/SpriteRendererOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Sprite<wbr/>Renderer<wbr/>Options</span></a>
|
|
62
|
-
<a href="interfaces/TextRendererOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Text<wbr/>Renderer<wbr/>Options</span></a>
|
|
63
|
-
<a href="interfaces/TiledChunk.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Tiled<wbr/>Chunk</span></a>
|
|
64
|
-
<a href="interfaces/TiledLayer.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Tiled<wbr/>Layer</span></a>
|
|
65
|
-
<a href="interfaces/TiledTilemap.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Tiled<wbr/>Tilemap</span></a>
|
|
66
|
-
<a href="interfaces/TiledTilemapRendererOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Tiled<wbr/>Tilemap<wbr/>Renderer<wbr/>Options</span></a>
|
|
67
|
-
<a href="interfaces/TilemapColliderOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Tilemap<wbr/>Collider<wbr/>Options</span></a>
|
|
68
|
-
<a href="interfaces/TilemapRendererOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Tilemap<wbr/>Renderer<wbr/>Options</span></a>
|
|
69
|
-
<a href="interfaces/Tileset.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Tileset</span></a>
|
|
70
|
-
<a href="interfaces/VideoRendererOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Video<wbr/>Renderer<wbr/>Options</span></a>
|
|
71
|
-
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Managers</h3><div class="tsd-index-list"><a href="interfaces/IAssetManager.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IAsset<wbr/>Manager</span></a>
|
|
72
|
-
<a href="interfaces/IDomManager.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IDom<wbr/>Manager</span></a>
|
|
73
|
-
<a href="interfaces/IGameObjectManager.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IGame<wbr/>Object<wbr/>Manager</span></a>
|
|
74
|
-
<a href="interfaces/IInputManager.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IInput<wbr/>Manager</span></a>
|
|
75
|
-
<a href="interfaces/ISceneManager.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IScene<wbr/>Manager</span></a>
|
|
76
|
-
<a href="interfaces/ITimeManager.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>ITime<wbr/>Manager</span></a>
|
|
77
|
-
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Game Objects</h3><div class="tsd-index-list"><a href="classes/GameCamera.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Game<wbr/>Camera</span></a>
|
|
78
|
-
<a href="classes/SpacePointer.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Space<wbr/>Pointer</span></a>
|
|
79
|
-
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Input</h3><div class="tsd-index-list"><a href="classes/GamepadController.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Gamepad<wbr/>Controller</span></a>
|
|
80
|
-
<a href="classes/GamepadData.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Gamepad<wbr/>Data</span></a>
|
|
81
|
-
<a href="classes/KeyboardController.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Keyboard<wbr/>Controller</span></a>
|
|
82
|
-
<a href="classes/MouseController.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mouse<wbr/>Controller</span></a>
|
|
83
|
-
<a href="classes/TouchController.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Touch<wbr/>Controller</span></a>
|
|
84
|
-
<a href="interfaces/TouchInteraction.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Touch<wbr/>Interaction</span></a>
|
|
85
|
-
</div></section></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg><span>Angry Pixel Engine</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base="."><details class="tsd-index-accordion" data-key="Core"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg><span>Core</span></summary><div class="tsd-accordion-details"><ul class="tsd-nested-navigation"><li><a href="enums/BroadPhaseMethods.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>BroadPhaseMethods</a></li><li><a href="enums/CollisionMethods.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>CollisionMethods</a></li><li><a href="enums/RigidBodyType.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>RigidBodyType</a></li><li><a href="enums/TextOrientation.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>TextOrientation</a></li><li><a href="enums/TilemapOrientation.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>TilemapOrientation</a></li><li><a href="classes/Component.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Component</a></li><li><a href="classes/Game.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Game</a></li><li><a href="classes/GameObject.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>GameObject</a></li><li><a href="classes/PhysicsComponent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>PhysicsComponent</a></li><li><a href="classes/PreRenderComponent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>PreRenderComponent</a></li><li><a href="classes/Rectangle.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Rectangle</a></li><li><a href="classes/Rotation.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Rotation</a></li><li><a href="classes/Scene.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Scene</a></li><li><a href="classes/Vector2.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Vector2</a></li><li><a href="interfaces/GameConfig.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>GameConfig</a></li><li><a href="interfaces/ICollider.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>ICollider</a></li><li><a href="interfaces/ICollision.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>ICollision</a></li><li><a href="interfaces/ICollisionResolution.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>ICollisionResolution</a></li><li><a href="interfaces/IPhysicsManager.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>IPhysicsManager</a></li><li><a href="interfaces/IRenderManager.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>IRenderManager</a></li></ul></div></details><li>Loading...</li></ul></nav></div></div></div><div class="tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><svg style="display: none"><g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-8192"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-16384"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-32768"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-524288"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g><g id="icon-chevronDown"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></g><g id="icon-chevronSmall"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></g><g id="icon-menu"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></g><g id="icon-search"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></g><g id="icon-anchor"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g></svg></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>CollisionMatrix | Angry Pixel Engine</title><meta name="description" content="Documentation for Angry Pixel Engine"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Angry Pixel Engine</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">Angry Pixel Engine</a></li><li><a href="CollisionMatrix.html">CollisionMatrix</a></li></ul><h1>Type alias CollisionMatrix</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">Collision<wbr/>Matrix</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in node_modules/angry-pixel-2d-physics/lib/collision/CollisionManager.d.ts:15</li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg><span>Angry Pixel Engine</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><details class="tsd-index-accordion" data-key="Core"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg><span>Core</span></summary><div class="tsd-accordion-details"><ul class="tsd-nested-navigation"><li><a href="../enums/BroadPhaseMethods.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>BroadPhaseMethods</a></li><li><a href="../enums/CollisionMethods.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>CollisionMethods</a></li><li><a href="../enums/RigidBodyType.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>RigidBodyType</a></li><li><a href="../enums/TextOrientation.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>TextOrientation</a></li><li><a href="../enums/TilemapOrientation.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>TilemapOrientation</a></li><li><a href="../classes/Component.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Component</a></li><li><a href="../classes/Game.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Game</a></li><li><a href="../classes/GameObject.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>GameObject</a></li><li><a href="../classes/PhysicsComponent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>PhysicsComponent</a></li><li><a href="../classes/PreRenderComponent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>PreRenderComponent</a></li><li><a href="../classes/Rectangle.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Rectangle</a></li><li><a href="../classes/Rotation.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Rotation</a></li><li><a href="../classes/Scene.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Scene</a></li><li><a href="../classes/Vector2.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Vector2</a></li><li><a href="../interfaces/GameConfig.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>GameConfig</a></li><li><a href="../interfaces/ICollider.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>ICollider</a></li><li><a href="../interfaces/ICollision.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>ICollision</a></li><li><a href="../interfaces/ICollisionResolution.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>ICollisionResolution</a></li><li><a href="../interfaces/IPhysicsManager.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>IPhysicsManager</a></li><li><a href="../interfaces/IRenderManager.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>IRenderManager</a></li></ul></div></details><li>Loading...</li></ul></nav></div></div></div><div class="tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><svg style="display: none"><g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-8192"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-16384"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-32768"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-524288"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g><g id="icon-chevronDown"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></g><g id="icon-chevronSmall"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></g><g id="icon-menu"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></g><g id="icon-search"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></g><g id="icon-anchor"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g></svg></body></html>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Sprite } from "./Sprite";
|
|
2
|
-
export interface AnimationConfig {
|
|
3
|
-
sprites: Sprite[];
|
|
4
|
-
loop: boolean;
|
|
5
|
-
framerate: number;
|
|
6
|
-
}
|
|
7
|
-
export declare class Animation {
|
|
8
|
-
sprites: Sprite[];
|
|
9
|
-
framerate: number;
|
|
10
|
-
loop: boolean;
|
|
11
|
-
constructor(config: AnimationConfig);
|
|
12
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { EngineComponent } from "../core/Component";
|
|
2
|
-
import { SpriteRenderer } from "./rendering/SpriteRenderer";
|
|
3
|
-
import { Sprite } from "./rendering/Sprite";
|
|
4
|
-
import { InitOptions } from "../core/GameActor";
|
|
5
|
-
/**
|
|
6
|
-
* Animation configuration options
|
|
7
|
-
* @public
|
|
8
|
-
* @category Components
|
|
9
|
-
* @example
|
|
10
|
-
* ```js
|
|
11
|
-
animator.addAnimation({
|
|
12
|
-
sprites: [0, 16, 32, 48].map(
|
|
13
|
-
(x: number) =>
|
|
14
|
-
new Sprite({
|
|
15
|
-
image: assetManager.getImage("spritesheet.png"),
|
|
16
|
-
smooth: false,
|
|
17
|
-
slice: {x, y: 64, width: 16, height: 16),
|
|
18
|
-
})
|
|
19
|
-
),
|
|
20
|
-
framerate: 10,
|
|
21
|
-
loop: true,
|
|
22
|
-
});
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export interface AnimationConfig {
|
|
26
|
-
/** Array of sprites to represent each animation frame */
|
|
27
|
-
sprites: Sprite[];
|
|
28
|
-
/** Plays the animation in a loop */
|
|
29
|
-
loop: boolean;
|
|
30
|
-
/** Frame rate in seconds */
|
|
31
|
-
framerate: number;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Animator configuration options
|
|
35
|
-
* @public
|
|
36
|
-
* @category Components
|
|
37
|
-
* @example
|
|
38
|
-
* ```js
|
|
39
|
-
this.addComponent(Animator, {
|
|
40
|
-
spriteRenderer: this.getComponent(SpriteRenderer),
|
|
41
|
-
});
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export interface AnimatorOptions extends InitOptions {
|
|
45
|
-
/** The SpriteRenderer component in which the animation will be rendered */
|
|
46
|
-
spriteRenderer: SpriteRenderer;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* The Animator component is used to render sets of sprites as animations.
|
|
50
|
-
* @public
|
|
51
|
-
* @category Components
|
|
52
|
-
* @example
|
|
53
|
-
* ```js
|
|
54
|
-
const animator = this.addComponent(Animator, {
|
|
55
|
-
spriteRenderer: this.getComponent(SpriteRenderer),
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
animator.addAnimation({
|
|
59
|
-
sprites: [0, 16, 32, 48].map(
|
|
60
|
-
(x: number) =>
|
|
61
|
-
new Sprite({
|
|
62
|
-
image: assetManager.getImage("spritesheet.png"),
|
|
63
|
-
smooth: false,
|
|
64
|
-
slice: {x, y: 64, width: 16, height: 16),
|
|
65
|
-
})
|
|
66
|
-
),
|
|
67
|
-
framerate: 10,
|
|
68
|
-
loop: true,
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
animator.playAnimation();
|
|
72
|
-
* ```
|
|
73
|
-
* @example
|
|
74
|
-
* ```js
|
|
75
|
-
const animator = this.addComponent(Animator, {
|
|
76
|
-
spriteRenderer: this.getComponent(SpriteRenderer),
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
animator.addAnimation({
|
|
80
|
-
sprites: [0, 16, 32, 48].map(
|
|
81
|
-
(x: number) =>
|
|
82
|
-
new Sprite({
|
|
83
|
-
image: assetManager.getImage("spritesheet.png"),
|
|
84
|
-
smooth: false,
|
|
85
|
-
slice: {x, y: 64, width: 16, height: 16),
|
|
86
|
-
})
|
|
87
|
-
),
|
|
88
|
-
framerate: 10,
|
|
89
|
-
loop: true,
|
|
90
|
-
}, "idle", 10);
|
|
91
|
-
|
|
92
|
-
animator.playAnimation("idle");
|
|
93
|
-
* ```
|
|
94
|
-
*/
|
|
95
|
-
export declare class Animator extends EngineComponent {
|
|
96
|
-
private spriteRenderer;
|
|
97
|
-
private animations;
|
|
98
|
-
private currentAnimation;
|
|
99
|
-
private paused;
|
|
100
|
-
protected init({ spriteRenderer }: AnimatorOptions): void;
|
|
101
|
-
protected update(): void;
|
|
102
|
-
/**
|
|
103
|
-
* Adds an animation to the component
|
|
104
|
-
* @param animation The animation config object
|
|
105
|
-
* @param name The name to identify the animation. Optional if the animator will only play one animation.
|
|
106
|
-
* @param framerate [optional] Overwrites the framerate
|
|
107
|
-
* @returns The animator instance
|
|
108
|
-
*/
|
|
109
|
-
addAnimation(animation: AnimationConfig, name?: string, framerate?: number): this;
|
|
110
|
-
/**
|
|
111
|
-
* Plays the animation
|
|
112
|
-
* @param name The name to identify the animation. Optional if the animator will only play one animation.
|
|
113
|
-
* @throws Exception when animation name does not exist
|
|
114
|
-
*/
|
|
115
|
-
playAnimation(name?: string): void;
|
|
116
|
-
/**
|
|
117
|
-
* Pauses the current animation
|
|
118
|
-
*/
|
|
119
|
-
pause(): void;
|
|
120
|
-
/**
|
|
121
|
-
* Resumes the current animation
|
|
122
|
-
*/
|
|
123
|
-
resume(): void;
|
|
124
|
-
/**
|
|
125
|
-
* Stops the current animation
|
|
126
|
-
*/
|
|
127
|
-
stopAnimation(): void;
|
|
128
|
-
/**
|
|
129
|
-
* Returns TRUE if the current animatio is playing, FALSE instead
|
|
130
|
-
* @param name The name to identify the animation. Optional if the animator will only play one animation
|
|
131
|
-
* @returns TRUE if the current animatio is playing, FALSE instead
|
|
132
|
-
*/
|
|
133
|
-
isPlayingAnimation(name?: string): boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Returns TRUE if the current animatio is paused, FALSE instead
|
|
136
|
-
* @returns TRUE if the current animatio is paused, FALSE instead
|
|
137
|
-
*/
|
|
138
|
-
isPaused(): boolean;
|
|
139
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { EngineComponent } from "../core/Component";
|
|
2
|
-
import { InitOptions } from "../core/GameActor";
|
|
3
|
-
/**
|
|
4
|
-
* AudioPlayer configuration options
|
|
5
|
-
* @public
|
|
6
|
-
* @category Components
|
|
7
|
-
* @example
|
|
8
|
-
* ```js
|
|
9
|
-
* const audioPlayer = this.addComponent(AudioPlayer, {
|
|
10
|
-
* volume: 1,
|
|
11
|
-
* loop: true,
|
|
12
|
-
* });
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export interface AudioPlayerOptions extends InitOptions {
|
|
16
|
-
/** [optional] The initial volume. Values between 1 and 0. */
|
|
17
|
-
volume?: number;
|
|
18
|
-
/** [optional] Plays the audio in loop */
|
|
19
|
-
loop?: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* The AudioPlayer component is used to play audio files and audio clips, like music and sound fx.
|
|
23
|
-
* @public
|
|
24
|
-
* @category Components
|
|
25
|
-
* @example
|
|
26
|
-
* ```js
|
|
27
|
-
* const audioPlayer = this.addComponent(AudioPlayer);
|
|
28
|
-
* audioPlayer.addAudioSource(AssetManager.getAudio("audio.ogg"), "AudioName");
|
|
29
|
-
* audioPlayer.loadAudioSource("AudioName", true, 1);
|
|
30
|
-
* audioPlayer.play();
|
|
31
|
-
*
|
|
32
|
-
* // plays a clip only once
|
|
33
|
-
* audioPlayer.playClip(AssetManager.getAudio("clip.ogg"), 1);
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export declare class AudioPlayer extends EngineComponent {
|
|
37
|
-
/** @private */
|
|
38
|
-
readonly allowMultiple: boolean;
|
|
39
|
-
private audioContext;
|
|
40
|
-
private tracks;
|
|
41
|
-
private audioSourceCache;
|
|
42
|
-
private _audioSource;
|
|
43
|
-
private _volume;
|
|
44
|
-
private _loop;
|
|
45
|
-
private _playing;
|
|
46
|
-
private _paused;
|
|
47
|
-
/** The loaded audio source element */
|
|
48
|
-
get audioSource(): HTMLAudioElement;
|
|
49
|
-
/** The loaded audio volume */
|
|
50
|
-
set volume(volume: number);
|
|
51
|
-
/** The loaded audio volume */
|
|
52
|
-
get volume(): number;
|
|
53
|
-
/** Plays the loaded audio in loop */
|
|
54
|
-
set loop(loop: boolean);
|
|
55
|
-
/** Plays the loaded audio in loop */
|
|
56
|
-
get loop(): boolean;
|
|
57
|
-
/** The loaded audio is playing */
|
|
58
|
-
get playing(): boolean;
|
|
59
|
-
/** The loaded audio is paused */
|
|
60
|
-
get paused(): boolean;
|
|
61
|
-
protected init({ loop, volume }?: AudioPlayerOptions): void;
|
|
62
|
-
/**
|
|
63
|
-
* Play once the given audio source
|
|
64
|
-
* @param audioSource The audio source element
|
|
65
|
-
* @param volume [optional] The audio volume. Values between 1 and 0.
|
|
66
|
-
*/
|
|
67
|
-
playClip(audioSource: HTMLAudioElement, volume?: number): void;
|
|
68
|
-
/**
|
|
69
|
-
* Add a new audio source
|
|
70
|
-
* @param audioSource The audio source element
|
|
71
|
-
* @param name The name to identify the audio source. Optional if the AudioPlayer will only play one audio.
|
|
72
|
-
*/
|
|
73
|
-
addAudioSource(audioSource: HTMLAudioElement, name?: string): void;
|
|
74
|
-
/**
|
|
75
|
-
* Load the given audio source (if there is other audio source playing, it will stop)
|
|
76
|
-
* @param audioSourceName The name to identify the audio source
|
|
77
|
-
* @param loop [optional] Play the audio in loop
|
|
78
|
-
* @param volume [optional] The audio volume. Values between 1 and 0.
|
|
79
|
-
*/
|
|
80
|
-
loadAudioSource(audioSourceName: string, loop?: boolean, volume?: number): void;
|
|
81
|
-
/**
|
|
82
|
-
* Play the loaded audio source
|
|
83
|
-
*/
|
|
84
|
-
play(): void;
|
|
85
|
-
/**
|
|
86
|
-
* Stop playing the current audio source
|
|
87
|
-
*/
|
|
88
|
-
stop(): void;
|
|
89
|
-
/**
|
|
90
|
-
* Plause the current audio source
|
|
91
|
-
*/
|
|
92
|
-
pause(): void;
|
|
93
|
-
private audioEventHandler;
|
|
94
|
-
private userInputEventHandler;
|
|
95
|
-
protected onActiveChange(): void;
|
|
96
|
-
protected onDestroy(): void;
|
|
97
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { EngineComponent } from "../core/Component";
|
|
2
|
-
import { InitOptions } from "../core/GameActor";
|
|
3
|
-
import { Vector2 } from "angry-pixel-math";
|
|
4
|
-
/** @category Components */
|
|
5
|
-
export declare enum ButtonType {
|
|
6
|
-
Rectangle = 0,
|
|
7
|
-
Circumference = 1
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Button configuration options
|
|
11
|
-
* @public
|
|
12
|
-
* @category Components
|
|
13
|
-
* @example
|
|
14
|
-
* ```js
|
|
15
|
-
* cosnt button = this.addComponent(Button, {
|
|
16
|
-
type: ButtonType.Rectangle,
|
|
17
|
-
width: 64,
|
|
18
|
-
height: 64,
|
|
19
|
-
touchEnabled: true,
|
|
20
|
-
offset: new Vector2(0, 0),
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
cosnt button = this.addComponent(Button, {
|
|
24
|
-
type: ButtonType.Circumference,
|
|
25
|
-
radius: 32,
|
|
26
|
-
touchEnabled: true,
|
|
27
|
-
offset: new Vector2(0, 0),
|
|
28
|
-
});
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export interface ButtonOptions extends InitOptions {
|
|
32
|
-
/** The shape of the button */
|
|
33
|
-
type: ButtonType;
|
|
34
|
-
/** Width in pixels. Only for rectangle shaped buttons */
|
|
35
|
-
width?: number;
|
|
36
|
-
/** Height in pixels. Only for rectangle shaped buttons */
|
|
37
|
-
height?: number;
|
|
38
|
-
/** Radius in pixels. Only for circumference shaped buttons */
|
|
39
|
-
radius?: number;
|
|
40
|
-
/** Enables interaction with touch screens */
|
|
41
|
-
touchEnabled?: boolean;
|
|
42
|
-
/** X-axis and Y-axis offset */
|
|
43
|
-
offset?: Vector2;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* The Button component is used to interact with the mouse and touch screens.
|
|
47
|
-
* @public
|
|
48
|
-
* @category Components
|
|
49
|
-
* @example
|
|
50
|
-
* ```js
|
|
51
|
-
* cosnt button = this.addComponent(Button, {
|
|
52
|
-
type: ButtonType.Rectangle,
|
|
53
|
-
width: 64,
|
|
54
|
-
height: 64,
|
|
55
|
-
touchEnabled: true,
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
button.onClick = () => {
|
|
59
|
-
// some action on click
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
button.onPressed = () => {
|
|
63
|
-
// some action on pressed
|
|
64
|
-
};
|
|
65
|
-
* ```
|
|
66
|
-
* @example
|
|
67
|
-
* ```js
|
|
68
|
-
* cosnt button = this.addComponent(Button, {
|
|
69
|
-
type: ButtonType.Circumference,
|
|
70
|
-
radius: 32,
|
|
71
|
-
touchEnabled: true,
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
button.onClick = () => {
|
|
75
|
-
// some action on click
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
button.onPressed = () => {
|
|
79
|
-
// some action on pressed
|
|
80
|
-
};
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
export declare class Button extends EngineComponent {
|
|
84
|
-
/** @private */
|
|
85
|
-
readonly allowMultiple: boolean;
|
|
86
|
-
/** The shape of the button */
|
|
87
|
-
type: ButtonType;
|
|
88
|
-
/** Width in pixels. Only for rectangle shaped buttons */
|
|
89
|
-
width: number;
|
|
90
|
-
/** Height in pixels. Only for rectangle shaped buttons */
|
|
91
|
-
height: number;
|
|
92
|
-
/** Radius in pixels. Only for circumference shaped buttons */
|
|
93
|
-
radius: number;
|
|
94
|
-
/** Enables interaction with touch screens */
|
|
95
|
-
touchEnabled: boolean;
|
|
96
|
-
/** X-axis and Y-axis offset */
|
|
97
|
-
offset: Vector2;
|
|
98
|
-
/** TRUE if is pressed */
|
|
99
|
-
pressed: boolean;
|
|
100
|
-
/** Function executed when the button's click */
|
|
101
|
-
onClick: () => void;
|
|
102
|
-
/** Function executed when the button is pressed */
|
|
103
|
-
onPressed: () => void;
|
|
104
|
-
private mouse;
|
|
105
|
-
private touch;
|
|
106
|
-
private position;
|
|
107
|
-
private distance;
|
|
108
|
-
private pressedLastFrame;
|
|
109
|
-
private scaled;
|
|
110
|
-
protected init({ type, height, radius, touchEnabled, width, offset }: ButtonOptions): void;
|
|
111
|
-
protected update(): void;
|
|
112
|
-
private scale;
|
|
113
|
-
protected resolveMouseAndRectangle(): void;
|
|
114
|
-
protected resolveMouseAndCircumference(): void;
|
|
115
|
-
protected resolveTouchAndRectangle(): void;
|
|
116
|
-
protected resolveTouchAndCircumference(): void;
|
|
117
|
-
}
|