Godot as static lib

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kapsloki

It’s possible to use Godot Engine not as game engine, but as a static library to generate a new game engine, for example: create window, etc?

:bust_in_silhouette: Reply From: Calinou

Godot isn’t intended to be used as a library, so I’m afraid that’s not possible. However, you can totally use Godot to create non-game applications (see Wonderdraft for an example of what’s possible).

Thanks for that non-game app suggestion, Calinou.

Ertain | 2019-09-29 18:24

:bust_in_silhouette: Reply From: roix

Godot is just code, so it should be possible to use Godot as a static lib. The real question is how hard is it to do so ?
Prepare yourself to go deep in the build system and the source code (entry points) and don’t be scared to edit some parts.

If Godot can be embedded in the browser as a WebAssembly, why can’t it be built a static library to be used on desktop ?