Skip to content

Commit 2e148a3

Browse files
committed
revive battle anim and features to support it
1 parent d6081a2 commit 2e148a3

File tree

10 files changed

+509
-132
lines changed

10 files changed

+509
-132
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
{
2+
"key_name": "revive",
3+
"cast_type": "psynergy_cast",
4+
"wait_for_cast_animation": true,
5+
"sprites": [{
6+
"key_name": "beam",
7+
"per_target": false,
8+
"position": "over",
9+
"count": 2,
10+
"initial_config": {
11+
"x": "targets",
12+
"y": "targets",
13+
"blend_mode": "screen",
14+
"alpha": 0,
15+
"anchor": {
16+
"x": 1.0,
17+
"y": 1.0
18+
}
19+
}
20+
},{
21+
"key_name": "energy",
22+
"per_target": false,
23+
"position": "over",
24+
"count": 2,
25+
"initial_config": {
26+
"x": "targets",
27+
"y": "targets",
28+
"alpha": 0,
29+
"anchor": {
30+
"x": 1.0,
31+
"y": 1.0
32+
}
33+
}
34+
}],
35+
"x_sequence": [{
36+
"is_absolute": false,
37+
"to": -1,
38+
"start_delay": 0,
39+
"sprite_index": [1, 3]
40+
}],
41+
"alpha_sequence": [{
42+
"is_absolute": true,
43+
"to": 1,
44+
"start_delay": 1300,
45+
"sprite_index": [0, 1, 2, 3]
46+
}],
47+
"x_scale_sequence": [{
48+
"is_absolute": true,
49+
"to": -1,
50+
"start_delay": 0,
51+
"sprite_index": [1,3]
52+
},{
53+
"is_absolute": true,
54+
"to": 0,
55+
"duration": 150,
56+
"start_delay": 2500,
57+
"sprite_index": [0, 1]
58+
}],
59+
"y_scale_sequence": [{
60+
"is_absolute": true,
61+
"to": 120,
62+
"duration": 150,
63+
"start_delay": 1300,
64+
"sprite_index": [0, 1]
65+
}],
66+
"alpha_gray_filter_sequence": [{
67+
"start_delay": 0,
68+
"sprite_index": [2,3]
69+
}],
70+
"play_sequence": [{
71+
"animation_key": "energy",
72+
"start_delay": 0,
73+
"sprite_index": [2,3],
74+
"wait": false,
75+
"frame_rate": 25,
76+
"repeat": true
77+
},{
78+
"animation_key": "idle",
79+
"start_delay": 1400,
80+
"sprite_index": "targets",
81+
"ignore_if_no_effect": true,
82+
"wait": false
83+
}],
84+
"blink_sequence": [{
85+
"sprite_index": "targets",
86+
"start_delay": 1300,
87+
"count": 1,
88+
"interval": 0,
89+
"duration": 800
90+
}],
91+
"particles_sequence": [{
92+
"data": {
93+
"feathers" : {
94+
"image": "revive_battle_animation",
95+
"blendMode": "SCREEN",
96+
"anchorX": 0.5,
97+
"anchorY": 0.5,
98+
"animations": {
99+
"pop": {
100+
"frames": { "start": 0, "stop": 4, "prefix": "feather/", "suffix": "", "zeroPad": 3 },
101+
"frameRate": 10,
102+
"yoyo": true
103+
}
104+
},
105+
"lifespan": 1400,
106+
"vy": 1.1,
107+
"vx": {
108+
"value": 1.0,
109+
"control": [
110+
{"x": 0, "y": 1},
111+
{"x": 0.25, "y": -1},
112+
{"x": 0.5, "y": 1},
113+
{"x": 0.75, "y": -1},
114+
{"x": 1, "y": 1}
115+
]
116+
}
117+
}
118+
},
119+
"zones": {},
120+
"emitters": [{
121+
"x": "targets",
122+
"y": "targets",
123+
"shift_y": -100,
124+
"position": "over",
125+
"render_type": "sprite",
126+
"repeat": 6,
127+
"frequency": 250,
128+
"total": 1,
129+
"emitter_data_key": "feathers"
130+
}],
131+
"emission_delay": 0,
132+
"emission_finish": 2800
133+
}]
134+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{"frames": {
2+
3+
"beam/000":
4+
{
5+
"frame": {"x":1,"y":1,"w":20,"h":66},
6+
"rotated": false,
7+
"trimmed": false,
8+
"spriteSourceSize": {"x":0,"y":0,"w":20,"h":66},
9+
"sourceSize": {"w":20,"h":66}
10+
},
11+
"energy/000":
12+
{
13+
"frame": {"x":1,"y":69,"w":20,"h":66},
14+
"rotated": false,
15+
"trimmed": false,
16+
"spriteSourceSize": {"x":0,"y":0,"w":20,"h":66},
17+
"sourceSize": {"w":20,"h":66}
18+
},
19+
"energy/001":
20+
{
21+
"frame": {"x":1,"y":137,"w":20,"h":66},
22+
"rotated": false,
23+
"trimmed": false,
24+
"spriteSourceSize": {"x":0,"y":0,"w":20,"h":66},
25+
"sourceSize": {"w":20,"h":66}
26+
},
27+
"energy/002":
28+
{
29+
"frame": {"x":1,"y":205,"w":20,"h":66},
30+
"rotated": false,
31+
"trimmed": false,
32+
"spriteSourceSize": {"x":0,"y":0,"w":20,"h":66},
33+
"sourceSize": {"w":20,"h":66}
34+
},
35+
"feather/000":
36+
{
37+
"frame": {"x":1,"y":273,"w":20,"h":66},
38+
"rotated": false,
39+
"trimmed": false,
40+
"spriteSourceSize": {"x":0,"y":0,"w":20,"h":66},
41+
"sourceSize": {"w":20,"h":66}
42+
},
43+
"feather/001":
44+
{
45+
"frame": {"x":1,"y":341,"w":20,"h":66},
46+
"rotated": false,
47+
"trimmed": false,
48+
"spriteSourceSize": {"x":0,"y":0,"w":20,"h":66},
49+
"sourceSize": {"w":20,"h":66}
50+
},
51+
"feather/002":
52+
{
53+
"frame": {"x":1,"y":409,"w":20,"h":66},
54+
"rotated": false,
55+
"trimmed": false,
56+
"spriteSourceSize": {"x":0,"y":0,"w":20,"h":66},
57+
"sourceSize": {"w":20,"h":66}
58+
},
59+
"feather/003":
60+
{
61+
"frame": {"x":1,"y":477,"w":20,"h":66},
62+
"rotated": false,
63+
"trimmed": false,
64+
"spriteSourceSize": {"x":0,"y":0,"w":20,"h":66},
65+
"sourceSize": {"w":20,"h":66}
66+
},
67+
"feather/004":
68+
{
69+
"frame": {"x":1,"y":545,"w":20,"h":66},
70+
"rotated": false,
71+
"trimmed": false,
72+
"spriteSourceSize": {"x":0,"y":0,"w":20,"h":66},
73+
"sourceSize": {"w":20,"h":66}
74+
}},
75+
"meta": {
76+
"app": "http://www.codeandweb.com/texturepacker",
77+
"version": "1.0",
78+
"image": "revive.png",
79+
"format": "RGBA8888",
80+
"size": {"w":22,"h":612},
81+
"scale": "1",
82+
"smartupdate": "$TexturePacker:SmartUpdate:4ed548acee05186065f03393fdc855e9:e5fd7b3f6fd8cb401deb890e9b485252:c45925d3ce43e06d0d81cbe2f18a561a$"
83+
}
84+
}
3.1 KB
Loading

assets/plugins/particle-storm.js

Lines changed: 20 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)