Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | FelicePollano |
I’m developing a toy game that imitate Zuma: https://github.com/FelicePollano/Soma.
The code I initially wrote was entirely contained in a scene, then I realized it was so generic that I can use in more than one level, so I moved to a class in a script and have the level scenes deriving from that class. Is this a good practice in Godot as well ( I come from object oriented design, so I’m a little biased )
Another question: I realized I can be further more generic by extracting the code driving the balls along the path to have more than one path per level, so I will have a third class containing the ball class engine that will be instantiated and parametrized in the code of the single level. Is this a good approach in Godot?
Thanks in advance.