Bug fix
parent
e3494bf255
commit
949cdbf79b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue