Created
June 16, 2011 19:06
-
-
Save basicer/1029979 to your computer and use it in GitHub Desktop.
Unexpected Corona Result
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
application = | |
{ | |
content = | |
{ | |
width = 320, | |
height = 480, | |
scale = "zoomEven" | |
--scale = "letterbox" -- Also Fails :[ | |
}, | |
} |
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
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