From: Daniel Karbach Date: Fri, 10 Aug 2012 19:29:59 +0000 (+0200) Subject: fixed hero positions X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=85f12b6b3dd4abb488a24b41d2d5d9725fb33462;p=l2e.git fixed hero positions --- diff --git a/src/battle/BattleState.cpp b/src/battle/BattleState.cpp index 6db8efa..b3ad20e 100644 --- a/src/battle/BattleState.cpp +++ b/src/battle/BattleState.cpp @@ -237,7 +237,7 @@ void BattleState::RenderMonsters(SDL_Surface *screen, const Vector &offset) void BattleState::RenderHeroes(SDL_Surface *screen, const Vector &offset) { for (vector::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); } } diff --git a/src/main.cpp b/src/main.cpp index a59818a..28656c3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -73,10 +73,10 @@ int main(int argc, char **argv) { monstersLayout.AddPosition(Point(168, 104)); monstersLayout.AddPosition(Point(208, 104)); PartyLayout heroesLayout; - heroesLayout.AddPosition(Point(27, 219)); - heroesLayout.AddPosition(Point(104, 227)); - heroesLayout.AddPosition(Point(66, 238)); - heroesLayout.AddPosition(Point(143, 246)); + heroesLayout.AddPosition(Point(48, 152)); + heroesLayout.AddPosition(Point(80, 168)); + heroesLayout.AddPosition(Point(128, 152)); + heroesLayout.AddPosition(Point(160, 168)); SDL_Surface *monsterImg(IMG_Load("test-data/monster.png")); Sprite dummySprite(monsterImg, 64, 64); diff --git a/test-data/dekar.png b/test-data/dekar.png index f032da1..3771245 100644 Binary files a/test-data/dekar.png and b/test-data/dekar.png differ diff --git a/test-data/guy.png b/test-data/guy.png index 0f1c2fe..c6fa7f5 100644 Binary files a/test-data/guy.png and b/test-data/guy.png differ diff --git a/test-data/maxim.png b/test-data/maxim.png index ce5df5c..e7e20bd 100644 Binary files a/test-data/maxim.png and b/test-data/maxim.png differ diff --git a/test-data/selan.png b/test-data/selan.png index 028cba4..8b46f88 100644 Binary files a/test-data/selan.png and b/test-data/selan.png differ