⌘T | 切換檔案 |
⌘⌃P | 切換專案 |
⌘R | 畫面切換到 method |
⌃G | 畫面切換到指定行數 |
⌘KB | 關閉 / 開啟側邊欄 |
⌘⇧P | 開啟指令控制面板 |
This file contains hidden or 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 rect = display.newRect( 0, 0, 100, 100 ) | |
local function timerListener( object ) | |
return function() | |
print( "Rect x,y = ", object.x, object.y ) | |
end | |
end | |
timer.performWithDelay( 1000, timerListener( rect ) ) |
This file contains hidden or 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 function touchListener( event ) | |
--- Debug Event parameters printout -------------------------------------------------- | |
print();print( "Listener events:" ) | |
for k,v in pairs( event ) do | |
print( " " .. tostring( k ) .. "(" .. tostring( v ) .. ")" ) | |
end | |
--- End of debug Event routine ------------------------------------------------------- |