]> git.localhorst.tv Git - l2e.git/commitdiff
fixed hero positions
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 10 Aug 2012 19:29:59 +0000 (21:29 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 10 Aug 2012 19:29:59 +0000 (21:29 +0200)
src/battle/BattleState.cpp
src/main.cpp
test-data/dekar.png
test-data/guy.png
test-data/maxim.png
test-data/selan.png

index 6db8efabb2c09b57184e941e524b381eeef79e0d..b3ad20ede3ef4a15aec0ffb214aeccc8a74dfbba 100644 (file)
@@ -237,7 +237,7 @@ void BattleState::RenderMonsters(SDL_Surface *screen, const Vector<int> &offset)
 
 void BattleState::RenderHeroes(SDL_Surface *screen, const Vector<int> &offset) {
        for (vector<Hero>::size_type i(0), end(heroes.size()); i < end; ++i) {
-               heroes[i].Sprite()->DrawCenterBottom(screen, heroesPositions[i] + offset);
+               heroes[i].Sprite()->DrawCenterBottom(screen, heroesPositions[i] + offset, 0, 1);
        }
 }
 
index a59818a235e93e9ad1c40b4e991a69947b2f1758..28656c3b050a475badb08489d236fb255faef1b7 100644 (file)
@@ -73,10 +73,10 @@ int main(int argc, char **argv) {
                monstersLayout.AddPosition(Point<Uint8>(168, 104));
                monstersLayout.AddPosition(Point<Uint8>(208, 104));
                PartyLayout heroesLayout;
-               heroesLayout.AddPosition(Point<Uint8>(27, 219));
-               heroesLayout.AddPosition(Point<Uint8>(104, 227));
-               heroesLayout.AddPosition(Point<Uint8>(66, 238));
-               heroesLayout.AddPosition(Point<Uint8>(143, 246));
+               heroesLayout.AddPosition(Point<Uint8>(48, 152));
+               heroesLayout.AddPosition(Point<Uint8>(80, 168));
+               heroesLayout.AddPosition(Point<Uint8>(128, 152));
+               heroesLayout.AddPosition(Point<Uint8>(160, 168));
 
                SDL_Surface *monsterImg(IMG_Load("test-data/monster.png"));
                Sprite dummySprite(monsterImg, 64, 64);
index f032da187117647f2f65a1a70c1490a4154cdfaf..3771245319a8ff7e093144e1494ed27bb60a1282 100644 (file)
Binary files a/test-data/dekar.png and b/test-data/dekar.png differ
index 0f1c2fe9715c1bd53bca36388fbea470fdcab755..c6fa7f5ef1edd7efb98bfd4772427c94f92aeabd 100644 (file)
Binary files a/test-data/guy.png and b/test-data/guy.png differ
index ce5df5c738d26c9e653e4b84f8453e488f34c31f..e7e20bdadad7a729529d205138a217d4d4e17252 100644 (file)
Binary files a/test-data/maxim.png and b/test-data/maxim.png differ
index 028cba4e43ded27457866f5e31769f0e0d42bdb8..8b46f8882887ceeb8ddcc3ae88b6484ca00d2291 100644 (file)
Binary files a/test-data/selan.png and b/test-data/selan.png differ