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