From 6a555a55f20d1993ec6199b04cb5e2a0ee3eb023 Mon Sep 17 00:00:00 2001 From: JailGamer Date: Sat, 9 May 2026 12:57:16 +0200 Subject: [PATCH] =?UTF-8?q?[WIP]=20S1=20Ending.=20Dibuixat=20del=20batvi?= =?UTF-8?q?=C3=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/batvio.lua | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/data/batvio.lua b/data/batvio.lua index d89353b..ea9694b 100644 --- a/data/batvio.lua +++ b/data/batvio.lua @@ -41,7 +41,24 @@ function batvio.draw() local curr_sf = surf.source() surf.source(tiles2) local scr_x, scr_y = viewp:screen_coords( batvio.x, batvio.y ) - draw.surf(0,80,batvio.w,batvio.h,scr_x,scr_y,batvio.w,batvio.h,batvio.flip) + local motor_pos = scr_x + local cabina_pos = scr_x+32 + if batvio.flip then + motor_pos = scr_x + batvio.w-32 + cabina_pos = scr_x + end + -- foc del propulsor + if batvio.step % 2 == 0 then + pal.subpal(3,0) + pal.subpal(7,0) + pal.subpal(8,0) + end + draw.surf(0,80,32,batvio.h,motor_pos,scr_y,32,batvio.h,batvio.flip) + pal.subpal(3) + pal.subpal(7) + pal.subpal(8) + -- resta de l'avio + draw.surf(32,80,batvio.w-32,batvio.h,cabina_pos,scr_y,batvio.w-32,batvio.h,batvio.flip) surf.source(curr_sf) end @@ -49,5 +66,5 @@ function batvio.hit() end function batvio.update() - + batvio.step = batvio.step +1 end \ No newline at end of file