using Godot; using System; using System.Collections; using System.Collections.Generic; public partial class BoardScreen : Node2D { private const string RED_CHIP_PATH = "res://scenes/red_chip.tscn"; private const string YELLOW_CHIP_PATH = "res://scenes/yellow_chip.tscn"; private const int CHIP_SIZE = 24; private const int CHIP_PADDING = 2; private const int INIT_OFFSET = -(CHIP_SIZE + CHIP_PADDING) * 7 / 2; private TextureButton spwnRed; private TextureButton spwnYlw; private PackedScene redChip; private PackedScene ylwChip; private RigidBody2D[,] chips = new RigidBody2D[6, 7]; // 6 rows 7 cols | 0, 0 is top left // Called when the node enters the scene tree for the first time. public override void _Ready() { spwnRed = GetNode("SpwnRed"); spwnYlw = GetNode("SpwnYlw"); spwnRed.GetNode