Category: GDScript 2.0
-
Tetris 03 – Board scene
Create a new Node2D scene. Rename the Node2D to ‘Board’. Save the scene as ‘board.tscn’ Attach a script to the ‘Board’ scene and save it as ‘board.gd’ Open the ‘main.tscn’ scene. Right-click ‘GameRoot’ Node and select ‘Instantiate Child Scene…’ – Select ‘board.tscn’. Click ‘OK’. At this point, our ‘main.tscn’ should look like this. Save ‘main.tscn’.…
-
Tetris 02 – Main scene
Create a new Node2D scene. Rename the Node2D to ‘Main’. Now add a Node2D node to ‘Main’. Rename the new node to ‘GameRoot’. Your scene should now look like this. Save the scene as ‘main.tscn’ Attach a script to the ‘Main’ node and save it as ‘main.gd’ Introduction
-
Tetris 01 – Create project
Open Godot. Click ‘Create’ in the top-left corner. Name your project – ‘Tetris Game’. Select your project path. Then click ‘Create’ Introduction