- Better life lost scene

This commit is contained in:
2022-12-05 18:59:50 +01:00
parent 1b2d180e17
commit 419af8c7b1
2 changed files with 20 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
abad={x=40,y=24,flip=false,frame=1,wait=0,hab=10,vides=3,energia=40,falling=0,step=0,hurting=0,update=nil,jumpfwd=false,anim={0,1,0,2},bb={x=4,y=0,w=8,h=16},safe={hab=10,x=40,y=24}}
function abad_init()
abad={x=40,y=24,flip=false,frame=1,wait=0,hab=10,vides=3,energia=40,falling=0,step=0,draw=abad.draw,update=nil,jumpfwd=false,anim={0,1,0,2},bb={x=4,y=0,w=8,h=16},safe={hab=10,x=40,y=24}}
abad={x=40,y=24,flip=false,frame=1,wait=0,hab=10,vides=3,energia=40,falling=0,step=0,draw=abad.draw,hurting=0,update=nil,jumpfwd=false,anim={0,1,0,2},bb={x=4,y=0,w=8,h=16},safe={hab=10,x=40,y=24}}
abad.update=abad_state_normal
abad.objects={}
@@ -26,7 +26,7 @@ function abad_make_safe()
end
function abad_hurt(howmuch)
if not abad.hurting then
if abad.hurting == 0 then
abad.energia=abad.energia-howmuch
if abad.energia<=0 then
abad.vides=abad.vides-1
@@ -38,7 +38,7 @@ function abad_hurt(howmuch)
abad.hab=abad.safe.hab
abad.x=abad.safe.x
abad.y=abad.safe.y
abad.hurting=10
abad.hurting=60
cls(3)
end
else