mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 18:19: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:
parent
91468542a9
commit
4641b53603
1 changed files with 8 additions and 1 deletions
|
@ -1647,12 +1647,19 @@ void Graphics::drawentities()
|
||||||
drawhuetile(xp, yp - yoff, obj.entities[i].tile);
|
drawhuetile(xp, yp - yoff, obj.entities[i].tile);
|
||||||
break;
|
break;
|
||||||
case 5: //Horizontal Line
|
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.x = xp;
|
||||||
line_rect.y = yp - yoff;
|
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;
|
line_rect.h = 1;
|
||||||
drawgravityline(i);
|
drawgravityline(i);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case 6: //Vertical Line
|
case 6: //Vertical Line
|
||||||
line_rect.x = xp;
|
line_rect.x = xp;
|
||||||
line_rect.y = yp - yoff;
|
line_rect.y = yp - yoff;
|
||||||
|
|
Loading…
Reference in a new issue