let's say I made a game in godot. while playing this game, can the user recompile and distribute this game after customizing it? is it possible? how and with which api?
By all that do you really mean to ask if it is possible to make modable games with godot and redistribute the mods? You don't usually really compile games with godot, rather the godot export templates already include a precompiled runtime executable that upon export gets copied along with relevant/specified game data files to a target folder.
It's very likely possible. Like Megalomaniak said, the export is a precompiled program along with packed game data. If two games use the same exact export template, then I don't see why you couldn't do that with them. After all, the Godot editor actually runs on Godot code. However, it seems unlikely that there would be an API to do this as there isn't much demand for it and making that API would be a challenging task. You would probably have to create a customized export template with some new biolerplate C++ and some SCONS modifications to include the Editor resources you would need to run the "inner" game. That's just my guess.
I've seen Unity embedded in a native Android app before, so anything is possible.
Behindhand for example, the editor gizmo cannot be used while playing the game, is it the same with export libraries?
If you want to make use of editor specific features you'll probably have to fork the editor source. The editor does make use of godot engine/runtime itself but on a source level as a C/C++ project.
© 2022 - 2025 — McMap. All rights reserved.