I added CoronaCards to my landscape game, setting the frame of the CoronaView to the frame of the UIView it is a subview of. (578 x 271). CoronaView sits on top of a UIView which routes the user’s camera through it, using OpenCV for processing. The black bar at the bottom is a TabBar.
Config.lua file set up as follows:
application = { content = { width = 578, height = 271, scale = "zoomStretch", fps = 24, }, orientation = { default = "landscapeRight", supported = { "landscapeRight" }, }, }
Main.lua is:
display.setDefault( "background", 0, 0, 0, 0 ) local myText = display.newText( "Hello World!", 500, 200, native.systemFont, 144 ) myText:setFillColor( 1, 0, 0 ) local myRectangle = display.newRect( 200, 100, 80, 80 ) myRectangle.strokeWidth = 3 myRectangle:setFillColor( 0.5 ) myRectangle:setStrokeColor( 1, 0, 0 ) local myCircle = display.newCircle( 500, 300, 30 ) myCircle:setFillColor( 0.5 ) myCircle.strokeWidth = 5 myCircle:setStrokeColor( 1, 0, 0 )