Tag Info

New answers tagged

1

You likely want to start with something simpler than creating a game if you get stuck at for loops. Here's the basic idea for creating a grid, you pretty much have everything you need. for (int x = 0; x < 8; x++) { for (int z = 0; z < 8; z++) { Instantiate(SquareObject, new Vector3(x,0,z), Quaternion.identity); } } This is a nested ...


2

To begin with, in order to access and update your board with ease, you can make use of the Dictionary<Key, Value> class together with the Vector2 structure defined by Unity. Dictionary<Vector2, Tile> tiles = new Dictionary<Vector2, Tile>(); Tile is a class defined by you. It should contain information such as its coordinates on the ...


6

Complete vs. incomplete information What you are looking to do is path finding without complete information. The conceptually sound way to do this would require you to keep track of all of your non-playing character's information state (i.e., the parts of the map they already have discovered). Local information A more workable solution in your case might ...



Top 50 recent answers are included