[WIP] Afegint codi per a múltiples fases
This commit is contained in:
@@ -93,7 +93,7 @@ function abad:draw()
|
||||
abad.respawning=abad.respawning-1
|
||||
end
|
||||
|
||||
draw.rect(x+abad.bb.x,y+abad.bb.y,abad.bb.w,abad.bb.h,3)
|
||||
-- draw.rect(x+abad.bb.x,y+abad.bb.y,abad.bb.w,abad.bb.h,3)
|
||||
end
|
||||
|
||||
function abad_make_safe( force )
|
||||
@@ -108,7 +108,7 @@ end
|
||||
|
||||
|
||||
function abad_hurt(howmuch)
|
||||
howmuch = 0
|
||||
-- howmuch = 0
|
||||
if abad.hurting == 0 and abad.respawning==0 then
|
||||
sound.play(audio_abad_hit)
|
||||
abad.energia=abad.energia-howmuch
|
||||
|
||||
Reference in New Issue
Block a user