cleanup
This commit is contained in:
parent
8a720717e4
commit
fab2d9e8af
|
@ -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!")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue