replace fishgoals with proper food look system

This commit is contained in:
jill 2021-01-23 12:49:35 +03:00
parent 436d5f0301
commit 61d28a326f
Signed by: oat
GPG key ID: DD83A9617A252385
7 changed files with 37 additions and 29 deletions

View file

@ -50,8 +50,7 @@ function self.food(x, y, type)
speed = 0.2,
time = math.random(),
deathtimer = 0,
type = 1,
goal = 0 -- assigns 0 as the fish so that hopefully the update loop replaces it with a valid, random one
type = 1
}
return food