Is it possible to create a game only with C++?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By m1smr
:warning: Old Version Published before Godot 3 was released.
:bust_in_silhouette: Reply From: Bishop

I thing in Godot 3.0 will be possible, just now not.

Are you sure that we can’t do it already? I thought we have access to everything in the modules section. Maybe not 100% C++, but 99.99%?

whooshfrosted | 2017-05-31 09:33

Sorry,…my mistake…it’s possible but not recommended

Bishop | 2017-05-31 12:15

There is a godot Q&A about more languages here: https://forum.godotengine.org/11397/when-can-we-expect-c%23-support

GameDeveloper1212 | 2017-06-01 16:27

:bust_in_silhouette: Reply From: Calinou

It is already possible to create a game with only C++, but it is not recommended for various reasons. The biggest hurdle right now is that you need to recompile the whole engine to add your own C++ game logic, which can take a lot of time.

Godot 3.0 will however bring GDNative, making it possible to bind many languages to Godot (and use them as dynamic libraries, so one doesn’t need to recompile the whole engine to use it), including C++ (the binding for it is mostly complete right now). There will also be C# support, using Mono.
Both will be usable for writing game logic, plugins, and probably modules for things like third-party SDK integration.

You will also surely be able to use C++11/C++14 with GDNative.

I played around with a module, and sure you have to compile the engine initially, but after that, you are just compiling changes you make in your module.

However one big problem I encountered on Linux, was something in the Godot code, QT Creator and Linux wasn’t interacting well, and was locking up my file managers. That’s when I gave up and returned to GDScript. Perhaps if I didn’t use QT Creator it might have been okay.

The other problem was I couldn’t see how to debug a running game, but people who know the engine better should be able to do that.

After that I thought GDScript was so much faster to develop in, so why bother? lol

whooshfrosted | 2017-05-31 10:02

Hopefully Godot 3.0 will contain more scripting languages, and in my case nothing will be easy unless c# is available for scripting (I know a lot of c# its my favourite programming language)

GameDeveloper1212 | 2017-06-01 16:24