- [FIX] Sometimes stuck on "life lost" scene
- [FIX] No shot sound if walking
This commit is contained in:
4
abad.lua
4
abad.lua
@@ -51,6 +51,9 @@ function abad_hurt(howmuch)
|
||||
abad.x=abad.safe.x
|
||||
abad.y=abad.safe.y
|
||||
abad.hurting=60
|
||||
abad.update=abad_state_normal
|
||||
abad.bb.y=0
|
||||
abad.bb.h=16
|
||||
abad.respawning=240
|
||||
cls(3)
|
||||
end
|
||||
@@ -195,6 +198,7 @@ function abad_state_walking()
|
||||
elseif btn(KEY_DOWN) then
|
||||
abad.update=abad_state_crouch
|
||||
elseif btn(KEY_SPACE) and cacau.hab==-1 then
|
||||
playsnd(audio_abad_shot)
|
||||
abad.update=abad_state_fire
|
||||
abad.wait=0
|
||||
cacau.init(abad.hab,abad.x+8,abad.y+8,abad.flip)
|
||||
|
||||
Reference in New Issue
Block a user