@combos-fun/plugin-renderer-img 0.0.7 → 0.0.8
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/agent-skill.md +3 -6
- package/package.json +5 -5
package/agent-skill.md
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
# `@combos-fun/plugin-renderer-img` — Agent notes
|
|
2
2
|
|
|
3
|
-
Static image rendering for the 2D pipeline. Loads an `IMAGE` resource and
|
|
4
|
-
draws it as a Pixi `Sprite` under the GameObject's `Container`.
|
|
3
|
+
Static image rendering for the 2D pipeline. Loads an `IMAGE` resource and draws it as a Pixi `Sprite` under the GameObject's `Container`.
|
|
5
4
|
|
|
6
5
|
## When to read
|
|
7
6
|
|
|
8
|
-
Read whenever you need a single static image: icons, backgrounds,
|
|
9
|
-
single-frame foregrounds.
|
|
7
|
+
Read whenever you need a single static image: icons, backgrounds, single-frame foregrounds.
|
|
10
8
|
|
|
11
9
|
## Public API
|
|
12
10
|
|
|
@@ -23,8 +21,7 @@ import { resource, RESOURCE_TYPE } from '@combos-fun/engine';
|
|
|
23
21
|
|-------|------|-------|
|
|
24
22
|
| `resource` | `string` | Engine resource name registered with `RESOURCE_TYPE.IMAGE` |
|
|
25
23
|
|
|
26
|
-
Side effect: importing the package registers `IMAGE` resource handlers
|
|
27
|
-
on the engine `resource` singleton.
|
|
24
|
+
Side effect: importing the package registers `IMAGE` resource handlers on the engine `resource` singleton.
|
|
28
25
|
|
|
29
26
|
## Required setup
|
|
30
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@combos-fun/plugin-renderer-img",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "@combos-fun/plugin-renderer-img",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/plugin-renderer-img.esm.js",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"author": "sun668 <q947692259@gmail.com>",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"pixi.js": "^8.18.1",
|
|
35
|
-
"@combos-fun/
|
|
36
|
-
"@combos-fun/
|
|
37
|
-
"@combos-fun/
|
|
38
|
-
"@combos-fun/
|
|
35
|
+
"@combos-fun/plugin-renderer": "0.0.8",
|
|
36
|
+
"@combos-fun/renderer-adapter": "0.0.8",
|
|
37
|
+
"@combos-fun/engine": "0.0.8",
|
|
38
|
+
"@combos-fun/inspector-decorator": "0.0.8"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "node ../../scripts/build-package.mjs"
|