Hi everyone!
I wonder if using c++ as "scripting" or however you might call it as gameplay language is viable? I'm super interested in this engine but i\m not sure if there any decent workflow for it. I have seen GDExtensions but it looks super complex and i don't plan on making engine plugins.
Recently i started looking into writing my game code directly in engine e.g compiling engine after every change, adding nodes right there. Yeah i know it's also not ideal but hey, it's better then compiling Unreal.
Anyway, i would like to hear your opinion. Maybe some of you have had experience with c++ scripting in godot or maybe there are milestons to make it a first class citizen amogus Godot's scripting lang set?
Thanks, have a nice day
Did you try to setup something using modules ? https://docs.godotengine.org/en/stable/contributing/development/core_and_modules/custom_modules_in_cpp.html
In theory you can code everything in it using c++.
No, not at all. It's kind of annoying to setup and not as flexible as GDScript or C#. Also, compile times can add up.
Generally you want to start writing the code in GDScript, and then profile. If you find a particularly slow function (usually stuff with complex math, like procedural mesh generation) then you port it to C++.
Intrusion Well, what if i want to enjoy a game making process and improve my c++ skills? I actually dont care about performance
I've looked in to modules yesterday and usability is worse primarily because of Scons. My ide doesnt understand what is going on, no syntax intellisense or however it called doesnt work, unfortunately. No joy without intellisense for me) If there is a possibility to generate a project file out scons, be it a cmake or msvc please tell me.
If not for that i would actually use direct engine mod approach.
As for Gdextensions there seems to be premade templates over the internet. I found this one https://github.com/asmaloney/GDExtensionTemplate it has Cmake so i can use Clion with it. Still not ideal but close
I hope to see better support for c or c++ workflows in the future!
Godot was designed to be used with GDScript. You can also use C# if you want a more "real" language. It's not really possible, or desirable, to script with C++.
Intrusion
Found this article. Didn't look in here as it was not relevant for me to use Windows but seems like scons can actually generate a VS project! https://docs.godotengine.org/en/3.5/development/compiling/compiling_for_windows.html#development-in-visual-studio Looks promising so far
© 2022 - 2024 — McMap. All rights reserved.