Interpolate end picture reveal scroll

This is so it looks smooth at framerates above 30.
This commit is contained in:
Misa
2020-05-01 18:23:52 -07:00
committed by Ethan Lee
parent 4641b53603
commit 90280b0f92
4 changed files with 7 additions and 0 deletions

View File

@@ -2220,10 +2220,13 @@ void gamecompleteinput2()
game.press_action = false;
game.press_map = false;
//Do this here because input comes first
game.oldcreditposx = game.creditposx;
if (key.isDown(KEYBOARD_z) || key.isDown(KEYBOARD_SPACE) || key.isDown(KEYBOARD_v) || key.isDown(game.controllerButton_flip))
{
game.creditposx++;
game.oldcreditposx++;
if (game.creditposy >= 30)
{
if(graphics.fademode==0)