mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 10:29:45 +01:00
De-duplicate Gravitron initial message
Since the only difference is the y-positions, I've decided to remove the copy-pasted code. A better solution would be to have a function that draws multiline text and handles it accordingly in Flip Mode, but that could be done later.
This commit is contained in:
parent
c7e807541c
commit
5f2b9409b2
1 changed files with 8 additions and 4 deletions
|
@ -1589,16 +1589,20 @@ void gamerender(void)
|
|||
{
|
||||
if (int(game.swndelay / 15) % 2 == 1 || game.swndelay >= 120)
|
||||
{
|
||||
int y1;
|
||||
int y2;
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.bigprint( -1, 30, "Survive for", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true, 2);
|
||||
graphics.bigprint( -1, 10, "60 seconds!", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true, 2);
|
||||
y1 = 30;
|
||||
y2 = 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.bigprint( -1, 10, "Survive for", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true, 2);
|
||||
graphics.bigprint( -1, 30, "60 seconds!", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true, 2);
|
||||
y1 = 10;
|
||||
y2 = 30;
|
||||
}
|
||||
graphics.bigprint( -1, y1, "Survive for", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true, 2);
|
||||
graphics.bigprint( -1, y2, "60 seconds!", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true, 2);
|
||||
}
|
||||
}
|
||||
else if(game.swngame==7)
|
||||
|
|
Loading…
Reference in a new issue