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);
}
}
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);