From ad05ea4bdeb4f520743042e75af53a4ba1c11b58 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Thu, 29 Feb 2024 22:04:14 -0800 Subject: [PATCH] minor optimization and consistent light source --- vacation.p8 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/vacation.p8 b/vacation.p8 index 4494204..8d80744 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -1401,6 +1401,7 @@ end -- pyrex's cloud renderer cld_bpl={241,242,244,248} +wpal={[0]=7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7} cmgr={ f=0, df=1, @@ -1463,15 +1464,13 @@ function cmgr:draw() rectfill(0,112,127,112+h,0) palt(0b1110100010000000) - for i=0,15 do - pal(i,7) - end + pal(wpal) poke(0x5f5e,0xf1) - sspr(0,96,128,h,0,112) + sspr(0,96,128,h,5,112) poke(0x5f5e,0xf2) - sspr(0,96,128,h,1,112+1) - sspr(0,96,128,h,5,112+1) + sspr(0,96,128,h,4,113) + sspr(0,96,128,h,1,113) poke(0x5f5e,255) -- render to screen