mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user