add runwon and runlost functions, default win cards, call button that calls a loaded contact, added rotatecells, shiftcells, and swapcells functions to actor, reworked address to be 0-8 instead of 1-9, added underscore naming convention to function parameters, business cards to be slightly transparent when not met, added actions to contacts and made a couple examples

This commit is contained in:
2026-01-25 15:01:48 -05:00
parent c1ef887be3
commit 2fdf0d6442
27 changed files with 473 additions and 104 deletions

View File

@@ -17,7 +17,7 @@ public partial class Board : Sprite2D
_cells = GetChildren().Where(c=>c is Cell).Cast<Cell>().ToList();
for (int i = 0; i < _cells.Count; i++)
{
_cells[i]._address = i+1;
_cells[i]._address = i;
}
}
@@ -88,12 +88,15 @@ public partial class Board : Sprite2D
public void RenumberCells()
{
_cells.OrderBy(c => c.Position.X).ThenBy(c => c.Position.Y).ToList();
GD.Print(string.Join(", ", _cells.Select(c=>c._address)));
_cells = _cells.OrderBy(c => c.Position.Y).ThenBy(c => c.Position.X).ToList();
GD.Print(string.Join(", ", _cells.Select(c=>c._address)));
for (int i = 0; i < _cells.Count; i++)
{
Cell cell = _cells[i];
cell._address = i;
_cells[i]._address = i;
}
}
public void Start()