Godot Version
4.2
Question
Hello, i would like to use godot to play around and get familiar with game engines.
I try to get my head around the scene approach and would like to ask a very basic design and architecture question.
as a try out, i would like to make a game like ball sort: https://play.google.com/store/apps/details?id=sort.ball.puzzle.color.match.puzzle.sorting&hl=de
in none godot i would:
make a game class, make tube class, make ball class, make controller and make renderer.
game gets the setup data, colors, stacks, height, and spawns the tubes and balls.
objects get stored in a 2d array, renderer gets the 2d array and draws, input would manipulate controller to change via games the tubes.
i hope i did not forget anything, i can provide a diagram if needed.
now, when moving with this approach to godot i have trouble to understand how the scenes are stored, it feels weird to do: both .add_child of the stack to the game board and at the same time add the object to a array, doing the same thing twice. on the other hand it feels weird to keep everything as a child under the main note and just get all children, do an if , to see if the current child matches what i want to manipulate. this might work with a few notes, but gets very complicated the moment i have many nodes.
but, godot devs are very smart and designing it this way clearly will have advantages, i only need to understand how to make use of them, could someone point me in the right direction?
thank you very much