Character art is now handled differently in visual novels to incorporate character art of any width. Release Build 8923.

pull/57/head
sigonasr2 9 months ago
parent bdf126820a
commit f769a77e42
  1. 2
      Adventures in Lestoria/Version.h
  2. 8
      Adventures in Lestoria/VisualNovel.cpp
  3. 2
      Adventures in Lestoria/assets/config/gfx/gfx.txt
  4. BIN
      Adventures in Lestoria/assets/gamepack.pak
  5. BIN
      x64/Release/Adventures in Lestoria.exe

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 1
#define VERSION_PATCH 0
#define VERSION_BUILD 8921
#define VERSION_BUILD 8923
#define stringify(a) stringify_(a)
#define stringify_(a) #a

@ -239,14 +239,18 @@ void VisualNovel::Draw(){
std::u32string character(leftCharacters[i].begin(),leftCharacters[i].end());
Pixel fadeColor=WHITE;
if(character!=actualSpeakerName)fadeColor={128,128,128,255};
game->DrawRotatedDecal(vi2d{0,game->GetScreenSize().y}-vi2d{-i*64-36,152},GFX[GetCharacterImage(character)].Decal(),0,GFX[GetCharacterImage(character)].Sprite()->Size()/2,vf2d{72.f,168.f}/GFX[GetCharacterImage(character)].Sprite()->Size(),fadeColor);
float yScaling=168.f/GFX[GetCharacterImage(character)].Sprite()->height;
game->DrawRotatedDecal(vi2d{0,game->GetScreenSize().y}-vi2d{-i*64-36,152},GFX[GetCharacterImage(character)].Decal(),0,GFX[GetCharacterImage(character)].Sprite()->Size()/2,vf2d{yScaling,yScaling},fadeColor);
}
for(int i=rightCharacters.size()-1;i>=0;i--){
//Start 72 from the bottom.
std::u32string character(rightCharacters[i].begin(),rightCharacters[i].end());
Pixel fadeColor=WHITE;
if(character!=actualSpeakerName)fadeColor={128,128,128,255};
game->DrawRotatedDecal(game->GetScreenSize()-vi2d{i*64+36,152},GFX[GetCharacterImage(character)].Decal(),0,GFX[GetCharacterImage(character)].Sprite()->Size()/2,vf2d{-72.f,168.f}/GFX[GetCharacterImage(character)].Sprite()->Size(),fadeColor);
float yScaling=168.f/GFX[GetCharacterImage(character)].Sprite()->height;
game->DrawRotatedDecal(game->GetScreenSize()-vi2d{i*64+36,152},GFX[GetCharacterImage(character)].Decal(),0,GFX[GetCharacterImage(character)].Sprite()->Size()/2,vf2d{-yScaling,yScaling},fadeColor);
}
if(locationDisplayTime>0){
std::u32string locationStr=std::u32string(locationDisplayText.begin(),locationDisplayText.end());

@ -105,6 +105,6 @@ Images
# Full Class Icons
GFX_Warrior_Full = characters/commercial_assets/Player_F_NoOutline.png
GFX_Wizard_Full = wizard_full_render.png
GFX_Wizard_Full = characters/commercial_assets/Wizard_F_NoOutline.png
GFX_Unknown_Full = unknown_full_render.png
}
Loading…
Cancel
Save