@ignifx/2d 0.0.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/dist/index.d.ts +4005 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7499 -0
- package/dist/index.js.map +1 -0
- package/package.json +64 -0
- package/skills/2d/SKILL.md +51 -0
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ignifx/2d",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "ignifx 2D toolkit: Camera2D, sprites, sprite animation, atlases, tilemaps, sorting layers, pixel-perfect, parallax.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ignifx",
|
|
7
|
+
"ignifx-extension"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://ignifx.com",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"author": "Astrum Forge Studios",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"skills"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public",
|
|
27
|
+
"provenance": true
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsdown",
|
|
31
|
+
"typecheck": "tsc --build tsconfig.json tsconfig.test.json",
|
|
32
|
+
"test": "vitest run --project node --root ../.. packages/2d",
|
|
33
|
+
"api-report": "api-extractor run --verbose",
|
|
34
|
+
"docs:api": "typedoc",
|
|
35
|
+
"api-report:update": "api-extractor run --local --verbose",
|
|
36
|
+
"pack-check": "publint && attw --pack . --profile esm-only"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@arethetypeswrong/cli": "catalog:",
|
|
40
|
+
"@babylonjs/lite": "catalog:",
|
|
41
|
+
"@ignifx/core": "workspace:*",
|
|
42
|
+
"@microsoft/api-extractor": "catalog:",
|
|
43
|
+
"@types/webxr": "catalog:",
|
|
44
|
+
"@webgpu/types": "catalog:",
|
|
45
|
+
"publint": "catalog:",
|
|
46
|
+
"tsdown": "catalog:",
|
|
47
|
+
"typedoc": "catalog:",
|
|
48
|
+
"typedoc-plugin-markdown": "catalog:",
|
|
49
|
+
"typescript-native": "catalog:",
|
|
50
|
+
"vitest": "catalog:"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@babylonjs/lite": "catalog:",
|
|
54
|
+
"@ignifx/core": "workspace:*"
|
|
55
|
+
},
|
|
56
|
+
"ignifx": {
|
|
57
|
+
"extension": true,
|
|
58
|
+
"engine": ">=0.0.0 <1.0.0",
|
|
59
|
+
"requires": [],
|
|
60
|
+
"optional": [],
|
|
61
|
+
"capabilities": [],
|
|
62
|
+
"skill": "./skills/2d/SKILL.md"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 2d
|
|
3
|
+
description: Builds 2D games in ignifx with @ignifx/2d: Camera2D, SpriteRenderer, SpriteAnimator, texture atlases, Tilemap rendering and import, sorting layers and Y-sort, pixel-perfect cameras, parallax layers, and 2D picking. Use when adding or editing sprites, sprite animation, tilemaps, atlases, sorting layers, or a 2D camera in an ignifx project, or when the user mentions @ignifx/2d, Camera2D, SpriteRenderer, or Tilemap.
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
ignifx-version: "0.0.0-unreleased"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# @ignifx/2d
|
|
10
|
+
|
|
11
|
+
> **Scaffold notice.** ignifx is in the planning phase and `@ignifx/2d` is an empty package. Every section below is filled by Phase 6 of `docs/plan/engineering-plan.md`; until then this file makes no API claims (`CONSTITUTION.md` Article V).
|
|
12
|
+
|
|
13
|
+
## What this is / when to use
|
|
14
|
+
|
|
15
|
+
`@ignifx/2d` is the ignifx extension that provides `Camera2D`, `SpriteRenderer`, `SpriteAnimator`, atlases, `Tilemap`, sorting layers, pixel-perfect rendering, and parallax _(populated in Phase 6)_.
|
|
16
|
+
|
|
17
|
+
## Environment
|
|
18
|
+
|
|
19
|
+
Engine version, the pinned Babylon Lite version, and the registration snippet for this extension _(populated in Phase 6)_.
|
|
20
|
+
|
|
21
|
+
## Mental model
|
|
22
|
+
|
|
23
|
+
How this subsystem's components, services, and phases fit into the App → World → Entity model _(populated in Phase 6)_.
|
|
24
|
+
|
|
25
|
+
## First app
|
|
26
|
+
|
|
27
|
+
A complete, compiling example that registers the extension and uses it once _(populated in Phase 6)_.
|
|
28
|
+
|
|
29
|
+
## Core APIs
|
|
30
|
+
|
|
31
|
+
Component and service tables generated from `skills/ignifx/references/api/2d.md` _(populated in Phase 6)_.
|
|
32
|
+
|
|
33
|
+
## Recipes
|
|
34
|
+
|
|
35
|
+
Task-oriented examples extracted from `examples/recipes/` _(populated in Phase 6)_.
|
|
36
|
+
|
|
37
|
+
## File formats
|
|
38
|
+
|
|
39
|
+
The file formats this subsystem reads and writes, with links to `skills/ignifx/references/formats/` _(populated in Phase 6)_.
|
|
40
|
+
|
|
41
|
+
## Gotchas
|
|
42
|
+
|
|
43
|
+
The traps this subsystem has, each with the replacement to use instead _(populated in Phase 6)_.
|
|
44
|
+
|
|
45
|
+
## Deprecated (current window)
|
|
46
|
+
|
|
47
|
+
None (pre-1.0: no deprecation window; breaking changes are listed in the changelog).
|
|
48
|
+
|
|
49
|
+
## Where to look next
|
|
50
|
+
|
|
51
|
+
`skills/ignifx/SKILL.md` for the engine entry skill · `docs/architecture/` for design rationale.
|