Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: jh8080 on 2016-01-15, 08:31:24

Title: Composer not working as expected
Post by: jh8080 on 2016-01-15, 08:31:24
I am trying out composer with the following code:

Code: [Select]
--main.lua
local composer = require( "composer" )
local scene = composer.newScene()

function scene:create( event )
    local sceneGroup = self.view

    local background = display.newRect( display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeight )
    background:setFillColor( 1, 1, 1 )

    sceneGroup:insert( background )
end

scene:addEventListener( "create", scene )

return scene
However, it gives me a black screen in the simulator, which the background didn't appear. Am I missing something?
Title: Re: Composer not working as expected
Post by: johan belmans on 2016-01-15, 09:14:10
I guess you are on the wrong forum. This is not Corona labs.

cheers