extends Node var points = 0 enum SPEED {MIN= 5, MAX= 12} var currentSpeed := SPEED.MIN var hasSelectedSpeed = false const GRID := 64 enum BLOCKTYPES {LIGHT, HEAVY} const BLOCKS : Dictionary = { "1x3": "res://scenes/Block/1x3/1x3_block.tscn", "1x4": "res://scenes/Block/1x4/1x4_block.tscn", "2x2": "res://scenes/Block/2x2/2x2_block.tscn", "2x3": "res://scenes/Block/2x3/2x3_block.tscn", "T": "res://scenes/Block/T/T_block.tscn", "L": "res://scenes/Block/L/L_block.tscn", "L-small": "res://scenes/Block/L-small/L-small_block.tscn", "Snake": "res://scenes/Block/Snake/Snake_block.tscn", "Fork": "res://scenes/Block/Fork/Fork_block.tscn" } var lastId = 0 var currentBlock = null func getNewId() -> int: lastId += 1 return lastId func _physics_process(delta: float) -> void: if currentBlock != null: if currentBlock.stopped: hasSelectedSpeed = false