mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Move upwards-moving star BG to Graphics::updatebackground()
So it doesn't go really really quick.
This commit is contained in:
parent
61d2526669
commit
3b09bb36e8
1 changed files with 16 additions and 7 deletions
|
@ -2109,13 +2109,6 @@ void Graphics::drawbackground( int t )
|
|||
{
|
||||
FillRect(backBuffer, stars[i], getRGB(0x55, 0x55, 0x55));
|
||||
}
|
||||
stars[i].y -= starsspeed[i];
|
||||
if (stars[i].y < -10)
|
||||
{
|
||||
stars[i].y += 260;
|
||||
stars[i].x = fRandom() * 320;
|
||||
starsspeed[i] = 5+(fRandom()*5);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
|
@ -2214,6 +2207,22 @@ void Graphics::updatebackground(int t)
|
|||
backboxes[i].x = fRandom() * 320;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
//Final Starfield
|
||||
for (int i = 0; i < 50; i++)
|
||||
{
|
||||
stars[i].w = 2;
|
||||
stars[i].h = 2;
|
||||
stars[i].y -= starsspeed[i];
|
||||
if (stars[i].y < -10)
|
||||
{
|
||||
stars[i].y += 260;
|
||||
stars[i].x = fRandom() * 320;
|
||||
starsspeed[i] = 5+(fRandom()*5);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue