lyb-pixi-js 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "type": "module",
@@ -16,9 +16,7 @@
16
16
  "dist",
17
17
  "README.md",
18
18
  "package.json",
19
- "umd",
20
- "public",
21
- "index.html"
19
+ "umd"
22
20
  ],
23
21
  "author": {
24
22
  "name": "冷弋白",
@@ -47,4 +45,4 @@
47
45
  "pixi.js": "^7.4.2",
48
46
  "vite": "^4.5.5"
49
47
  }
50
- }
48
+ }
package/index.html DELETED
@@ -1,79 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>冷弋白的网页</title>
7
- <script src="public/pixi.min.js"></script>
8
- <script src="public/pixi-spine.js"></script>
9
- <script src="./umd/lybPixi.js"></script>
10
- <style>
11
- * {
12
- margin: 0;
13
- padding: 0;
14
- color: #fff;
15
- }
16
-
17
- html,
18
- body,
19
- #app {
20
- position: relative;
21
- overflow: hidden;
22
- width: 100%;
23
- height: 100%;
24
- }
25
-
26
- #app {
27
- display: flex;
28
- justify-content: center;
29
- align-items: center;
30
- background-color: #1a1a1a;
31
- }
32
- </style>
33
- </head>
34
-
35
- <body>
36
- <!-- JS -->
37
- <script type="text/javascript">
38
- const app = new PIXI.Application({
39
- resizeTo: window,
40
- antialias: false,
41
- resolution: window.devicePixelRatio || 1,
42
- autoDensity: true,
43
- powerPreference: "high-performance",
44
- premultipliedAlpha: false,
45
- });
46
-
47
- document.body.appendChild(app.view);
48
-
49
- PIXI.Assets.addBundle("gameManifest", {
50
- "fly.png": "public/particle/fly.png",
51
- "fly.json": "public/particle/fly.json",
52
- "logo": "public/spine/Bl_logo.json",
53
- });
54
- PIXI.Assets.loadBundle("gameManifest").then(() => {
55
- const libParticleMove = new LibPixiJs.Base.LibParticleMove({
56
- start: { x: 300, y: 600 },
57
- control: [
58
- { x: 600, y: 500 },
59
- { x: 500, y: 100 },
60
- ],
61
- end: { x: 0, y: 0 },
62
- json: PIXI.Assets.get("fly.json"),
63
- duration: 1,
64
- showControl: true,
65
- ease: "power1.in",
66
- loop: true,
67
- });
68
- app.stage.addChild(libParticleMove);
69
-
70
- const spine = new LibPixiJs.Base.LibSpine(PIXI.Assets.get("logo"));
71
- spine.setAnimation("in");
72
- spine.addAnimation("idle", true);
73
- app.stage.addChild(spine);
74
- spine.position.set(window.innerWidth / 2, window.innerHeight / 2);
75
- spine.scale.set(0.25);
76
- });
77
- </script>
78
- </body>
79
- </html>
@@ -1 +0,0 @@
1
- {"lifetime":{"min":0.4,"max":0.5},"frequency":0.01,"emitterLifetime":0,"maxParticles":50,"addAtBack":true,"pos":{"x":0,"y":0},"behaviors":[{"type":"alpha","config":{"alpha":{"list":[{"time":0,"value":1},{"time":1,"value":0}]}}},{"type":"moveSpeedStatic","config":{"min":200,"max":220}},{"type":"scale","config":{"scale":{"list":[{"time":0,"value":0.2},{"time":0.5,"value":0.3},{"time":1,"value":0.08}]},"minMult":1}},{"type":"rotation","config":{"accel":0,"minSpeed":0,"maxSpeed":10,"minStart":0,"maxStart":360}},{"type":"textureRandom","config":{"textures":["public/particle/fly.png"]}},{"type":"spawnPoint","config":{}},{"type":"blendMode","config":{"blendMode":"normal"}}]}
Binary file