Interpolate "- Press ENTER to Teleport -" prompt

This is only really noticeable in slowmode, but if you're playing in
slowmode it'll be pretty smooth.
This commit is contained in:
Misa
2020-04-29 17:04:25 -07:00
committed by Ethan Lee
parent dcc9520d8f
commit 1d669dffeb
4 changed files with 6 additions and 2 deletions

View File

@@ -1441,13 +1441,14 @@ void gamerender()
if (game.readytotele > 100 && !game.advancetext && game.hascontrol && !script.running && !game.intimetrial)
{
int alpha = graphics.lerp(game.oldreadytotele, game.readytotele);
if(graphics.flipmode)
{
graphics.bprint(5, 20, "- Press ENTER to Teleport -", game.readytotele - 20 - (help.glow / 2), game.readytotele - 20 - (help.glow / 2), game.readytotele, true);
graphics.bprint(5, 20, "- Press ENTER to Teleport -", alpha - 20 - (help.glow / 2), alpha - 20 - (help.glow / 2), alpha, true);
}
else
{
graphics.bprint(5, 210, "- Press ENTER to Teleport -", game.readytotele - 20 - (help.glow / 2), game.readytotele - 20 - (help.glow / 2), game.readytotele, true);
graphics.bprint(5, 210, "- Press ENTER to Teleport -", alpha - 20 - (help.glow / 2), alpha - 20 - (help.glow / 2), alpha, true);
}
}