by jb3689 · 3y ago · 0 comments
Godot, while not perfect, fit my expectations better. I found myself simply using the prebuilt abstractions I was already building by hand in DragonRuby. Things mostly work. When it came time to cross-compile for hosting on itch.io, I was really delighted by how easy it was to get my games in front of people. That quick feedback loop got me hooked for a while.
And then I went to check out the DragonRuby and RubyMotion websites and it turns out that DragonRuby IS RubyMotion.
Kudos to the team for building something clever but I'm not falling for that one again.
There's a C API for Godot and GDExtension. It should be easy and it has been done before (but not maintained). The problem is that it's just far slower than GDScript or C#.
Here's one such example of Ruby in Godot: https://github.com/onyxblade/godot-ruby
> The problem is that it's just far slower than GDScript or C#.
I'd say that depending on what you're doing, you can get away with a lot even in slower language runtimes, otherwise we'd be writing all of our game code in C, C++ or Rust (or other languages like that) only.
I actually ported the Godot LOD plugin from GDScript to C# a while back to what the performance would be like between the two supported languages: https://blog.kronis.dev/articles/porting-the-godot-lod-plugi... and found that the performance was comparable (so language runtime performance itself doesn't matter that much)
As long as you don't do too much number crunching every frame, you should be fine, especially if the engine itself does most of the heavy lifting. Of course, when it comes to the performance impact of interop between different languages/components, that might be a different story.
But hey, it's not like challenges like that can't be overcome due to some inherent limitations, even the Unity game engine sees popularity of MoonScript (which runs Lua under the hood), as far as I can tell. And in regards to games in general, the whole S.T.A.L.K.E.R. game series used Lua for scripting, if my memory doesn't fail me.
I'm actively working on an interactive showcase of the samples and open source DragonRuby games here: https://dragonridersunite.itch.io/dragon-os
You can browse more games made with DRGTK here: https://itch.io/games/made-with-dragonruby-gtk
There's also the official samples page, which includes commercial games shipped to Android, iOS, and Switch: https://dragonruby.org/toolkit/game/samples
I think any type of 2D game is possible to build with the engine. But it's up to the community (and time) to make great games with it.
+ just wanna say I'm glad you dig Godot! There are so many game engines and libraries out there, and what matters most is finding one that fits your needs and style well. Because ultimately, what's most important, is that the game gets made, regardless of tech.