Hi All,
100% Defold newbie here. I heard about it some years now, and now I’m considering it for a project.
My use case is to embed an emulator in my app and use Defold to create the UI and control the emulation i.e.:
-
Create an instance of the emulator (it must support more than one running at the same time)
-
Load a game ROM
-
Start, stop and pause the emulation
-
Save and load snapshots
The emulator is available as a dynamic link library, and I already can load it, resolve the symbols I need, and call into its API. By looking at the documentation, I assume it should be available in the editor as a component that I can attach to game objects.
The component will have to update a texture that will then be rendered by Defold via the game object it’s attached to. It will also have to push audio to the hardware audio device, preferrably via a pull API.
So my questions are:
-
Is that assumption correct?
-
If no, how should I approach the problem? I’m ok at changing Defold’s source code to add a new component type
-
If yes, is it possible to create a new component type in a native extension?
Links to example code are more than welcome. I’ve already taken a look at some extensions but none seem to do what I need.
Thanks in advance for any help,
Andre