mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-10 19:09:45 +01:00
Move all-sides warp background update code to logic functions
Otherwise it'll go by really fast and rapidly pulsate. To the point where it seems like it would be an epilepsy trigger, although I wouldn't know anything about epilepsy other than that it's bad.
This commit is contained in:
parent
8184a392eb
commit
66ac035576
2 changed files with 14 additions and 7 deletions
|
@ -2005,13 +2005,6 @@ void Graphics::drawbackground( int t )
|
|||
warpfcol = RGBflip(0xFF, 0xFF, 0xFF);
|
||||
}
|
||||
|
||||
backoffset += 1;
|
||||
if (backoffset >= 16)
|
||||
{
|
||||
backoffset -= 16;
|
||||
warpskip = (warpskip + 1) % 2;
|
||||
}
|
||||
|
||||
for (int i = 10 ; i >= 0; i--)
|
||||
{
|
||||
temp = (i << 4) + backoffset;
|
||||
|
@ -2212,6 +2205,16 @@ void Graphics::updatebackground(int t)
|
|||
backgrounddrawn = true;
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
//Warp zone, central
|
||||
|
||||
backoffset += 1;
|
||||
if (backoffset >= 16)
|
||||
{
|
||||
backoffset -= 16;
|
||||
warpskip = (warpskip + 1) % 2;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
//Final Starfield
|
||||
for (int i = 0; i < 50; i++)
|
||||
|
|
|
@ -3618,6 +3618,10 @@ void editorlogic()
|
|||
graphics.rcol=ed.getwarpbackground(ed.levx, ed.levy);
|
||||
graphics.updatebackground(4);
|
||||
break;
|
||||
case 3:
|
||||
graphics.rcol=ed.getwarpbackground(ed.levx, ed.levy);
|
||||
graphics.updatebackground(5);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue