mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01: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:
parent
690929d29a
commit
6704675189
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue