1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02: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:
Misa 2021-03-19 13:57:05 -07:00 committed by Ethan Lee
parent c7e807541c
commit 5f2b9409b2

View File

@ -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)