I'm trying to build a simple block based game in which the player initially controls a square, but attaches to other squares on contact, clustering together.
Currently, I have a pSquare scene which is an Area2D node with Collision2D and Sprite children, and is supposed to represent a square attached to the player (or the initial square).
The other rectangles are represented by a Mob scene with Area2D nodes with collision and sprite children. (I'm roughly following along the structure outlined in the official tutorial Your First Game).
I'm thinking I need to have a Player scene that has an array of instances of pSquare, and appends to that array whenever there is a new contact.
I'm having a hard time figuring out which built in nodes to use and why, and how to organize everything. I'd appreciate any guidance on this. I also don't mind starting over if a different structure is more appropriate. I'm still getting a hold on the big picture with Godot.