diff --git a/game/src/Main.gd b/game/src/Main.gd index 3ae1b6a..3ba56dd 100644 --- a/game/src/Main.gd +++ b/game/src/Main.gd @@ -1,17 +1,4 @@ extends Control -# Declare member variables here. Examples: -# var a = 2 -# var b = "text" - -# Called when the node enters the scene tree for the first time. -func _ready(): - pass # Replace with function body. - -# Called every frame. 'delta' is the elapsed time since the previous frame. -#func _process(delta): -# pass - - func _on_Taquin_solved(): print("Solved!") diff --git a/game/src/Piece.gd b/game/src/Piece.gd index e6779ae..a7706a6 100644 --- a/game/src/Piece.gd +++ b/game/src/Piece.gd @@ -5,9 +5,6 @@ tool export var size: int = 64 var number: int = 0 -#func _draw() -> void: -# draw_rect(Rect2(0, 0, size, size), Color.yellow) - func set_number(num: int) -> void: number = num diff --git a/game/src/Taquin.gd b/game/src/Taquin.gd index bd862b4..a061861 100644 --- a/game/src/Taquin.gd +++ b/game/src/Taquin.gd @@ -19,9 +19,6 @@ var pieces: Array = [] var missing_piece: Vector2 var rng = RandomNumberGenerator.new() -#func _draw() -> void: -# draw_rect(Rect2(0, 0, width, height), Color.blue) - func position_for_index(index: Vector2, size: int) -> Vector2: var padding_w = (width - (size * columns)) / (columns + 1) var padding_h = (height - (size * rows)) / (rows + 1)