나는 유성이 문자쪽으로 떨어지고 코로나 시뮬레이터가 오류를 던지는 프로그램을 가지고있다. "지역 '배경'을 색인하려고 시도한다. (나는 아무 가치도 없다.)"나는이 사실을 알고 있으며 누군가가 도울 수 있기를 바라고있다!배경은 무효입니까?
Relavent 코드 :
--Start the physics engine!
local physics = require ("physics")
--Get a background image!
local screen_adjustment = 1
local background = display.newImage("Images/Background", true)
background.xScale = (screen_adjustment*background.contentWidth)/background.contentWidth
background.yScale = background.xScale
background.x = display.contentWidth/2
background.y = display.contentHeight/2