]> git.localhorst.tv Git - l2e.git/blob - test-data/test.l2s
added test data
[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                 image: "monster.png",
9                 size: <64,64>
10         },
11         level: 1,
12         maxHealth: 8,
13         stats: Stats {
14                 attack:         14,
15                 defense:         6,
16                 strength:        6,
17                 agility:         6,
18                 intelligence:    6,
19                 gut:             6,
20                 magicResistance: 6
21         },
22         attackAnimation: SimpleAnimation {
23                 sprite: Sprite {
24                         image: "attack-monster.png",
25                         size: <96,64>
26                 },
27                 frametime: frameTime,
28                 framecount: 14
29         }
30 }
31
32 Sprite maximSprite {
33         image: "maxim.png",
34         size: <64,64>
35 }
36 export Hero maxim {
37         name: "Maxim",
38         level: 1,
39         sprite: maximSprite,
40         maxHealth: 33,
41         health: 33,
42         maxMana: 20,
43         mana: 20,
44         ip: 0,
45         stats: Stats {
46                 attack:          28,
47                 defense:         22,
48                 strength:        28,
49                 agility:         17,
50                 intelligence:    14,
51                 gut:            100,
52                 magicResistance: 10
53         },
54         attackAnimation: ComplexAnimation {
55                 sprite: maximSprite,
56                 frametime: frameTime,
57                 repeat: false,
58                 frames: [
59                         { column: 1, row: 0, disposition: < 0, 0> },
60                         { column: 1, row: 0, disposition: < 0, 0> },
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: < 4,-1> },
67                         { column: 1, row: 0, disposition: < 4,-1> },
68                         { column: 2, row: 0, disposition: < 4,-2> },
69                         { column: 2, row: 0, disposition: < 4,-2> },
70                         { column: 2, row: 0, disposition: < 6,-2> },
71                         { column: 2, row: 0, disposition: < 6,-2> },
72                         { column: 2, row: 1, disposition: < 6,-1> },
73                         { column: 2, row: 1, disposition: < 3,-1> },
74                         { column: 2, row: 1, disposition: < 3,-1> },
75                         { column: 2, row: 1, disposition: < 0, 0> },
76                         { column: 2, row: 2, disposition: < 0, 0> },
77                         { column: 2, row: 2, disposition: < 0, 0> },
78                         { column: 2, row: 2, disposition: < 2, 0> },
79                         { column: 1, row: 0, disposition: < 0, 0> },
80                         { column: 1, row: 0, disposition: < 0, 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                 ]
87         },
88         spellAnimation: ComplexAnimation {
89                 sprite: maximSprite,
90                 frametime: fiveFramesTime,
91                 repeat: false,
92                 frames: [
93                         { column: 3, row: 0, disposition: < 0, 0> },
94                         { column: 3, row: 0, disposition: < 0, 0> },
95                         { column: 3, row: 1, disposition: < 0, 0> }
96                 ]
97         },
98         meleeAnimation: SimpleAnimation {
99                 sprite: Sprite {
100                         image: "melee-maxim.png",
101                         size: <96,96>
102                 },
103                 frametime: twoFramesTime,
104                 framecount: 4
105         }
106 }