Skip to content

Instantly share code, notes, and snippets.

@calorie
Created November 28, 2013 20:09
Show Gist options
  • Save calorie/7697503 to your computer and use it in GitHub Desktop.
Save calorie/7697503 to your computer and use it in GitHub Desktop.
local sprite = CCSprite:create("hoge.png")
sprite:setTouchEnabled(true)
sprite:addTouchEventListener(function(event, x, y)
if event == "began" then
return true
elseif event == "moved" then
elseif event == "ended" then
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment