]> git.localhorst.tv Git - l2e.git/commitdiff
added Selan's melee animation
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 15 Aug 2012 18:33:43 +0000 (20:33 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 15 Aug 2012 18:33:43 +0000 (20:33 +0200)
src/main.cpp
test-data/melee-selan.png [new file with mode: 0644]

index 909cbd4be04c6292f990c661fd4d5dd265762c09..ab15296374eb5172b93574599364166173e85030 100644 (file)
@@ -151,6 +151,10 @@ int main(int argc, char **argv) {
                selanSpellAnimation.AddFrames(2, 2, Vector<int>(), 3);
                selanSpellAnimation.AddFrames(2, 3, Vector<int>(), 2);
                selan.SetSpellAnimation(&selanSpellAnimation);
+               SDL_Surface *selanMeleeImg(IMG_Load("test-data/melee-selan.png"));
+               Sprite selanMeleeSprite(selanMeleeImg, 96, 96);
+               SimpleAnimation selanMeleeAnimation(&selanMeleeSprite, 30, 4);
+               selan.SetMeleeAnimation(&selanMeleeAnimation);
 
                SDL_Surface *guyImg(IMG_Load("test-data/guy.png"));
                Sprite guySprite(guyImg, 64, 64);
diff --git a/test-data/melee-selan.png b/test-data/melee-selan.png
new file mode 100644 (file)
index 0000000..bc40d54
Binary files /dev/null and b/test-data/melee-selan.png differ