mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Indicate modes when loading in to gameplay
If you load in to gameplay with invincibility mode, glitchrunner mode, Flip Mode, or slowdown enabled, then there will be text displayed on screen for a few seconds that says so. This is to serve as a useful reminder. A common pitfall with using invincibility is forgetting to turn it off when you don't want it anymore. What usually happens is that players forget that they have it on until they encounter a hazard. Now, they can realize it as soon as they load in. See #1091.
This commit is contained in:
@@ -2694,6 +2694,21 @@ void scriptclass::startgamemode(const enum StartMode mode)
|
||||
font::set_level_font_interface();
|
||||
}
|
||||
|
||||
/* Indicate invincibility, glitchrunner, etc. for all modes except these */
|
||||
switch (mode)
|
||||
{
|
||||
case Start_EDITOR:
|
||||
case Start_CUTSCENETEST:
|
||||
break;
|
||||
case Start_QUIT:
|
||||
VVV_unreachable();
|
||||
|
||||
default:
|
||||
/* If there's editor return text, make this show up after it */
|
||||
game.mode_indicator_timer = ed.return_message_timer + 2000;
|
||||
game.old_mode_indicator_timer = game.mode_indicator_timer;
|
||||
}
|
||||
|
||||
game.jumpheld = true;
|
||||
|
||||
switch (mode)
|
||||
|
||||
Reference in New Issue
Block a user