- If have assign a script by “-s”, the script is the game loop. Create script_loop as MainLoop
- Cast mainloop to sceneTree, sml. (The following is the sceneTree in editor)
Node include the model in the visual world such as camera,
- Add autoLoad node to root (Set on Project > Project Settings in editor)
- Set display mode
- Set local_game_path
- Set network, icon…
OS::get_singleton()->set_main_loop(main_loop);