• Tetris Extras 01 – GameOver tweak

    Dec 6, 2025

    —

    by

    Jan Lerking
    in Coding Pirates, GDScript 2.0, Godot Game Engine

    We will be updating our GameOver routine as follows. Let’s begin with blurring the ‘GameRoot’. Open ‘main.tscn’. Select ‘UILayer’. Set ‘Layer’ -> ‘Layer’ = 1. Select ‘UIRoot’. Add a ColorRect node. Rename it to ‘BlurOverlay’. With ‘BlurOverlay’ selected, set the…

  • Tetris 10 – Game Over script

    Dec 5, 2025

    —

    by

    Jan Lerking
    in Coding Pirates, GDScript 2.0, Godot Game Engine

    Open the ‘game_over.tscn’ scene. Select the ‘GameOver’ node. Attach a script. Save the script as ‘game_over.gd’. Introduction

  • Tetris 06 – Game Over scene

    Dec 5, 2025

    —

    by

    Jan Lerking
    in Coding Pirates, GDScript 2.0, Godot Game Engine

    Create a new scene of type ‘Control’. Rename the ‘Control’ node to ‘GameOver’. Save the scene as ‘game_over.tscn’. Set Layout to ‘Full Rect’. Add a Control -> CenterContainer node to ‘GameOver’. Select the ‘CenterContainer’. Set Layout to ‘Full Rect’. Add…

  • Tetris Extras

    Dec 5, 2025

    —

    by

    Jan Lerking
    in Coding Pirates, GDScript 2.0, Godot Game Engine

    Here we have a few ideas/examples of expanding and tweaking our Tetris game.

  • Tetris 11 – Test run

    Dec 4, 2025

    —

    by

    Jan Lerking
    in Coding Pirates, GDScript 2.0, Godot Game Engine

    Before we do a test run, we have to set the ‘Main Scene’ in ‘Project Settings’. Now that we have set the ‘Main Scene’, then whenever we click the ‘Run Project’, the ‘main.tscn’ will be the master. Introduction

  • Tetris 09 – NextPreview script

    Dec 4, 2025

    —

    by

    Jan Lerking
    in Coding Pirates, GDScript 2.0, Godot Game Engine

    Open the ‘next_preview.gd’ script. We start by adding constants right after the ‘extends Node2D’ line. And then we add the ‘func update_preview()’ function. Now we need a function to show the next shape – ‘func _draw()’. This concludes the ‘next_preview.gd’…

  • Tetris 08 – Main script

    Dec 4, 2025

    —

    by

    Jan Lerking
    in Coding Pirates, GDScript 2.0, Godot Game Engine

    Open the ‘main.gd’ script. We start by adding constants right after the ‘extends Node2D’ line. And then we add the ‘func _ready()’ and ‘_on_viewport_size_changed()’ functions. Now we add a function ‘func _on_lines_cleared()’ to update over scores. We add a function…

  • Tetris 07 – Board script

    Dec 4, 2025

    —

    by

    Jan Lerking
    in Coding Pirates, GDScript 2.0, Godot Game Engine

    Open the ‘board.gd’ script. We start by adding constants right after the ‘extends Node2D’ line. Add a reset game function ‘func reset_game()’. Now we initialize the board. Add ‘func _ready()’ as follows. Now we add the new functions, starting with…

  • Tetris 05 – HUDRight scene

    Dec 4, 2025

    —

    by

    Jan Lerking
    in Coding Pirates, GDScript 2.0, Godot Game Engine

    Create a new scene with type ‘Control’. Rename the ‘Control’ to ‘HUDRight’. Add a ‘VBoxContainer’ to ‘HUDRight’. Now add the following controls to the ‘VBoxContainer’ Layout Select the ‘HUDRight’ Node and set the layout to ‘Top Left’: Save the scene…

  • Tetris 04 – HUDLeft scene

    Dec 4, 2025

    —

    by

    Jan Lerking
    in Coding Pirates, GDScript 2.0, Godot Game Engine

    Create a new scene of type ‘Control’. Rename the ‘Control’ node to ‘HUDLeft’. Add a ‘VBoxContainer’ to ‘HUDLeft’. Now add the following controls to the ‘VBoxContainer’ Layout Select the ‘HUDLeft’ node and set the layout to ‘Center Left’: Save the…

1 2
Next Page→
Jan Lerking avatar

About the author


Pages

  • About me
  • Coding Pirates
    • Godot game engine
      • Godot game engine installation
      • Godot project organizing
      • Godot core nodes
    • Godot Tetris
  • Raspberry Pi projects

Popular Categories

  • Coding Pirates (13)
  • Godot Game Engine (13)
  • Homelab (2)
    • Kubernetes cluster (1)
  • Programming (16)
    • GDScript 2.0 (13)
  • Raspberry Pi projects (2)

Search the website

Jan's blog

Lav stort eller hop af tønden

About

  • Who am I

Social

    • GitHub
    • Pinterest

    Designed with WordPress