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

@@ -74,6 +74,17 @@ function gota: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)
self.update=gota.update_splash
self.draw=gota.draw_splash
self.cx=self.x+2
self.dx=0
self.dy=-4
end
end
-- if self.hab==abad.hab then
-- if aabb(abad,self) then
-- abad_hurt(1)