Compare commits

..

No commits in common. '8c3dd0f0716e63ec4a391d75c65cc8f0f79d1935' and '598b3b66c77a299ca2232947e23832b36a4a2164' have entirely different histories.

  1. 3
      Adventures in Lestoria/VisualNovel.cpp

@ -107,7 +107,6 @@ void VisualNovel::Initialize(){
graphicsToLoad.insert("character_image_location"_S+"Trapper_F.png");
graphicsToLoad.insert("character_image_location"_S+"Thief_F.png");
graphicsToLoad.insert("character_image_location"_S+"Witch_F.png");
graphicsToLoad.insert("character_image_location"_S+"Warrior_F.png");
graphicsToLoad.insert("character_image_location"_S+"Player_M.png");
}else{
graphicsToLoad.insert("character_image_location"_S+arg+".png");
@ -257,7 +256,7 @@ void VisualNovel::Draw(const uint8_t backgroundAlpha){
if(backgroundFilename!=""){
float alpha=backgroundAlpha/255.f;
if(transitionTime>0){
alpha=alpha*util::lerp(0.f,1.f,1.f-(transitionTime/maxTransitionTime));
alpha=alpha*util::lerp(0,1,1-(transitionTime/maxTransitionTime));
}
if(prevBackgroundFilename!=""){
game->DrawDecal({0,-prevBackgroundScrollAmt},GFX["story_background_image_location"_S+prevBackgroundFilename].Decal(),{1.f,1.f},{255,255,255,backgroundAlpha});

Loading…
Cancel
Save