I wrote the arkanoid, everything works in general, but I am not satisfied with the logic of how I implemented the strength of the blocks
I created a “Block” class that extends StaticBody2D, I wanted to create a constructor in it, but I ran into a problem: I put blocks in a loop when loading the root scene using scene instances.
How do I call the class constructor in this case…?
This may be true, but I would like to transmit the durability of the block precisely through the constructor, and cannot pass necessary parameters to instantiate().