notsanequarium/const.lua

32 lines
1.3 KiB
Lua
Raw Normal View History

2021-01-22 22:33:08 +00:00
ease = require 'lib.ease'
2021-01-23 16:37:37 +00:00
FISH_SPLINE_QUALITY = 6 -- bigger number = more lag, smaller number = more noise
2021-01-22 22:33:08 +00:00
FISH_RENDER_ITERS = 4 -- a bigger number allows for more smoother flipper movement and rotation, but is significantly laggier
FISH_RENDER_ITEROFF = 0.025 -- should be 1/iters*0.1, lower numbers will make movement snappier and higher numbers will make it smoother but glitchier
FISH_RENDER_FREQ = 4 -- only update the quality renders once every x frames
FISH_COLISSION_CHECK_FREQ = 2 -- how often to update the colission
FISH_EASE = ease.inOutSine -- ease used for fish movement
FISH_ANGLE = 30 -- bigger angle allows for fish to swim further down/up at once
FISH_FOLLOW_RANDOM = 10
2021-01-23 16:37:37 +00:00
FISH_FOOD_CHECK_FREQ = 1 -- how often to check for food
FISH_FOOD_1_COOLDOWN = 10
2021-01-23 16:42:33 +00:00
FISH_FOOD_2_COOLDOWN = 20 -- needs to be checked a second time, not sure if this is correct
2021-01-23 16:37:37 +00:00
FISH_FOOD_3_COOLDOWN = 25
2021-01-22 22:33:08 +00:00
FISH_FOOD_HUNGRY = -5
2021-01-23 16:42:33 +00:00
FISH_FOOD_DEAD = -13
2021-01-22 22:33:08 +00:00
FISH_AGE_MEDIUM = 25 -- the age, in seconds, needed for a guppy to become a medium guppy
FISH_AGE_BIG = 65 -- see above, but for big
2021-01-25 14:48:31 +00:00
FISH_AGE_KING = 15 * 60 -- see above, but for king (15 minutes)
2021-01-22 22:33:08 +00:00
FISH_SIZE = 6 -- how many large guppies can you fit on the screen
HEADER_HEIGHT = 68
2021-01-22 22:33:08 +00:00
FOOD_HITBOX = 0.08
2021-01-22 22:33:08 +00:00
DEBUG_FISH_PATH_SUBDIVISIONS = 50
DEBUG_FISH_PREDICT_AMOUNT = 0.5