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

Interpolate gravitron top line extending

Otherwise it'll extend at 30 FPS only which would be kind of jarring.
This commit is contained in:
Misa 2020-05-01 17:57:07 -07:00 committed by Ethan Lee
parent 91468542a9
commit 4641b53603

View file

@ -1647,12 +1647,19 @@ void Graphics::drawentities()
drawhuetile(xp, yp - yoff, obj.entities[i].tile);
break;
case 5: //Horizontal Line
{
int oldw = obj.entities[i].w;
if (game.swngame == 3 && obj.getlineat(84 - 32) == i)
{
oldw -= 24;
}
line_rect.x = xp;
line_rect.y = yp - yoff;
line_rect.w = obj.entities[i].w;
line_rect.w = lerp(oldw, obj.entities[i].w);
line_rect.h = 1;
drawgravityline(i);
break;
}
case 6: //Vertical Line
line_rect.x = xp;
line_rect.y = yp - yoff;