summaryrefslogtreecommitdiffhomepage
path: root/ground.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ground.lua')
-rw-r--r--ground.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/ground.lua b/ground.lua
index fa84506..6800944 100644
--- a/ground.lua
+++ b/ground.lua
@@ -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