]> git.localhorst.tv Git - l2e.git/blobdiff - src/main.cpp
fix monster attack animation frame offsets
[l2e.git] / src / main.cpp
index 2901874172052e95fd7234e6787465b9777cf801..cf6e78bbf6c9596235b82ecc5d18001881c68bb6 100644 (file)
@@ -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<int>(16, 0));
-               monsterAttackAnimation.AddFrame(0, 0, Vector<int>(16, 0));
-               monsterAttackAnimation.AddFrame(0, 1, Vector<int>(16, 0));
+               monsterAttackAnimation.AddFrame(0, 1, Vector<int>(0, 16));
+               monsterAttackAnimation.AddFrame(0, 0, Vector<int>(0, 16));
+               monsterAttackAnimation.AddFrame(0, 1, Vector<int>(0, 16));
                monster.SetAttackAnimation(&monsterAttackAnimation);
                SDL_Surface *monsterMeleeImg(IMG_Load("test-data/attack-monster.png"));
                Sprite monsterMeleeSprite(monsterMeleeImg, 96, 64);