115
|
1 from pytouhou.formats.ecl import ECL
|
|
2 from math import pi
|
|
3
|
|
4 # Frame, sub, opcode, args
|
|
5 main = [(120, 0, 0, (-30.0, 80.0, 0.0, 16, 0, 0, 0)),
|
|
6 (140, 0, 0, (-30.0, 130.0, 0.0, 16, 0, 0, 0)),
|
|
7
|
|
8 (160, 0, 2, (192*2+30.0, 80.0, 0.0, 16, 0, 0, 0)),
|
|
9 (180, 0, 2, (192*2+30.0, 130.0, 0.0, 16, 0, 0, 0)),
|
|
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
|
|
21 (1500, 3, 0, (192, -10, 0.0, 300, 0, 0, 0))]
|
|
22
|
|
23
|
|
24 subs = [
|
|
25 # Frame, opcode, rank_mask, param_mask, args
|
|
26 [(0, 97, 0xff00, 256, (0,)),
|
|
27 (0, 108, 0xff00, 256, (1,)),
|
|
28 (0, 107, 0xff00, 256, (1,)),
|
|
29 (0, 45, 0xff00, 256, (-0.3, 0.8)),
|
|
30 (0, 48, 0xff00, 256, (0.01,)),
|
|
31 (0, 46, 0xff00, 256, (0.001,)),
|
|
32 (0, 5, 0xff00, 256, (-10005, pi-0.3)),
|
|
33 (0, 68, 0xff00, 256, (2, 6, 1, 1, 2.0, 0.0, -10005.0, 0.0, 1)),
|
|
34 (2, 21, 0xff00, 256, (-10005, -10005, 0.2)),
|
|
35 (2, 2, 0xff00, 256, (0, 7))],
|
|
36
|
|
37 [(0, 75, 0xff00, 256, (1, 2, 10, 10, 2.0, 4.0, -pi, pi, 0)),
|
|
38 (5, 1, 0xff00, 256, (0,))],
|
|
39
|
|
40 [(0, 97, 0xff00, 256, (3,)),
|
|
41 (0, 4, 0xff00, 256, (-10001, 15)),
|
|
42 (0, 57, 0xff00, 256, (60, 192.0, 80.0, 0.0)),
|
|
43 (0, 78, 0xff00, 256, ()),
|
|
44 (0, 67, 0xff00, 256, (2, 6, 1, 4, 2.0, 4.0, 0.0, 0.0, 1)),
|
|
45 (0, 79, 0xff00, 256, ()),
|
|
46 (0, 77, 0xff00, 256, (20,)),
|
|
47 (60, 65, 0xff00, 256, (20, 20, 192*2-20, 120)),
|
|
48 (60, 47, 0xff00, 256, (8.0,)),
|
|
49
|
|
50 (60, 50, 0xff00, 256, (-pi, pi)),
|
|
51
|
|
52 (80, 3, 0xff00, 256, (60, 9, -10001)),
|
|
53
|
|
54 (80, 66, 0xff00, 256, ()),
|
|
55 (80, 76, 0xff00, 256, (0,)),
|
|
56 (80, 51, 0xff00, 256, (0, 8.0))],
|
|
57
|
|
58 [(0, 97, 0xff00, 256, (0,)),
|
|
59 (0, 57, 0xff00, 256, (60, 192.0, 80.0, 0.0)),
|
|
60 (60, 82, 0xff00, 256, (40, 15, -1, -1, 0.0, 6.0, -1, -1)),
|
|
61 (60, 75, 0xff00, 256, (1, 3, 20, 1, 3.0, 6.0, -pi, pi, 1| 128)),
|
|
62 (60, 76, 0xff00, 256, (110,))]
|
|
63 ]
|
|
64
|
|
65 ecl = ECL()
|
|
66 ecl.subs = subs
|
|
67 ecl.main = main
|
|
68
|
|
69 with open('ecldata1.ecl', 'wb') as file:
|
|
70 ecl.write(file)
|