diff options
| author | Simon O'Shea <osheas1@wit.edu> | 2023-07-31 18:12:08 -0400 |
|---|---|---|
| committer | Simon O'Shea <osheas1@wit.edu> | 2023-07-31 18:12:08 -0400 |
| commit | 4699ce72871eaa6ee27c01971383b9d1fced1946 (patch) | |
| tree | 0096e8ec6443a110acfd31ff9eb8f76426cd827f /Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs | |
| parent | c98ece3c0d9a691430c29c09c97fb9d75561ea44 (diff) | |
no visual but grid made
very primitive. need to import utilities, so im backing up beforehand
Diffstat (limited to 'Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs')
| -rw-r--r-- | Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs b/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs new file mode 100644 index 0000000..e72f5fe --- /dev/null +++ b/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs @@ -0,0 +1,29 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + + +// INSPIRED BY "CODE MONKEY" ON YOUTUBE +public class LogicGrid +{ + private int width; + private int height; + private int[,] gridArray; + + public LogicGrid(int width, int height) + { + this.width = width; + this.height = height; + + gridArray = new int[width, height]; + + Debug.Log(width + " " + height); + + for(int x = 0; x < gridArray.GetLength(0); x++) + for(int y = 0; y < gridArray.GetLength(1); y++) + { + Debug.Log(x + ", " + y); + } + + } +} |
