Varoom: Make sky height dynamic

This commit makes it so that Varoom's sky is properly rendered across
multiple resolutions. It also lowers the sun down by 10 pixels.
This commit is contained in:
xSlendiX 2022-05-16 02:23:44 +03:00
parent ea9dab14d3
commit f8f0c435bb

View file

@ -494,7 +494,7 @@ U0 DrawIt(CTask *task, CDC *dc)
Car *tmpc = &c[0];
dc->color = LTCYAN;
GrRect(dc, 0, 0, w, HORIZON_DIP * Sin(dip_é) + FONT_HEIGHT * 4.5);
GrRect(dc, 0, 0, w, HORIZON_DIP * Sin(dip_é) + h/8);
Mat4x4IdentEqu(r);
Mat4x4RotY(r, ă - c[0].é);
@ -511,9 +511,9 @@ U0 DrawIt(CTask *task, CDC *dc)
if (y < 0)
{
dc->color = BROWN;
GrCircle(dc, s * x + cx, 15 + HORIZON_DIP * Sin(dip_é), 15);
GrCircle(dc, s * x + cx, 25 + HORIZON_DIP * Sin(dip_é), 15);
dc->color = YELLOW;
GrFloodFill(dc, s * x + cx, 15 + HORIZON_DIP * Sin(dip_é));
GrFloodFill(dc, s * x + cx, 25 + HORIZON_DIP * Sin(dip_é));
}
mp_not_done_flags = 1 << mp_count - 1;
@ -936,4 +936,4 @@ Varoom;
    
$%&&'$%$$$'$%%&&'&#!"!# #  /-.-/,/*,,*++)(+*)+(+++(!.-.!" ++ ,*)*<=>>?<1033211=<<01<?330<1=2=>2>233?>;9:9;8867754765GEFEGDGBDDBCCA@CBA4C@C474C7C4@9FEF9:8C7C8D5BAB56TUVVWTIHKKJIIUTTHITWKKHTIUJUVJVJKKWVSRQQPSPONOLMOMN_^]]\__\Z\[Z[XY[YZLX[[OLLO[[XLQ]^^RQPO[[\PMYZZNM P88P654@@A5LMYYXLJ `ŚFç˙˙˙}-ç˙˙˙}-ç˙˙˙KFç˙˙˙K7ý˙˙˙7ý˙˙˙ý˙˙˙(ý˙˙˙(ý˙˙˙A7ý˙˙˙A7ý˙˙˙ý˙˙˙F}-}-KFK77((A7A7ş˙˙˙ç˙˙˙}Ó˙˙˙ç˙˙˙}Ó˙˙˙ç˙˙˙Kş˙˙˙ç˙˙˙KÉ˙˙˙ý˙˙˙É˙˙˙ý˙˙˙ý˙˙˙Ř˙˙˙ý˙˙˙Ř˙˙˙ý˙˙˙AÉ˙˙˙ý˙˙˙AÉ˙˙˙ý˙˙˙ý˙˙˙ş˙˙˙}Ó˙˙˙}Ó˙˙˙Kş˙˙˙KÉ˙˙˙É˙˙˙Ř˙˙˙Ř˙˙˙AÉ˙˙˙AÉ˙˙˙Fç˙˙˙<EFBFBD>˙˙˙-ç˙˙˙<EFBFBD>˙˙˙-ç˙˙˙µ˙˙˙Fç˙˙˙µ˙˙˙7á˙˙˙y˙˙˙7á˙˙˙j˙˙˙á˙˙˙j˙˙˙(á˙˙˙y˙˙˙(á˙˙˙ż˙˙˙7á˙˙˙ż˙˙˙7ý˙˙˙ý˙˙˙F<EFBFBD>˙˙˙-<EFBFBD>˙˙˙-µ˙˙˙Fµ˙˙˙7y˙˙˙7j˙˙˙j˙˙˙(y˙˙˙(ż˙˙˙7ż˙˙˙7ş˙˙˙ç˙˙˙<EFBFBD>˙˙˙Ó˙˙˙ç˙˙˙<EFBFBD>˙˙˙Ó˙˙˙ç˙˙˙µ˙˙˙ş˙˙˙ç˙˙˙µ˙˙˙É˙˙˙á˙˙˙y˙˙˙É˙˙˙á˙˙˙j˙˙˙á˙˙˙j˙˙˙Ř˙˙˙á˙˙˙y˙˙˙Ř˙˙˙á˙˙˙ż˙˙˙É˙˙˙á˙˙˙ż˙˙˙É˙˙˙ý˙˙˙ý˙˙˙ş˙˙˙<EFBFBD>˙˙˙Ó˙˙˙<EFBFBD>˙˙˙Ó˙˙˙µ˙˙˙ş˙˙˙µ˙˙˙É˙˙˙y˙˙˙É˙˙˙j˙˙˙j˙˙˙Ř˙˙˙y˙˙˙Ř˙˙˙ż˙˙˙É˙˙˙ż˙˙˙É˙˙˙       
    
$%&&'$%$$$'$%%&&'&#!"!# #  /-.-/,/*,,*++)(+*)+(+++(!.-.!" ++ ,*)*<=>>?<1033211=<<01<?330<1=2=>2>233?>;9:9;8867754765GEFEGDGBDDBCCA@CBA4C@C474C7C4@9FEF9:8C7C8D5BAB56TUVVWTIHKKJIIUTTHITWKKHTIUJUVJVJKKWVSRQQPSPONOLMOMN_^]]\__\Z\[Z[XY[YZLX[[OLLO[[XLQ]^^RQPO[[\PMYZZNM P88P654@@A5LMYYXL
$%&&'$%$$$'$%%&&'&#!"!# #  /-.-/,/*,,*++)(+*)+(+++(!.-.!" ++ ,*)*<=>>?<1033211=<<01<?330<1=2=>2>233?>;9:9;8867754765GEFEGDGBDDBCCA@CBA4C@C474C7C4@9FEF9:8C7C8D5BAB56TUVVWTIHKKJIIUTTHITWKKHTIUJUVJVJKKWVSRQQPSPONOLMOMN_^]]\__\Z\[Z[XY[YZLX[[OLLO[[XLQ]^^RQPO[[\PMYZZNM P88P654@@A5LMYYXL