Is it possible to compile a game within a game in Godot 4.1?
Asked Answered
B

4

0

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?

Behindhand answered 17/11, 2023 at 2:28 Comment(0)
T
0

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.

Thalweg answered 17/11, 2023 at 4:2 Comment(0)
S
0

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.

Soliz answered 17/11, 2023 at 6:28 Comment(0)
B
0

Rollway Barsac As a result, I understand that this is possible, but which class should I use for this export operation? my fear is that, for example, the editor gizmo cannot be used while playing the game, is it the same with export libraries?

Behindhand answered 18/11, 2023 at 0:8 Comment(0)
T
0

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.

Thalweg answered 18/11, 2023 at 8:46 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.