diff options
| -rw-r--r-- | worms.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
