The Main scene is what ties all the pieces of the game together. It will manage the player, the coins, the timer, and the other pieces of the game.
Part 3 – Main scene
Node setup
Create a new scene and add a node named Main. To add the player to the scene, click the Instance button and select your saved Player.tscn:
Now, add the following nodes as children of Main, naming them as follows:
- TextureRect (named Background)—for the background image
- Node (named CoinContainer)—to hold all the coins
- Position2D (named PlayerStart)—to mark the starting position of the Player
- Timer (named GameTimer)—to track the time limit
Make sure Background is the first child node. Nodes are drawn in the order...