[WIP] Lluita contra jefes. Càrrega de fase redefinida

This commit is contained in:
2026-04-05 20:03:59 +02:00
parent 5aa9dd5051
commit aaf5c0fb47
6 changed files with 104 additions and 36 deletions

View File

@@ -21,7 +21,8 @@ imp={hab=75,
anim={28,29,28,30},
bb={x=4,y=0,w=16,h=32},
scene_intro=false,
scene_object=false}
scene_object=false,
mode="stop"}
function imp.reset()
imp.hit=imp.hit
@@ -83,6 +84,13 @@ function imp.hit()
end
function imp.update()
if mode=="chase" then
if abad.x<imp.x then
imp.x=imp.x-1
elseif abad.x>imp.x then
imp.x=imp.x+1
end
end
-- imp.wait=imp.wait+1
--
-- if imp.wait==6 then