star fish

This commit is contained in:
jill 2021-01-25 21:05:06 +03:00
parent 00f4f5a30b
commit 0cf9e962b6
Signed by: oat
GPG key ID: DD83A9617A252385
10 changed files with 110 additions and 41 deletions

View file

@ -11,6 +11,7 @@ function self.fish(x, y, type)
eattimer = 0 + math.random() * 2, -- starts out hungry, with a 2s delay
moneytimer = 10 + math.random() * 5, -- min 10s before it can make money
dead = false,
star = false,
lifetime = 0,
@ -54,7 +55,7 @@ function self.food(x, y, type)
speed = 0.2,
time = math.random(),
deathtimer = 0,
type = type
type = type -- 1 = tier 1, 2 = tier 2, 3 = tier 3, 4 = star potion
}
return food