diff options
Diffstat (limited to 'ground.lua')
-rw-r--r-- | ground.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -28,6 +28,12 @@ function Ground:new (game, world, x, y, shape, sprite) return o end +-- Destructor of `Ground` +function Ground:delete () + -- body deletion is handled by world deletion + self.sprite = nil +end + -- Draw of `Ground` function Ground:draw (offset_x, offset_y, scale, debug) -- defaults |