star fish
This commit is contained in:
parent
00f4f5a30b
commit
0cf9e962b6
10 changed files with 110 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue