Skip to content

Instantly share code, notes, and snippets.

View gould's full-sized avatar
🍊
I may be slow to respond.

Robert Gould gould

🍊
I may be slow to respond.
View GitHub Profile
---------------------------------
-- 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)
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
@gould
gould / patch.lua
Last active August 29, 2015 14:10
グローバル変数を捕まえよう ref: http://qiita.com/gould/items/7dd68339021d1ded5279
local _KNOWN_GLOBALS = {
_scrollview = true,
imageSheet = true,
LuaLibStore = true,
facebook = true,
socket = true,
store = true,
launchPad = true,
crypto = true,
lfs = true,