El monstruitos ja fan pupa

This commit is contained in:
2026-03-29 19:32:13 +02:00
parent fa74a841e7
commit 8d84cdbda1
5 changed files with 30 additions and 9 deletions

View File

@@ -62,6 +62,12 @@ function zombie:update_normal()
self.flip=not self.flip
end
if viewp:inside(self.x, self.y, self.w, self.h) then
if collision(abad,self) then
abad_hurt(1)
end
end
-- if self.hab==abad.hab then
-- if aabb(abad,self) then
-- abad_hurt(1)