X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=test-data%2Ftest.l2s;h=74e71cd9908a49182533114dfa41048cc6c376c5;hb=18f74a6be69846207f4184ab8570b29e8a39f592;hp=7357381f1d5fe682ffc942badb467ae5a3741d17;hpb=05112fcfdbd0c452c80b6786bf6121d6f63b852a;p=l2e.git diff --git a/test-data/test.l2s b/test-data/test.l2s index 7357381..74e71cd 100644 --- a/test-data/test.l2s +++ b/test-data/test.l2s @@ -1,13 +1,17 @@ Number frameTime 33 Number twoFramesTime 66 -Number fiveFramesTime 165 +Number fourFramesTime 132 +Number fiveFramesTime 165 // darn, i really need to implement expressions + +Sprite lizardSprite { + // using pathes relative to project root until path resolution is implemented + image: "test-data/monster.png", + size: <64,64> +} export Monster lizard { name: "Lizard", - sprite: Sprite { - image: "monster.png", - size: <64,64> - }, + sprite: lizardSprite, level: 1, maxHealth: 8, health: 8, @@ -20,9 +24,20 @@ export Monster lizard { gut: 6, mgr: 6 }, - attackAnimation: SimpleAnimation { + attackAnimation: ComplexAnimation { + sprite: lizardSprite, + frametime: fourFramesTime, + repeat: false, + frames: [ + { column: 0, row: 1, disposition: < 0, 16> }, + { column: 0, row: 0, disposition: < 0, 16> }, + { column: 0, row: 1, disposition: < 0, 16> }, + { column: 0, row: 0, disposition: < 0, 16> } + ] + }, + meleeAnimation: SimpleAnimation { sprite: Sprite { - image: "attack-monster.png", + image: "test-data/attack-monster.png", size: <96,64> }, frametime: frameTime, @@ -31,7 +46,7 @@ export Monster lizard { } Sprite maximSprite { - image: "maxim.png", + image: "test-data/maxim.png", size: <64,64> } export Hero maxim { @@ -98,7 +113,7 @@ export Hero maxim { }, meleeAnimation: SimpleAnimation { sprite: Sprite { - image: "melee-maxim.png", + image: "test-data/melee-maxim.png", size: <96,96> }, frametime: twoFramesTime,