1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-06 04:53:32 +02:00

Remove half-second delay when exiting to menu in glitchrunner mode

The half-second delay comes from the fact that the game uses
graphics.resumegamemode to go back to GAMEMODE. This system waits for
graphics.menuoffset to reach a certain threshold before actually going
back (this is the animation of the map screen being brought down). To
speed it up, I'll just set graphics.menuoffset directly.

I could've directly set game.gamestate to GAMEMODE, but I wanted to be
safe and use the existing system instead.
This commit is contained in:
Misa 2020-08-02 21:43:55 -07:00 committed by Ethan Lee
parent 690929d29a
commit 6704675189

View File

@ -2027,9 +2027,10 @@ void mapinput()
// glitchrunner mode.
// Also have to check graphics.menuoffset so this doesn't run every frame
// Have to close the menu in order to run gamestates. This adds
// about an extra half second of completely black screen.
// Have to close the menu in order to run gamestates
graphics.resumegamemode = true;
// Remove half-second delay
graphics.menuoffset = 250;
// Technically this was in <=2.2 as well
obj.removeallblocks();