GitHub – borndotcom/react-native-godot: React Native Godot – Embed Godot Engine in React Native apps
If you’ve ever wanted to bring a full game engine into a mobile app, React Native Godot makes that surprisingly approachable. In short, it lets you embed the Godot Engine inside React Native apps, so you can mix native UI and rich Godot scenes, without reinventing the wheel. I stumbled on this while prototyping a mini-game feature for an app, and honestly, it felt like finding the missing puzzle piece.
The project, available here: https://github.com/borndotcom/react-native-godot, was created by Born and developed with Migeran, and it ships with a handy example app that shows the main features in action. A few practical things that saved me time: it uses ASDF to keep node, java, gradle and ruby versions consistent, there’s an update_deps.sh script to set up both iOS and Android in one go, and LibGodot binaries are downloaded separately so you can swap in custom builds if needed.
Once integrated, you talk to Godot via the RTNGodot class. You can create and destroy engine instances (RTNGodot.createInstance and RTNGodot.destroyInstance), pause and resume execution (RTNGodot.pause and RTNGodot.resume), and access Godot singletons and objects directly from JavaScript. The engine runs on its own thread, separate from React Native’s main JS thread, so performance stays smooth. To bridge threads you’ll use react-native-worklets-core, which lets you run JS in the Godot thread (neat trick, right).
There’s also straightforward export support, just export Godot projects as PCK or ZIP, and use the included export scripts. If you’re into tinkering, this setup lets you update React Native Godot independently from LibGodot, and test local builds easily.
I’ll be following this project closely, because it opens up neat possibilities for interactive features within apps. If you like embedding creative experiences into mobile apps, give it a look, and don’t be surprised if you get a little excited.
Wenn Sie schon immer eine echte Game-Engine in eine Mobile-App integrieren wollten, macht React Native Godot genau das möglich. Kurz gesagt, Sie betten die Godot Engine in React Native Apps ein, so kombinieren Sie native UI mit komplexen Godot-Szenen, ohne alles neu schreiben zu müssen. Ich habe das ausprobiert, als ich ein kleines Spielfeature für eine App gebaut habe, und es hat sich sofort wie ein fehlendes Puzzle-Teil angefühlt.
Das Projekt finden Sie hier: https://github.com/borndotcom/react-native-godot. Es wurde von Born initiiert und gemeinsam mit Migeran entwickelt. Besonders praktisch sind das Beispielprojekt, das die Hauptfunktionen zeigt, und die Tools: ASDF sorgt für konsistente Versionen von Node, Java, Gradle und Ruby, ein update_deps.sh Script richtet iOS und Android in einem Schritt ein, und LibGodot wird separat heruntergeladen, so dass Sie eigene Builds testen können.
Die Kommunikation läuft über die RTNGodot-Klasse. Sie können Instanzen erstellen und stoppen (RTNGodot.createInstance, RTNGodot.destroyInstance), pausieren und fortsetzen (RTNGodot.pause, RTNGodot.resume), und Sie greifen direkt auf Godot-Singletons und -Objekte zu. Godot läuft auf einem eigenen Thread, getrennt von React Natives JS-Thread, das bedeutet bessere Performance. Für die Thread-Kommunikation kommt react-native-worklets-core zum Einsatz, damit JS-Code im Godot-Thread laufen kann.
Exportieren Sie Projekte als PCK oder ZIP, nutzen Sie die mitgelieferten Export-Skripte, und Sie können React Native Godot unabhängig von LibGodot aktualisieren. Für Entwickler, die interaktive Inhalte in Apps bringen wollen, ist das eine sehr flexible Lösung.
Ich bleibe dran, denn das eröffnet schöne Möglichkeiten für kreative, interaktive Features in mobilen Anwendungen.



Kommentar abschicken