Skip to content

Instantly share code, notes, and snippets.

@basicer
Created June 16, 2011 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basicer/1029979 to your computer and use it in GitHub Desktop.
Save basicer/1029979 to your computer and use it in GitHub Desktop.
Unexpected Corona Result
application =
{
content =
{
width = 320,
height = 480,
scale = "zoomEven"
--scale = "letterbox" -- Also Fails :[
},
}
display.setStatusBar( display.HiddenStatusBar )
system.activate( "multitouch" ) -- comment this out to see expected result
local a = display.newCircle(100,100,20)
a:setFillColor(0,255,0)
local b = display.newCircle(200,200,20)
b:setFillColor(255,0,0)
a:addEventListener("touch", function(e)
display.getCurrentStage():setFocus(a, e.id)
a.x = e.xStart
a.y = e.yStart
b.x = e.x
b.y = e.y
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment