News for hackers. Stuff that matters.
Re:Nebula is an open-source and free-to-use modern C++ game ... by gumballindie on Tuesday January 09, 2024 @11:59AM (#38928487)
> Godot (C++ story shaky / WIP, C++ is not a first-class game-dev scenario here AFAICT)

Godot C++ here - works fine so far. I use C++ for the heavy lifting and GDScript for gluing things together. Pretty stable, and the engine compiles in minutes (needed double precision). C++ game logic compiles rather fast. Since the engine is written in C++, that language is right at home.

Re:Nebula is an open-source and free-to-use modern C++ game ... by hotdogscout on Tuesday January 09, 2024 @01:16PM (#38929708)
How do you use c++ in Godot?

GDExtention?

Re:Nebula is an open-source and free-to-use modern C++ game ... by gumballindie on Tuesday January 09, 2024 @01:26PM (#38929848)
Indeed:

https://docs.godotengine.org/en/stable/tutorials/scripting/g...

You only need to make sure your extension API file is in sync with any “main” engine version upgrades. And for major upgrades godot-cpp.

Everything compiles really fast in both Linux and Windows and dependencies are easy to set-up.

However, there is little C++ documentation but that is because once you get the gist of using their Ref<T> wrapper everything is intuitive (functions and methods map one to one from GDScript). Just download their example and have a look around.

Also the engine’s code is _very_ easy to follow if you get stuck and can itself be used as samples.

I am really rusty (even rust can be used btw) with C++ and was able to pick things up quite fast.

Let me know if you have any questions. But really all I needed to start was their example above.

Re:Nebula is an open-source and free-to-use modern C++ game ... by TillE on Tuesday January 09, 2024 @02:31PM (#38930753)
> Also the engine’s code is _very_ easy to follow

This is one of the best parts of Godot, it's small enough to compile pretty quickly, and simple enough that you can jump in and understand the code and debug any problems with minimal friction.

The maintainers are also good about quickly accepting small bug fix PRs.

And yeah, the development experience with GDExtension is now really nice, though it's best to do a little work to set up a CMake project rather than relying on scons.

Re:Nebula is an open-source and free-to-use modern C++ game ... by hotdogscout on Tuesday January 09, 2024 @01:29PM (#38929879)
I've been using SDL 2.0 + GLAD because I thought Godot was iffy with c++, I'll try following their example. Thank you so much.
Re:Nebula is an open-source and free-to-use modern C++ game ... by justin66 on Tuesday January 09, 2024 @02:06PM (#38930438)
What games using Godot have you released?
Re:Nebula is an open-source and free-to-use modern C++ game ... by gumballindie on Wednesday January 10, 2024 @05:02AM (#38938416)
Unfortunately, I spent too much time building a game unity. As soon as I switched to Godot I was able to make meaningful progress, and I am getting closer to release. Unity was buggy, getting in the way, and lacked the right features while it was full of all the features I didnt need. While it may be an excellent tool for shovelware it sucks for novelty.
Re:Nebula is an open-source and free-to-use modern C++ game ... by justin66 on Wednesday January 10, 2024 @09:55AM (#38939536)
Good luck. I'm looking forward to your release announcement!