This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+2 votes

Is godot's api capable of allowing one to create a custom game engine purely via gdscript?
My idea is basically to make my own game engine which uses godot and lets the user deploy to web target.

My engine would be an editor that was written in godot and uses godot's runtime and is capable of deploying the edited game to web target without need to open in godot.

How does one do that in gdscript? Is there an example somewhere that shows for example a level editor made in godot that has an "export game" button and exports the edited level as a playable game?

in Engine by (100 points)

I've never tried anything like this, but one problem I see is performance. GDScript is great for writing games, but it's not as good performance wise as c++ for example, so it might fall short in making an engine. I may be wrong though, (it's worth noting that it is very possible to code in c++ in godot)

You could have a look a the engine source code and see how the builtin editor handles export. Since it's all open source, what you'd like to do is certainly possible, but I don't think there are any prebuilt solutions, and I don't think HTML5 export is currently scriptable via GDScript. I may be wrong, though.

What you could try is to use the command line export option. Once you know how to export from the command line, you can script that with GDScript using OS.execute.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.