1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Interpolate all-sides warp BG

Again, it was only noticeable at 40% speed that it updated at 1000/34
FPS before.
This commit is contained in:
Misa 2020-04-29 15:44:07 -07:00 committed by Ethan Lee
parent 66ac035576
commit a69bb84eaf

View file

@ -2007,7 +2007,7 @@ void Graphics::drawbackground( int t )
for (int i = 10 ; i >= 0; i--) for (int i = 10 ; i >= 0; i--)
{ {
temp = (i << 4) + backoffset; temp = (i << 4) + lerp(backoffset - 1, backoffset);
setwarprect(160 - temp, 120 - temp, temp * 2, temp * 2); setwarprect(160 - temp, 120 - temp, temp * 2, temp * 2);
if (i % 2 == warpskip) if (i % 2 == warpskip)
{ {