diff options
| author | rebecca <ubq323@ubq323.website> | 2026-03-01 10:01:20 +0000 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-03-01 10:01:20 +0000 |
| commit | 022f0e94c522fcc6804fc08e04880926a44dc999 (patch) | |
| tree | 37b36b1ac7740e2cc409fd1dba4c8d328259ba2c /worms.lua | |
| parent | 8e8121211b63695fa39fac1f438aff3af5179a19 (diff) | |
worms
Diffstat (limited to 'worms.lua')
| -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 |
