summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--worms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/worms.lua b/worms.lua
index 8286127..af4160a 100644
--- a/worms.lua
+++ b/worms.lua
@@ -10,7 +10,7 @@ local function new_fruit() return {math.random(W), math.random(H)} end
local fruits = {}
for i=1,NFRUITS do fruits[i] = new_fruit() end
-local worm = {x=5,y=5}
+local worm = {x=5,y=5,food=0}
-- lsup
local function metricd(dx,dy) return math.max(math.abs(dx),math.abs(dy)) end