From: Daniel Karbach Date: Mon, 20 Aug 2012 21:57:18 +0000 (+0200) Subject: fix monster attack animation frame offsets X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=6a3c11d028e0c5f69f910cee37cbf6eb6d5e04d9;p=l2e.git fix monster attack animation frame offsets --- diff --git a/src/main.cpp b/src/main.cpp index 2901874..cf6e78b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -99,9 +99,9 @@ int main(int argc, char **argv) { monster.SetStats(Stats(14, 6, 6, 6, 6, 6, 6)); monster.SetReward(3, 5); ComplexAnimation monsterAttackAnimation(&monsterSprite, 4 * framerate); - monsterAttackAnimation.AddFrame(0, 1, Vector(16, 0)); - monsterAttackAnimation.AddFrame(0, 0, Vector(16, 0)); - monsterAttackAnimation.AddFrame(0, 1, Vector(16, 0)); + monsterAttackAnimation.AddFrame(0, 1, Vector(0, 16)); + monsterAttackAnimation.AddFrame(0, 0, Vector(0, 16)); + monsterAttackAnimation.AddFrame(0, 1, Vector(0, 16)); monster.SetAttackAnimation(&monsterAttackAnimation); SDL_Surface *monsterMeleeImg(IMG_Load("test-data/attack-monster.png")); Sprite monsterMeleeSprite(monsterMeleeImg, 96, 64);