pixifact 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/README.md +13 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,44 +1,44 @@
1
1
  # Pixifact
2
2
 
3
- Pixifact is a Bun-first framework for AI-editable 2D game UI, HUDs, menus, and lightweight scenes on top of PixiJS v8.
3
+ Pixifact 是基于 PixiJS v8 的 Scene / UI / 轻场景语义层,面向 AI 可直接编辑的 `.scene` 工作流。
4
4
 
5
- Use `pixifact` for project config helpers, the `Group` runtime node, compiler APIs, and generated Scene runtime support.
5
+ `pixifact` 包提供项目配置解析、runtime 节点、compiler API 和生成 Scene 的运行时支持。CLI 和项目脚手架分别由 `pixifact-cli`、`create-pixifact` 提供。
6
6
 
7
- ## Install
7
+ ## 安装
8
8
 
9
9
  ```bash
10
10
  bun add pixifact pixi.js
11
11
  ```
12
12
 
13
- ## Usage
13
+ ## 使用
14
14
 
15
15
  ```ts
16
16
  import { parseSceneTemplate } from 'pixifact/compiler';
17
17
  import { Group } from 'pixifact/runtime';
18
18
  ```
19
19
 
20
- Compiler Scene projects usually also install the CLI:
20
+ Compiler Scene 项目通常还会安装 CLI:
21
21
 
22
22
  ```bash
23
23
  bun add -d pixifact-cli
24
24
  ```
25
25
 
26
- Then validate and compile `.scene` files:
26
+ 然后校验和编译 `.scene` 文件:
27
27
 
28
28
  ```bash
29
- pixifact scene validate --project-root . --all
30
- pixifact compile-scenes --project-root .
29
+ pixifact scene validate --all
30
+ pixifact compile-scenes
31
31
  ```
32
32
 
33
- ## Scene Workflow
33
+ ## Scene 工作流
34
34
 
35
- Pixifact treats project-relative `.scene` files as the source of truth. External agents edit `.scene` source directly, then run validation and compilation.
35
+ Pixifact 把项目相对 `.scene` 文件作为 source of truth。外部 Agent 直接编辑 `.scene` 源文件,然后运行校验和编译。
36
36
 
37
- Generated files such as `.pixifact/generated/**` are build artifacts and should not be edited by hand.
37
+ `.pixifact/generated/**` 等生成文件是构建产物,不要手写修改。
38
38
 
39
- ## Requirements
39
+ ## 环境要求
40
40
 
41
41
  - Bun
42
42
  - PixiJS v8
43
43
 
44
- The desktop editor is distributed separately from the npm runtime package.
44
+ 桌面编辑器不包含在 npm runtime 包中。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixifact",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Pixifact 2D UI 和轻量游戏 Scene 语义框架。",
5
5
  "packageManager": "bun@1.3.13",
6
6
  "main": "./dist/index.js",