]> git.localhorst.tv Git - l2e.git/blob - test-data/capsules.l2s
dfc36a7d7d91fc30c75b99531b57bcd6d207ebd9
[l2e.git] / test-data / capsules.l2s
1 Sprite flashSprite1 {
2         image: :"flash.png",
3         size: <96, 96>
4 }
5 Sprite flashSprite2 {
6         image: :"flash.png",
7         size: <96, 96>,
8         offset: <96, 0>
9 }
10 Sprite flashSprite3 {
11         image: :"flash.png",
12         size: <96, 96>,
13         offset: <192, 0>
14 }
15 Sprite flashSprite4 {
16         image: :"flash.png",
17         size: <96, 96>,
18         offset: <288, 0>
19 }
20 Sprite flashSpriteM {
21         image: :"flash.png",
22         size: <96, 96>,
23         offset: <384, 0>
24 }
25
26 export Capsule flash {
27         name: "Flash",
28         alignment: "LIGHT",
29         alignmentCursor: <-32, 0>,
30         alignmentSprite: Sprite {
31                 image: :"capsule-sprites.png",
32                 size: <32, 32>,
33                 offset: <0, 96>
34         },
35         maxHealth: 5,
36         stats: Stats {
37                 atp: 12,
38                 dfp: 18,
39                 str:  2,
40                 agl: 11,
41                 int: 16,
42                 gut: 23,
43                 mgr: 11
44         },
45         classes: [ CapsuleClass
46                 {
47                         name: "1 TODO",
48                         tribe: "Shaggy",
49                         battleSprite: flashSprite1,
50                         meleeAnimation: SimpleAnimation {
51                                 sprite: Sprite {
52                                         image: :"melee-maxim.png",
53                                         size: <96,96>
54                                 },
55                                 frametime: 66, // two "frames"
56                                 framecount: 4
57                         },
58                         attackAnimation: ComplexAnimation {
59                                 sprite: flashSprite1,
60                                 frametime: fourFramesTime,
61                                 repeat: false,
62                                 frames:
63                                 [ ComplexAnimationFrame
64                                         { column: 0, row: 1, disposition: < 0, -16> },
65                                         { column: 0, row: 0, disposition: < 0, -16> },
66                                         { column: 0, row: 1, disposition: < 0, -16> },
67                                         { column: 0, row: 0, disposition: < 0, -16> }
68                                 ]
69                         }
70                 },
71                 {
72                         name: "2 TODO",
73                         tribe: "Sprite",
74                         battleSprite: flashSprite2,
75                         meleeAnimation: SimpleAnimation {
76                                 sprite: Sprite {
77                                         image: :"melee-maxim.png",
78                                         size: <96,96>
79                                 },
80                                 frametime: 66, // two "frames"
81                                 framecount: 4
82                         },
83                         attackAnimation: ComplexAnimation {
84                                 sprite: flashSprite2,
85                                 frametime: fourFramesTime,
86                                 repeat: false,
87                                 frames:
88                                 [ ComplexAnimationFrame
89                                         { column: 0, row: 1, disposition: < 0, -16> },
90                                         { column: 0, row: 0, disposition: < 0, -16> },
91                                         { column: 0, row: 1, disposition: < 0, -16> },
92                                         { column: 0, row: 0, disposition: < 0, -16> }
93                                 ]
94                         },
95                         healthBoost: 208,
96                         statBoost: Stats {
97                                 atp:  38,
98                                 dfp:  71,
99                                 str:  24,
100                                 agl:  78,
101                                 int: 195,
102                                 gut:  12, // TODO: this is probably higher, but clipped at 199
103                                 mgr: 135
104                         }
105                 },
106                 {
107                         name: "3 TODO",
108                         tribe: "Cupid",
109                         battleSprite: flashSprite3,
110                         meleeAnimation: SimpleAnimation {
111                                 sprite: Sprite {
112                                         image: :"melee-maxim.png",
113                                         size: <96,96>
114                                 },
115                                 frametime: 66, // two "frames"
116                                 framecount: 4
117                         },
118                         attackAnimation: ComplexAnimation {
119                                 sprite: flashSprite3,
120                                 frametime: fourFramesTime,
121                                 repeat: false,
122                                 frames:
123                                 [ ComplexAnimationFrame
124                                         { column: 0, row: 1, disposition: < 0, -16> },
125                                         { column: 0, row: 0, disposition: < 0, -16> },
126                                         { column: 0, row: 1, disposition: < 0, -16> },
127                                         { column: 0, row: 0, disposition: < 0, -16> }
128                                 ]
129                         },
130                         healthBoost: 208,
131                         statBoost: Stats {
132                                 atp:  38,
133                                 dfp:  71,
134                                 str:  24,
135                                 agl:  78,
136                                 int: 195,
137                                 gut:  12, // TODO: this is probably higher, but clipped at 199
138                                 mgr: 135
139                         }
140                 },
141                 {
142                         name: "4",
143                         tribe: "Twinkle",
144                         battleSprite: flashSprite4,
145                         meleeAnimation: SimpleAnimation {
146                                 sprite: Sprite {
147                                         image: :"melee-maxim.png",
148                                         size: <96,96>
149                                 },
150                                 frametime: 66, // two "frames"
151                                 framecount: 4
152                         },
153                         attackAnimation: ComplexAnimation {
154                                 sprite: flashSprite4,
155                                 frametime: fourFramesTime,
156                                 repeat: false,
157                                 frames:
158                                 [ ComplexAnimationFrame
159                                         { column: 0, row: 1, disposition: < 0, -16> },
160                                         { column: 0, row: 0, disposition: < 0, -16> },
161                                         { column: 0, row: 1, disposition: < 0, -16> },
162                                         { column: 0, row: 0, disposition: < 0, -16> }
163                                 ]
164                         },
165                         hunger: 0,
166                         healthBoost: 208,
167                         statBoost: Stats {
168                                 atp:  38,
169                                 dfp:  71,
170                                 str:  24,
171                                 agl:  78,
172                                 int: 195,
173                                 gut:  12, // TODO: this is probably higher, but clipped at 199
174                                 mgr: 135
175                         }
176                 },
177                 {
178                         name: "M TODO",
179                         tribe: "Twinkle",
180                         battleSprite: flashSpriteM,
181                         meleeAnimation: SimpleAnimation {
182                                 sprite: Sprite {
183                                         image: :"melee-maxim.png",
184                                         size: <96,96>
185                                 },
186                                 frametime: 66, // two "frames"
187                                 framecount: 4
188                         },
189                         attackAnimation: ComplexAnimation {
190                                 sprite: flashSpriteM,
191                                 frametime: fourFramesTime,
192                                 repeat: false,
193                                 frames:
194                                 [ ComplexAnimationFrame
195                                         { column: 0, row: 1, disposition: < 0, -16> },
196                                         { column: 0, row: 0, disposition: < 0, -16> },
197                                         { column: 0, row: 1, disposition: < 0, -16> },
198                                         { column: 0, row: 0, disposition: < 0, -16> }
199                                 ]
200                         },
201                         hunger: 0,
202                         healthBoost: 208,
203                         statBoost: Stats {
204                                 atp:  38,
205                                 dfp:  71,
206                                 str:  24,
207                                 agl:  78,
208                                 int: 195,
209                                 gut:  12, // TODO: this is probably higher, but clipped at 199
210                                 mgr: 135
211                         }
212                 }
213         ]
214 }