@combos-fun/plugin-renderer-tiling-sprite 0.0.38 → 0.0.40
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 +2 -3
- package/package.json +5 -5
package/agent-skill.md
CHANGED
|
@@ -12,7 +12,7 @@ Read for any tiling background, parallax layer, or scrolling pattern.
|
|
|
12
12
|
import { TilingSprite, TilingSpriteSystem, type TilingSpriteParams } from '@combos-fun/plugin-renderer-tiling-sprite';
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
`componentName = 'TilingSprite'`, `systemName = 'TilingSpriteSystem
|
|
15
|
+
`componentName = 'TilingSprite'`, `systemName = 'TilingSprite'` (class is `TilingSpriteSystem` — use `game.getSystem(TilingSpriteSystem)`, not the string).
|
|
16
16
|
|
|
17
17
|
### `TilingSpriteParams`
|
|
18
18
|
|
|
@@ -39,8 +39,7 @@ Total tile area uses `Transform.size`.
|
|
|
39
39
|
## Minimal example
|
|
40
40
|
|
|
41
41
|
```ts
|
|
42
|
-
const bg = new GameObject('bg');
|
|
43
|
-
bg.addComponent(new Transform({ position: { x: 0, y: 0 }, size: { x: 750, y: 1334 } }));
|
|
42
|
+
const bg = new GameObject('bg', { position: { x: 0, y: 0 }, size: { width: 750, height: 1334 } });
|
|
44
43
|
bg.addComponent(new TilingSprite({
|
|
45
44
|
resource: 'bg-tile',
|
|
46
45
|
tileScale: { x: 1, y: 1 },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@combos-fun/plugin-renderer-tiling-sprite",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"description": "Repeating tiled texture",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/plugin-renderer-tiling-sprite.esm.js",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
],
|
|
37
37
|
"author": "sun668 <q947692259@gmail.com>",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@combos-fun/plugin-renderer": "0.0.
|
|
40
|
-
"@combos-fun/renderer-adapter": "0.0.
|
|
41
|
-
"@combos-fun/engine": "0.0.
|
|
42
|
-
"@combos-fun/inspector-decorator": "0.0.
|
|
39
|
+
"@combos-fun/plugin-renderer": "0.0.39",
|
|
40
|
+
"@combos-fun/renderer-adapter": "0.0.39",
|
|
41
|
+
"@combos-fun/engine": "0.0.39",
|
|
42
|
+
"@combos-fun/inspector-decorator": "0.0.39",
|
|
43
43
|
"pixi.js": "^8.18.1"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|