From f8f0c435bbed4b95e43bc9131c2ab94b2023be9e Mon Sep 17 00:00:00 2001 From: xSlendiX Date: Mon, 16 May 2022 02:23:44 +0300 Subject: [PATCH] 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. --- src/Demo/Games/Varoom.ZC | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Demo/Games/Varoom.ZC b/src/Demo/Games/Varoom.ZC index f9e52d50..48713ebc 100755 --- a/src/Demo/Games/Varoom.ZC +++ b/src/Demo/Games/Varoom.ZC @@ -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}-}-KFK7‡7––(‡(A7A7ºÿÿÿçÿÿÿ}Óÿÿÿçÿÿÿ}ÓÿÿÿçÿÿÿKºÿÿÿçÿÿÿKÉÿÿÿýÿÿÿ‡Éÿÿÿýÿÿÿ–ýÿÿÿ–Øÿÿÿýÿÿÿ‡ØÿÿÿýÿÿÿAÉÿÿÿýÿÿÿAÉÿÿÿýÿÿÿýÿÿÿºÿÿÿ}Óÿÿÿ}ÓÿÿÿKºÿÿÿKÉÿÿÿ‡Éÿÿÿ––Øÿÿÿ‡ØÿÿÿAÉÿÿÿAÉÿÿÿFçÿÿÿƒÿÿÿ-çÿÿÿƒÿÿÿ-çÿÿÿµÿÿÿFçÿÿÿµÿÿÿ7áÿÿÿyÿÿÿ7áÿÿÿjÿÿÿáÿÿÿjÿÿÿ(áÿÿÿyÿÿÿ(áÿÿÿ¿ÿÿÿ7áÿÿÿ¿ÿÿÿ7ýÿÿÿýÿÿÿFƒÿÿÿ-ƒÿÿÿ-µÿÿÿFµÿÿÿ7yÿÿÿ7jÿÿÿjÿÿÿ(yÿÿÿ(¿ÿÿÿ7¿ÿÿÿ7ºÿÿÿçÿÿÿƒÿÿÿÓÿÿÿçÿÿÿƒÿÿÿÓÿÿÿçÿÿÿµÿÿÿºÿÿÿçÿÿÿµÿÿÿÉÿÿÿáÿÿÿyÿÿÿÉÿÿÿáÿÿÿjÿÿÿáÿÿÿjÿÿÿØÿÿÿáÿÿÿyÿÿÿØÿÿÿáÿÿÿ¿ÿÿÿÉÿÿÿáÿÿÿ¿ÿÿÿÉÿÿÿýÿÿÿýÿÿÿºÿÿÿƒÿÿÿÓÿÿÿƒÿÿÿÓÿÿÿµÿÿÿºÿÿÿµÿÿÿÉÿÿÿ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 \ No newline at end of file + $%&&'$%$$$'$%%&&'&#!"!# #  /-.-/,/*,,*++)(+*)+(+++(!.-.!" ++ ,*)*<=>>?<1033211=<<01<?330<1=2=>2>233?>;9:9;8867754765GEFEGDGBDDBCCA@CBA4C@C474C7C4@9FEF9:8C7C8D5BAB56TUVVWTIHKKJIIUTTHITWKKHTIUJUVJVJKKWVSRQQPSPONOLMOMN_^]]\__\Z\[Z[XY[YZLX[[OLLO[[XLQ]^^RQPO[[\PMYZZNM P88P654@@A5LMYYXL