content: sub Main()
      utils = CreateObject("roSGNode", "Utils")
  
      screen = CreateObject("roSGScreen")
      m.port = CreateObject("roMessagePort")
      screen.setMessagePort(m.port)
  
      m.global = screen.getGlobalNode()
      m.global.addfield("scene", "node", false)
      m.global.addfield("load", "boolean", false)
      m.global.addfield("colors", "assocarray", false)
      m.global.addfield("texts", "assocarray", false)
      m.global.addfield("url_server", "string", false)
      m.global.addfield("credentials", "assocarray", false)
      m.global.addfield("profile", "assocarray", false)
  
      m.global.scene = screen.CreateScene("MainScene")
      m.global.colors = utils.callFunc("parseJsonFile", "pkg:/components/data/colors.json")
      m.global.texts = utils.callFunc("parseJsonFile", "pkg:/components/data/texts.json")
      m.global.url_server = "https://rokube.netlify.app/api/"
      ' m.global.url_server = "http://192.168.100.12:3000/api/"
      m.global.load = false
      m.global.credentials = invalid
      m.global.profile = invalid
  
      screen.setMessagePort(m.port)
      screen.show()
  
      while(true)
          msg = wait(0, m.port)
          msgType = type(msg)
          if msgType = "roSGScreenEvent"
              if msg.isScreenClosed()
                  return
              end if
          end if
      end while
  end sub