pixi-fusion 2.0.0 → 2.0.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.
package/README.md
CHANGED
|
@@ -14,14 +14,14 @@ npm i --save pixi-fusion
|
|
|
14
14
|
|
|
15
15
|
# Basic Usage Example
|
|
16
16
|
|
|
17
|
-
1. Create a component with `GameContextProvider` and `
|
|
17
|
+
1. Create a component with `GameContextProvider` and `Stage`.
|
|
18
18
|
|
|
19
19
|
```
|
|
20
20
|
<GameContextProvider timeout={10}>
|
|
21
21
|
<World size={{width: 300, height: 300}} eventMode="dynamic">
|
|
22
|
-
<
|
|
22
|
+
<Layer>
|
|
23
23
|
<MyAwesomeStage />
|
|
24
|
-
</
|
|
24
|
+
</layer>
|
|
25
25
|
</World>
|
|
26
26
|
</GameContextProvider>
|
|
27
27
|
```
|
|
@@ -76,12 +76,6 @@ export const MyAwesomeStage: React.FC<MazeHeroProps> = () => {
|
|
|
76
76
|
};
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
# Demos
|
|
80
|
-
|
|
81
|
-
- [Maze](https://laverve.github.io/fusion/?path=/story/games-maze-gameplay--maze-story)
|
|
82
|
-
- [WordSearch](https://laverve.github.io/fusion/?path=/story/games-wordsearch-gameplay--word-search-story)
|
|
83
|
-
- [Spelling spree](https://laverve.github.io/fusion/?path=/story/games-spelling-spree-gameplay--spelling-spree)
|
|
84
|
-
|
|
85
79
|
# Contribution guidelines
|
|
86
80
|
|
|
87
81
|
You are encouraged to contribute to this project as soon as you see any defects or issues.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useCamera: () => import("
|
|
1
|
+
export declare const useCamera: () => import("..").CameraContextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useGame: () => import("
|
|
1
|
+
export declare const useGame: () => import("..").GameContextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useWorld: () => import("
|
|
1
|
+
export declare const useWorld: () => import("..").WorldContextValue;
|
package/package.json
CHANGED
|
@@ -7,12 +7,21 @@
|
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@types/matter-js": "^0.19.8",
|
|
9
9
|
"matter-js": "^0.20.0",
|
|
10
|
-
"pixi.js": "^8.
|
|
10
|
+
"pixi.js": "^8.8.0",
|
|
11
11
|
"pixi-viewport": "^6.0.3"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"react": "^19.0.0"
|
|
15
15
|
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@laverve/eslint-utils": "^5.1.11",
|
|
18
|
+
"@laverve/test-utils": "^5.1.11",
|
|
19
|
+
"@types/react": "^19.0.10",
|
|
20
|
+
"husky": "9.1.7",
|
|
21
|
+
"lint-staged": "^15.4.3",
|
|
22
|
+
"ts-node": "^10.9.1",
|
|
23
|
+
"typescript": "^5.7.3"
|
|
24
|
+
},
|
|
16
25
|
"description": "This module offers a set of common components needed for playing games.",
|
|
17
26
|
"keywords": [
|
|
18
27
|
"game",
|
|
@@ -41,12 +50,14 @@
|
|
|
41
50
|
"url": "https://github.com/laverve/fusion.git"
|
|
42
51
|
},
|
|
43
52
|
"scripts": {
|
|
44
|
-
"lint": "eslint
|
|
53
|
+
"lint": "eslint ./src/",
|
|
54
|
+
"lint:fix": "eslint ./src/ --fix",
|
|
45
55
|
"lint:staged": "lint-staged",
|
|
56
|
+
"prepare": "husky",
|
|
46
57
|
"test": "jest --passWithNoTests",
|
|
47
58
|
"build": "tsc",
|
|
48
59
|
"build:dev": "tsc -w"
|
|
49
60
|
},
|
|
50
|
-
"version": "2.0.
|
|
61
|
+
"version": "2.0.1",
|
|
51
62
|
"webpack": "./src/index.ts"
|
|
52
63
|
}
|