]> git.localhorst.tv Git - l2e.git/blob - test-data/test.l2s
use definition of Maxim and Lizard from source
[l2e.git] / test-data / test.l2s
1 Number frameTime 33
2 Number twoFramesTime 66
3 Number fiveFramesTime 165
4
5 export Monster lizard {
6         name: "Lizard",
7         sprite: Sprite {
8                 // using pathes relative to project root until path resolution is implemented
9                 image: "test-data/monster.png",
10                 size: <64,64>
11         },
12         level: 1,
13         maxHealth: 8,
14         health: 8,
15         stats: Stats {
16                 atp: 14,
17                 dfp:  6,
18                 str:  6,
19                 agl:  6,
20                 int:  6,
21                 gut:  6,
22                 mgr:  6
23         },
24         attackAnimation: SimpleAnimation {
25                 sprite: Sprite {
26                         image: "test-data/attack-monster.png",
27                         size: <96,64>
28                 },
29                 frametime: frameTime,
30                 framecount: 14
31         }
32 }
33
34 Sprite maximSprite {
35         image: "test-data/maxim.png",
36         size: <64,64>
37 }
38 export Hero maxim {
39         name: "Maxim",
40         level: 1,
41         sprite: maximSprite,
42         maxHealth: 33,
43         health: 33,
44         maxMana: 20,
45         mana: 20,
46         ip: 0,
47         stats: Stats {
48                 atp:  28,
49                 dfp:  22,
50                 str:  28,
51                 agl:  17,
52                 int:  14,
53                 gut: 100,
54                 mgr:  10
55         },
56         attackAnimation: ComplexAnimation {
57                 sprite: maximSprite,
58                 frametime: frameTime,
59                 repeat: false,
60                 frames: [
61                         { column: 1, row: 0, disposition: < 0, 0> },
62                         { column: 1, row: 0, disposition: < 0, 0> },
63                         { column: 1, row: 0, disposition: < 0, 0> },
64                         { column: 1, row: 0, disposition: < 0, 0> },
65                         { column: 1, row: 0, disposition: < 0, 0> },
66                         { column: 1, row: 0, disposition: < 0, 0> },
67                         { column: 1, row: 0, disposition: < 0, 0> },
68                         { column: 1, row: 0, disposition: < 4,-1> },
69                         { column: 1, row: 0, disposition: < 4,-1> },
70                         { column: 2, row: 0, disposition: < 4,-2> },
71                         { column: 2, row: 0, disposition: < 4,-2> },
72                         { column: 2, row: 0, disposition: < 6,-2> },
73                         { column: 2, row: 0, disposition: < 6,-2> },
74                         { column: 2, row: 1, disposition: < 6,-1> },
75                         { column: 2, row: 1, disposition: < 3,-1> },
76                         { column: 2, row: 1, disposition: < 3,-1> },
77                         { column: 2, row: 1, disposition: < 0, 0> },
78                         { column: 2, row: 2, disposition: < 0, 0> },
79                         { column: 2, row: 2, disposition: < 0, 0> },
80                         { column: 2, row: 2, disposition: < 2, 0> },
81                         { column: 1, row: 0, disposition: < 0, 0> },
82                         { column: 1, row: 0, disposition: < 0, 0> },
83                         { column: 1, row: 0, disposition: < 0, 0> },
84                         { column: 1, row: 0, disposition: < 0, 0> },
85                         { column: 1, row: 0, disposition: < 0, 0> },
86                         { column: 1, row: 0, disposition: < 0, 0> },
87                         { column: 1, row: 0, disposition: < 0, 0> }
88                 ]
89         },
90         spellAnimation: ComplexAnimation {
91                 sprite: maximSprite,
92                 frametime: fiveFramesTime,
93                 repeat: false,
94                 frames: [
95                         { column: 3, row: 0, disposition: < 0, 0> },
96                         { column: 3, row: 0, disposition: < 0, 0> },
97                         { column: 3, row: 1, disposition: < 0, 0> }
98                 ]
99         },
100         meleeAnimation: SimpleAnimation {
101                 sprite: Sprite {
102                         image: "test-data/melee-maxim.png",
103                         size: <96,96>
104                 },
105                 frametime: twoFramesTime,
106                 framecount: 4
107         }
108 }