15
Godot looks great, but I want to separate game logic and display.
(programming.dev)
Welcome to the programming.dev Godot community!
This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.
Make sure to follow the Godot CoC while chatting
We have a matrix room that can be used for chatting with other members of the community here
We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent
This solution is "ugly" from a programming theory perspective, but it works, especially for a single-player game. You have a global Singleton class that has all the game state information. In the GUI part, you have it check the global Singleton when deciding that to draw.
If you do it this way, you can put the game logic in another thread, or even use a C/C++ GDExtension if you want really high performance.
For example, you keep the player's HP in a global singleton. Then in the GUI where you show the player's HP, you have it check the value in the global singleton.