Making a background

Hello Corona Community!

I’m trying to get my background to go ‘full screen’ inside my app, but I can’t seem to get it right. I’ve created a background that’s 480x320 and inserted the image using display.newImageRect. I’ve also set up my config to be width=480 and height=320. Why will my background not go into ‘full screen’ mode? 

I’ve placed the code for config.lua and menu.lua below. I also included a screenshot of the app and how it’s not full screen.

Config.lua

 

application = {     content = {         width = 480,         height = 320,          scale = "letterBox",         fps = 30,     }, }  

 

Menu.lua

 

local storyboard = require( "storyboard" ) local scene = storyboard.newScene() function scene:createScene( event )     local group = self.view     -- display a background image     local background = display.newImageRect( "bg-2.png", 480, 320 )     background:setReferencePoint( display.TopLeftReferencePoint )     background.x, background.y = 0, 0          -- create/position logo/title image on upper-half of the screen     local titleLogo = display.newImageRect( "logo.png", 264, 42 )     titleLogo:setReferencePoint( display.CenterReferencePoint )     titleLogo.x = display.contentWidth \* 0.5     titleLogo.y = 100     end scene:addEventListener( "createScene", scene ) return scene  

What device in the simulator you viewing that on ?

Try it on iPhone 3G.

Dave

Didn’t you ask this in another thread?  Your screen shot is familiar.

The config.lua should always be set as if you are a portrait app.  Width should be the smaller number, height the taller.  So flip the numbers and see if that helps you.

What device in the simulator you viewing that on ?

Try it on iPhone 3G.

Dave

Didn’t you ask this in another thread?  Your screen shot is familiar.

The config.lua should always be set as if you are a portrait app.  Width should be the smaller number, height the taller.  So flip the numbers and see if that helps you.