Interpolate bringing up and down quit/pause/teleporter screen

Now it's really, really smooth. Except for like the last frame when it
goes down, which I sometimes didn't notice (but maybe it didn't happen
every time due to being lucky on the delta timesteps or something,
whatevs.)
This commit is contained in:
Misa
2020-04-28 20:46:33 -07:00
committed by Ethan Lee
parent 45c7292096
commit 3b41721563
5 changed files with 36 additions and 7 deletions

View File

@@ -1277,7 +1277,12 @@ void scriptclass::run()
//TODO this draw the teleporter screen. This is a problem. :(
game.gamestate = TELEPORTERMODE;
graphics.menuoffset = 240; //actually this should count the roomname
if (map.extrarow) graphics.menuoffset -= 10;
graphics.oldmenuoffset = 240;
if (map.extrarow)
{
graphics.menuoffset -= 10;
graphics.oldmenuoffset -= 10;
}
graphics.resumegamemode = false;