Mercurial > touhou
annotate data/ST/make_ecl.py @ 492:887de1309491
Add friendly fire in netplay.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 21 Sep 2013 20:26:39 +0200 |
parents | 1bc0ad774ed4 |
children |
rev | line source |
---|---|
115 | 1 from pytouhou.formats.ecl import ECL |
2 from math import pi | |
3 | |
4 # Frame, sub, opcode, args | |
121
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
5 main = [(120, 0, 0, (-30.0, 80.0, 0.0, 160, 0, 0, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
6 (140, 0, 0, (-30.0, 130.0, 0.0, 160, 0, 0, 0)), |
115 | 7 |
121
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
8 (160, 0, 2, (192*2+30.0, 80.0, 0.0, 160, 0, 0, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
9 (180, 0, 2, (192*2+30.0, 130.0, 0.0, 160, 0, 0, 0)), |
115 | 10 |
11 (220, 0, 0, (-30.0, 80.0, 0.0, 16, 0, 0, 0)), | |
12 (220, 0, 0, (-30.0, 130.0, 0.0, 16, 0, 0, 0)), | |
13 | |
14 (260, 0, 2, (192*2+30.0, 80.0, 0.0, 16, 0, 0, 0)), | |
15 (260, 0, 2, (192*2+30.0, 130.0, 0.0, 16, 0, 0, 0)), | |
16 | |
17 (560, 2, 0, (0, -10, 0.0, 120, 0, 0, 0)), | |
18 (780, 2, 0, (0, -10, 0.0, 120, 0, 0, 0)), | |
19 (900, 2, 0, (0, -10, 0.0, 120, 0, 0, 0)), | |
20 | |
121
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
21 (1500, 3, 0, (192, -10, 0.0, 2000, 0, 0, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
22 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
23 (2100, 4, 0, (-30.0, 80.0, 0.0, 6500, 0, 0, 0))] |
115 | 24 |
25 | |
26 subs = [ | |
27 # Frame, opcode, rank_mask, param_mask, args | |
28 [(0, 97, 0xff00, 256, (0,)), | |
29 (0, 108, 0xff00, 256, (1,)), | |
30 (0, 107, 0xff00, 256, (1,)), | |
31 (0, 45, 0xff00, 256, (-0.3, 0.8)), | |
32 (0, 48, 0xff00, 256, (0.01,)), | |
33 (0, 46, 0xff00, 256, (0.001,)), | |
34 (0, 5, 0xff00, 256, (-10005, pi-0.3)), | |
35 (0, 68, 0xff00, 256, (2, 6, 1, 1, 2.0, 0.0, -10005.0, 0.0, 1)), | |
36 (2, 21, 0xff00, 256, (-10005, -10005, 0.2)), | |
37 (2, 2, 0xff00, 256, (0, 7))], | |
38 | |
39 [(0, 75, 0xff00, 256, (1, 2, 10, 10, 2.0, 4.0, -pi, pi, 0)), | |
40 (5, 1, 0xff00, 256, (0,))], | |
41 | |
42 [(0, 97, 0xff00, 256, (3,)), | |
43 (0, 4, 0xff00, 256, (-10001, 15)), | |
44 (0, 57, 0xff00, 256, (60, 192.0, 80.0, 0.0)), | |
45 (0, 78, 0xff00, 256, ()), | |
46 (0, 67, 0xff00, 256, (2, 6, 1, 4, 2.0, 4.0, 0.0, 0.0, 1)), | |
47 (0, 79, 0xff00, 256, ()), | |
48 (0, 77, 0xff00, 256, (20,)), | |
49 (60, 65, 0xff00, 256, (20, 20, 192*2-20, 120)), | |
50 (60, 47, 0xff00, 256, (8.0,)), | |
51 | |
52 (60, 50, 0xff00, 256, (-pi, pi)), | |
53 | |
54 (80, 3, 0xff00, 256, (60, 9, -10001)), | |
55 | |
56 (80, 66, 0xff00, 256, ()), | |
57 (80, 76, 0xff00, 256, (0,)), | |
58 (80, 51, 0xff00, 256, (0, 8.0))], | |
59 | |
60 [(0, 97, 0xff00, 256, (0,)), | |
61 (0, 57, 0xff00, 256, (60, 192.0, 80.0, 0.0)), | |
62 (60, 82, 0xff00, 256, (40, 15, -1, -1, 0.0, 6.0, -1, -1)), | |
63 (60, 75, 0xff00, 256, (1, 3, 20, 1, 3.0, 6.0, -pi, pi, 1| 128)), | |
121
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
64 (60, 76, 0xff00, 256, (110,))], |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
65 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
66 [(0, 97, 0xff00, 256, (0,)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
67 (0, 105, 0xff00, 256, (0,)), # Set damageable: False |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
68 (0, 126, 0xff00, 256, (0,)), # One life |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
69 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
70 # Set callback |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
71 (0, 113, 0xff00, 256, (1000,)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
72 (0, 114, 0xff00, 256, (5,)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
73 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
74 (0, 111, 0xff00, 256, (6000,)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
75 (0, 101, 0xff00, 256, (0,)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
76 (0, 57, 0xff00, 256, (60, 192.0, 80.0, 0.0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
77 (60, 102, 0xff00, 256, (10, -0.3, 0.7, 0.3, 48.0)), # Nice little effect |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
78 (80, 105, 0xff00, 256, (1,)), # Set damageable: True |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
79 (80, 119, 0xff00, 256, (10,)), # Drop bonus :) |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
80 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
81 (80, 82, 0xff00, 256, (800, 1, -1, -1, 0.02, 0.02, 0.0, 0.0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
82 (80, 70, 0xff00, 256, (2, 2, 30, 4, 0.1, 4.1, 0.0, 0.0, 1|32)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
83 (80, 82, 0xff00, 256, (800, 1, -1, -1, 0.02, -0.02, 0.0, 0.0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
84 (80, 70, 0xff00, 256, (2, 6, 30, 4, 0.6, 4.6, 0.0, 0.0, 1|32)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
85 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
86 (120, 67, 0xff00, 256, (2, 4, 3, 30, 1.0, 5.0, 0.0, 4.0, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
87 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
88 (200, 2, 0xff00, 256, (80, 11)) |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
89 ], |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
90 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
91 [(0, 93, 0xff00, 256, (2, 0, "THE END ~")), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
92 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
93 (20, 81, 0xff00, 256, (-100.0-20, 50.0, 0.0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
94 (20, 85, 0xff00, 256, (0, 6, 0.0, 0, 0.0, 60.0, 60.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
95 (20, 85, 0xff00, 256, (0, 6, pi / 2., 0, 0.0, 40.0, 40.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
96 (20, 81, 0xff00, 256, (-100.0-20, 100.0, 0.0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
97 (20, 85, 0xff00, 256, (0, 6, 0.0, 0, 0.0, 60.0, 60.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
98 (20, 85, 0xff00, 256, (0, 6, pi / 2., 0, 0.0, 40.0, 40.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
99 (20, 81, 0xff00, 256, (-100.0-20, 150.0, 0.0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
100 (20, 85, 0xff00, 256, (0, 6, 0.0, 0, 0.0, 60.0, 60.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
101 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
102 (20, 81, 0xff00, 256, (0.0-20, 20+50.0, 0.0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
103 (20, 85, 0xff00, 256, (0, 6, pi / 2., 0, 0.0, 80.0, 80.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
104 (20, 85, 0xff00, 256, (0, 6, pi / 4., 0, 0.0, 100.0, 100.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
105 (20, 81, 0xff00, 256, (80.0-20, 20+80+50.0, 0.0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
106 (20, 85, 0xff00, 256, (0, 6, -pi / 2., 0, 0.0, 80.0, 80.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
107 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
108 (20, 81, 0xff00, 256, (120.0-20, 20+50.0, 0.0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
109 (20, 85, 0xff00, 256, (0, 6, pi / 2., 0, 0.0, 80.0, 80.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
110 (20, 85, 0xff00, 256, (0, 6, pi / 4., 0, 0.0, 60.0, 60.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
111 (20, 81, 0xff00, 256, (120.0-20, 20+50.0+80.0, 0.0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
112 (20, 85, 0xff00, 256, (0, 6, -pi / 4., 0, 0.0, 60.0, 60.0, 16.0, 90, 120, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
113 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
114 (40, 81, 0xff00, 256, (0, 0, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
115 (40, 75, 0xff00, 256, (9, 1, 8, 1, 0.5, 3.0, -pi, pi, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
116 (40, 76, 0xff00, 256, (40,)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
117 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
118 (120, 4, 0xff00, 256, (-10001, 314)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
119 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
120 (120, 87, 0xff00, 256, (1,)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
121 (120, 85, 0xff00, 256, (0, 2, 0.0, 0, 0.0, 500.0, 500.0, 32.0, 90, 400, 16, 70, 14, 0)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
122 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
123 (122, 88, 0xff00, 256, (1, 0.01)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
124 (123, 3, 0xff00, 256, (122, 25, -10001)), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
125 |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
126 (200, 94, 0xff00, 256, ()), |
1bc0ad774ed4
More impressive data, use a wider range of things, and document things!
Thibaut Girka <thib@sitedethib.com>
parents:
115
diff
changeset
|
127 ] |
115 | 128 ] |
129 | |
130 ecl = ECL() | |
131 ecl.subs = subs | |
132 ecl.main = main | |
133 | |
134 with open('ecldata1.ecl', 'wb') as file: | |
135 ecl.write(file) |