10. ColonaLabs.com
• タッチイベントの作成
Corona SDK でピタゴラスイッチ作り
local function onTouch(event)
if(event.phase == "ended")then
local circle = display.newCircle(50, 50, 20)
circle:setFillColor(0, 0.6, 0.8)
end
end
Runtime:addEventListener( "touch", onTouch )
14年4月26日土曜日