[CHG] El contacte en el jefe fa mal

[CHG] La fireball no se pot esquivar apretant avall
[NEW] La fireball se pot para d'una cacauà
This commit is contained in:
2026-05-22 20:46:23 +02:00
parent 4d13ed4eb0
commit 4759767823
5 changed files with 21 additions and 2 deletions
+13
View File
@@ -230,6 +230,19 @@ function world_update()
end
end
end
end
-- Xoc contra la fireball de power = 1
if fireball.power==1 and
viewp:inside(fireball.x, fireball.y, fireball.w, fireball.h)
then
for _, cacau_shot in pairs(cacau.shots()) do
if cacau_shot.alive and collision(fireball,cacau_shot) then
fireball.hab = -1
cacau:kill(cacau_shot)
end
end
end
if stage_update then stage_update() end