content: sub Main(params)
    screen = CreateObject("roSGScreen")
    port = CreateObject("roMessagePort")
    screen.setMessagePort(port)
    screen.CreateScene(params.scene)
    screen.show()
    while(true)
      msg = wait(0, port)
      if type(msg) = "roSGScreenEvent"
        if msg.isScreenClosed() then return
      end if
    end while
  end sub
  