예제 #1
0
 public Node(int x, int y, string nameOfTexture, bool traversableOnce)
 {
     neighbourHandler     = new NeighbourHandler(this);
     TilePos              = new Vector2(x, y);
     position             = new Vector2(x * GameWorld.nodeSize, y * GameWorld.nodeSize);
     textureName          = nameOfTexture;
     traversable          = true;
     this.traversableOnce = traversableOnce;
 }
예제 #2
0
 public Node(int x, int y)
 {
     neighbourHandler = new NeighbourHandler(this);
     TilePos          = new Vector2(x, y);
     position         = new Vector2(x * GameWorld.nodeSize, y * GameWorld.nodeSize);
     textureName      = "groundSingleTile";
     traversable      = true;
     traversableOnce  = false;
 }