forked from JailDoctor/cacaus
- Astounded now blink correctly
- Caco smaller, can be crouched off
This commit is contained in:
@@ -5,7 +5,7 @@ function zombie.new(_hab,_x,_y,_flip)
|
||||
end
|
||||
|
||||
function zombie:draw()
|
||||
sspr((self.frame&7)*16,(self.frame>>3)*16,16,16,self.x,self.y,16,16,self.flip)
|
||||
if self.frame>0 then sspr((self.frame&7)*16,(self.frame>>3)*16,16,16,self.x,self.y,16,16,self.flip) end
|
||||
end
|
||||
|
||||
function zombie:update_normal()
|
||||
@@ -56,7 +56,7 @@ function zombie:update_hit()
|
||||
if self.step%2==0 then
|
||||
self.frame=16
|
||||
else
|
||||
self.frame=7
|
||||
self.frame=-1
|
||||
end
|
||||
elseif self.step>=40 then
|
||||
self.step=0
|
||||
|
||||
Reference in New Issue
Block a user