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 M = {} | |
local json = require("json") | |
local config | |
local FILENAME = "save" | |
local BASE_DIR = system.DocumentsDirectory | |
local SAVE = {} |
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
function scaleObject(event, scale) | |
assert(event, "event is missing") | |
local object = event.target | |
local scale = scale or 0.95 | |
if event.phase == "began" then | |
object.xScale = scale | |
object.yScale = scale | |
object.isFocus = true | |
display.getCurrentStage():setFocus(object) |
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
module("BackEvent", package.seeall) | |
local composer = require "composer" | |
local event = {} | |
local stack = {} | |
local platform = system.getInfo("platform") | |
local init | |
, executeEvent |
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 M = {} | |
local thread = { | |
id = nil, | |
status = "ready", | |
queue = nil, | |
size = nil, | |
listener = nil, | |
} |
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 Feedback = {} | |
local isInit | |
local preference | |
local setOptions | |
, initFeedback | |
, canShowFeedback |