initial commit

This commit is contained in:
Jack Case
2025-08-18 20:14:18 -04:00
commit cb2caa44cd
10 changed files with 103 additions and 0 deletions

17
grid.gd Normal file
View File

@@ -0,0 +1,17 @@
extends Node2D
var rows: int = 5
var cols: int = 5
var grid: Array
var token = preload("res://token.tscn")
func _ready():
for row in rows:
grid.append([])
for column in cols:
var token_node = token.instantiate()
add_child(token_node)
token_node.position = Vector2(10*row, 10*column)
grid[row].append(token_node)