can I use C++ language in godot game engine 4.0.3??

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

What I am asking is
On Godot 4.0.3 can I efficiently use C++ language to develop a first-person shooter game
Because I have a good background in C++ language and if so, is there any tutorial or anything I could learn from it that use C++ language


:bust_in_silhouette: Reply From: zhyrin

In previous versions of godot, you had the GDNative api to interface with custom c++ code, since 4.0 you have GDExtension.
Last I checked the documentation for it seemed barebone (which is an improvement over the second to last time I checked, because there was no documentation back then :D)

So yes, you can, in fact, there are two ways to write your game in c++:
a) Use GDExtension

b) Create custom engine modules

If you choose to use GDEXtension, I recommend you wait until the official 4.1 release, it’s about 1 month from now, or you can use the beta: Dev snapshot: Godot 4.1 beta 1
If you read through this section (and gdextions related pull requests) you’ll see that this feature will get some upgrades.