I’ve had this screen manager library on my GitHub account for a while without sharing it. I was reluctant to share it since there already exists a couple of Defold screen managers and I didn’t feel Monarch was battle tested enough to go public with it. I have since then used it in a couple of projects and received some community feedback and pull requests and I feel that now is the time to announce it here. So here we go:
Monarch is a Defold screen manager with transition support and a straight forward API
Monarch screens are created in individual collections and loaded through collection proxies. The recommended setup is to create one game object per screen and per game object attach a collection proxy component and an instance of the screen.script provided by Monarch. The screen.script will take care of the setup of the screen.
The navigation in Monarch is based around a stack of screens. When a screen is shown it is pushed to the top of the stack. When going back to a previous screen the topmost screen on the stack is removed.
You show a screen by calling
monarch.show(screen_id). You navigate back to a previous screen by calling
Monarch supports both normal screens and popups. It also supports a simple screen transitions system.
Learn more here: https://www.defold.com/community/projects/88415/