master
a327ex 2021-05-22 01:32:45 -03:00
parent e3494bf255
commit 949cdbf79b
1 changed files with 1 additions and 0 deletions

View File

@ -2216,6 +2216,7 @@ Critter:implement(Physics)
Critter:implement(Unit)
function Critter:init(args)
self:init_game_object(args)
if tostring(self.x) == tostring(0/0) or tostring(self.y) == tostring(0/0) then self.dead = true; return end
self:init_unit()
self:set_as_rectangle(7, 4, 'dynamic', 'player')
self:set_restitution(0.5)