- Better life lost scene
This commit is contained in:
6
abad.lua
6
abad.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user