This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------- | |
-- Typer | |
local function typer(options) | |
local audio = require"gamkin.audio" | |
local text = options.text or options.target and options.target.text | |
if u.empty(text) then | |
text = "." | |
end | |
local position = 1 | |
local textSpecs = u.extend({}, options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local SpringEasing = {} | |
-- EASING | |
local inflectX, inflectY = 0.075, 0.2 | |
local outflectX, outflectY = 1 - inflectX, 1 - inflectY | |
local decay = 12 | |
local function springIn(progress) | |
return progress ^ 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local _KNOWN_GLOBALS = { | |
_scrollview = true, | |
imageSheet = true, | |
LuaLibStore = true, | |
facebook = true, | |
socket = true, | |
store = true, | |
launchPad = true, | |
crypto = true, | |
lfs = true, |