Skip to content

Commit c82e256

Browse files
committed
Updates for spine support
1 parent 820c860 commit c82e256

29 files changed

+14152
-643
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,25 @@ git push heroku master
6262
- Textured Mesh: http://pxscene-pixi-examples.herokuapp.com/basics/textured-mesh.js
6363
- Graphics: http://pxscene-pixi-examples.herokuapp.com/basics/graphics.js
6464
- Render Texture: http://pxscene-pixi-examples.herokuapp.com/basics/render-texture.js
65+
- Display Z Order: http://shrouded-castle-71808.herokuapp.com/display/z-order.js
66+
- Layers Z Order: http://shrouded-castle-71808.herokuapp.com/layers/z-order.js
67+
- Layers Lighting: http://shrouded-castle-71808.herokuapp.com/layers/lighting.js
68+
- Spine Dragon: http://shrouded-castle-71808.herokuapp.com/spine/dragon.js
69+
- Spine Goblin: http://shrouded-castle-71808.herokuapp.com/spine/goblins.js
70+
- Spine Dragon: http://shrouded-castle-71808.herokuapp.com/spine/pixie.js
71+
- Spine Spineboy: http://shrouded-castle-71808.herokuapp.com/spine/spineboy.js
6572

6673
Open pxscene and enter the URL of each example to the input box and press return, you will see the results.
6774

75+
## Plugins
76+
Some examples need extra plugins' support, and there're extra patchs for these plugins to work with pxscene.
77+
78+
Examples|plugin|plugin source|patch file|patch base
79+
--------|------|-------------|----------|----------
80+
Display Z Order |pixi-display |https://github.com/pixijs/pixi-display/tree/master |pixi-display.patch | branch master and commit b0898bf208431badfd2448cf2dc965a24de39ef8
81+
Layers Z Order and Layers Lighting |pixi-layers |https://github.com/pixijs/pixi-display/tree/layers |pixi-layers.patch | branch layers and commit 0f812e3e6a16c6883c278aae6f1d719f12052862
82+
All Spine examples |pixi-spine |https://github.com/pixijs/pixi-spine |pixi-spine.patch |branch master and commit bc64e3e6f3784f5eda1094ddc283561eb63ab3d3
83+
6884
## Limitations
6985

7086
(1) When hover on clickable object, the cursor cannot be changed in pxscene.
@@ -83,6 +99,7 @@ const fontFamilyUrlMap = {
8399
```
84100
Currently, it only supports Arial and DejaVuSans.
85101

102+
(4) Layers Lighting example lack of lighting effect, because PXScene does not support filter yet.
86103

87104
## Remarks
88105
(1) If you use the example in Heroku, you may need to wait several seconds for the resource downloading.

dist/assets/layer/square_blue.png

405 Bytes
Loading

dist/assets/layer/square_green.png

381 Bytes
Loading

dist/assets/spine/Pixie.atlas

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
Pixie.png
2+
format: RGBA8888
3+
filter: Linear,Linear
4+
repeat: none
5+
L_foot
6+
rotate: false
7+
xy: 1048, 355
8+
size: 68, 51
9+
orig: 68, 51
10+
offset: 0, 0
11+
index: -1
12+
L_hand
13+
rotate: true
14+
xy: 916, 355
15+
size: 55, 64
16+
orig: 55, 64
17+
offset: 0, 0
18+
index: -1
19+
L_lower_arm
20+
rotate: false
21+
xy: 1273, 226
22+
size: 70, 31
23+
orig: 70, 31
24+
offset: 0, 0
25+
index: -1
26+
L_lower_leg
27+
rotate: false
28+
xy: 1201, 345
29+
size: 57, 65
30+
orig: 57, 65
31+
offset: 0, 0
32+
index: -1
33+
L_upper_arm
34+
rotate: true
35+
xy: 1399, 2
36+
size: 78, 74
37+
orig: 78, 74
38+
offset: 0, 0
39+
index: -1
40+
L_upper_leg
41+
rotate: false
42+
xy: 1351, 259
43+
size: 124, 71
44+
orig: 124, 71
45+
offset: 0, 0
46+
index: -1
47+
R_foot
48+
rotate: false
49+
xy: 1319, 345
50+
size: 68, 51
51+
orig: 68, 51
52+
offset: 0, 0
53+
index: -1
54+
R_hand
55+
rotate: true
56+
xy: 982, 355
57+
size: 55, 64
58+
orig: 55, 64
59+
offset: 0, 0
60+
index: -1
61+
R_lower_arm
62+
rotate: false
63+
xy: 1345, 226
64+
size: 70, 31
65+
orig: 70, 31
66+
offset: 0, 0
67+
index: -1
68+
R_lower_leg
69+
rotate: false
70+
xy: 1260, 345
71+
size: 57, 65
72+
orig: 57, 65
73+
offset: 0, 0
74+
index: -1
75+
R_upper_arm
76+
rotate: true
77+
xy: 1399, 82
78+
size: 78, 74
79+
orig: 78, 74
80+
offset: 0, 0
81+
index: -1
82+
R_upper_leg
83+
rotate: false
84+
xy: 1389, 332
85+
size: 124, 71
86+
orig: 124, 71
87+
offset: 0, 0
88+
index: -1
89+
backHair
90+
rotate: true
91+
xy: 1096, 2
92+
size: 261, 175
93+
orig: 261, 175
94+
offset: 0, 0
95+
index: -1
96+
foreWing
97+
rotate: false
98+
xy: 1096, 265
99+
size: 253, 78
100+
orig: 253, 78
101+
offset: 0, 0
102+
index: -1
103+
frontHair
104+
rotate: true
105+
xy: 617, 2
106+
size: 396, 297
107+
orig: 396, 297
108+
offset: 0, 0
109+
index: -1
110+
groinal
111+
rotate: true
112+
xy: 1515, 296
113+
size: 103, 84
114+
orig: 103, 84
115+
offset: 0, 0
116+
index: -1
117+
head
118+
rotate: false
119+
xy: 2, 2
120+
size: 613, 408
121+
orig: 613, 408
122+
offset: 0, 0
123+
index: -1
124+
jaw
125+
rotate: true
126+
xy: 1273, 2
127+
size: 222, 124
128+
orig: 222, 124
129+
offset: 0, 0
130+
index: -1
131+
midHair
132+
rotate: true
133+
xy: 916, 2
134+
size: 351, 178
135+
orig: 351, 178
136+
offset: 0, 0
137+
index: -1
138+
neck
139+
rotate: true
140+
xy: 1118, 345
141+
size: 65, 81
142+
orig: 65, 81
143+
offset: 0, 0
144+
index: -1
145+
rearWing
146+
rotate: false
147+
xy: 1477, 148
148+
size: 136, 146
149+
orig: 136, 146
150+
offset: 0, 0
151+
index: -1
152+
vest
153+
rotate: false
154+
xy: 1477, 2
155+
size: 139, 144
156+
orig: 139, 144
157+
offset: 0, 0
158+
index: -1

0 commit comments

Comments
 (0)