[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user